Update dependencies and run prettier
parent
c74926b8c1
commit
ee003912d5
|
|
@ -1,6 +1,3 @@
|
|||
{
|
||||
"recommendations": [
|
||||
"vue.volar",
|
||||
"dbaeumer.vscode-eslint",
|
||||
]
|
||||
"recommendations": ["vue.volar", "dbaeumer.vscode-eslint"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"typescript.tsdk": "node_modules/typescript/lib",
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true
|
||||
},
|
||||
"source.fixAll.eslint": "explicit"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
58
package.json
58
package.json
|
|
@ -23,57 +23,59 @@
|
|||
"sign:firefox": "web-ext sign --use-submission-api --source-dir ./extension",
|
||||
"clear": "rimraf extension/dist extension/manifest.json extension.*",
|
||||
"lint": "eslint .",
|
||||
"test": "vitest test"
|
||||
"test": "vitest test",
|
||||
"pretty": "prettier -w ."
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.2.2",
|
||||
"axios": "^1.6.3",
|
||||
"byte-size": "^8.1.1",
|
||||
"deepmerge": "^4.3.1",
|
||||
"lodash": "^4.17.21",
|
||||
"markdown-it": "^13.0.1",
|
||||
"markdown-it": "^13.0.2",
|
||||
"neo-scraper": "^0.7.3",
|
||||
"normalize.css": "^8.0.1",
|
||||
"pinia": "^2.0.36",
|
||||
"pinia": "^2.1.7",
|
||||
"primeflex": "^3.3.1",
|
||||
"primevue": "^3.33.0",
|
||||
"vue-router": "4"
|
||||
"primevue": "^3.45.0",
|
||||
"vue-router": "^4.2.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ffflorian/jszip-cli": "^3.1.6",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.2.1",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
||||
"@fortawesome/vue-fontawesome": "^3.0.3",
|
||||
"@types/byte-size": "^8.1.0",
|
||||
"@ffflorian/jszip-cli": "^3.5.8",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.5.1",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.5.1",
|
||||
"@fortawesome/vue-fontawesome": "^3.0.5",
|
||||
"@types/byte-size": "^8.1.2",
|
||||
"@types/fs-extra": "^9.0.13",
|
||||
"@types/lodash": "^4.14.194",
|
||||
"@types/lodash": "^4.14.202",
|
||||
"@types/markdown-it": "^12.2.3",
|
||||
"@types/node": "^18.11.9",
|
||||
"@types/webextension-polyfill": "^0.9.1",
|
||||
"@typescript-eslint/eslint-plugin": "^5.44.0",
|
||||
"@types/node": "^18.19.3",
|
||||
"@types/webextension-polyfill": "^0.9.2",
|
||||
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
||||
"@vitejs/plugin-vue": "^3.2.0",
|
||||
"@vue/compiler-sfc": "^3.2.45",
|
||||
"@vue/test-utils": "^2.2.4",
|
||||
"@vueuse/core": "^9.6.0",
|
||||
"@vue/compiler-sfc": "^3.4.0",
|
||||
"@vue/test-utils": "^2.4.3",
|
||||
"@vueuse/core": "^9.13.0",
|
||||
"chokidar": "^3.5.3",
|
||||
"cross-env": "^7.0.3",
|
||||
"crx": "^5.0.1",
|
||||
"eslint": "^8.32.0",
|
||||
"eslint-plugin-vue": "^9.9.0",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-plugin-vue": "^9.19.2",
|
||||
"esno": "^0.16.3",
|
||||
"fs-extra": "^10.1.0",
|
||||
"jsdom": "^20.0.3",
|
||||
"kolorist": "^1.6.0",
|
||||
"kolorist": "^1.8.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^3.1.1",
|
||||
"rimraf": "^3.0.2",
|
||||
"sass": "^1.57.1",
|
||||
"typescript": "^4.9.3",
|
||||
"sass": "^1.69.6",
|
||||
"typescript": "^4.9.5",
|
||||
"unplugin-auto-import": "^0.12.2",
|
||||
"unplugin-vue-components": "^0.23.0",
|
||||
"vite": "^3.2.4",
|
||||
"vitest": "^0.25.3",
|
||||
"vue": "^3.2.45",
|
||||
"vue-eslint-parser": "^9.1.0",
|
||||
"web-ext": "^7.5.0",
|
||||
"vite": "^3.2.7",
|
||||
"vitest": "^0.25.8",
|
||||
"vue": "^3.4.0",
|
||||
"vue-eslint-parser": "^9.3.2",
|
||||
"web-ext": "^7.9.0",
|
||||
"webextension-polyfill": "^0.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
5922
pnpm-lock.yaml
5922
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
|
@ -1,9 +1,9 @@
|
|||
import { resolve } from 'path';
|
||||
import { bgCyan, black } from 'kolorist';
|
||||
import { resolve } from "path";
|
||||
import { bgCyan, black } from "kolorist";
|
||||
|
||||
export const port = parseInt(process.env.PORT || '') || 3303;
|
||||
export const r = (...args: string[]) => resolve(__dirname, '..', ...args);
|
||||
export const isDev = process.env.NODE_ENV !== 'production';
|
||||
export const port = parseInt(process.env.PORT || "") || 3303;
|
||||
export const r = (...args: string[]) => resolve(__dirname, "..", ...args);
|
||||
export const isDev = process.env.NODE_ENV !== "production";
|
||||
|
||||
export function log(name: string, message: string) {
|
||||
console.log(black(bgCyan(` ${name} `)), message);
|
||||
|
|
|
|||
|
|
@ -121,7 +121,8 @@ export default class SzurubooruApi {
|
|||
offset = 0,
|
||||
limit = 100,
|
||||
fields?: PoolFields[],
|
||||
cancelToken?: CancelToken): Promise<PoolsResult> {
|
||||
cancelToken?: CancelToken,
|
||||
): Promise<PoolsResult> {
|
||||
const params = new URLSearchParams();
|
||||
params.append("offset", offset.toString());
|
||||
params.append("limit", limit.toString());
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ async function uploadPost(data: PostUploadCommandData) {
|
|||
} else {
|
||||
// Pool exists, so add it to the existing pool.
|
||||
const existingPool = existingPools.results[0];
|
||||
const posts = existingPool.posts.map(x => x.id);
|
||||
const posts = existingPool.posts.map((x) => x.id);
|
||||
posts.push(createdPost.id);
|
||||
|
||||
console.log(`Adding post ${createdPost.id} to existing pool ${existingPool.id}`);
|
||||
|
|
|
|||
|
|
@ -99,9 +99,14 @@ watch(props, (newValue) => {
|
|||
</div>
|
||||
|
||||
<div class="autocomplete-items" v-bind:class="{ show: autocompleteShown }">
|
||||
<div v-for="(item, idx) in autocompleteItems" @click="onClickAutocompleteItem(item)" :key="item.name" :class="{
|
||||
<div
|
||||
v-for="(item, idx) in autocompleteItems"
|
||||
@click="onClickAutocompleteItem(item)"
|
||||
:key="item.name"
|
||||
:class="{
|
||||
active: idx == autocompleteIndex,
|
||||
}">
|
||||
}"
|
||||
>
|
||||
<slot :item="item"></slot>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,8 @@ defineEmits(["removePool"]);
|
|||
<li v-for="pool in pools" :key="pool.name">
|
||||
<a v-if="showRemovePool" class="remove-tag" @click="$emit('removePool', pool)">x</a>
|
||||
<span class="tag-general" v-html="breakTagName(pool.name)"></span>
|
||||
<span v-if="showPostCount" class="tag-usages tag-usages-reserve-space">{{ pool.postCount ? pool.postCount : ""
|
||||
<span v-if="showPostCount" class="tag-usages tag-usages-reserve-space">{{
|
||||
pool.postCount ? pool.postCount : ""
|
||||
}}</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -22,13 +22,7 @@ function addPoolFromCurrentInput(input: string) {
|
|||
|
||||
async function autocompletePopulator(input: string, ct: CancelToken) {
|
||||
const query = decodeURIComponent(`*${encodeTagName(input)}*`);
|
||||
const res = await props.szuru?.getPools(
|
||||
query,
|
||||
0,
|
||||
100,
|
||||
["id", "names", "category", "description", "postCount"],
|
||||
ct,
|
||||
);
|
||||
const res = await props.szuru?.getPools(query, 0, 100, ["id", "names", "category", "description", "postCount"], ct);
|
||||
|
||||
if (res) {
|
||||
// TODO: Maybe search on hamming distance or something?
|
||||
|
|
@ -40,8 +34,13 @@ async function autocompletePopulator(input: string, ct: CancelToken) {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<AutocompleteInput :autocomplete-items="autocompleteItems" @add-item="addPool"
|
||||
@add-from-current-input="addPoolFromCurrentInput" @autocomplete-populator="autocompletePopulator" v-slot="slotProps">
|
||||
<AutocompleteInput
|
||||
:autocomplete-items="autocompleteItems"
|
||||
@add-item="addPool"
|
||||
@add-from-current-input="addPoolFromCurrentInput"
|
||||
@autocomplete-populator="autocompletePopulator"
|
||||
v-slot="slotProps"
|
||||
>
|
||||
<span :class="getTagClasses(slotProps.item)">{{ slotProps.item.name }}</span>
|
||||
<span class="tag-usages">{{ slotProps.item.usages ? slotProps.item.usages : "" }}</span>
|
||||
</AutocompleteInput>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
import { ScrapedNote } from "neo-scraper";
|
||||
|
||||
class Point {
|
||||
constructor(public x: any, public y: any) {}
|
||||
constructor(
|
||||
public x: any,
|
||||
public y: any,
|
||||
) {}
|
||||
}
|
||||
|
||||
// HACK: Copied from old client
|
||||
|
|
|
|||
|
|
@ -22,13 +22,7 @@ function addTagFromCurrentInput(input: string) {
|
|||
|
||||
async function autocompletePopulator(input: string, ct: CancelToken) {
|
||||
const query = decodeURIComponent(`*${encodeTagName(input)}* sort:usages`);
|
||||
const res = await props.szuru?.getTags(
|
||||
query,
|
||||
0,
|
||||
100,
|
||||
["names", "category", "usages", "implications"],
|
||||
ct
|
||||
);
|
||||
const res = await props.szuru?.getTags(query, 0, 100, ["names", "category", "usages", "implications"], ct);
|
||||
|
||||
if (res) {
|
||||
// TODO: Maybe search on hamming distance or something?
|
||||
|
|
@ -41,8 +35,13 @@ async function autocompletePopulator(input: string, ct: CancelToken) {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<AutocompleteInput :autocomplete-items="autocompleteItems" @add-item="addTag"
|
||||
@add-from-current-input="addTagFromCurrentInput" @autocomplete-populator="autocompletePopulator" v-slot="slotProps">
|
||||
<AutocompleteInput
|
||||
:autocomplete-items="autocompleteItems"
|
||||
@add-item="addTag"
|
||||
@add-from-current-input="addTagFromCurrentInput"
|
||||
@autocomplete-populator="autocompletePopulator"
|
||||
v-slot="slotProps"
|
||||
>
|
||||
<span :class="getTagClasses(slotProps.item)">{{ slotProps.item.name }}</span>
|
||||
<span class="tag-usages">{{ slotProps.item.usages ? slotProps.item.usages : "" }}</span>
|
||||
</AutocompleteInput>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,11 @@ import { MicroTag, Pool, Tag, UpdatePostRequest } from "~/api/models";
|
|||
export class TagDetails {
|
||||
public implications: TagDetails[] = [];
|
||||
|
||||
constructor(public names: string[], public category?: string, public usages?: number) { }
|
||||
constructor(
|
||||
public names: string[],
|
||||
public category?: string,
|
||||
public usages?: number,
|
||||
) {}
|
||||
|
||||
get name() {
|
||||
return this.names[0];
|
||||
|
|
@ -30,7 +34,11 @@ export class TagDetails {
|
|||
}
|
||||
|
||||
export class PoolDetails {
|
||||
constructor(public names: string[], public category?: string, public postCount?: number) { }
|
||||
constructor(
|
||||
public names: string[],
|
||||
public category?: string,
|
||||
public postCount?: number,
|
||||
) {}
|
||||
|
||||
get name() {
|
||||
return this.names[0];
|
||||
|
|
@ -96,7 +104,10 @@ export interface SimpleSimilarPost {
|
|||
}
|
||||
|
||||
export class SimilarPostInfo {
|
||||
constructor(public readonly id: number, public readonly percentage: number) { }
|
||||
constructor(
|
||||
public readonly id: number,
|
||||
public readonly percentage: number,
|
||||
) {}
|
||||
}
|
||||
|
||||
export type PostUploadState = "uploading" | "uploaded" | "error";
|
||||
|
|
@ -132,11 +143,18 @@ export class BrowserCommand<T = any> {
|
|||
}
|
||||
|
||||
export class PostUploadCommandData {
|
||||
constructor(public readonly post: ScrapedPostDetails, public readonly selectedSite: SzuruSiteConfig) { }
|
||||
constructor(
|
||||
public readonly post: ScrapedPostDetails,
|
||||
public readonly selectedSite: SzuruSiteConfig,
|
||||
) {}
|
||||
}
|
||||
|
||||
export class SetPostUploadInfoData {
|
||||
constructor(public instanceId: string, public postId: string, public info: PostUploadInfo) { }
|
||||
constructor(
|
||||
public instanceId: string,
|
||||
public postId: string,
|
||||
public info: PostUploadInfo,
|
||||
) {}
|
||||
}
|
||||
|
||||
export class SetExactPostId {
|
||||
|
|
@ -156,7 +174,10 @@ export class PostUpdateCommandData {
|
|||
}
|
||||
|
||||
export class FetchCommandData {
|
||||
constructor(public readonly url: string, public readonly options: RequestInit | undefined = undefined) { }
|
||||
constructor(
|
||||
public readonly url: string,
|
||||
public readonly options: RequestInit | undefined = undefined,
|
||||
) {}
|
||||
}
|
||||
|
||||
export class SzuruSiteConfig {
|
||||
|
|
@ -167,7 +188,10 @@ export class SzuruSiteConfig {
|
|||
}
|
||||
|
||||
export class TagCategoryColor {
|
||||
constructor(public name: string, public color: string) { }
|
||||
constructor(
|
||||
public name: string,
|
||||
public color: string,
|
||||
) {}
|
||||
}
|
||||
|
||||
export const getDefaultTagCategories = () => [
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ watch(
|
|||
(value) => {
|
||||
el = refreshTagCategoryColorMap(value.tagCategories, el);
|
||||
},
|
||||
{ immediate: true }
|
||||
{ immediate: true },
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
|
|
@ -93,7 +93,7 @@ onMounted(() => {
|
|||
};
|
||||
},
|
||||
{ urls: ["<all_urls>"] },
|
||||
extraInfoSpec
|
||||
extraInfoSpec,
|
||||
);
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ async function mergeChanges() {
|
|||
if (
|
||||
!isEqual(
|
||||
newTags,
|
||||
existingPostRo.tags.map((x) => x.names[0])
|
||||
existingPostRo.tags.map((x) => x.names[0]),
|
||||
)
|
||||
) {
|
||||
req.tags = newTags;
|
||||
|
|
@ -165,7 +165,7 @@ watch(
|
|||
// TODO: Implement this.
|
||||
sourcesAdded.value = 0;
|
||||
sourcesRemoved.value = 0;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
watch(
|
||||
|
|
@ -176,7 +176,7 @@ watch(
|
|||
} else if (existingPostRo) {
|
||||
tagsToAdd.splice(0);
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
watch(
|
||||
|
|
@ -187,7 +187,7 @@ watch(
|
|||
} else if (existingPostRo) {
|
||||
post.value.source = existingPostRo.source;
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
watch(
|
||||
|
|
@ -198,7 +198,7 @@ watch(
|
|||
} else if (existingPostRo) {
|
||||
post.value.safety = existingPostRo.safety;
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
onMounted(async () => {
|
||||
|
|
|
|||
|
|
@ -380,13 +380,17 @@ useDark();
|
|||
<!-- TODO: Maybe a 5px gap here? -->
|
||||
|
||||
<div style="display: flex; background: purple; border-radius: 0 2px 2px 0">
|
||||
<router-link :to="{
|
||||
<router-link
|
||||
:to="{
|
||||
name: 'merge',
|
||||
params: {
|
||||
siteId: cfg.selectedSiteId,
|
||||
postId: instanceSpecificData?.reverseSearchResult?.exactPostId,
|
||||
},
|
||||
}" style="padding: 5px 20px">Merge</router-link>
|
||||
}"
|
||||
style="padding: 5px 20px"
|
||||
>Merge</router-link
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -407,10 +411,15 @@ useDark();
|
|||
-->
|
||||
|
||||
<!-- TODO: Clicking a link doesn't actually open it in a new tab, see https://stackoverflow.com/questions/8915845 -->
|
||||
<div v-if="instanceSpecificData?.uploadState?.state == 'uploaded' && instanceSpecificData?.uploadState.instancePostId
|
||||
" class="bg-success">
|
||||
<a :href="getActiveSitePostUrl(instanceSpecificData.uploadState.instancePostId)">Uploaded post {{
|
||||
instanceSpecificData.uploadState.instancePostId }}</a>
|
||||
<div
|
||||
v-if="
|
||||
instanceSpecificData?.uploadState?.state == 'uploaded' && instanceSpecificData?.uploadState.instancePostId
|
||||
"
|
||||
class="bg-success"
|
||||
>
|
||||
<a :href="getActiveSitePostUrl(instanceSpecificData.uploadState.instancePostId)"
|
||||
>Uploaded post {{ instanceSpecificData.uploadState.instancePostId }}</a
|
||||
>
|
||||
</div>
|
||||
|
||||
<div v-if="instanceSpecificData?.uploadState?.updateTagsState?.totalChanged" class="bg-success">
|
||||
|
|
@ -423,45 +432,64 @@ useDark();
|
|||
|
||||
<div v-if="instanceSpecificData?.uploadState?.state == 'uploading'"><span>Uploading...</span></div>
|
||||
|
||||
<div v-if="instanceSpecificData?.uploadState?.updateTagsState?.total &&
|
||||
<div
|
||||
v-if="
|
||||
instanceSpecificData?.uploadState?.updateTagsState?.total &&
|
||||
instanceSpecificData.uploadState?.updateTagsState?.current == undefined
|
||||
">
|
||||
"
|
||||
>
|
||||
<span>{{ instanceSpecificData.uploadState?.updateTagsState?.total }} tags need a different category</span>
|
||||
</div>
|
||||
|
||||
<div v-if="instanceSpecificData?.uploadState?.updateTagsState?.current &&
|
||||
<div
|
||||
v-if="
|
||||
instanceSpecificData?.uploadState?.updateTagsState?.current &&
|
||||
instanceSpecificData?.uploadState?.updateTagsState?.totalChanged == undefined
|
||||
">
|
||||
<span>Updating tag {{ instanceSpecificData.uploadState?.updateTagsState?.current }}/{{
|
||||
"
|
||||
>
|
||||
<span
|
||||
>Updating tag {{ instanceSpecificData.uploadState?.updateTagsState?.current }}/{{
|
||||
instanceSpecificData.uploadState?.updateTagsState?.total
|
||||
}}</span>
|
||||
}}</span
|
||||
>
|
||||
</div>
|
||||
|
||||
<div v-if="isSearchingForSimilarPosts > 0 && instanceSpecificData?.uploadState == undefined">
|
||||
<span>Searching for similar posts...</span>
|
||||
</div>
|
||||
|
||||
<div v-if="instanceSpecificData?.reverseSearchResult?.similarPosts.length == 0 &&
|
||||
<div
|
||||
v-if="
|
||||
instanceSpecificData?.reverseSearchResult?.similarPosts.length == 0 &&
|
||||
instanceSpecificData.uploadState == undefined
|
||||
">
|
||||
"
|
||||
>
|
||||
<span>No similar posts found</span>
|
||||
</div>
|
||||
|
||||
<div v-for="similarPost in getSimilarPosts(instanceSpecificData?.reverseSearchResult)" :key="similarPost.id"
|
||||
class="has-merge-button">
|
||||
<a :href="getActiveSitePostUrl(similarPost.id)">Post {{ similarPost.id }} looks {{ similarPost.percentage }}%
|
||||
similar</a>
|
||||
<div
|
||||
v-for="similarPost in getSimilarPosts(instanceSpecificData?.reverseSearchResult)"
|
||||
:key="similarPost.id"
|
||||
class="has-merge-button"
|
||||
>
|
||||
<a :href="getActiveSitePostUrl(similarPost.id)"
|
||||
>Post {{ similarPost.id }} looks {{ similarPost.percentage }}% similar</a
|
||||
>
|
||||
|
||||
<!-- TODO: Maybe a 5px gap here? -->
|
||||
|
||||
<div style="display: flex; background: purple; border-radius: 0 2px 2px 0">
|
||||
<router-link :to="{
|
||||
<router-link
|
||||
:to="{
|
||||
name: 'merge',
|
||||
params: {
|
||||
siteId: cfg.selectedSiteId,
|
||||
postId: similarPost.id,
|
||||
},
|
||||
}" style="padding: 5px 20px">Merge</router-link>
|
||||
}"
|
||||
style="padding: 5px 20px"
|
||||
>Merge</router-link
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -512,8 +540,12 @@ useDark();
|
|||
</div>
|
||||
|
||||
<div class="section-row">
|
||||
<CompactTags :tags="pop.selectedPost.tags" :show-remove-tag="true" :show-usages="cfg.loadTagCounts"
|
||||
@remove-tag="removeTag" />
|
||||
<CompactTags
|
||||
:tags="pop.selectedPost.tags"
|
||||
:show-remove-tag="true"
|
||||
:show-usages="cfg.loadTagCounts"
|
||||
@remove-tag="removeTag"
|
||||
/>
|
||||
</div>
|
||||
</PopupSection>
|
||||
|
||||
|
|
@ -523,8 +555,12 @@ useDark();
|
|||
</div>
|
||||
|
||||
<div class="section-row">
|
||||
<CompactPools :pools="pop.selectedPost.pools" :show-remove-pool="true" show-post-count
|
||||
@remove-pool="removePool" />
|
||||
<CompactPools
|
||||
:pools="pop.selectedPost.pools"
|
||||
:show-remove-pool="true"
|
||||
show-post-count
|
||||
@remove-pool="removePool"
|
||||
/>
|
||||
</div>
|
||||
</PopupSection>
|
||||
|
||||
|
|
@ -558,8 +594,11 @@ useDark();
|
|||
</div>
|
||||
|
||||
<div class="popup-section">
|
||||
<PostContentDisplay :content-url="pop.selectedPost.contentUrl" :content-type="pop.selectedPost.contentType"
|
||||
@on-resolution-loaded="onResolutionLoaded" />
|
||||
<PostContentDisplay
|
||||
:content-url="pop.selectedPost.contentUrl"
|
||||
:content-type="pop.selectedPost.contentType"
|
||||
@on-resolution-loaded="onResolutionLoaded"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@
|
|||
font-family: "Open Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local(""), url("/assets/open-sans-v34-latin-regular.woff2") format("woff2");
|
||||
src:
|
||||
local(""),
|
||||
url("/assets/open-sans-v34-latin-regular.woff2") format("woff2");
|
||||
}
|
||||
|
||||
body {
|
||||
|
|
@ -141,7 +143,8 @@ ul.compact {
|
|||
display: inline;
|
||||
}
|
||||
|
||||
.compact-tags, .compact-pools {
|
||||
.compact-tags,
|
||||
.compact-pools {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
display: inline;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { describe, expect, it } from 'vitest';
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
describe('Demo', () => {
|
||||
it('should work', () => {
|
||||
describe("Demo", () => {
|
||||
it("should work", () => {
|
||||
expect(1 + 1).toBe(2);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@
|
|||
"baseUrl": ".",
|
||||
"module": "ESNext",
|
||||
"target": "es2016",
|
||||
"lib": [
|
||||
"DOM",
|
||||
"ESNext"
|
||||
],
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"incremental": false,
|
||||
|
|
@ -16,17 +13,10 @@
|
|||
"resolveJsonModule": true,
|
||||
"noUnusedLocals": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"types": [
|
||||
"vite/client"
|
||||
],
|
||||
"types": ["vite/client"],
|
||||
"paths": {
|
||||
"~/*": [
|
||||
"src/*"
|
||||
]
|
||||
"~/*": ["src/*"]
|
||||
}
|
||||
},
|
||||
"exclude": [
|
||||
"dist",
|
||||
"node_modules"
|
||||
]
|
||||
"exclude": ["dist", "node_modules"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue