refactor: Tweak path alias of client

This commit is contained in:
syuilo 2021-03-23 17:30:14 +09:00
parent 8432c2c9ea
commit d6e23b803b
338 changed files with 1234 additions and 1229 deletions

View file

@ -1,7 +1,7 @@
import { reactive } from 'vue'; import { reactive } from 'vue';
import { apiUrl } from '@/config'; import { apiUrl } from '@client/config';
import { waiting } from '@/os'; import { waiting } from '@client/os';
import { unisonReload } from '@/scripts/unison-reload'; import { unisonReload } from '@client/scripts/unison-reload';
// TODO: 他のタブと永続化されたstateを同期 // TODO: 他のタブと永続化されたstateを同期

View file

@ -29,10 +29,10 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, markRaw } from 'vue'; import { defineComponent, markRaw } from 'vue';
import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons'; import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons';
import XWindow from '@/components/ui/window.vue'; import XWindow from '@client/components/ui/window.vue';
import MkTextarea from '@/components/ui/textarea.vue'; import MkTextarea from '@client/components/ui/textarea.vue';
import MkButton from '@/components/ui/button.vue'; import MkButton from '@client/components/ui/button.vue';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -36,7 +36,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import * as tinycolor from 'tinycolor2'; import * as tinycolor from 'tinycolor2';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
data() { data() {

View file

@ -30,11 +30,11 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, markRaw } from 'vue'; import { defineComponent, markRaw } from 'vue';
import { emojilist } from '../../misc/emojilist'; import { emojilist } from '../../misc/emojilist';
import contains from '@/scripts/contains'; import contains from '@client/scripts/contains';
import { twemojiSvgBase } from '../../misc/twemoji-base'; import { twemojiSvgBase } from '../../misc/twemoji-base';
import { getStaticImageUrl } from '@/scripts/get-static-image-url'; import { getStaticImageUrl } from '@client/scripts/get-static-image-url';
import { acct } from '@/filters/user'; import { acct } from '@client/filters/user';
import * as os from '@/os'; import * as os from '@client/os';
type EmojiDef = { type EmojiDef = {
emoji: string; emoji: string;

View file

@ -8,7 +8,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -21,7 +21,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faSpinner, faPlus, faMinus, } from '@fortawesome/free-solid-svg-icons'; import { faSpinner, faPlus, faMinus, } from '@fortawesome/free-solid-svg-icons';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -40,10 +40,10 @@
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faSpinner, faInfoCircle, faExclamationTriangle, faCheck } from '@fortawesome/free-solid-svg-icons'; import { faSpinner, faInfoCircle, faExclamationTriangle, faCheck } from '@fortawesome/free-solid-svg-icons';
import { faTimesCircle, faQuestionCircle } from '@fortawesome/free-regular-svg-icons'; import { faTimesCircle, faQuestionCircle } from '@fortawesome/free-regular-svg-icons';
import MkModal from '@/components/ui/modal.vue'; import MkModal from '@client/components/ui/modal.vue';
import MkButton from '@/components/ui/button.vue'; import MkButton from '@client/components/ui/button.vue';
import MkInput from '@/components/ui/input.vue'; import MkInput from '@client/components/ui/input.vue';
import MkSelect from '@/components/ui/select.vue'; import MkSelect from '@client/components/ui/select.vue';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -27,7 +27,7 @@ import {
faFilm faFilm
} from '@fortawesome/free-solid-svg-icons'; } from '@fortawesome/free-solid-svg-icons';
import ImgWithBlurhash from './img-with-blurhash.vue'; import ImgWithBlurhash from './img-with-blurhash.vue';
import { ColdDeviceStorage } from '@/store'; import { ColdDeviceStorage } from '@client/store';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -20,8 +20,8 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import XDrive from './drive.vue'; import XDrive from './drive.vue';
import XModalWindow from '@/components/ui/modal-window.vue'; import XModalWindow from '@client/components/ui/modal-window.vue';
import number from '@/filters/number'; import number from '@client/filters/number';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -15,7 +15,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import XDrive from './drive.vue'; import XDrive from './drive.vue';
import XWindow from '@/components/ui/window.vue'; import XWindow from '@client/components/ui/window.vue';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -34,10 +34,10 @@
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faEye, faEyeSlash } from '@fortawesome/free-regular-svg-icons'; import { faEye, faEyeSlash } from '@fortawesome/free-regular-svg-icons';
import { faDownload, faLink, faICursor, faTrashAlt } from '@fortawesome/free-solid-svg-icons'; import { faDownload, faLink, faICursor, faTrashAlt } from '@fortawesome/free-solid-svg-icons';
import copyToClipboard from '@/scripts/copy-to-clipboard'; import copyToClipboard from '@client/scripts/copy-to-clipboard';
import MkDriveFileThumbnail from './drive-file-thumbnail.vue'; import MkDriveFileThumbnail from './drive-file-thumbnail.vue';
import bytes from '@/filters/bytes'; import bytes from '@client/filters/bytes';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -29,7 +29,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faFolder, faFolderOpen, faTrashAlt, faWindowRestore } from '@fortawesome/free-regular-svg-icons'; import { faFolder, faFolderOpen, faTrashAlt, faWindowRestore } from '@fortawesome/free-regular-svg-icons';
import * as os from '@/os'; import * as os from '@client/os';
import { faICursor } from '@fortawesome/free-solid-svg-icons'; import { faICursor } from '@fortawesome/free-solid-svg-icons';
export default defineComponent({ export default defineComponent({

View file

@ -15,7 +15,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faCloud } from '@fortawesome/free-solid-svg-icons'; import { faCloud } from '@fortawesome/free-solid-svg-icons';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -52,7 +52,7 @@ import XNavFolder from './drive.nav-folder.vue';
import XFolder from './drive.folder.vue'; import XFolder from './drive.folder.vue';
import XFile from './drive.file.vue'; import XFile from './drive.file.vue';
import MkButton from './ui/button.vue'; import MkButton from './ui/button.vue';
import * as os from '@/os'; import * as os from '@client/os';
import { faTrashAlt } from '@fortawesome/free-regular-svg-icons'; import { faTrashAlt } from '@fortawesome/free-regular-svg-icons';
export default defineComponent({ export default defineComponent({

View file

@ -6,8 +6,8 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, markRaw } from 'vue'; import { defineComponent, markRaw } from 'vue';
import MkModal from '@/components/ui/modal.vue'; import MkModal from '@client/components/ui/modal.vue';
import MkEmojiPicker from '@/components/emoji-picker.vue'; import MkEmojiPicker from '@client/components/emoji-picker.vue';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -13,8 +13,8 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, markRaw } from 'vue'; import { defineComponent, markRaw } from 'vue';
import MkWindow from '@/components/ui/window.vue'; import MkWindow from '@client/components/ui/window.vue';
import MkEmojiPicker from '@/components/emoji-picker.vue'; import MkEmojiPicker from '@client/components/emoji-picker.vue';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -18,7 +18,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, markRaw } from 'vue'; import { defineComponent, markRaw } from 'vue';
import { faChevronUp, faChevronDown } from '@fortawesome/free-solid-svg-icons'; import { faChevronUp, faChevronDown } from '@fortawesome/free-solid-svg-icons';
import { getStaticImageUrl } from '@/scripts/get-static-image-url'; import { getStaticImageUrl } from '@client/scripts/get-static-image-url';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -75,14 +75,14 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, markRaw } from 'vue'; import { defineComponent, markRaw } from 'vue';
import { emojilist } from '../../misc/emojilist'; import { emojilist } from '../../misc/emojilist';
import { getStaticImageUrl } from '@/scripts/get-static-image-url'; import { getStaticImageUrl } from '@client/scripts/get-static-image-url';
import { faAsterisk, faLeaf, faUtensils, faFutbol, faCity, faDice, faGlobe, faClock, faUser, faChevronDown, faShapes, faBicycle, faHashtag } from '@fortawesome/free-solid-svg-icons'; import { faAsterisk, faLeaf, faUtensils, faFutbol, faCity, faDice, faGlobe, faClock, faUser, faChevronDown, faShapes, faBicycle, faHashtag } from '@fortawesome/free-solid-svg-icons';
import { faHeart, faFlag, faLaugh } from '@fortawesome/free-regular-svg-icons'; import { faHeart, faFlag, faLaugh } from '@fortawesome/free-regular-svg-icons';
import Particle from '@/components/particle.vue'; import Particle from '@client/components/particle.vue';
import * as os from '@/os'; import * as os from '@client/os';
import { isDeviceTouch } from '@/scripts/is-device-touch'; import { isDeviceTouch } from '@client/scripts/is-device-touch';
import { isMobile } from '@/scripts/is-mobile'; import { isMobile } from '@client/scripts/is-mobile';
import { emojiCategories } from '@/instance'; import { emojiCategories } from '@client/instance';
import XSection from './emoji-picker.section.vue'; import XSection from './emoji-picker.section.vue';
export default defineComponent({ export default defineComponent({

View file

@ -6,7 +6,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -7,7 +7,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faFileImage } from '@fortawesome/free-solid-svg-icons'; import { faFileImage } from '@fortawesome/free-solid-svg-icons';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -30,7 +30,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faSpinner, faPlus, faMinus, faHourglassHalf } from '@fortawesome/free-solid-svg-icons'; import { faSpinner, faPlus, faMinus, faHourglassHalf } from '@fortawesome/free-solid-svg-icons';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -48,7 +48,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import XModalWindow from '@/components/ui/modal-window.vue'; import XModalWindow from '@client/components/ui/modal-window.vue';
import FormBase from './form/base.vue'; import FormBase from './form/base.vue';
import FormInput from './form/input.vue'; import FormInput from './form/input.vue';
import FormTextarea from './form/textarea.vue'; import FormTextarea from './form/textarea.vue';

View file

@ -16,7 +16,7 @@
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import FormButton from './button.vue'; import FormButton from './button.vue';
import FormGroup from './group.vue'; import FormGroup from './group.vue';
import paging from '@/scripts/paging'; import paging from '@client/scripts/paging';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -1,6 +1,6 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, h } from 'vue'; import { defineComponent, h } from 'vue';
import MkRadio from '@/components/ui/radio.vue'; import MkRadio from '@client/components/ui/radio.vue';
import './form.scss'; import './form.scss';
export default defineComponent({ export default defineComponent({

View file

@ -6,7 +6,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import * as katex from 'katex';import * as os from '@/os'; import * as katex from 'katex';import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -3,7 +3,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, defineAsyncComponent } from 'vue';import * as os from '@/os'; import { defineComponent, defineAsyncComponent } from 'vue';import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -7,12 +7,12 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faExpandAlt, faColumns, faExternalLinkAlt, faLink, faWindowMaximize } from '@fortawesome/free-solid-svg-icons'; import { faExpandAlt, faColumns, faExternalLinkAlt, faLink, faWindowMaximize } from '@fortawesome/free-solid-svg-icons';
import * as os from '@/os'; import * as os from '@client/os';
import copyToClipboard from '@/scripts/copy-to-clipboard'; import copyToClipboard from '@client/scripts/copy-to-clipboard';
import { router } from '@/router'; import { router } from '@client/router';
import { url } from '@/config'; import { url } from '@client/config';
import { popout } from '@/scripts/popout'; import { popout } from '@client/scripts/popout';
import { ColdDeviceStorage } from '@/store'; import { ColdDeviceStorage } from '@client/store';
export default defineComponent({ export default defineComponent({
inject: { inject: {

View file

@ -8,7 +8,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { toUnicode } from 'punycode'; import { toUnicode } from 'punycode';
import { host } from '@/config'; import { host } from '@client/config';
export default defineComponent({ export default defineComponent({
props: ['user', 'detail'], props: ['user', 'detail'],

View file

@ -9,9 +9,9 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { getStaticImageUrl } from '@/scripts/get-static-image-url'; import { getStaticImageUrl } from '@client/scripts/get-static-image-url';
import { extractAvgColorFromBlurhash } from '@/scripts/extract-avg-color-from-blurhash'; import { extractAvgColorFromBlurhash } from '@client/scripts/extract-avg-color-from-blurhash';
import { acct, userPage } from '@/filters/user'; import { acct, userPage } from '@client/filters/user';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -7,8 +7,8 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { getStaticImageUrl } from '@/scripts/get-static-image-url'; import { getStaticImageUrl } from '@client/scripts/get-static-image-url';
import { twemojiSvgBase } from '@/../misc/twemoji-base'; import { twemojiSvgBase } from '@client/../misc/twemoji-base';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -11,7 +11,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'; import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
import MkButton from '@/components/ui/button.vue'; import MkButton from '@client/components/ui/button.vue';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -6,7 +6,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -4,7 +4,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import MfmCore from '@/components/mfm'; import MfmCore from '@client/components/mfm';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -23,9 +23,9 @@
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons'; import { faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons';
import { toUnicode as decodePunycode } from 'punycode'; import { toUnicode as decodePunycode } from 'punycode';
import { url as local } from '@/config'; import { url as local } from '@client/config';
import { isDeviceTouch } from '@/scripts/is-device-touch'; import { isDeviceTouch } from '@client/scripts/is-device-touch';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {
@ -72,7 +72,7 @@ export default defineComponent({
if (!document.body.contains(this.$el)) return; if (!document.body.contains(this.$el)) return;
if (this.close) return; if (this.close) return;
const { dispose } = await os.popup(import('@/components/url-preview-popup.vue'), { const { dispose } = await os.popup(import('@client/components/url-preview-popup.vue'), {
url: this.url, url: this.url,
source: this.$el source: this.$el
}); });

View file

@ -8,7 +8,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faSearch } from '@fortawesome/free-solid-svg-icons'; import { faSearch } from '@fortawesome/free-solid-svg-icons';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: ['q'], props: ['q'],

View file

@ -14,9 +14,9 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import bytes from '@/filters/bytes'; import bytes from '@client/filters/bytes';
import number from '@/filters/number'; import number from '@client/filters/number';
import MkModal from '@/components/ui/modal.vue'; import MkModal from '@client/components/ui/modal.vue';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -126,7 +126,7 @@ import { defineComponent, markRaw } from 'vue';
import { faChartBar, faUser, faPencilAlt, faSync } from '@fortawesome/free-solid-svg-icons'; import { faChartBar, faUser, faPencilAlt, faSync } from '@fortawesome/free-solid-svg-icons';
import Chart from 'chart.js'; import Chart from 'chart.js';
import MkSelect from './ui/select.vue'; import MkSelect from './ui/select.vue';
import number from '@/filters/number'; import number from '@client/filters/number';
const sum = (...arr) => arr.reduce((r, a) => r.map((b, i) => a[i] + b)); const sum = (...arr) => arr.reduce((r, a) => r.map((b, i) => a[i] + b));
const negate = arr => arr.map(x => -x); const negate = arr => arr.map(x => -x);
@ -137,7 +137,7 @@ const alpha = (hex, a) => {
const b = parseInt(result[3], 16); const b = parseInt(result[3], 16);
return `rgba(${r}, ${g}, ${b}, ${a})`; return `rgba(${r}, ${g}, ${b}, ${a})`;
}; };
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -7,7 +7,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { instanceName } from '@/config'; import { instanceName } from '@client/config';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -36,9 +36,9 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faQuestionCircle, faInfoCircle, faCircle } from '@fortawesome/free-solid-svg-icons'; import { faQuestionCircle, faInfoCircle, faCircle } from '@fortawesome/free-solid-svg-icons';
import MkModal from '@/components/ui/modal.vue'; import MkModal from '@client/components/ui/modal.vue';
import { sidebarDef } from '@/sidebar'; import { sidebarDef } from '@client/sidebar';
import { instanceName } from '@/config'; import { instanceName } from '@client/config';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -12,9 +12,9 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons'; import { faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons';
import { url as local } from '@/config'; import { url as local } from '@client/config';
import { isDeviceTouch } from '@/scripts/is-device-touch'; import { isDeviceTouch } from '@client/scripts/is-device-touch';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {
@ -46,7 +46,7 @@ export default defineComponent({
if (!document.body.contains(this.$el)) return; if (!document.body.contains(this.$el)) return;
if (this.close) return; if (this.close) return;
const { dispose } = await os.popup(import('@/components/url-preview-popup.vue'), { const { dispose } = await os.popup(import('@client/components/url-preview-popup.vue'), {
url: this.url, url: this.url,
source: this.$el source: this.$el
}); });

View file

@ -28,8 +28,8 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'; import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
import * as os from '@/os'; import * as os from '@client/os';
import { ColdDeviceStorage } from '@/store'; import { ColdDeviceStorage } from '@client/store';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -24,11 +24,11 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faExclamationTriangle, faEyeSlash } from '@fortawesome/free-solid-svg-icons'; import { faExclamationTriangle, faEyeSlash } from '@fortawesome/free-solid-svg-icons';
import { getStaticImageUrl } from '@/scripts/get-static-image-url'; import { getStaticImageUrl } from '@client/scripts/get-static-image-url';
import { extractAvgColorFromBlurhash } from '@/scripts/extract-avg-color-from-blurhash'; import { extractAvgColorFromBlurhash } from '@client/scripts/extract-avg-color-from-blurhash';
import ImageViewer from './image-viewer.vue'; import ImageViewer from './image-viewer.vue';
import ImgWithBlurhash from './img-with-blurhash.vue'; import ImgWithBlurhash from './img-with-blurhash.vue';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -17,7 +17,7 @@ import { defineComponent } from 'vue';
import XBanner from './media-banner.vue'; import XBanner from './media-banner.vue';
import XImage from './media-image.vue'; import XImage from './media-image.vue';
import XVideo from './media-video.vue'; import XVideo from './media-video.vue';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -25,7 +25,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faExclamationTriangle, faEyeSlash } from '@fortawesome/free-solid-svg-icons'; import { faExclamationTriangle, faEyeSlash } from '@fortawesome/free-solid-svg-icons';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -17,9 +17,9 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { toUnicode } from 'punycode'; import { toUnicode } from 'punycode';
import { host as localHost } from '@/config'; import { host as localHost } from '@client/config';
import { wellKnownServices } from '../../well-known-services'; import { wellKnownServices } from '../../well-known-services';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -1,16 +1,16 @@
import { VNode, defineComponent, h } from 'vue'; import { VNode, defineComponent, h } from 'vue';
import { MfmForest } from '@/../mfm/prelude'; import { MfmForest } from '@client/../mfm/prelude';
import { parse, parsePlain } from '@/../mfm/parse'; import { parse, parsePlain } from '@client/../mfm/parse';
import MkUrl from '@/components/global/url.vue'; import MkUrl from '@client/components/global/url.vue';
import MkLink from '@/components/link.vue'; import MkLink from '@client/components/link.vue';
import MkMention from '@/components/mention.vue'; import MkMention from '@client/components/mention.vue';
import MkEmoji from '@/components/global/emoji.vue'; import MkEmoji from '@client/components/global/emoji.vue';
import { concat } from '@/../prelude/array'; import { concat } from '@client/../prelude/array';
import MkFormula from '@/components/formula.vue'; import MkFormula from '@client/components/formula.vue';
import MkCode from '@/components/code.vue'; import MkCode from '@client/components/code.vue';
import MkGoogle from '@/components/google.vue'; import MkGoogle from '@client/components/google.vue';
import MkA from '@/components/global/a.vue'; import MkA from '@client/components/global/a.vue';
import { host } from '@/config'; import { host } from '@client/config';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -32,7 +32,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { v4 as uuid } from 'uuid'; import { v4 as uuid } from 'uuid';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -132,15 +132,15 @@ import XReactionsViewer from './reactions-viewer.vue';
import XMediaList from './media-list.vue'; import XMediaList from './media-list.vue';
import XCwButton from './cw-button.vue'; import XCwButton from './cw-button.vue';
import XPoll from './poll.vue'; import XPoll from './poll.vue';
import { pleaseLogin } from '@/scripts/please-login'; import { pleaseLogin } from '@client/scripts/please-login';
import { focusPrev, focusNext } from '@/scripts/focus'; import { focusPrev, focusNext } from '@client/scripts/focus';
import { url } from '@/config'; import { url } from '@client/config';
import copyToClipboard from '@/scripts/copy-to-clipboard'; import copyToClipboard from '@client/scripts/copy-to-clipboard';
import { checkWordMute } from '@/scripts/check-word-mute'; import { checkWordMute } from '@client/scripts/check-word-mute';
import { userPage } from '@/filters/user'; import { userPage } from '@client/filters/user';
import * as os from '@/os'; import * as os from '@client/os';
import { noteActions, noteViewInterruptors } from '@/store'; import { noteActions, noteViewInterruptors } from '@client/store';
import { reactionPicker } from '@/scripts/reaction-picker'; import { reactionPicker } from '@client/scripts/reaction-picker';
function markRawAll(...xs) { function markRawAll(...xs) {
for (const x of xs) { for (const x of xs) {
@ -160,8 +160,8 @@ export default defineComponent({
XMediaList, XMediaList,
XCwButton, XCwButton,
XPoll, XPoll,
MkUrlPreview: defineAsyncComponent(() => import('@/components/url-preview.vue')), MkUrlPreview: defineAsyncComponent(() => import('@client/components/url-preview.vue')),
MkInstanceTicker: defineAsyncComponent(() => import('@/components/instance-ticker.vue')), MkInstanceTicker: defineAsyncComponent(() => import('@client/components/instance-ticker.vue')),
}, },
inject: { inject: {
@ -687,7 +687,7 @@ export default defineComponent({
text: this.$ts.reportAbuse, text: this.$ts.reportAbuse,
action: () => { action: () => {
const u = `${url}/notes/${this.appearNote.id}`; const u = `${url}/notes/${this.appearNote.id}`;
os.popup(import('@/components/abuse-report-window.vue'), { os.popup(import('@client/components/abuse-report-window.vue'), {
user: this.appearNote.user, user: this.appearNote.user,
initialComment: `Note: ${u}\n-----\n` initialComment: `Note: ${u}\n-----\n`
}, {}, 'closed'); }, {}, 'closed');

View file

@ -28,7 +28,7 @@ import { faHome, faUnlock, faEnvelope, faMobileAlt, faBookmark, faBiohazard } fr
import { faBookmark as farBookmark } from '@fortawesome/free-regular-svg-icons'; import { faBookmark as farBookmark } from '@fortawesome/free-regular-svg-icons';
import notePage from '../filters/note'; import notePage from '../filters/note';
import { userPage } from '../filters/user'; import { userPage } from '../filters/user';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -21,7 +21,7 @@ import { defineComponent } from 'vue';
import XNoteHeader from './note-header.vue'; import XNoteHeader from './note-header.vue';
import XSubNoteContent from './sub-note-content.vue'; import XSubNoteContent from './sub-note-content.vue';
import XCwButton from './cw-button.vue'; import XCwButton from './cw-button.vue';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -24,7 +24,7 @@ import { defineComponent } from 'vue';
import XNoteHeader from './note-header.vue'; import XNoteHeader from './note-header.vue';
import XSubNoteContent from './sub-note-content.vue'; import XSubNoteContent from './sub-note-content.vue';
import XCwButton from './cw-button.vue'; import XCwButton from './cw-button.vue';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
name: 'XSub', name: 'XSub',

View file

@ -114,15 +114,15 @@ import XReactionsViewer from './reactions-viewer.vue';
import XMediaList from './media-list.vue'; import XMediaList from './media-list.vue';
import XCwButton from './cw-button.vue'; import XCwButton from './cw-button.vue';
import XPoll from './poll.vue'; import XPoll from './poll.vue';
import { pleaseLogin } from '@/scripts/please-login'; import { pleaseLogin } from '@client/scripts/please-login';
import { focusPrev, focusNext } from '@/scripts/focus'; import { focusPrev, focusNext } from '@client/scripts/focus';
import { url } from '@/config'; import { url } from '@client/config';
import copyToClipboard from '@/scripts/copy-to-clipboard'; import copyToClipboard from '@client/scripts/copy-to-clipboard';
import { checkWordMute } from '@/scripts/check-word-mute'; import { checkWordMute } from '@client/scripts/check-word-mute';
import { userPage } from '@/filters/user'; import { userPage } from '@client/filters/user';
import * as os from '@/os'; import * as os from '@client/os';
import { noteActions, noteViewInterruptors } from '@/store'; import { noteActions, noteViewInterruptors } from '@client/store';
import { reactionPicker } from '@/scripts/reaction-picker'; import { reactionPicker } from '@client/scripts/reaction-picker';
function markRawAll(...xs) { function markRawAll(...xs) {
for (const x of xs) { for (const x of xs) {
@ -141,8 +141,8 @@ export default defineComponent({
XMediaList, XMediaList,
XCwButton, XCwButton,
XPoll, XPoll,
MkUrlPreview: defineAsyncComponent(() => import('@/components/url-preview.vue')), MkUrlPreview: defineAsyncComponent(() => import('@client/components/url-preview.vue')),
MkInstanceTicker: defineAsyncComponent(() => import('@/components/instance-ticker.vue')), MkInstanceTicker: defineAsyncComponent(() => import('@client/components/instance-ticker.vue')),
}, },
inject: { inject: {
@ -662,7 +662,7 @@ export default defineComponent({
text: this.$ts.reportAbuse, text: this.$ts.reportAbuse,
action: () => { action: () => {
const u = `${url}/notes/${this.appearNote.id}`; const u = `${url}/notes/${this.appearNote.id}`;
os.popup(import('@/components/abuse-report-window.vue'), { os.popup(import('@client/components/abuse-report-window.vue'), {
user: this.appearNote.user, user: this.appearNote.user,
initialComment: `Note: ${u}\n-----\n` initialComment: `Note: ${u}\n-----\n`
}, {}, 'closed'); }, {}, 'closed');

View file

@ -29,10 +29,10 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import paging from '@/scripts/paging'; import paging from '@client/scripts/paging';
import XNote from './note.vue'; import XNote from './note.vue';
import XList from './date-separated-list.vue'; import XList from './date-separated-list.vue';
import MkButton from '@/components/ui/button.vue'; import MkButton from '@client/components/ui/button.vue';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -26,7 +26,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, PropType } from 'vue'; import { defineComponent, PropType } from 'vue';
import XModalWindow from '@/components/ui/modal-window.vue'; import XModalWindow from '@client/components/ui/modal-window.vue';
import MkSwitch from './ui/switch.vue'; import MkSwitch from './ui/switch.vue';
import MkInfo from './ui/info.vue'; import MkInfo from './ui/info.vue';
import MkButton from './ui/button.vue'; import MkButton from './ui/button.vue';

View file

@ -66,8 +66,8 @@ import XReactionIcon from './reaction-icon.vue';
import MkFollowButton from './follow-button.vue'; import MkFollowButton from './follow-button.vue';
import notePage from '../filters/note'; import notePage from '../filters/note';
import { userPage } from '../filters/user'; import { userPage } from '../filters/user';
import { i18n } from '@/i18n'; import { i18n } from '@client/i18n';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -18,12 +18,12 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, PropType } from 'vue'; import { defineComponent, PropType } from 'vue';
import paging from '@/scripts/paging'; import paging from '@client/scripts/paging';
import XNotification from './notification.vue'; import XNotification from './notification.vue';
import XList from './date-separated-list.vue'; import XList from './date-separated-list.vue';
import XNote from './note.vue'; import XNote from './note.vue';
import { notificationTypes } from '../../types'; import { notificationTypes } from '../../types';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -17,7 +17,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { userName } from '../filters/user'; import { userName } from '../filters/user';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -23,12 +23,12 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faExternalLinkAlt, faExpandAlt, faLink, faChevronLeft, faColumns } from '@fortawesome/free-solid-svg-icons'; import { faExternalLinkAlt, faExpandAlt, faLink, faChevronLeft, faColumns } from '@fortawesome/free-solid-svg-icons';
import XWindow from '@/components/ui/window.vue'; import XWindow from '@client/components/ui/window.vue';
import XHeader from '@/ui/_common_/header.vue'; import XHeader from '@client/ui/_common_/header.vue';
import { popout } from '@/scripts/popout'; import { popout } from '@client/scripts/popout';
import copyToClipboard from '@/scripts/copy-to-clipboard'; import copyToClipboard from '@client/scripts/copy-to-clipboard';
import { resolve } from '@/router'; import { resolve } from '@client/router';
import { url } from '@/config'; import { url } from '@client/config';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -19,8 +19,8 @@ import XCounter from './page.counter.vue';
import XRadioButton from './page.radio-button.vue'; import XRadioButton from './page.radio-button.vue';
import XCanvas from './page.canvas.vue'; import XCanvas from './page.canvas.vue';
import XNote from './page.note.vue'; import XNote from './page.note.vue';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
import { Block } from '@/scripts/hpml/block'; import { Block } from '@client/scripts/hpml/block';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -7,9 +7,9 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, PropType, unref } from 'vue'; import { defineComponent, PropType, unref } from 'vue';
import MkButton from '../ui/button.vue'; import MkButton from '../ui/button.vue';
import * as os from '@/os'; import * as os from '@client/os';
import { ButtonBlock } from '@/scripts/hpml/block'; import { ButtonBlock } from '@client/scripts/hpml/block';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -6,9 +6,9 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, onMounted, PropType, Ref, ref } from 'vue'; import { defineComponent, onMounted, PropType, Ref, ref } from 'vue';
import * as os from '@/os'; import * as os from '@client/os';
import { CanvasBlock } from '@/scripts/hpml/block'; import { CanvasBlock } from '@client/scripts/hpml/block';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -7,9 +7,9 @@
<script lang="ts"> <script lang="ts">
import { computed, defineComponent, PropType } from 'vue'; import { computed, defineComponent, PropType } from 'vue';
import MkButton from '../ui/button.vue'; import MkButton from '../ui/button.vue';
import * as os from '@/os'; import * as os from '@client/os';
import { CounterVarBlock } from '@/scripts/hpml/block'; import { CounterVarBlock } from '@client/scripts/hpml/block';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -5,8 +5,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { IfBlock } from '@/scripts/hpml/block'; import { IfBlock } from '@client/scripts/hpml/block';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
import { defineComponent, defineAsyncComponent, PropType } from 'vue'; import { defineComponent, defineAsyncComponent, PropType } from 'vue';
export default defineComponent({ export default defineComponent({

View file

@ -6,9 +6,9 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, PropType } from 'vue'; import { defineComponent, PropType } from 'vue';
import * as os from '@/os'; import * as os from '@client/os';
import { ImageBlock } from '@/scripts/hpml/block'; import { ImageBlock } from '@client/scripts/hpml/block';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -7,10 +7,10 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, onMounted, PropType, Ref, ref } from 'vue'; import { defineComponent, onMounted, PropType, Ref, ref } from 'vue';
import XNote from '@/components/note.vue'; import XNote from '@client/components/note.vue';
import XNoteDetailed from '@/components/note-detailed.vue'; import XNoteDetailed from '@client/components/note-detailed.vue';
import * as os from '@/os'; import * as os from '@client/os';
import { NoteBlock } from '@/scripts/hpml/block'; import { NoteBlock } from '@client/scripts/hpml/block';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -7,9 +7,9 @@
<script lang="ts"> <script lang="ts">
import { computed, defineComponent, PropType } from 'vue'; import { computed, defineComponent, PropType } from 'vue';
import MkInput from '../ui/input.vue'; import MkInput from '../ui/input.vue';
import * as os from '@/os'; import * as os from '@client/os';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
import { NumberInputVarBlock } from '@/scripts/hpml/block'; import { NumberInputVarBlock } from '@client/scripts/hpml/block';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -10,10 +10,10 @@ import { defineComponent, PropType } from 'vue';
import { faCheck, faPaperPlane } from '@fortawesome/free-solid-svg-icons'; import { faCheck, faPaperPlane } from '@fortawesome/free-solid-svg-icons';
import MkTextarea from '../ui/textarea.vue'; import MkTextarea from '../ui/textarea.vue';
import MkButton from '../ui/button.vue'; import MkButton from '../ui/button.vue';
import { apiUrl } from '@/config'; import { apiUrl } from '@client/config';
import * as os from '@/os'; import * as os from '@client/os';
import { PostBlock } from '@/scripts/hpml/block'; import { PostBlock } from '@client/scripts/hpml/block';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -8,9 +8,9 @@
<script lang="ts"> <script lang="ts">
import { computed, defineComponent, PropType } from 'vue'; import { computed, defineComponent, PropType } from 'vue';
import MkRadio from '../ui/radio.vue'; import MkRadio from '../ui/radio.vue';
import * as os from '@/os'; import * as os from '@client/os';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
import { RadioButtonVarBlock } from '@/scripts/hpml/block'; import { RadioButtonVarBlock } from '@client/scripts/hpml/block';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -10,9 +10,9 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, defineAsyncComponent, PropType } from 'vue'; import { defineComponent, defineAsyncComponent, PropType } from 'vue';
import * as os from '@/os'; import * as os from '@client/os';
import { SectionBlock } from '@/scripts/hpml/block'; import { SectionBlock } from '@client/scripts/hpml/block';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -7,9 +7,9 @@
<script lang="ts"> <script lang="ts">
import { computed, defineComponent, PropType } from 'vue'; import { computed, defineComponent, PropType } from 'vue';
import MkSwitch from '../ui/switch.vue'; import MkSwitch from '../ui/switch.vue';
import * as os from '@/os'; import * as os from '@client/os';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
import { SwitchVarBlock } from '@/scripts/hpml/block'; import { SwitchVarBlock } from '@client/scripts/hpml/block';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -7,9 +7,9 @@
<script lang="ts"> <script lang="ts">
import { computed, defineComponent, PropType } from 'vue'; import { computed, defineComponent, PropType } from 'vue';
import MkInput from '../ui/input.vue'; import MkInput from '../ui/input.vue';
import * as os from '@/os'; import * as os from '@client/os';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
import { TextInputVarBlock } from '@/scripts/hpml/block'; import { TextInputVarBlock } from '@client/scripts/hpml/block';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -6,15 +6,15 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { TextBlock } from '@/scripts/hpml/block'; import { TextBlock } from '@client/scripts/hpml/block';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
import { defineAsyncComponent, defineComponent, PropType } from 'vue'; import { defineAsyncComponent, defineComponent, PropType } from 'vue';
import { parse } from '../../../mfm/parse'; import { parse } from '../../../mfm/parse';
import { unique } from '../../../prelude/array'; import { unique } from '../../../prelude/array';
export default defineComponent({ export default defineComponent({
components: { components: {
MkUrlPreview: defineAsyncComponent(() => import('@/components/url-preview.vue')), MkUrlPreview: defineAsyncComponent(() => import('@client/components/url-preview.vue')),
}, },
props: { props: {
block: { block: {

View file

@ -7,10 +7,10 @@
<script lang="ts"> <script lang="ts">
import { computed, defineComponent, PropType } from 'vue'; import { computed, defineComponent, PropType } from 'vue';
import MkTextarea from '../ui/textarea.vue'; import MkTextarea from '../ui/textarea.vue';
import * as os from '@/os'; import * as os from '@client/os';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
import { HpmlTextInput } from '@/scripts/hpml'; import { HpmlTextInput } from '@client/scripts/hpml';
import { TextInputVarBlock } from '@/scripts/hpml/block'; import { TextInputVarBlock } from '@client/scripts/hpml/block';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -3,8 +3,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { TextBlock } from '@/scripts/hpml/block'; import { TextBlock } from '@client/scripts/hpml/block';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
import { defineComponent, PropType } from 'vue'; import { defineComponent, PropType } from 'vue';
import MkTextarea from '../ui/textarea.vue'; import MkTextarea from '../ui/textarea.vue';

View file

@ -8,10 +8,10 @@
import { defineComponent, onMounted, nextTick, onUnmounted, PropType } from 'vue'; import { defineComponent, onMounted, nextTick, onUnmounted, PropType } from 'vue';
import { parse } from '@syuilo/aiscript'; import { parse } from '@syuilo/aiscript';
import XBlock from './page.block.vue'; import XBlock from './page.block.vue';
import { Hpml } from '@/scripts/hpml/evaluator'; import { Hpml } from '@client/scripts/hpml/evaluator';
import { url } from '@/config'; import { url } from '@client/config';
import { $i } from '@/account'; import { $i } from '@client/account';
import { defaultStore } from '@/store'; import { defaultStore } from '@client/store';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -25,7 +25,7 @@
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faCheck } from '@fortawesome/free-solid-svg-icons'; import { faCheck } from '@fortawesome/free-solid-svg-icons';
import { sum } from '../../prelude/array'; import { sum } from '../../prelude/array';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -19,7 +19,7 @@ import { defineComponent, defineAsyncComponent } from 'vue';
import { faTimesCircle, faEye, faEyeSlash } from '@fortawesome/free-regular-svg-icons'; import { faTimesCircle, faEye, faEyeSlash } from '@fortawesome/free-regular-svg-icons';
import { faExclamationTriangle, faICursor } from '@fortawesome/free-solid-svg-icons'; import { faExclamationTriangle, faICursor } from '@fortawesome/free-solid-svg-icons';
import MkDriveFileThumbnail from './drive-file-thumbnail.vue' import MkDriveFileThumbnail from './drive-file-thumbnail.vue'
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -6,8 +6,8 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import MkModal from '@/components/ui/modal.vue'; import MkModal from '@client/components/ui/modal.vue';
import MkPostForm from '@/components/post-form.vue'; import MkPostForm from '@client/components/post-form.vue';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -59,17 +59,17 @@ import { length } from 'stringz';
import { toASCII } from 'punycode'; import { toASCII } from 'punycode';
import XNotePreview from './note-preview.vue'; import XNotePreview from './note-preview.vue';
import { parse } from '../../mfm/parse'; import { parse } from '../../mfm/parse';
import { host, url } from '@/config'; import { host, url } from '@client/config';
import { erase, unique } from '../../prelude/array'; import { erase, unique } from '../../prelude/array';
import extractMentions from '../../misc/extract-mentions'; import extractMentions from '../../misc/extract-mentions';
import getAcct from '../../misc/acct/render'; import getAcct from '../../misc/acct/render';
import { formatTimeString } from '../../misc/format-time-string'; import { formatTimeString } from '../../misc/format-time-string';
import { Autocomplete } from '@/scripts/autocomplete'; import { Autocomplete } from '@client/scripts/autocomplete';
import { noteVisibilities } from '../../types'; import { noteVisibilities } from '../../types';
import * as os from '@/os'; import * as os from '@client/os';
import { selectFile } from '@/scripts/select-file'; import { selectFile } from '@client/scripts/select-file';
import { notePostInterruptors, postFormActions } from '@/store'; import { notePostInterruptors, postFormActions } from '@client/store';
import { isMobile } from '@/scripts/is-mobile'; import { isMobile } from '@client/scripts/is-mobile';
import { throttle } from 'throttle-debounce'; import { throttle } from 'throttle-debounce';
export default defineComponent({ export default defineComponent({

View file

@ -18,9 +18,9 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, ref } from 'vue'; import { defineComponent, ref } from 'vue';
import XDetails from '@/components/reactions-viewer.details.vue'; import XDetails from '@client/components/reactions-viewer.details.vue';
import XReactionIcon from '@/components/reaction-icon.vue'; import XReactionIcon from '@client/components/reaction-icon.vue';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -5,7 +5,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'; import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -29,13 +29,13 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import MkButton from '@/components/ui/button.vue'; import MkButton from '@client/components/ui/button.vue';
import MkInput from '@/components/ui/input.vue'; import MkInput from '@client/components/ui/input.vue';
import MkSwitch from '@/components/ui/switch.vue'; import MkSwitch from '@client/components/ui/switch.vue';
import MkTextarea from '@/components/ui/textarea.vue'; import MkTextarea from '@client/components/ui/textarea.vue';
import MkRadio from '@/components/ui/radio.vue'; import MkRadio from '@client/components/ui/radio.vue';
import * as os from '@/os'; import * as os from '@client/os';
import * as config from '@/config'; import * as config from '@client/config';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -48,11 +48,11 @@
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faGripVertical, faChevronLeft, faHashtag, faBroadcastTower, faFireAlt, faEllipsisH, faPencilAlt, faBars, faTimes, faSearch, faUserCog, faCog, faUser, faHome, faStar, faCircle, faAt, faListUl, faPlus, faUserClock, faUsers, faTachometerAlt, faExchangeAlt, faGlobe, faChartBar, faCloud, faServer, faInfoCircle, faQuestionCircle, faProjectDiagram, faStream, faExclamationCircle } from '@fortawesome/free-solid-svg-icons'; import { faGripVertical, faChevronLeft, faHashtag, faBroadcastTower, faFireAlt, faEllipsisH, faPencilAlt, faBars, faTimes, faSearch, faUserCog, faCog, faUser, faHome, faStar, faCircle, faAt, faListUl, faPlus, faUserClock, faUsers, faTachometerAlt, faExchangeAlt, faGlobe, faChartBar, faCloud, faServer, faInfoCircle, faQuestionCircle, faProjectDiagram, faStream, faExclamationCircle } from '@fortawesome/free-solid-svg-icons';
import { faBell, faEnvelope, faLaugh, faComments } from '@fortawesome/free-regular-svg-icons'; import { faBell, faEnvelope, faLaugh, faComments } from '@fortawesome/free-regular-svg-icons';
import { host } from '@/config'; import { host } from '@client/config';
import { search } from '@/scripts/search'; import { search } from '@client/scripts/search';
import * as os from '@/os'; import * as os from '@client/os';
import { sidebarDef } from '@/sidebar'; import { sidebarDef } from '@client/sidebar';
import { getAccounts, addAccount, login } from '@/account'; import { getAccounts, addAccount, login } from '@client/account';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -13,7 +13,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import XModalWindow from '@/components/ui/modal-window.vue'; import XModalWindow from '@client/components/ui/modal-window.vue';
import MkSignin from './signin.vue'; import MkSignin from './signin.vue';
export default defineComponent({ export default defineComponent({

View file

@ -53,10 +53,10 @@ import { faLock, faGavel } from '@fortawesome/free-solid-svg-icons';
import { faTwitter, faDiscord, faGithub } from '@fortawesome/free-brands-svg-icons'; import { faTwitter, faDiscord, faGithub } from '@fortawesome/free-brands-svg-icons';
import MkButton from './ui/button.vue'; import MkButton from './ui/button.vue';
import MkInput from './ui/input.vue'; import MkInput from './ui/input.vue';
import { apiUrl, host } from '@/config'; import { apiUrl, host } from '@client/config';
import { byteify, hexify } from '@/scripts/2fa'; import { byteify, hexify } from '@client/scripts/2fa';
import * as os from '@/os'; import * as os from '@client/os';
import { login } from '@/account'; import { login } from '@client/account';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -15,7 +15,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import XModalWindow from '@/components/ui/modal-window.vue'; import XModalWindow from '@client/components/ui/modal-window.vue';
import XSignup from './signup.vue'; import XSignup from './signup.vue';
export default defineComponent({ export default defineComponent({

View file

@ -56,12 +56,12 @@ import { defineComponent, defineAsyncComponent } from 'vue';
import { faLock, faExclamationTriangle, faSpinner, faCheck, faKey } from '@fortawesome/free-solid-svg-icons'; import { faLock, faExclamationTriangle, faSpinner, faCheck, faKey } from '@fortawesome/free-solid-svg-icons';
const getPasswordStrength = require('syuilo-password-strength'); const getPasswordStrength = require('syuilo-password-strength');
import { toUnicode } from 'punycode'; import { toUnicode } from 'punycode';
import { host, url } from '@/config'; import { host, url } from '@client/config';
import MkButton from './ui/button.vue'; import MkButton from './ui/button.vue';
import MkInput from './ui/input.vue'; import MkInput from './ui/input.vue';
import MkSwitch from './ui/switch.vue'; import MkSwitch from './ui/switch.vue';
import * as os from '@/os'; import * as os from '@client/os';
import { login } from '@/account'; import { login } from '@client/account';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -23,7 +23,7 @@ import { defineComponent } from 'vue';
import { faReply } from '@fortawesome/free-solid-svg-icons'; import { faReply } from '@fortawesome/free-solid-svg-icons';
import XPoll from './poll.vue'; import XPoll from './poll.vue';
import XMediaList from './media-list.vue'; import XMediaList from './media-list.vue';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -23,8 +23,8 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import * as JSON5 from 'json5'; import * as JSON5 from 'json5';
import XWindow from '@/components/ui/window.vue'; import XWindow from '@client/components/ui/window.vue';
import MkTab from '@/components/tab.vue'; import MkTab from '@client/components/tab.vue';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -79,11 +79,11 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, markRaw, onBeforeUnmount, ref, shallowRef } from 'vue'; import { defineComponent, markRaw, onBeforeUnmount, ref, shallowRef } from 'vue';
import { faTerminal } from '@fortawesome/free-solid-svg-icons'; import { faTerminal } from '@fortawesome/free-solid-svg-icons';
import XWindow from '@/components/ui/window.vue'; import XWindow from '@client/components/ui/window.vue';
import MkTab from '@/components/tab.vue'; import MkTab from '@client/components/tab.vue';
import MkButton from '@/components/ui/button.vue'; import MkButton from '@client/components/ui/button.vue';
import follow from '@/directives/follow-append'; import follow from '@client/directives/follow-append';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -5,8 +5,8 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import XNotes from './notes.vue'; import XNotes from './notes.vue';
import * as os from '@/os'; import * as os from '@client/os';
import * as sound from '@/scripts/sound'; import * as sound from '@client/scripts/sound';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -28,7 +28,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { kinds } from '../../misc/api-permissions'; import { kinds } from '../../misc/api-permissions';
import XModalWindow from '@/components/ui/modal-window.vue'; import XModalWindow from '@client/components/ui/modal-window.vue';
import MkInput from './ui/input.vue'; import MkInput from './ui/input.vue';
import MkTextarea from './ui/textarea.vue'; import MkTextarea from './ui/textarea.vue';
import MkSwitch from './ui/switch.vue'; import MkSwitch from './ui/switch.vue';

View file

@ -8,7 +8,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import contains from '@/scripts/contains'; import contains from '@client/scripts/contains';
import MkMenu from './menu.vue'; import MkMenu from './menu.vue';
export default defineComponent({ export default defineComponent({

View file

@ -3,7 +3,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';import * as os from '@/os'; import { defineComponent } from 'vue';import * as os from '@client/os';
export default defineComponent({}); export default defineComponent({});
</script> </script>

View file

@ -9,7 +9,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faInfoCircle, faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'; import { faInfoCircle, faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -57,7 +57,7 @@
import { defineComponent, onMounted, onUnmounted, nextTick, ref, watch, computed, toRefs } from 'vue'; import { defineComponent, onMounted, onUnmounted, nextTick, ref, watch, computed, toRefs } from 'vue';
import debounce from 'v-debounce'; import debounce from 'v-debounce';
import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons'; import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons';
import * as os from '@/os'; import * as os from '@client/os';
export default defineComponent({ export default defineComponent({
directives: { directives: {

View file

@ -43,8 +43,8 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, ref } from 'vue'; import { defineComponent, ref } from 'vue';
import { faCircle } from '@fortawesome/free-solid-svg-icons'; import { faCircle } from '@fortawesome/free-solid-svg-icons';
import { focusPrev, focusNext } from '@/scripts/focus'; import { focusPrev, focusNext } from '@client/scripts/focus';
import contains from '@/scripts/contains'; import contains from '@client/scripts/contains';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -16,7 +16,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import MkButton from './button.vue'; import MkButton from './button.vue';
import paging from '@/scripts/paging'; import paging from '@client/scripts/paging';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -1,6 +1,6 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, h } from 'vue'; import { defineComponent, h } from 'vue';
import MkRadio from '@/components/ui/radio.vue'; import MkRadio from '@client/components/ui/radio.vue';
export default defineComponent({ export default defineComponent({
components: { components: {

View file

@ -39,8 +39,8 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { faTimes, faCheck } from '@fortawesome/free-solid-svg-icons'; import { faTimes, faCheck } from '@fortawesome/free-solid-svg-icons';
import contains from '@/scripts/contains'; import contains from '@client/scripts/contains';
import * as os from '@/os'; import * as os from '@client/os';
const minHeight = 50; const minHeight = 50;
const minWidth = 250; const minWidth = 250;

Some files were not shown because too many files have changed in this diff Show more