picocrank 1.6.1 → 1.6.3
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/.github/workflows/pages.yml +53 -0
- package/index.html +0 -2
- package/package.json +3 -1
- package/vite.config.js +18 -0
- package/vue/components/Section.vue +9 -8
- package/vue/views/App.vue +3 -1
- package/vue/views/Welcome.vue +12 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
name: Deploy to GitHub Pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
pages: write
|
|
11
|
+
id-token: write
|
|
12
|
+
|
|
13
|
+
concurrency:
|
|
14
|
+
group: "pages"
|
|
15
|
+
cancel-in-progress: false
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
build:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- name: Checkout
|
|
22
|
+
uses: actions/checkout@v4
|
|
23
|
+
|
|
24
|
+
- name: Setup Node.js
|
|
25
|
+
uses: actions/setup-node@v4
|
|
26
|
+
with:
|
|
27
|
+
node-version: "lts/*"
|
|
28
|
+
cache: 'npm'
|
|
29
|
+
|
|
30
|
+
- name: Install dependencies
|
|
31
|
+
run: npm ci
|
|
32
|
+
|
|
33
|
+
- name: Build
|
|
34
|
+
run: npm run build
|
|
35
|
+
|
|
36
|
+
- name: Setup Pages
|
|
37
|
+
uses: actions/configure-pages@v4
|
|
38
|
+
|
|
39
|
+
- name: Upload artifact
|
|
40
|
+
uses: actions/upload-pages-artifact@v3
|
|
41
|
+
with:
|
|
42
|
+
path: './dist'
|
|
43
|
+
|
|
44
|
+
deploy:
|
|
45
|
+
environment:
|
|
46
|
+
name: github-pages
|
|
47
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
needs: build
|
|
50
|
+
steps:
|
|
51
|
+
- name: Deploy to GitHub Pages
|
|
52
|
+
id: deployment
|
|
53
|
+
uses: actions/deploy-pages@v4
|
package/index.html
CHANGED
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
<meta name = "viewport" content = "width=device-width, initial-scale=1.0, user-scalable=no" />
|
|
8
8
|
|
|
9
|
-
<link rel = "stylesheet" href = "node_modules/femtocrank/style.css" />
|
|
10
|
-
<link rel = "stylesheet" href = "node_modules/femtocrank/dark.css" media = "(prefers-color-scheme: dark)" />
|
|
11
9
|
</head>
|
|
12
10
|
|
|
13
11
|
<body>
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "picocrank",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "A set of zero dependency Vue components built on the Femtocrank global CSS theme.",
|
|
5
5
|
"main": "vite.config.js",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"build": "vite build",
|
|
8
|
+
"preview": "vite preview",
|
|
7
9
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
10
|
},
|
|
9
11
|
"repository": {
|
package/vite.config.js
CHANGED
|
@@ -3,6 +3,24 @@ import vue from '@vitejs/plugin-vue'
|
|
|
3
3
|
import Components from 'unplugin-vue-components/vite'
|
|
4
4
|
|
|
5
5
|
export default defineConfig({
|
|
6
|
+
base: '/picocrank/',
|
|
7
|
+
build: {
|
|
8
|
+
outDir: 'dist',
|
|
9
|
+
rollupOptions: {
|
|
10
|
+
external: [],
|
|
11
|
+
output: {
|
|
12
|
+
assetFileNames: (assetInfo) => {
|
|
13
|
+
if (assetInfo.name === 'style.css') {
|
|
14
|
+
return 'assets/femtocrank-[hash].css'
|
|
15
|
+
}
|
|
16
|
+
if (assetInfo.name === 'dark.css') {
|
|
17
|
+
return 'assets/femtocrank-dark-[hash].css'
|
|
18
|
+
}
|
|
19
|
+
return 'assets/[name]-[hash].[ext]'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
6
24
|
server: {
|
|
7
25
|
proxy: {
|
|
8
26
|
'/api': {
|
|
@@ -41,29 +41,30 @@ const props = defineProps({
|
|
|
41
41
|
</script>
|
|
42
42
|
|
|
43
43
|
<style scoped>
|
|
44
|
-
:slotted(button)
|
|
45
|
-
:slotted(.button)
|
|
44
|
+
:slotted(.section-header button).neutral,
|
|
45
|
+
:slotted(.section-header .button).neutral
|
|
46
46
|
{
|
|
47
47
|
background-color: white;
|
|
48
|
+
color: #000;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
:slotted(button:hover)
|
|
51
|
-
:slotted(.button:hover)
|
|
51
|
+
:slotted(.section-header .button:hover).neutral,
|
|
52
|
+
:slotted(.section-header .button:hover).neutral
|
|
52
53
|
{
|
|
53
54
|
background-color: #f0f0f0;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
@media (prefers-color-scheme: dark) {
|
|
57
|
-
:slotted(button)
|
|
58
|
-
:slotted(.button)
|
|
58
|
+
:slotted(.section-header button).neutral,
|
|
59
|
+
:slotted(.section-header .button).neutral
|
|
59
60
|
{
|
|
60
61
|
background-color: #111;
|
|
61
62
|
border: 1px solid #222;
|
|
62
63
|
color: #fff;
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
:slotted(button:hover)
|
|
66
|
-
:slotted(.button:hover)
|
|
66
|
+
:slotted(.section-header button:hover).neutral,
|
|
67
|
+
:slotted(.section-header .button:hover).neutral
|
|
67
68
|
{
|
|
68
69
|
background-color: #222;
|
|
69
70
|
border: 1px solid #333;
|
package/vue/views/App.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Header username = "Guest" @toggleSidebar="toggleSidebar" title = "PicoCrank" >
|
|
2
|
+
<Header username = "Guest" @toggleSidebar="toggleSidebar" title = "PicoCrank" :logoUrl="logoUrl" >
|
|
3
3
|
<template #toolbar>
|
|
4
4
|
<QuickSearch
|
|
5
5
|
ref="quickSearchRef"
|
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
import { Pin02Icon } from '@hugeicons/core-free-icons'
|
|
32
32
|
|
|
33
33
|
import QuickSearch from './../components/QuickSearch.vue'
|
|
34
|
+
import '../../src/styles.css'
|
|
35
|
+
import logoUrl from '/logo.png';
|
|
34
36
|
|
|
35
37
|
const quickSearchRef = ref(null)
|
|
36
38
|
const router = useRouter();
|
package/vue/views/Welcome.vue
CHANGED
|
@@ -18,6 +18,18 @@
|
|
|
18
18
|
<button class = "good">Add</button>
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
|
+
<div>
|
|
22
|
+
<button class = "neutral">
|
|
23
|
+
Neutral
|
|
24
|
+
</button>
|
|
25
|
+
<button class = "good">
|
|
26
|
+
Good
|
|
27
|
+
</button>
|
|
28
|
+
<button class = "bad">
|
|
29
|
+
Bad
|
|
30
|
+
</button>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
21
33
|
<p>
|
|
22
34
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
23
35
|
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|