Skip to content

Commit

Permalink
Rename routes, serialization, utils controller and mixins to mbin (#1256
Browse files Browse the repository at this point in the history
)
  • Loading branch information
melroy89 authored Dec 2, 2024
1 parent b5a8f60 commit c62b450
Show file tree
Hide file tree
Showing 55 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion assets/controllers/comment_collapse_controller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from '@hotwired/stimulus';
import { getLevel } from '../utils/kbin';
import { getLevel } from '../utils/mbin';

const COMMENT_ELEMENT_TAG = 'BLOCKQUOTE';
const COLLAPSIBLE_CLASS = 'collapsible';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion assets/controllers/post_controller.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fetch, ok } from '../utils/http';
import { Controller } from '@hotwired/stimulus';
import getIntIdFromElement from '../utils/kbin';
import getIntIdFromElement from '../utils/mbin';
import router from '../utils/routing';

/* stimulusFetch: 'lazy' */
Expand Down
2 changes: 1 addition & 1 deletion assets/controllers/subject_controller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fetch, ok } from '../utils/http';
import getIntIdFromElement, { getDepth, getLevel, getTypeFromNotification } from '../utils/kbin';
import getIntIdFromElement, { getDepth, getLevel, getTypeFromNotification } from '../utils/mbin';
import { Controller } from '@hotwired/stimulus';
import GLightbox from 'glightbox';
import router from '../utils/routing';
Expand Down
2 changes: 1 addition & 1 deletion assets/controllers/subject_list_controller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fetch, ok } from '../utils/http';
import { getDepth, getLevel, getTypeFromNotification } from '../utils/kbin';
import { getDepth, getLevel, getTypeFromNotification } from '../utils/mbin';
import { Controller } from '@hotwired/stimulus';
import router from '../utils/routing';

Expand Down
2 changes: 1 addition & 1 deletion assets/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@import 'simple-icons-font/font/simple-icons';
@import 'glightbox/dist/css/glightbox.min.css';
@import 'mixins/animations';
@import 'mixins/kbin';
@import 'mixins/mbin';
@import 'mixins/theme-dark';
@import 'mixins/theme-light';
@import 'mixins/theme-solarized-dark';
Expand Down
4 changes: 2 additions & 2 deletions assets/styles/components/_comment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ $comment-margin-sm: .3rem;
button,
a {
font-size: .8rem;
@include kbin-btn-link;
@include mbin-btn-link;
}

> li {
Expand All @@ -171,7 +171,7 @@ $comment-margin-sm: .3rem;
}

a {
@include kbin-btn-link;
@include mbin-btn-link;
}

figure {
Expand Down
2 changes: 1 addition & 1 deletion assets/styles/components/_entry.scss
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
}

button, input[type='submit'], a {
@include kbin-btn-link;
@include mbin-btn-link;
}
}

Expand Down
4 changes: 2 additions & 2 deletions assets/styles/components/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
button,
a {
font-size: .8rem;
@include kbin-btn-link;
@include mbin-btn-link;
}

li:first-child a {
Expand All @@ -148,7 +148,7 @@
}

a {
@include kbin-btn-link;
@include mbin-btn-link;
}

figure {
Expand Down
2 changes: 1 addition & 1 deletion assets/styles/components/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
padding: 0;

a {
@include kbin-btn-link;
@include mbin-btn-link;
}

p:last-of-type {
Expand Down
2 changes: 1 addition & 1 deletion assets/styles/layout/_typo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ h6 {
}

.btn-link {
@include kbin-btn-link;
@include mbin-btn-link;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@mixin kbin-btn-link {
@mixin mbin-btn-link {
background: none;
border: 0;
display: inline;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion config/services.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
framework:
serializer:
mapping:
paths: ['%kernel.project_dir%/config/kbin_serialization']
paths: ['%kernel.project_dir%/config/mbin_serialization']

parameters:
kbin_domain: '%env(KBIN_DOMAIN)%'
Expand Down
2 changes: 1 addition & 1 deletion src/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected function configureRoutes(RoutingConfigurator $routes): void
{
$projectDir = $this->getProjectDir();
$routes->import($projectDir.'/config/{routes}/'.$this->environment.'/*.yaml');
$routes->import($projectDir.'/config/{kbin_routes}/*.yaml');
$routes->import($projectDir.'/config/{mbin_routes}/*.yaml');
$routes->import($projectDir.'/config/{routes}/*.yaml');

if (is_file($projectDir.'/config/routes.yaml')) {
Expand Down

0 comments on commit c62b450

Please sign in to comment.