Skip to content

Commit

Permalink
chore(deps): upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
sonofmagic committed Aug 18, 2024
1 parent c83aea8 commit 4302a08
Show file tree
Hide file tree
Showing 6 changed files with 176 additions and 179 deletions.
39 changes: 20 additions & 19 deletions blog-archived/client/components/comment/Area.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
<template>
<div>
<giscus-widget
repo="sonofmagic/icebreaker.top"
repoid="MDEwOlJlcG9zaXRvcnkzMjkxNjA0MzM="
category="Announcements"
categoryid="MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMzMDMyNzIx"
mapping="pathname"
strict="0"
reactionsenabled="1"
emitmetadata="0"
inputposition="bottom"
:theme="theme"
lang="zh-CN"
crossorigin="anonymous"
loading="lazy"></giscus-widget>
</div>
</template>

<script>
export default {
computed: {
Expand All @@ -42,4 +23,24 @@ export default {
// })
</script>

<template>
<div>
<giscus-widget
repo="sonofmagic/icebreaker.top"
repoid="MDEwOlJlcG9zaXRvcnkzMjkxNjA0MzM="
category="Announcements"
categoryid="MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMzMDMyNzIx"
mapping="pathname"
strict="0"
reactionsenabled="1"
emitmetadata="0"
inputposition="bottom"
:theme="theme"
lang="zh-CN"
crossorigin="anonymous"
loading="lazy"
/>
</div>
</template>

<style lang="scss" scoped></style>
5 changes: 3 additions & 2 deletions blog-archived/client/plugins/client-only.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

import svg4everybody from 'svg4everybody'
import mobile from 'is-mobile'
import 'giscus'
// import 'giscus'
// import Aegis from 'aegis-web-sdk'
import { LocalStorageKey } from '@/enum/user'

svg4everybody()

export default (ctx, inject) => {
export default (ctx) => {
// 这里可以获得客户端的store,进行动态注册module
// console.log(ctx)
// Injec t $hello(msg) in Vue, context and store.
Expand Down
60 changes: 29 additions & 31 deletions blog-archived/nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// 直接搭blog可以使用 link https://content.nuxtjs.org/themes/docs
// import theme from '@nuxt/content-theme-docs'
// fibers
import fs from 'fs'
import path from 'path'
import fs from 'node:fs'
// import path from 'node:path'
import process from 'node:process'
import dotenv from 'dotenv'
// import SpeedMeasurePlugin from 'speed-measure-webpack-plugin'
import { sitemap } from './nuxt.config/index'
Expand All @@ -19,8 +20,8 @@ const env = {
BASE_URL,
}

const script =
isProd && isRelease
const script
= isProd && isRelease
? [
{
hid: 'hm',
Expand Down Expand Up @@ -85,7 +86,7 @@ const config = {
},
{
'http-equiv': 'X-UA-Compatible',
content: 'IE=edge, chrome=1',
'content': 'IE=edge, chrome=1',
},
{
hid: 'description',
Expand Down Expand Up @@ -118,22 +119,22 @@ const config = {
},
router: {
// middleware: ['theme'],
extendRoutes(routes, resolve) {
fs.writeFileSync(
path.resolve(__dirname, '../../../apps/blog-new/routes-v1.json'),
JSON.stringify(
routes.map((x) => {
return {
name: x.name,
path: x.path,
}
}),
null,
2
),
'utf8'
)
},
// extendRoutes(routes) {
// fs.writeFileSync(
// path.resolve(__dirname, '../../../apps/blog-new/routes-v1.json'),
// JSON.stringify(
// routes.map((x) => {
// return {
// name: x.name,
// path: x.path,
// }
// }),
// null,
// 2,
// ),
// 'utf8',
// )
// },
},
loading: {
color: 'rgb(121, 184, 255)',
Expand Down Expand Up @@ -265,7 +266,7 @@ const config = {
feed.options = {
title: 'icebreaker',
description: '一位打字员',
link: websiteUrl + '/',
link: `${websiteUrl}/`,
language: 'zh-cn',
copyright: `Copyright ${new Date().getFullYear()} icebreaker.The contents of this feed are available for non-commercial use only.`,
generator: 'icebreaker.top',
Expand Down Expand Up @@ -293,10 +294,10 @@ const config = {
// const { name, domain } = category;
category: Array.isArray(article.tags)
? article.tags.map((x) => {
return {
name: x,
}
})
return {
name: x,
}
})
: [],
})
})
Expand Down Expand Up @@ -348,10 +349,7 @@ const config = {
publicPath:
isRelease && isProd
? '/_ice/' /// prodPublicPath
: // isPublicPathExist
// ? require('./publicPath.js').default
// : prodPublicPath
'/_nuxt/',
: '/_nuxt/',
// quiet: true,
extractCSS: isProd,
// optimizeCSS: isProd,
Expand Down Expand Up @@ -405,7 +403,7 @@ const config = {
// cacheGroups: {},
// },
// },
extend(config, { isClient, isDev }) {
extend(config, { isClient }) {
config.externals = {
'hls.js': 'hls.js',
}
Expand Down
6 changes: 3 additions & 3 deletions blog-archived/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@som/blog",
"version": "1.3.1",
"packageManager": "[email protected]",
"description": "DEBUG=nuxt:* nuxt dev 会打开 tailwindcss debug 模式,大量的 Source path 和JIT TOTAL,简直了",
"license": "MIT",
"scripts": {
Expand Down Expand Up @@ -34,7 +35,7 @@
"@nuxtjs/feed": "^2.0.0",
"@nuxtjs/proxy": "^2.1.0",
"@nuxtjs/sitemap": "^2.4.0",
"@nuxtjs/tailwindcss": "^5.3.3",
"@nuxtjs/tailwindcss": "^6.12.1",
"@popperjs/core": "^2.11.8",
"@tailwindcss/typography": "^0.5.10",
"@types/qrcode": "^1.5.5",
Expand Down Expand Up @@ -115,6 +116,5 @@
"vue": "^2.7",
"vue-server-renderer": "^2.7",
"vue-template-compiler": "^2.7"
},
"packageManager": "[email protected]"
}
}
56 changes: 28 additions & 28 deletions blog-archived/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,21 @@ module.exports = {
return {
DEFAULT: {
css: {
a: {
'a': {
color: theme('colors.primary.500'),
textDecoration: 'underline',
},
h2: {
'h2': {
paddingBottom: theme('padding.2'),
borderBottomWidth: '1px',
borderBottomColor: theme('colors.gray.200'),
},
h3: {
'h3': {
paddingBottom: theme('padding.2'),
borderBottomWidth: '1px',
borderBottomColor: theme('colors.gray.200'),
},
blockquote: {
'blockquote': {
fontWeight: '400',
color: theme('colors.gray.600'),
fontStyle: 'normal',
Expand All @@ -93,7 +93,7 @@ module.exports = {
'blockquote p:last-of-type::after': {
content: '',
},
code: {
'code': {
fontWeight: '400',
backgroundColor: theme('colors.gray.100'),
padding: theme('padding.1'),
Expand Down Expand Up @@ -129,66 +129,66 @@ module.exports = {

invert: {
css: {
color: fontDefaultColor,
a: {
color: 'rgb(var(--color-accent-fg))',
'color': fontDefaultColor,
'a': {
'color': 'rgb(var(--color-accent-fg))',
'text-decoration': 'none',
'&:hover': {
'text-decoration': 'underline',
},
},
blockquote: {
padding: '0 1em',
color: 'rgb(var(--color-fg-muted))',
'blockquote': {
'padding': '0 1em',
'color': 'rgb(var(--color-fg-muted))',
'border-left': '.25em solid rgb(var(--color-border-default))',
},
h1: {
color: fontDefaultColor,
borderBottom: headerBottonBorder,
'h1': {
'color': fontDefaultColor,
'borderBottom': headerBottonBorder,
'font-size': '2em',
'padding-bottom': '0.3em',
},
h2: {
'h2': {
color: fontDefaultColor,
borderBottom: headerBottonBorder,
// borderBottomColor: theme('colors.gray.800'),
},
h3: {
'h3': {
color: fontDefaultColor,
borderBottom: headerBottonBorder,
},
h4: {
'h4': {
color: fontDefaultColor,
},
strong: {
'strong': {
color: fontDefaultColor,
},
// 'figure figcaption': {
// color: theme('colors.gray.400'),
// },
code: {
color: 'rgb(var(--color-fg-default))',
backgroundColor: 'rgb(var(--color-neutral-muted) / 0.2)',
borderWidth: 0,
padding: '.2em .4em',
margin: 0,
fontSize: '85%',
'code': {
'color': 'rgb(var(--color-fg-default))',
'backgroundColor': 'rgb(var(--color-neutral-muted) / 0.2)',
'borderWidth': 0,
'padding': '.2em .4em',
'margin': 0,
'fontSize': '85%',
'border-radius': '6px',
'border-width': '0px',
'border-color': 'transparent',
},
'a code': {
color: 'rgb(var(--color-accent-fg))',
'color': 'rgb(var(--color-accent-fg))',
'text-decoration': 'none',
'&:hover': {
'text-decoration': 'underline',
},
},
'pre > code': {
'background-color': 'transparent',
padding: 0,
'padding': 0,
'border-radius': '0px',
color: 'inherit',
'color': 'inherit',
},
},
},
Expand Down
Loading

0 comments on commit 4302a08

Please sign in to comment.