refactor
This commit is contained in:
parent
e21224067b
commit
c0c7e9fafe
|
@ -18,7 +18,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import { imgLoadError } from '../_utils/events'
|
import { imgLoadError } from '../../_utils/events'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
events: {
|
events: {
|
|
@ -112,8 +112,8 @@
|
||||||
const DEFAULT_MEDIA_WIDTH = 300
|
const DEFAULT_MEDIA_WIDTH = 300
|
||||||
const DEFAULT_MEDIA_HEIGHT = 200
|
const DEFAULT_MEDIA_HEIGHT = 200
|
||||||
|
|
||||||
import { imgLoad, imgLoadError } from '../_utils/events'
|
import { imgLoad, imgLoadError } from '../../_utils/events'
|
||||||
import { showVideoDialog } from '../_utils/showVideoDialog'
|
import { showVideoDialog } from '../../_utils/showVideoDialog'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
helpers: {
|
helpers: {
|
|
@ -288,10 +288,10 @@
|
||||||
import Avatar from './Avatar.html'
|
import Avatar from './Avatar.html'
|
||||||
import Media from './Media.html'
|
import Media from './Media.html'
|
||||||
import Toolbar from './Toolbar.html'
|
import Toolbar from './Toolbar.html'
|
||||||
import { mark, stop } from '../_utils/marks'
|
import { mark, stop } from '../../_utils/marks'
|
||||||
import IntlRelativeFormat from 'intl-relativeformat'
|
import IntlRelativeFormat from 'intl-relativeformat'
|
||||||
import { replaceAll } from '../_utils/replaceAll'
|
import { replaceAll } from '../../_utils/replaceAll'
|
||||||
import { store } from '../_utils/store'
|
import { store } from '../../_utils/store'
|
||||||
|
|
||||||
const relativeFormat = new IntlRelativeFormat('en-US');
|
const relativeFormat = new IntlRelativeFormat('en-US');
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import { importDialogPolyfill } from '../_utils/asyncModules'
|
import { importDialogPolyfill } from '../../_utils/asyncModules'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
oncreate() {
|
oncreate() {
|
|
@ -31,10 +31,10 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import { importTimeline } from '../_utils/asyncModules'
|
import { importTimeline } from '../../_utils/asyncModules'
|
||||||
import LoadingSpinner from './LoadingSpinner.html'
|
import LoadingSpinner from '../LoadingSpinner.html'
|
||||||
import { fade } from 'svelte-transitions'
|
import { fade } from 'svelte-transitions'
|
||||||
import { store } from '../_utils/store'
|
import { store } from '../../_utils/store'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
oncreate() {
|
oncreate() {
|
|
@ -17,7 +17,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import LoadingSpinner from './LoadingSpinner.html'
|
import LoadingSpinner from '../LoadingSpinner.html'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
LoadingSpinner
|
LoadingSpinner
|
|
@ -1,6 +1,6 @@
|
||||||
<Status status="{{virtualProps}}" index="{{virtualIndex}}" length="{{virtualLength}}" on:recalculateHeight />
|
<Status status="{{virtualProps}}" index="{{virtualIndex}}" length="{{virtualLength}}" on:recalculateHeight />
|
||||||
<script>
|
<script>
|
||||||
import Status from './Status.html'
|
import Status from '../status/Status.html'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
|
@ -17,19 +17,19 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import { store } from '../_utils/store'
|
import { store } from '../../_utils/store'
|
||||||
import { getTimeline } from '../_utils/mastodon/timelines'
|
import { getTimeline } from '../../_utils/mastodon/timelines'
|
||||||
import { getInstanceInfo } from '../_utils/mastodon/instance'
|
import { getInstanceInfo } from '../../_utils/mastodon/instance'
|
||||||
import StatusListItem from './StatusListItem.html'
|
import StatusListItem from './StatusListItem.html'
|
||||||
import LoadingFooter from './LoadingFooter.html'
|
import LoadingFooter from './LoadingFooter.html'
|
||||||
import VirtualList from './virtualList/VirtualList.html'
|
import VirtualList from '../virtualList/VirtualList.html'
|
||||||
import { splice, push } from 'svelte-extras'
|
import { splice, push } from 'svelte-extras'
|
||||||
import { mergeStatuses } from '../_utils/statuses'
|
import { mergeStatuses } from '../../_utils/statuses'
|
||||||
import { mark, stop } from '../_utils/marks'
|
import { mark, stop } from '../../_utils/marks'
|
||||||
import { timelines } from '../_static/timelines'
|
import { timelines } from '../../_static/timelines'
|
||||||
import { toast } from '../_utils/toast'
|
import { toast } from '../../_utils/toast'
|
||||||
import { database } from '../_utils/database/database'
|
import { database } from '../../_utils/database/database'
|
||||||
import { StatusStream } from '../_utils/mastodon/StatusStream'
|
import { StatusStream } from '../../_utils/mastodon/StatusStream'
|
||||||
|
|
||||||
const FETCH_LIMIT = 20
|
const FETCH_LIMIT = 20
|
||||||
|
|
|
@ -12,7 +12,7 @@ export const importURLSearchParams = () => import(
|
||||||
})
|
})
|
||||||
|
|
||||||
export const importTimeline = () => import(
|
export const importTimeline = () => import(
|
||||||
/* webpackChunkName: 'Timeline' */ '../_components/Timeline.html'
|
/* webpackChunkName: 'Timeline' */ '../_components/timeline/Timeline.html'
|
||||||
).then(mod => mod.default)
|
).then(mod => mod.default)
|
||||||
|
|
||||||
export const importIntersectionObserver = () => import(
|
export const importIntersectionObserver = () => import(
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import VideoDialog from '../_components/VideoDialog.html'
|
import VideoDialog from '../_components/status/VideoDialog.html'
|
||||||
|
|
||||||
export function showVideoDialog(poster, src, width, height, description) {
|
export function showVideoDialog(poster, src, width, height, description) {
|
||||||
let dialog = document.createElement('dialog')
|
let dialog = document.createElement('dialog')
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
</Layout>
|
</Layout>
|
||||||
<script>
|
<script>
|
||||||
import Layout from '../_components/Layout.html'
|
import Layout from '../_components/Layout.html'
|
||||||
import LazyTimeline from '../_components/LazyTimeline.html'
|
import LazyTimeline from '../_components/timeline/LazyTimeline.html'
|
||||||
import FreeTextLayout from '../_components/FreeTextLayout.html'
|
import FreeTextLayout from '../_components/FreeTextLayout.html'
|
||||||
import { store } from '../_utils/store.js'
|
import { store } from '../_utils/store.js'
|
||||||
import HiddenFromSSR from '../_components/HiddenFromSSR'
|
import HiddenFromSSR from '../_components/HiddenFromSSR'
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Layout from './_components/Layout.html'
|
import Layout from './_components/Layout.html'
|
||||||
import LazyTimeline from './_components/LazyTimeline.html'
|
import LazyTimeline from './_components/timeline/LazyTimeline.html'
|
||||||
import FreeTextLayout from './_components/FreeTextLayout.html'
|
import FreeTextLayout from './_components/FreeTextLayout.html'
|
||||||
import { store } from './_utils/store.js'
|
import { store } from './_utils/store.js'
|
||||||
import HiddenFromSSR from './_components/HiddenFromSSR'
|
import HiddenFromSSR from './_components/HiddenFromSSR'
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<script>
|
<script>
|
||||||
import Layout from './_components/Layout.html'
|
import Layout from './_components/Layout.html'
|
||||||
import NotLoggedInHome from './_components/NotLoggedInHome.html'
|
import NotLoggedInHome from './_components/NotLoggedInHome.html'
|
||||||
import LazyTimeline from './_components/LazyTimeline.html'
|
import LazyTimeline from './_components/timeline/LazyTimeline.html'
|
||||||
import { store } from './_utils/store.js'
|
import { store } from './_utils/store.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Layout from './_components/Layout.html'
|
import Layout from './_components/Layout.html'
|
||||||
import LazyTimeline from './_components/LazyTimeline.html'
|
import LazyTimeline from './_components/timeline/LazyTimeline.html'
|
||||||
import FreeTextLayout from './_components/FreeTextLayout.html'
|
import FreeTextLayout from './_components/FreeTextLayout.html'
|
||||||
import { store } from './_utils/store.js'
|
import { store } from './_utils/store.js'
|
||||||
import HiddenFromSSR from './_components/HiddenFromSSR'
|
import HiddenFromSSR from './_components/HiddenFromSSR'
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
</Layout>
|
</Layout>
|
||||||
<script>
|
<script>
|
||||||
import Layout from '../_components/Layout.html'
|
import Layout from '../_components/Layout.html'
|
||||||
import LazyTimeline from '../_components/LazyTimeline.html'
|
import LazyTimeline from '../_components/timeline/LazyTimeline.html'
|
||||||
import FreeTextLayout from '../_components/FreeTextLayout.html'
|
import FreeTextLayout from '../_components/FreeTextLayout.html'
|
||||||
import { store } from '../_utils/store.js'
|
import { store } from '../_utils/store.js'
|
||||||
import HiddenFromSSR from '../_components/HiddenFromSSR'
|
import HiddenFromSSR from '../_components/HiddenFromSSR'
|
||||||
|
|
Loading…
Reference in a new issue