Skip to content

Commit 290d0ea

Browse files
author
robotism
committed
update
1 parent deed3f5 commit 290d0ea

File tree

10 files changed

+3396
-1385
lines changed

10 files changed

+3396
-1385
lines changed

package-lock.json

Lines changed: 3320 additions & 1373 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"type": "module",
55
"scripts": {
66
"ncu": "npm i -g npm-check-updates",
7-
"up": "ncu -u",
7+
"ncuUpdate": "ncu -u",
8+
"upgrade": "npx nuxi upgrade",
89
"postinstall": "nuxt prepare",
910
"dev": "nuxt dev",
1011
"preview": "nuxt preview",
@@ -36,7 +37,7 @@
3637
"eslint": "^9.23.0",
3738
"gsap": "^3.12.7",
3839
"moment": "^2.30.1",
39-
"nuxt": "^3.16.1",
40+
"nuxt": "^3.17.4",
4041
"nuxt-quasar-ui": "^2.1.12",
4142
"quasar": "^2.18.1",
4243
"tailwindcss": "^4.0.17",
@@ -54,4 +55,4 @@
5455
"@tailwindcss/oxide-linux-x64-gnu": "^4.0.17",
5556
"lightningcss-linux-x64-gnu": "^1.29.3"
5657
}
57-
}
58+
}

src/app.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<template>
22
<Suspense>
33
<template #default>
4-
<div class="min-h-screen min-w-screen">
4+
<div class="">
55
<NuxtRouteAnnouncer />
66
<NuxtLoadingIndicator />
7-
<NuxtLayout name="home">
7+
<NuxtLayout name="home" class="">
88
<NuxtPage />
99
</NuxtLayout>
1010
</div>

src/assets/css/app.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
}
1818

1919
/* 全局样式 */
20+
21+
* {
22+
margin: 0;
23+
padding: 0;
24+
}
25+
html {
26+
margin: 0;
27+
padding: 0;
28+
}
2029
body {
30+
overflow-y: overlay;
2131
font-family: var(--font-sans);
2232
}

src/assets/css/typography.css

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,67 @@ p {
3737
}
3838

3939
.prose {
40+
max-width: 65ch;
41+
line-height: 1.75;
42+
4043
a {
4144
color: var(--ui-secondary);
45+
text-decoration: underline;
46+
text-underline-offset: 0.2em;
4247
}
4348

4449
blockquote {
4550
border-left: 2px solid var(--ui-secondary);
51+
padding-left: 1.5rem;
52+
margin: 1.5rem 0;
53+
color: var(--ui-text);
4654
}
4755

4856
p {
57+
margin: 1.25rem 0;
58+
}
59+
60+
ul,
61+
ol {
62+
padding-left: 2rem;
63+
margin: 1.25rem 0;
64+
65+
li {
66+
margin: 0.5rem 0;
67+
&::marker {
68+
color: var(--ui-secondary);
69+
}
70+
}
71+
}
72+
73+
pre {
74+
background: var(--ui-bg);
75+
border: 1px solid var(--ui-secondary);
76+
border-radius: 0.5rem;
77+
padding: 1.5rem;
78+
margin: 1.5rem 0;
79+
overflow-x: auto;
80+
81+
code {
82+
font-family: "Roboto Mono", monospace;
83+
font-size: 0.9rem;
84+
color: var(--ui-text);
85+
}
86+
}
87+
88+
img {
89+
max-width: 100%;
90+
height: auto;
91+
margin: 1.5rem auto;
92+
border-radius: 0.5rem;
93+
}
94+
95+
@media (max-width: 768px) {
96+
font-size: 0.95rem;
97+
line-height: 1.6;
98+
99+
pre {
100+
padding: 1rem;
101+
}
49102
}
50103
}

src/components/article/ArticleItem.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<template>
2-
<q-card
3-
class="w-[96vw] max-w-[1020px] mx-[2vw] my-2 dark:bg-gray-800 overflow-hidden"
4-
>
2+
<q-card class="w-[95vw] mx-[2vw] my-2 dark:bg-gray-800 overflow-hidden">
53
<q-card-section>
64
<div class="flex flex-wrap items-center justify-between">
75
<div

src/components/article/MarkdownRender.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<ContentRenderer
3-
class="W-full H-full prose"
3+
class="w-full h-full prose"
44
:prose="true"
55
v-if="value"
66
:value="value"

src/layouts/home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<q-layout view="hhh lpr fff" class="min-h-screen min-w-screen">
2+
<q-layout view="hhh lpr fff" class="">
33
<q-header
44
class="fixed w-full top-0 bg-[var(--ui-bg)] shadow-md dark:shadow-gray-800"
55
:style="{

src/layouts/home/AppMain.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="min-w-screen">
2+
<div>
33
<BreadCrumbs />
44
<NuxtPage />
55
</div>

src/pages/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<template>
2-
<div></div>
2+
<div class="w-full h-full">home</div>
33
</template>
4+
5+
<script setup></script>

0 commit comments

Comments
 (0)