fix code review

This commit is contained in:
kakkokari-gtyih 2024-12-20 09:19:19 +09:00
parent 0527331f50
commit 29f0bc4c7d
5 changed files with 6 additions and 19 deletions

View file

@ -106,7 +106,6 @@ import XFile from '@/components/MkDrive.file.vue';
import * as os from '@/os.js'; import * as os from '@/os.js';
import { misskeyApi } from '@/scripts/misskey-api.js'; import { misskeyApi } from '@/scripts/misskey-api.js';
import { useStream } from '@/stream.js'; import { useStream } from '@/stream.js';
import { $i } from '@/account.js';
import { defaultStore } from '@/store.js'; import { defaultStore } from '@/store.js';
import { i18n } from '@/i18n.js'; import { i18n } from '@/i18n.js';
import { uploadFile, uploads } from '@/scripts/upload.js'; import { uploadFile, uploads } from '@/scripts/upload.js';

View file

@ -294,19 +294,6 @@ const focusedForm = ref<'top' | 'left' | 'right' | 'bottom' | null>(null);
</script> </script>
<style module> <style module>
.transition_x_enterActive,
.transition_x_leaveActive {
transition: opacity 0.3s cubic-bezier(0,0,.35,1), transform 0.3s cubic-bezier(0,0,.35,1);
}
.transition_x_enterFrom {
opacity: 0;
transform: translateX(50px);
}
.transition_x_leaveTo {
opacity: 0;
transform: translateX(-50px);
}
.watermarkEditorRoot { .watermarkEditorRoot {
container-type: inline-size; container-type: inline-size;
height: 100%; height: 100%;

View file

@ -11,8 +11,8 @@ import { useStream } from '@/stream.js';
import { i18n } from '@/i18n.js'; import { i18n } from '@/i18n.js';
import { defaultStore } from '@/store.js'; import { defaultStore } from '@/store.js';
import { uploadFile } from '@/scripts/upload.js'; import { uploadFile } from '@/scripts/upload.js';
import { canApplyWatermark } from '@/scripts/watermark.js';
import type { MenuItem } from '@/types/menu.js'; import type { MenuItem } from '@/types/menu.js';
import { canApplyWatermark } from './watermark.js';
export function chooseFileFromPc(opts?: { export function chooseFileFromPc(opts?: {
multiple?: boolean; multiple?: boolean;

View file

@ -14,7 +14,7 @@ import { $i } from '@/account.js';
import { alert } from '@/os.js'; import { alert } from '@/os.js';
import { i18n } from '@/i18n.js'; import { i18n } from '@/i18n.js';
import { instance } from '@/instance.js'; import { instance } from '@/instance.js';
import { canApplyWatermark, getWatermarkAppliedImage } from './watermark.js'; import { canApplyWatermark, getWatermarkAppliedImage } from '@/scripts/watermark.js';
type Uploading = { type Uploading = {
id: string; id: string;

View file

@ -2,9 +2,10 @@
* SPDX-FileCopyrightText: syuilo and misskey-project * SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import { getProxiedImageUrl } from "@/scripts/media-proxy.js";
import { misskeyApi } from "@/scripts/misskey-api.js"; import { getProxiedImageUrl } from '@/scripts/media-proxy.js';
import { defaultStore } from "@/store.js"; import { misskeyApi } from '@/scripts/misskey-api.js';
import { defaultStore } from '@/store.js';
export const watermarkAnchor = [ export const watermarkAnchor = [
'top-left', 'top-left',