From 4a7072d9a91b504e0706e64c169a3a4f51fa85f1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Feb 2017 05:22:12 +0900 Subject: [PATCH] [Client] Refactor: Use JavaScript instead of LiveScript --- src/web/app/auth/script.js | 2 +- src/web/app/auth/tags/index.js | 2 + src/web/app/auth/tags/index.ls | 2 - src/web/app/boot.js | 2 +- src/web/app/common/tags/index.js | 19 ++++++ src/web/app/common/tags/index.ls | 19 ------ src/web/app/desktop/script.js | 2 +- src/web/app/desktop/tags/index.js | 100 ++++++++++++++++++++++++++++++ src/web/app/desktop/tags/index.ls | 100 ------------------------------ src/web/app/dev/script.js | 2 +- src/web/app/dev/tags/index.js | 5 ++ src/web/app/dev/tags/index.ls | 5 -- src/web/app/mobile/script.js | 2 +- src/web/app/mobile/tags/index.js | 48 ++++++++++++++ src/web/app/mobile/tags/index.ls | 48 -------------- 15 files changed, 179 insertions(+), 179 deletions(-) create mode 100644 src/web/app/auth/tags/index.js delete mode 100644 src/web/app/auth/tags/index.ls create mode 100644 src/web/app/common/tags/index.js delete mode 100644 src/web/app/common/tags/index.ls create mode 100644 src/web/app/desktop/tags/index.js delete mode 100644 src/web/app/desktop/tags/index.ls create mode 100644 src/web/app/dev/tags/index.js delete mode 100644 src/web/app/dev/tags/index.ls create mode 100644 src/web/app/mobile/tags/index.js delete mode 100644 src/web/app/mobile/tags/index.ls diff --git a/src/web/app/auth/script.js b/src/web/app/auth/script.js index efbf2c842..c0065c85f 100644 --- a/src/web/app/auth/script.js +++ b/src/web/app/auth/script.js @@ -4,7 +4,7 @@ const riot = require('riot'); document.title = 'Misskey | アプリの連携'; -require('./tags/index.ls'); +require('./tags'); const boot = require('../boot.js'); /** diff --git a/src/web/app/auth/tags/index.js b/src/web/app/auth/tags/index.js new file mode 100644 index 000000000..42dffe67d --- /dev/null +++ b/src/web/app/auth/tags/index.js @@ -0,0 +1,2 @@ +require('./index.tag'); +require('./form.tag'); diff --git a/src/web/app/auth/tags/index.ls b/src/web/app/auth/tags/index.ls deleted file mode 100644 index 66717ec53..000000000 --- a/src/web/app/auth/tags/index.ls +++ /dev/null @@ -1,2 +0,0 @@ -require './index.tag' -require './form.tag' diff --git a/src/web/app/boot.js b/src/web/app/boot.js index 94f5a8a30..ba4ed5ff4 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -9,7 +9,7 @@ const signout = require('./common/scripts/signout.ls'); const generateDefaultUserdata = require('./common/scripts/generate-default-userdata.ls'); const mixins = require('./common/mixins.ls'); const checkForUpdate = require('./common/scripts/check-for-update.ls'); -require('./common/tags/index.ls'); +require('./common/tags'); /** * MISSKEY ENTORY POINT! diff --git a/src/web/app/common/tags/index.js b/src/web/app/common/tags/index.js new file mode 100644 index 000000000..a27dc1198 --- /dev/null +++ b/src/web/app/common/tags/index.js @@ -0,0 +1,19 @@ +require('./core-error.tag'); +require('./url.tag'); +require('./url-preview.tag'); +require('./ripple-string.tag'); +require('./time.tag'); +require('./file-type-icon.tag'); +require('./uploader.tag'); +require('./ellipsis.tag'); +require('./raw.tag'); +require('./number.tag'); +require('./special-message.tag'); +require('./signin.tag'); +require('./signup.tag'); +require('./forkit.tag'); +require('./introduction.tag'); +require('./copyright.tag'); +require('./signin-history.tag'); +require('./api-info.tag'); +require('./twitter-setting.tag'); diff --git a/src/web/app/common/tags/index.ls b/src/web/app/common/tags/index.ls deleted file mode 100644 index 90af04c57..000000000 --- a/src/web/app/common/tags/index.ls +++ /dev/null @@ -1,19 +0,0 @@ -require './core-error.tag' -require './url.tag' -require './url-preview.tag' -require './ripple-string.tag' -require './time.tag' -require './file-type-icon.tag' -require './uploader.tag' -require './ellipsis.tag' -require './raw.tag' -require './number.tag' -require './special-message.tag' -require './signin.tag' -require './signup.tag' -require './forkit.tag' -require './introduction.tag' -require './copyright.tag' -require './signin-history.tag' -require './api-info.tag' -require './twitter-setting.tag' diff --git a/src/web/app/desktop/script.js b/src/web/app/desktop/script.js index 1d49569da..845e6c495 100644 --- a/src/web/app/desktop/script.js +++ b/src/web/app/desktop/script.js @@ -3,7 +3,7 @@ */ require('chart.js'); -require('./tags/index.ls'); +require('./tags'); const riot = require('riot'); const boot = require('../boot.js'); const mixins = require('./mixins.ls'); diff --git a/src/web/app/desktop/tags/index.js b/src/web/app/desktop/tags/index.js new file mode 100644 index 000000000..449bb71ae --- /dev/null +++ b/src/web/app/desktop/tags/index.js @@ -0,0 +1,100 @@ +require('./contextmenu.tag'); +require('./dialog.tag'); +require('./window.tag'); +require('./input-dialog.tag'); +require('./follow-button.tag'); +require('./drive/base-contextmenu.tag'); +require('./drive/file-contextmenu.tag'); +require('./drive/folder-contextmenu.tag'); +require('./drive/file.tag'); +require('./drive/folder.tag'); +require('./drive/nav-folder.tag'); +require('./drive/browser-window.tag'); +require('./drive/browser.tag'); +require('./select-file-from-drive-window.tag'); +require('./crop-window.tag'); +require('./settings.tag'); +require('./settings-window.tag'); +require('./analog-clock.tag'); +require('./go-top.tag'); +require('./ui-header.tag'); +require('./ui-header-account.tag'); +require('./ui-header-notifications.tag'); +require('./ui-header-clock.tag'); +require('./ui-header-nav.tag'); +require('./ui-header-post-button.tag'); +require('./ui-header-search.tag'); +require('./notifications.tag'); +require('./post-form-window.tag'); +require('./post-form.tag'); +require('./timeline-post.tag'); +require('./post-preview.tag'); +require('./repost-form-window.tag'); +require('./home-widgets/user-recommendation.tag'); +require('./home-widgets/timeline.tag'); +require('./home-widgets/mentions.tag'); +require('./home-widgets/calendar.tag'); +require('./home-widgets/donation.tag'); +require('./home-widgets/tips.tag'); +require('./home-widgets/nav.tag'); +require('./home-widgets/profile.tag'); +require('./home-widgets/notifications.tag'); +require('./home-widgets/rss-reader.tag'); +require('./home-widgets/photo-stream.tag'); +require('./home-widgets/broadcast.tag'); +require('./stream-indicator.tag'); +require('./timeline.tag'); +require('./messaging/window.tag'); +require('./messaging/room.tag'); +require('./messaging/room-window.tag'); +require('./messaging/message.tag'); +require('./messaging/index.tag'); +require('./messaging/form.tag'); +require('./following-setuper.tag'); +require('./ellipsis-icon.tag'); +require('./ui.tag'); +require('./home.tag'); +require('./detect-slow-internet-connection-notice.tag'); +require('./user-header.tag'); +require('./user-profile.tag'); +require('./user-timeline.tag'); +require('./user.tag'); +require('./user-home.tag'); +require('./user-graphs.tag'); +require('./user-photos.tag'); +require('./big-follow-button.tag'); +require('./pages/entrance.tag'); +require('./pages/entrance/signin.tag'); +require('./pages/entrance/signup.tag'); +require('./pages/home.tag'); +require('./pages/user.tag'); +require('./pages/post.tag'); +require('./pages/search.tag'); +require('./pages/not-found.tag'); +require('./autocomplete-suggestion.tag'); +require('./progress-dialog.tag'); +require('./user-preview.tag'); +require('./post-detail.tag'); +require('./post-detail-sub.tag'); +require('./search.tag'); +require('./search-posts.tag'); +require('./set-avatar-suggestion.tag'); +require('./set-banner-suggestion.tag'); +require('./repost-form.tag'); +require('./timeline-post-sub.tag'); +require('./sub-post-content.tag'); +require('./images-viewer.tag'); +require('./image-dialog.tag'); +require('./donation.tag'); +require('./user-posts-graph.tag'); +require('./user-friends-graph.tag'); +require('./user-likes-graph.tag'); +require('./post-status-graph.tag'); +require('./debugger.tag'); +require('./users-list.tag'); +require('./user-following.tag'); +require('./user-followers.tag'); +require('./user-following-window.tag'); +require('./user-followers-window.tag'); +require('./list-user.tag'); +require('./ui-notification.tag'); diff --git a/src/web/app/desktop/tags/index.ls b/src/web/app/desktop/tags/index.ls deleted file mode 100644 index b0338e3fc..000000000 --- a/src/web/app/desktop/tags/index.ls +++ /dev/null @@ -1,100 +0,0 @@ -require './contextmenu.tag' -require './dialog.tag' -require './window.tag' -require './input-dialog.tag' -require './follow-button.tag' -require './drive/base-contextmenu.tag' -require './drive/file-contextmenu.tag' -require './drive/folder-contextmenu.tag' -require './drive/file.tag' -require './drive/folder.tag' -require './drive/nav-folder.tag' -require './drive/browser-window.tag' -require './drive/browser.tag' -require './select-file-from-drive-window.tag' -require './crop-window.tag' -require './settings.tag' -require './settings-window.tag' -require './analog-clock.tag' -require './go-top.tag' -require './ui-header.tag' -require './ui-header-account.tag' -require './ui-header-notifications.tag' -require './ui-header-clock.tag' -require './ui-header-nav.tag' -require './ui-header-post-button.tag' -require './ui-header-search.tag' -require './notifications.tag' -require './post-form-window.tag' -require './post-form.tag' -require './timeline-post.tag' -require './post-preview.tag' -require './repost-form-window.tag' -require './home-widgets/user-recommendation.tag' -require './home-widgets/timeline.tag' -require './home-widgets/mentions.tag' -require './home-widgets/calendar.tag' -require './home-widgets/donation.tag' -require './home-widgets/tips.tag' -require './home-widgets/nav.tag' -require './home-widgets/profile.tag' -require './home-widgets/notifications.tag' -require './home-widgets/rss-reader.tag' -require './home-widgets/photo-stream.tag' -require './home-widgets/broadcast.tag' -require './stream-indicator.tag' -require './timeline.tag' -require './messaging/window.tag' -require './messaging/room.tag' -require './messaging/room-window.tag' -require './messaging/message.tag' -require './messaging/index.tag' -require './messaging/form.tag' -require './following-setuper.tag' -require './ellipsis-icon.tag' -require './ui.tag' -require './home.tag' -require './detect-slow-internet-connection-notice.tag' -require './user-header.tag' -require './user-profile.tag' -require './user-timeline.tag' -require './user.tag' -require './user-home.tag' -require './user-graphs.tag' -require './user-photos.tag' -require './big-follow-button.tag' -require './pages/entrance.tag' -require './pages/entrance/signin.tag' -require './pages/entrance/signup.tag' -require './pages/home.tag' -require './pages/user.tag' -require './pages/post.tag' -require './pages/search.tag' -require './pages/not-found.tag' -require './autocomplete-suggestion.tag' -require './progress-dialog.tag' -require './user-preview.tag' -require './post-detail.tag' -require './post-detail-sub.tag' -require './search.tag' -require './search-posts.tag' -require './set-avatar-suggestion.tag' -require './set-banner-suggestion.tag' -require './repost-form.tag' -require './timeline-post-sub.tag' -require './sub-post-content.tag' -require './images-viewer.tag' -require './image-dialog.tag' -require './donation.tag' -require './user-posts-graph.tag' -require './user-friends-graph.tag' -require './user-likes-graph.tag' -require './post-status-graph.tag' -require './debugger.tag' -require './users-list.tag' -require './user-following.tag' -require './user-followers.tag' -require './user-following-window.tag' -require './user-followers-window.tag' -require './list-user.tag' -require './ui-notification.tag' diff --git a/src/web/app/dev/script.js b/src/web/app/dev/script.js index 10acae4da..c9c5ee51e 100644 --- a/src/web/app/dev/script.js +++ b/src/web/app/dev/script.js @@ -2,7 +2,7 @@ * Developer Center */ -require('./tags/index.ls'); +require('./tags'); const boot = require('../boot.js'); const route = require('./router.ls'); diff --git a/src/web/app/dev/tags/index.js b/src/web/app/dev/tags/index.js new file mode 100644 index 000000000..1e0c73697 --- /dev/null +++ b/src/web/app/dev/tags/index.js @@ -0,0 +1,5 @@ +require('./pages/index.tag'); +require('./pages/apps.tag'); +require('./pages/app.tag'); +require('./pages/new-app.tag'); +require('./new-app-form.tag'); diff --git a/src/web/app/dev/tags/index.ls b/src/web/app/dev/tags/index.ls deleted file mode 100644 index 36fb7500b..000000000 --- a/src/web/app/dev/tags/index.ls +++ /dev/null @@ -1,5 +0,0 @@ -require './pages/index.tag' -require './pages/apps.tag' -require './pages/app.tag' -require './pages/new-app.tag' -require './new-app-form.tag' diff --git a/src/web/app/mobile/script.js b/src/web/app/mobile/script.js index c3c113349..dea26fe99 100644 --- a/src/web/app/mobile/script.js +++ b/src/web/app/mobile/script.js @@ -2,7 +2,7 @@ * Mobile Client */ -require('./tags/index.ls'); +require('./tags'); const boot = require('../boot.js'); const mixins = require('./mixins.ls'); const route = require('./router.ls'); diff --git a/src/web/app/mobile/tags/index.js b/src/web/app/mobile/tags/index.js new file mode 100644 index 000000000..eb0f10cf7 --- /dev/null +++ b/src/web/app/mobile/tags/index.js @@ -0,0 +1,48 @@ +require('./ui.tag'); +require('./ui-header.tag'); +require('./ui-nav.tag'); +require('./stream-indicator.tag'); +require('./page/entrance.tag'); +require('./page/entrance/signin.tag'); +require('./page/entrance/signup.tag'); +require('./page/home.tag'); +require('./page/drive.tag'); +require('./page/notifications.tag'); +require('./page/user.tag'); +require('./page/user-followers.tag'); +require('./page/user-following.tag'); +require('./page/post.tag'); +require('./page/new-post.tag'); +require('./page/search.tag'); +require('./page/settings.tag'); +require('./page/settings/signin.tag'); +require('./page/settings/api.tag'); +require('./page/settings/twitter.tag'); +require('./home.tag'); +require('./home-timeline.tag'); +require('./timeline.tag'); +require('./timeline-post.tag'); +require('./timeline-post-sub.tag'); +require('./post-preview.tag'); +require('./sub-post-content.tag'); +require('./images-viewer.tag'); +require('./drive.tag'); +require('./drive-selector.tag'); +require('./drive/file.tag'); +require('./drive/folder.tag'); +require('./drive/file-viewer.tag'); +require('./post-form.tag'); +require('./notification.tag'); +require('./notifications.tag'); +require('./notify.tag'); +require('./notification-preview.tag'); +require('./search.tag'); +require('./search-posts.tag'); +require('./post-detail.tag'); +require('./user.tag'); +require('./user-timeline.tag'); +require('./follow-button.tag'); +require('./user-preview.tag'); +require('./users-list.tag'); +require('./user-following.tag'); +require('./user-followers.tag'); diff --git a/src/web/app/mobile/tags/index.ls b/src/web/app/mobile/tags/index.ls deleted file mode 100644 index 982a1b870..000000000 --- a/src/web/app/mobile/tags/index.ls +++ /dev/null @@ -1,48 +0,0 @@ -require './ui.tag' -require './ui-header.tag' -require './ui-nav.tag' -require './stream-indicator.tag' -require './page/entrance.tag' -require './page/entrance/signin.tag' -require './page/entrance/signup.tag' -require './page/home.tag' -require './page/drive.tag' -require './page/notifications.tag' -require './page/user.tag' -require './page/user-followers.tag' -require './page/user-following.tag' -require './page/post.tag' -require './page/new-post.tag' -require './page/search.tag' -require './page/settings.tag' -require './page/settings/signin.tag' -require './page/settings/api.tag' -require './page/settings/twitter.tag' -require './home.tag' -require './home-timeline.tag' -require './timeline.tag' -require './timeline-post.tag' -require './timeline-post-sub.tag' -require './post-preview.tag' -require './sub-post-content.tag' -require './images-viewer.tag' -require './drive.tag' -require './drive-selector.tag' -require './drive/file.tag' -require './drive/folder.tag' -require './drive/file-viewer.tag' -require './post-form.tag' -require './notification.tag' -require './notifications.tag' -require './notify.tag' -require './notification-preview.tag' -require './search.tag' -require './search-posts.tag' -require './post-detail.tag' -require './user.tag' -require './user-timeline.tag' -require './follow-button.tag' -require './user-preview.tag' -require './users-list.tag' -require './user-following.tag' -require './user-followers.tag'