Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
41fba30e
Unverified
Commit
41fba30e
authored
Oct 22, 2023
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: use pnpm for build + add not implemented to buttons
parent
2a3e1400
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
114 deletions
+52
-114
build.yml
.github/workflows/build.yml
+11
-6
PageActionsCol.vue
ux/src/components/PageActionsCol.vue
+8
-0
PageHeader.vue
ux/src/components/PageHeader.vue
+9
-0
WelcomeOverlay.vue
ux/src/components/WelcomeOverlay.vue
+1
-1
MainLayout.vue
ux/src/layouts/MainLayout.vue
+13
-0
AdminDashboard.vue
ux/src/pages/AdminDashboard.vue
+10
-107
No files found.
.github/workflows/build.yml
View file @
41fba30e
...
...
@@ -20,6 +20,11 @@ jobs:
with
:
node-version
:
20.x
-
name
:
Enable pnpm
run
:
|
corepack enable
corepack prepare pnpm@latest --activate
-
name
:
Set Build Variables
run
:
|
echo "REL_VERSION=3.0.0-alpha.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
...
...
@@ -41,14 +46,14 @@ jobs:
-
name
:
Build Assets
working-directory
:
ux
run
:
|
npm ci --audit=false --fund=fals
e
npm run
build
pnpm install --frozen-lockfil
e
pnpm
build
-
name
:
Build Blocks
working-directory
:
blocks
run
:
|
npm ci --audit=false --fund=fals
e
npm run
build
pnpm install --frozen-lockfil
e
pnpm
build
-
name
:
Login to GitHub Container Registry
uses
:
docker/login-action@v2
...
...
@@ -85,7 +90,7 @@ jobs:
cp LICENSE _dist/LICENSE
cp config.sample.yml _dist/config.sample.yml
cd _dist/server
npm ci --omit=dev --audit=false --fund=fals
e
pnpm install --prod --frozen-lockfil
e
cd -
find ./_dist/ -printf "%P\n" | tar -czf wiki-js.tar.gz --no-recursion -C ./_dist/ -T -
...
...
@@ -118,7 +123,7 @@ jobs:
tar -xzf $env:GITHUB_WORKSPACE\build\wiki-js.tar.gz -C $env:GITHUB_WORKSPACE\win --exclude=server/node_modules
-
name
:
Install Dependencies
run
:
npm ci --omit=dev --audit=false --fund=fals
e
run
:
pnpm install --prod --frozen-lockfil
e
working-directory
:
win\server
-
name
:
Create Bundle
...
...
ux/src/components/PageActionsCol.vue
View file @
41fba30e
...
...
@@ -69,6 +69,7 @@
icon='las la-history'
:color='editorStore.isActive ? `white` : `grey`'
aria-label='Page History'
@click='notImplemented'
)
q-tooltip(anchor='center left' self='center right') Page History
q-btn.q-py-md(
...
...
@@ -264,6 +265,13 @@ function removePendingAsset (item) {
menuPendingAssets
.
value
.
hide
()
}
}
function
notImplemented
()
{
$q
.
notify
({
type
:
'negative'
,
message
:
'Not implemented'
})
}
</
script
>
<
style
lang=
"scss"
>
...
...
ux/src/components/PageHeader.vue
View file @
41fba30e
...
...
@@ -81,6 +81,7 @@
icon='las la-bell'
color='grey'
aria-label='Watch Page'
@click='notImplemented'
)
q-tooltip Watch Page
q-btn.q-ml-md(
...
...
@@ -90,6 +91,7 @@
icon='las la-bookmark'
color='grey'
aria-label='Bookmark Page'
@click='notImplemented'
)
q-tooltip Bookmark Page
q-btn.q-ml-md(
...
...
@@ -397,4 +399,11 @@ async function editPage () {
function
printPage
()
{
window
.
print
()
}
function
notImplemented
()
{
$q
.
notify
({
type
:
'negative'
,
message
:
'Not implemented'
})
}
</
script
>
ux/src/components/WelcomeOverlay.vue
View file @
41fba30e
...
...
@@ -114,7 +114,7 @@ function loadAdmin () {
background
:
#FFF
radial-gradient
(
ellipse
,
#FFF
,
#DDD
);
color
:
$grey-9
;
height
:
100vh
;
border
:
1
0
px
solid
#EEE
;
border
:
1px
solid
#EEE
;
border-radius
:
25px
!
important
;
&
-bg
{
...
...
ux/src/layouts/MainLayout.vue
View file @
41fba30e
...
...
@@ -22,6 +22,7 @@ q-layout(view='hHh Lpr lff')
icon='las la-sitemap'
color='white'
aria-label='Browse'
@click='notImplemented'
)
q-tooltip(anchor='center right' self='center left') Browse
q-separator.q-my-sm(inset, dark)
...
...
@@ -30,6 +31,7 @@ q-layout(view='hHh Lpr lff')
icon='las la-bookmark'
color='white'
aria-label='Bookmarks'
@click='notImplemented'
)
q-tooltip(anchor='center right' self='center left') Bookmarks
q-space
...
...
@@ -73,6 +75,7 @@ q-layout(view='hHh Lpr lff')
label='Browse'
aria-label='Browse'
size='sm'
@click='notImplemented'
)
nav-sidebar
q-bar.sidebar-footerbtns.text-white(
...
...
@@ -99,6 +102,7 @@ q-layout(view='hHh Lpr lff')
icon='las la-bookmark'
label='Bookmarks'
flat
@click='notImplemented'
)
q-page-container
router-view
...
...
@@ -182,6 +186,15 @@ const isSidebarMini = computed(() => {
return
[
'hide'
,
'hideExact'
].
includes
(
pageStore
.
navigationMode
)
||
!
pageStore
.
navigationId
})
// METHODS
function
notImplemented
()
{
$q
.
notify
({
type
:
'negative'
,
message
:
'Not implemented'
})
}
</
script
>
<
style
lang=
"scss"
>
...
...
ux/src/pages/AdminDashboard.vue
View file @
41fba30e
...
...
@@ -6,7 +6,7 @@ q-page.admin-dashboard
.col.q-pl-md
.text-h5.text-primary.animated.fadeInLeft
{{
t
(
'admin.dashboard.title'
)
}}
.text-subtitle1.text-grey.animated.fadeInLeft.wait-p2s
{{
t
(
'admin.dashboard.subtitle'
)
}}
.row.q-px-md.q-col-gutter-
md
.row.q-px-md.q-col-gutter-
sm
.col-12.col-sm-6.col-lg-3
q-card
q-card-section.admin-dashboard-card
...
...
@@ -108,7 +108,7 @@ q-page.admin-dashboard
img(src='/_assets/icons/fluent-female-working-with-a-laptop.svg')
div
strong Logins
small
{{
adminStore
.
info
.
loginsPastDay
}}
#[i /
l
ast 24h]
small
{{
adminStore
.
info
.
loginsPastDay
}}
#[i /
p
ast 24h]
q-separator
q-card-actions(align='right')
q-btn(
...
...
@@ -144,111 +144,6 @@ q-page.admin-dashboard
:label='t(`admin.system.title`)'
to='/_admin/system'
)
//- v-container(fluid, grid-list-lg)
//- v-layout(row, wrap)
//- v-flex(xs12)
//- .admin-header
//- img.animated.fadeInUp(src='/_assets/svg/icon-browse-page.svg', alt='Dashboard', style='width: 80px;')
//- .admin-header-title
//- .headline.primary--text.animated.fadeInLeft
{{
$t
(
'admin.dashboard.title'
)
}}
//- .subtitle-1.grey--text.animated.fadeInLeft.wait-p2s
{{
$t
(
'admin.dashboard.subtitle'
)
}}
//- v-flex(xs12 md6 lg4 xl3 d-flex)
//- v-card.primary.dashboard-card.animated.fadeInUp(dark)
//- v-card-text
//- v-icon.dashboard-icon mdi-file-document-outline
//- .overline
{{
$t
(
'admin.dashboard.pages'
)
}}
//- animated-number.display-1(
//- :value='info.pagesTotal'
//- :duration='2000'
//- :formatValue='round'
//- easing='easeOutQuint'
//- )
//- v-flex(xs12 md6 lg4 xl3 d-flex)
//- v-card.blue.darken-3.dashboard-card.animated.fadeInUp.wait-p2s(dark)
//- v-card-text
//- v-icon.dashboard-icon mdi-account
//- .overline
{{
$t
(
'admin.dashboard.users'
)
}}
//- animated-number.display-1(
//- :value='info.usersTotal'
//- :duration='2000'
//- :formatValue='round'
//- easing='easeOutQuint'
//- )
//- v-flex(xs12 md6 lg4 xl3 d-flex)
//- v-card.blue.darken-4.dashboard-card.animated.fadeInUp.wait-p4s(dark)
//- v-card-text
//- v-icon.dashboard-icon mdi-account-group
//- .overline
{{
$t
(
'admin.dashboard.groups'
)
}}
//- animated-number.display-1(
//- :value='info.groupsTotal'
//- :duration='2000'
//- :formatValue='round'
//- easing='easeOutQuint'
//- )
//- v-flex(xs12 md6 lg12 xl3 d-flex)
//- v-card.dashboard-card.animated.fadeInUp.wait-p6s(
//- :class='isLatestVersion ? "green" : "red lighten-2"'
//- dark
//- )
//- v-btn.btn-animate-wrench(fab, absolute, :right='!$vuetify.rtl', :left='$vuetify.rtl', top, small, light, to='system', v-if='hasPermission(`manage:system`)')
//- v-icon(:color='isLatestVersion ? `green` : `red darken-4`', small) mdi-wrench
//- v-card-text
//- v-icon.dashboard-icon mdi-blur
//- .subtitle-1 Wiki.js
{{
info
.
currentVersion
}}
//- .body-2(v-if='isLatestVersion')
{{
$t
(
'admin.dashboard.versionLatest'
)
}}
//- .body-2(v-else)
{{
$t
(
'admin.dashboard.versionNew'
,
{
version
:
info
.
latestVersion
}
)
}}
//- v-flex(xs12, xl6)
//- v-card.radius-7.animated.fadeInUp.wait-p2s
//- v-toolbar(:color='$q.dark.isActive ? `grey darken-2` : `grey lighten-5`', dense, flat)
//- v-spacer
//- .overline
{{
$t
(
'admin.dashboard.recentPages'
)
}}
//- v-spacer
//- v-data-table.pb-2(
//- :items='recentPages'
//- :headers='recentPagesHeaders'
//- :loading='recentPagesLoading'
//- hide-default-footer
//- hide-default-header
//- )
//- template(slot='item', slot-scope='props')
//- tr.is-clickable(:active='props.selected', @click='$router.push(`/pages/` + props.item.id)')
//- td
//- .body-2: strong
{{
props
.
item
.
title
}}
//- td.admin-pages-path
//- v-chip(label, small, :color='$q.dark.isActive ? `grey darken-4` : `grey lighten-4`')
{{
props
.
item
.
locale
}}
//- span.ml-2.grey--text(:class='$q.dark.isActive ? `text--lighten-1` : `text--darken-2`') /
{{
props
.
item
.
path
}}
//- td.text-right.caption(width='250')
{{
props
.
item
.
updatedAt
|
moment
(
'calendar'
)
}}
//- v-flex(xs12, xl6)
//- v-card.radius-7.animated.fadeInUp.wait-p4s
//- v-toolbar(:color='$q.dark.isActive ? `grey darken-2` : `grey lighten-5`', dense, flat)
//- v-spacer
//- .overline
{{
$t
(
'admin.dashboard.lastLogins'
)
}}
//- v-spacer
//- v-data-table.pb-2(
//- :items='lastLogins'
//- :headers='lastLoginsHeaders'
//- :loading='lastLoginsLoading'
//- hide-default-footer
//- hide-default-header
//- )
//- template(slot='item', slot-scope='props')
//- tr.is-clickable(:active='props.selected', @click='$router.push(`/users/` + props.item.id)')
//- td
//- .body-2: strong
{{
props
.
item
.
name
}}
//- td.text-right.caption(width='250')
{{
props
.
item
.
lastLoginAt
|
moment
(
'calendar'
)
}}
//- v-flex(xs12)
//- v-card.dashboard-contribute.animated.fadeInUp.wait-p4s
//- v-card-text
//- img(src='/_assets/svg/icon-heart-health.svg', alt='Contribute', style='height: 80px;')
//- .pl-5
//- .subtitle-1
{{
$t
(
'admin.contribute.title'
)
}}
//- .body-2.mt-3: strong
{{
$t
(
'admin.dashboard.contributeSubtitle'
)
}}
//- .body-2
{{
$t
(
'admin.dashboard.contributeHelp'
)
}}
//- v-btn.mx-0.mt-4(:color='$q.dark.isActive ? `indigo lighten-3` : `indigo`', outlined, small, to='/contribute')
//- .caption: strong
{{
$t
(
'admin.dashboard.contributeLearnMore'
)
}}
</
template
>
<
script
setup
>
...
...
@@ -361,6 +256,14 @@ function checkForUpdates () {
}
}
}
.q-card__actions
{
background
:
linear-gradient
(
to
bottom
,
rgba
(
0
,
0
,
0
,
0
)
,
rgba
(
0
,
0
,
0
,.
03
));
@at-root
.body--dark
&
{
background
:
linear-gradient
(
to
bottom
,
rgba
(
0
,
0
,
0
,
0
)
,
rgba
(
0
,
0
,
0
,.
2
));
}
}
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment