Skip to content

Commit

Permalink
refactor: update import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Jan 5, 2025
1 parent 8a83cbc commit 6c1de3c
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { util } from './util.js';
import { theme } from './theme.js';
import { util } from './common/util.js';
import { guest } from './guest/guest.js';
import { theme } from './common/theme.js';
import { comment } from './comment/comment.js';

document.addEventListener('DOMContentLoaded', () => {
Expand Down
8 changes: 4 additions & 4 deletions js/comment/card.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { util } from '../util.js';
import { theme } from '../theme.js';
import { session } from '../session.js';
import { storage } from '../storage.js';
import { util } from '../common/util.js';
import { theme } from '../common/theme.js';
import { pagination } from './pagination.js';
import { storage } from '../common/storage.js';
import { session } from '../common/session.js';

export const card = (() => {

Expand Down
8 changes: 4 additions & 4 deletions js/comment/comment.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { card } from './card.js';
import { like } from './like.js';
import { util } from '../util.js';
import { theme } from '../theme.js';
import { dto } from '../http/dto.js';
import { session } from '../session.js';
import { storage } from '../storage.js';
import { util } from '../common/util.js';
import { theme } from '../common/theme.js';
import { pagination } from './pagination.js';
import { storage } from '../common/storage.js';
import { session } from '../common/session.js';
import { request, HTTP_GET, HTTP_POST, HTTP_DELETE, HTTP_PUT } from '../http/request.js';

export const comment = (() => {
Expand Down
4 changes: 2 additions & 2 deletions js/comment/like.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { dto } from '../http/dto.js';
import { storage } from '../storage.js';
import { session } from '../session.js';
import { storage } from '../common/storage.js';
import { session } from '../common/session.js';
import { confetti } from '../libs/confetti.js';
import { request, HTTP_PATCH, HTTP_POST } from '../http/request.js';

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions js/session.js → js/common/session.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { dto } from './http/dto.js';
import { dto } from '../http/dto.js';
import { storage } from './storage.js';
import { request, HTTP_POST, HTTP_GET } from './http/request.js';
import { request, HTTP_POST, HTTP_GET } from '../http/request.js';

export const session = (() => {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions js/dashboard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { util } from './util.js';
import { theme } from './theme.js';
import { util } from './common/util.js';
import { theme } from './common/theme.js';
import { admin } from './dashboard/admin.js';
import { comment } from './comment/comment.js';

Expand Down
12 changes: 6 additions & 6 deletions js/dashboard/admin.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { auth } from './auth.js';
import { util } from '../util.js';
import { theme } from '../theme.js';
import { dto } from '../http/dto.js';
import { navbar } from './navbar.js';
import { storage } from '../storage.js';
import { session } from '../session.js';
import { offline } from '../offline.js';
import { dto } from '../http/dto.js';
import { util } from '../common/util.js';
import { theme } from '../common/theme.js';
import { storage } from '../common/storage.js';
import { session } from '../common/session.js';
import { offline } from '../common/offline.js';
import { comment } from '../comment/comment.js';
import { request, HTTP_GET, HTTP_PATCH, HTTP_PUT } from '../http/request.js';

Expand Down
6 changes: 3 additions & 3 deletions js/dashboard/auth.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { util } from '../util.js';
import { dto } from '../http/dto.js';
import { storage } from '../storage.js';
import { session } from '../session.js';
import { util } from '../common/util.js';
import { storage } from '../common/storage.js';
import { session } from '../common/session.js';
import { bootstrap } from '../libs/bootstrap.js';
import { request, HTTP_GET } from '../http/request.js';

Expand Down
10 changes: 5 additions & 5 deletions js/guest/guest.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { util } from '../util.js';
import { audio } from './audio.js';
import { theme } from '../theme.js';
import { session } from '../session.js';
import { storage } from '../storage.js';
import { offline } from '../offline.js';
import { progress } from './progress.js';
import { util } from '../common/util.js';
import { theme } from '../common/theme.js';
import { storage } from '../common/storage.js';
import { session } from '../common/session.js';
import { offline } from '../common/offline.js';
import { confetti } from '../libs/confetti.js';
import { comment } from '../comment/comment.js';
import { bootstrap } from '../libs/bootstrap.js';
Expand Down
2 changes: 1 addition & 1 deletion js/http/request.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { dto } from './dto.js';

export const HTTP_GET = 'GET';
export const HTTP_POST = 'POST';
export const HTTP_PUT = 'PUT';
export const HTTP_POST = 'POST';
export const HTTP_PATCH = 'PATCH';
export const HTTP_DELETE = 'DELETE';

Expand Down

0 comments on commit 6c1de3c

Please sign in to comment.