Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump version (3.3.0) #88

Merged
merged 7 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
VITE_ADSENSE_PUB_ID =
VITE_GOOGLE_ANALYTICS_ID =
VITE_GOOGLE_SEARCH_CONSOLE_VERIFICATION =
VITE_PXIMG_BASEURL_I = /-/
VITE_PXIMG_BASEURL_S = /~/
19 changes: 19 additions & 0 deletions .vscode/vue.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"Init vue components": {
"scope": "vue",
"prefix": "vue",
"body": [
"<template lang=\"pug\">",
"$0",
"</template>",
"",
"<script setup lang=\"ts\">",
"import {} from 'vue'",
"",
"</script>",
"",
"<style scoped lang=\"sass\"></style>"
],
"description": "Init vue components"
}
}
9 changes: 7 additions & 2 deletions api/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,14 @@ ajax.interceptors.response.use((ctx) => {
})

export function replaceUrlInString(str: string): string {
const { VITE_PXIMG_BASEURL_I: i, VITE_PXIMG_BASEURL_S: s } = process.env
if (i) {
str = str.replace(/https:\/\/i\.pximg\.net\//g, i.replace(/\/$/, '') + '/')
}
if (s) {
str = str.replace(/https:\/\/s\.pximg\.net\//g, s.replace(/\/$/, '') + '/')
}
return str
.replace(/https:\/\/i\.pximg\.net\//g, '/-/')
.replace(/https:\/\/s\.pximg\.net\//g, '/~/')
}

export function replaceUrlInObject(
Expand Down
6 changes: 5 additions & 1 deletion auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ declare global {
const h: typeof import('vue')['h']
const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
const inject: typeof import('vue')['inject']
const injectLocal: typeof import('@vueuse/core')['injectLocal']
const isDefined: typeof import('@vueuse/core')['isDefined']
const isProxy: typeof import('vue')['isProxy']
const isReactive: typeof import('vue')['isReactive']
Expand Down Expand Up @@ -67,6 +68,7 @@ declare global {
const onUpdated: typeof import('vue')['onUpdated']
const pausableWatch: typeof import('@vueuse/core')['pausableWatch']
const provide: typeof import('vue')['provide']
const provideLocal: typeof import('@vueuse/core')['provideLocal']
const reactify: typeof import('@vueuse/core')['reactify']
const reactifyObject: typeof import('@vueuse/core')['reactifyObject']
const reactive: typeof import('vue')['reactive']
Expand Down Expand Up @@ -130,6 +132,7 @@ declare global {
const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation']
const useCached: typeof import('@vueuse/core')['useCached']
const useClipboard: typeof import('@vueuse/core')['useClipboard']
const useClipboardItems: typeof import('@vueuse/core')['useClipboardItems']
const useCloned: typeof import('@vueuse/core')['useCloned']
const useColorMode: typeof import('@vueuse/core')['useColorMode']
const useConfirmDialog: typeof import('@vueuse/core')['useConfirmDialog']
Expand Down Expand Up @@ -286,5 +289,6 @@ declare global {
// for type re-export
declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
import('vue')
}
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=%VITE_ADSENSE_PUB_ID%"
crossorigin="anonymous"
></script>
<!-- jQuery -->
<!-- <script src="https://unpkg.com/[email protected]/dist/jquery.js"></script> -->
</head>
<body>
<noscript>
Expand Down
39 changes: 21 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pixiv-now",
"version": "3.2.0",
"version": "3.3.0",
"private": true,
"main": "index.js",
"type": "module",
Expand All @@ -18,45 +18,48 @@
"changelog": "conventional-changelog -p jquery -i CHANGELOG.md -s -r 0"
},
"dependencies": {
"axios": "^1.6.2",
"axios": "^1.6.7",
"date-fns": "^2.30.0",
"date-fns-tz": "^2.0.0",
"fflate": "^0.8.2",
"gif.js": "^0.2.0",
"js-cookie": "^3.0.5",
"naive-ui": "^2.35.0",
"naive-ui": "^2.38.1",
"nprogress": "^0.2.0",
"pinia": "^2.1.7",
"vue": "^3.3.10",
"vue": "^3.4.21",
"vue-flex-waterfall": "^2.3.0",
"vue-gtag": "^2.0.1",
"vue-i18n": "^9.8.0",
"vue-router": "^4.2.5"
"vue-i18n": "^9.9.1",
"vue-router": "^4.3.0"
},
"devDependencies": {
"@dragon-fish/sensitive-words-filter": "^2.0.1",
"@iconify-json/fa-solid": "^1.1.7",
"@iconify-json/fa-solid": "^1.1.8",
"@prettier/plugin-pug": "^3.0.0",
"@types/cookie": "^0.6.0",
"@types/gif.js": "^0.2.5",
"@types/js-cookie": "^3.0.6",
"@types/lodash.escaperegexp": "^4.1.9",
"@types/node": "^20.10.3",
"@types/node": "^20.11.22",
"@types/nprogress": "^0.2.3",
"@vercel/node": "^3.0.11",
"@vitejs/plugin-vue": "^4.5.1",
"@vue/language-plugin-pug": "^1.8.25",
"@vueuse/core": "^10.7.0",
"@vercel/node": "^3.0.20",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/language-plugin-pug": "^1.8.27",
"@vueuse/core": "^10.9.0",
"cheerio": "1.0.0-rc.12",
"conventional-changelog-cli": "^4.1.0",
"cookie": "^0.6.0",
"lodash.escaperegexp": "^4.1.2",
"picocolors": "^1.0.0",
"prettier": "^3.1.0",
"prettier": "^3.2.5",
"pug": "^3.0.2",
"sass": "^1.69.5",
"sass": "^1.71.1",
"tslib": "^2.6.2",
"typescript": "^5.3.2",
"unplugin-auto-import": "^0.17.2",
"unplugin-icons": "^0.18.1",
"typescript": "^5.3.3",
"unplugin-auto-import": "^0.17.5",
"unplugin-icons": "^0.18.5",
"vercel": "^32.6.1",
"vite": "^5.0.5"
"vite": "^5.1.4"
}
}
Loading
Loading