@kawapress/plugin-last-updated 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A last updated time and an edit link at the bottom of every KawaPress page.
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/@kawapress/plugin-last-updated) · [简体中文](https://github.com/kawapress/kawapress/blob/main/packages/plugin-last-updated/README
|
|
5
|
+
[](https://www.npmjs.com/package/@kawapress/plugin-last-updated) · [简体中文](https://github.com/kawapress/kawapress/blob/main/packages/plugin-last-updated/README-zh-CN.md)
|
|
6
6
|
|
|
7
7
|
`@kawapress/plugin-last-updated` is part of [KawaPress](https://github.com/kawapress/kawapress), a Vue-first static site generator.
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kawapress/plugin-last-updated",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"description": "Last updated time and edit link for every KawaPress page",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://kawapress.dev/",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
|
+
"README-zh-CN.md",
|
|
30
31
|
"src/**/!(*.test.*)"
|
|
31
32
|
],
|
|
32
33
|
"engines": {
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
"registry": "https://registry.npmjs.org/"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
|
-
"kawapress": "^0.
|
|
41
|
+
"kawapress": "^0.3.0"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|
|
43
44
|
"consola": "^3.4.2"
|
|
@@ -47,6 +48,6 @@
|
|
|
47
48
|
"typescript": "^6.0.3",
|
|
48
49
|
"vite": "^8.2.2",
|
|
49
50
|
"vue": "^3.5.41",
|
|
50
|
-
"kawapress": "0.
|
|
51
|
+
"kawapress": "0.3.0"
|
|
51
52
|
}
|
|
52
53
|
}
|
package/src/last-updated.css
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
gap: 0.5rem 1.25rem;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: space-between;
|
|
9
|
-
margin: 0;
|
|
9
|
+
margin: 4rem 0 0;
|
|
10
|
+
padding-top: 1.5rem;
|
|
11
|
+
border-top: 1px solid var(--kawa-c-divider);
|
|
10
12
|
font-family: var(--kawa-font-sans);
|
|
11
13
|
font-size: 0.875rem;
|
|
12
14
|
font-weight: 500;
|
package/src/runtime-plugin.ts
CHANGED
|
@@ -6,6 +6,6 @@ import './last-updated.css'
|
|
|
6
6
|
export default defineRuntimePlugin({
|
|
7
7
|
name: PLUGIN_NAME,
|
|
8
8
|
setup(api) {
|
|
9
|
-
api.
|
|
9
|
+
api.appendToOutlet('doc', { id: 'last-updated', component: LastUpdated })
|
|
10
10
|
},
|
|
11
11
|
})
|
|
File without changes
|