Skip to content

Commit

Permalink
build(deps): ⬇️ revert eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
wrzrmzx committed Feb 18, 2024
1 parent 6b9478b commit 73792ec
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 50 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@antfu"]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"i18n-ally.keystyle": "nested",
"i18n-ally.sourceLanguage": "zh-Hans",
"typescript.tsdk": "./node_modules/typescript/lib",

/* https://github.com/antfu/eslint-config */
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,
Expand Down
10 changes: 6 additions & 4 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ useHead({
// TODO: Hack to change cache config
// https://github.com/nuxt-modules/apollo/issues/443
const { clients } = useApollo()
clients.default.cache = cache
clients.default.localState.cache = cache
clients.default.queryManager.cache = cache
clients.default.resetStore()
clients!.default.cache = cache
// Property 'localState' is private and only accessible within class 'ApolloClient<TCacheShape>'
// clients!.default.localState.cache = cache
// Property 'queryManager' is private and only accessible within class 'ApolloClient<TCacheShape>'.
// clients!.default.queryManager.cache = cache
clients!.default.resetStore()
</script>

<template>
Expand Down
3 changes: 0 additions & 3 deletions eslint.config.js

This file was deleted.

78 changes: 39 additions & 39 deletions locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ playlist:
collapse: Collapse
expand: Expand
info:
video-count: "{count} videos"
rating: "Rate: {rating}"
video-count: '{count} videos'
rating: 'Rate: {rating}'
edit-date: Last edited on {date}
playlist-list:
title: Playlist
Expand All @@ -77,19 +77,19 @@ playlist:
searching: Searching...
failed:
load-failed: Failure
load-failed-reason: "Reason:"
load-failed-reason: 'Reason:'
successful:
load-result-count: "{count} playlists found"
load-result-count: '{count} playlists found'
playlist:
playlist-count: "{count} videos"
playlist-count: '{count} videos'
advanced-search:
name: Advanced search
leaderboard:
title: Leaderboard
loading: Loading......
failed:
load-failed: Failure
load-failed-reason: "Reason:"
load-failed-reason: 'Reason:'
tag-contributions:
name: Tag contributions
edit-time: Total {count} edits
Expand All @@ -100,8 +100,8 @@ leaderboard:
last-day: Last day
search:
search-result:
title: "Result - "
search-keywords: "Result - "
title: 'Result - '
search-keywords: 'Result - '
order:
last-modified: Last modified
video-oldest: Oldest
Expand All @@ -112,13 +112,13 @@ search:
searching: Searching......
failed:
search-failed: Search failed
search-failed-reason: "Reason:"
search-failed-reason: 'Reason:'
successful:
search-no-result: No match found
search-result-count: Total {count} video(s)
video:
hidden: Hidden
source-site: "Source:"
source-site: 'Source:'
visible-sites:
all: All
home: Domestic site
Expand All @@ -130,12 +130,12 @@ search:
searching: Searching...
failed:
search-failed: Search failed
search-failed-reason: "Reason:"
search-failed-reason: 'Reason:'
successful:
search-no-result: No result
search-result-count: "{count} video(s) found"
search-result-count: '{count} video(s) found'
playlist:
playlist-count: "{count} playlist(s) found"
playlist-count: '{count} playlist(s) found'
search-page:
title: Search
search: Search
Expand All @@ -161,13 +161,13 @@ user:
username:
placeholder: Username or email
username-status:
fine: " "
fine: ' '
tip: Username or email is required
msg: Length must be between 2 to 32
password:
placeholder: Password
password-status:
fine: " "
fine: ' '
tip: Password
msg: Length must be between 6 to 64
login-status:
Expand All @@ -182,27 +182,27 @@ user:
username:
placeholder: Username
username-status:
fine: " "
fine: ' '
tip: Username is required
msg: Length must be between 2 to 32
res: Username taken
err: Unknown error
password:
placeholder: Password
password-status:
fine: " "
fine: ' '
tip: Password is required
msg: Length must be between 6 to 64
password2:
placeholder: Repeat password
password2-status:
fine: " "
fine: ' '
tip: Repeat password!
msg: Passwords mismatch
email:
placeholder: Email
email-status:
fine: " "
fine: ' '
tip: Email is required
msg: Not a valid email
res: Email already in use
Expand All @@ -217,7 +217,7 @@ user:
email:
placeholder: Please enter the e-mail bound to your account
email-status:
fine: " "
fine: ' '
tip: Please enter your e-mail address
msg: Please enter the e-mail address with the right form
send-status:
Expand All @@ -232,13 +232,13 @@ user:
password:
placeholder: Set your new password
password-status:
fine: " "
fine: ' '
tip: The length of your new password should between 4 to 64 characters
msg: Please enter your new password
password2:
placeholder: Please repeat your new password
password2-status:
fine: " "
fine: ' '
tip: Please enter your new password again
msg: The password entered was not identical
reset-status:
Expand All @@ -250,7 +250,7 @@ user:
from:
sign-up: Sign up
reset-password: Reset your password
log: "{fromWord} succeed, {count} seconds to home page"
log: '{fromWord} succeed, {count} seconds to home page'
jump: Home page
user-page:
title: User page
Expand Down Expand Up @@ -313,15 +313,15 @@ user-notification:
mark-all-as-read: Mark all as read
loading: Now loading
no-message: No reply avaliable
reply: "{username} replied to you: "
reply: '{username} replied to you: '
notification-navtop:
title: Messages and notifications
loading: Now loading
error: "Loading failed. Reason: {error}"
error: 'Loading failed. Reason: {error}'
no-message: No new message
show-all: Show all replies
reply: "{username} replied to you"
system: "System notification: {title}"
reply: '{username} replied to you'
system: 'System notification: {title}'
video:
video:
repost-type:
Expand All @@ -339,7 +339,7 @@ video:
title: Hide the video
saving: Saving
succeed: Successfully saved
failed: "Saving failed. Reason: {error}"
failed: 'Saving failed. Reason: {error}'
edit-video: Edit video
edit-tags: Edit tags
related-video: Videos related
Expand Down Expand Up @@ -380,7 +380,7 @@ video:
failed: Failed to read video source
video:
info-fetching: Obtaining video information
URL: "The URL of the video: {url}"
URL: 'The URL of the video: {url}'
address-parsing: Resolving original video address
profile:
known-source: source:{source},format:{format},quality:{quality}
Expand All @@ -391,10 +391,10 @@ video:
profile: Profile
title: Title
ranks:
"0": Only visible to administrators
"1": Visible to login users
"2": Visible to uploader and administrators
"3": Visible to all
'0': Only visible to administrators
'1': Visible to login users
'2': Visible to uploader and administrators
'3': Visible to all
rank: Video visibility
edit:
saving: Saving - Edit video - {videoname}
Expand All @@ -407,19 +407,19 @@ video:
searching: Searching...
failed:
search-failed: Failure
search-failed-reason: "Reason:"
search-failed-reason: 'Reason:'
successful:
search-no-result: No playlist found
search-result-count: "{count} videos found"
tips: "*Videos with sensitive tags are hidden"
search-result-count: '{count} videos found'
tips: '*Videos with sensitive tags are hidden'
video:
hidden: Hidden
source-site: "Source site:"
source-site: 'Source site:'
advanced-search:
name: Advanced search
others:
WIP1: The function
WIP2: "{WIP1} is under construction, please wait warmly"
WIP2: '{WIP1} is under construction, please wait warmly'
image:
cover:
alt: The cover of {title}
Expand All @@ -440,7 +440,7 @@ settings:
desc: >-
If you wish to help translate pages of PatchyVideo, you are welcomed to
join us!
browser-default: "Preferred browsers: {preferred}"
browser-default: 'Preferred browsers: {preferred}'
name: General
appearance:
theme:
Expand Down
6 changes: 3 additions & 3 deletions nuxt-i18n.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
legacy: false,
fallbackLocale: 'CHS',
}
legacy: false,
fallbackLocale: 'CHS',
}

0 comments on commit 73792ec

Please sign in to comment.