Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
bef4b82
Prepare for parallel
vitkolos Sep 22, 2025
4373634
Working prototype
vitkolos Sep 23, 2025
60d6ebf
Upgrade node
vitkolos Sep 22, 2025
4b7ae8b
Set apollo in production mode
vitkolos Sep 22, 2025
8e6ae9f
Fix bible commonjs
vitkolos Sep 22, 2025
dade268
Refactor song name and number
vitkolos Sep 23, 2025
73ad31d
Fix double scores
vitkolos Sep 23, 2025
363cf9f
Partially refactor songlist interface
vitkolos Sep 24, 2025
8e8414e
Finish songlist refactoring, add loader
vitkolos Sep 26, 2025
cdc5804
Modify deploy to prevent silent failure
vitkolos Nov 2, 2025
e7547c3
Fix Makefile indentation
vitkolos Nov 2, 2025
986ca1a
Merge branch 'develop' into parallel
vitkolos Nov 3, 2025
e2a3a40
Report error when loading text
vitkolos Nov 3, 2025
6cdfbf4
Move search state
vitkolos Nov 5, 2025
73dd789
Refactor error handling
vitkolos Nov 5, 2025
759cf1a
Move debouncing, remove Vercel
vitkolos Nov 5, 2025
8efca71
Style side list
vitkolos Nov 6, 2025
e6b1fc2
Fix sheets, add search box
vitkolos Nov 6, 2025
823d7e9
Refactor search, finalize side list design, unite links
vitkolos Nov 6, 2025
311e6b0
Improve search back button
vitkolos Nov 7, 2025
076a171
Add back arrow to every page
vitkolos Nov 7, 2025
73b4d84
Add ZPS files
vitkolos Nov 7, 2025
b120bac
Fix design issues with ZPS
vitkolos Nov 7, 2025
e1339cf
Refactor components and process.client
vitkolos Nov 8, 2025
72e6aec
Add songbooks to homepage
vitkolos Nov 10, 2025
098b0a0
Replace custom apollo by standard module
vitkolos Nov 11, 2025
501edb6
Upgrade yarn and packages
vitkolos Nov 11, 2025
2269b30
Upgrade to Nuxt v4
vitkolos Nov 11, 2025
0993400
Move page components
vitkolos Nov 12, 2025
480bc4c
Minor refactoring to composition api
vitkolos Nov 12, 2025
79537ba
Add colors to songbooks
vitkolos Nov 12, 2025
dedf3eb
Refactor author for composition api
vitkolos Nov 15, 2025
aa8c510
Refactor report links
vitkolos Nov 16, 2025
3636993
Fix bottom paddings
vitkolos Nov 16, 2025
3af9bf2
Fix preferred, songbook demo
vitkolos Nov 16, 2025
391f7cf
Improve design of songbook
vitkolos Nov 25, 2025
bb96b8d
Integrate songbook and sidelist
vitkolos Nov 25, 2025
bed7028
Fix init and routes
vitkolos Nov 26, 2025
ee7da11
Finalize history-aware side list
vitkolos Nov 26, 2025
3ac5a43
Highlight selected song
vitkolos Nov 27, 2025
8fae5ff
Add song arrows
vitkolos Nov 27, 2025
2519db5
Add side list button
vitkolos Nov 28, 2025
4b1adf6
Add songbooks list (wip)
vitkolos Nov 29, 2025
30c3f99
Finalize songbooks lists
vitkolos Nov 29, 2025
aefe3f8
Separate index and search (wip)
vitkolos Nov 29, 2025
abe0292
Reset search from homepage
vitkolos Nov 29, 2025
2e21814
Fix history pushes
vitkolos Nov 30, 2025
ada07d8
Finalize separating index and search
vitkolos Dec 7, 2025
7e5f948
Use capitalized component names
vitkolos Dec 7, 2025
31f4adc
Add full list of authors to author page, fix minor bugs
vitkolos Dec 7, 2025
b98c9ca
Make rows clickable
vitkolos Dec 7, 2025
9380e96
Fix sort usage
vitkolos Dec 8, 2025
0e333d5
Fix deploy
vitkolos Feb 7, 2026
4055f28
Improve deploy
vitkolos Feb 7, 2026
3ef64f0
Hide list in print
vitkolos Feb 7, 2026
252d67d
Disable dark mode button
vitkolos Feb 7, 2026
fa16ec7
Simplify build process
vitkolos Feb 8, 2026
bff6ef3
Add .dockerignore
vitkolos Feb 8, 2026
69e21ad
Move .dockerignore
vitkolos Feb 8, 2026
38a369b
Merge pull request #9 from glowspace/parallel
vitkolos Feb 8, 2026
9cc9e89
Fix minor bugs
vitkolos Feb 8, 2026
5a80461
Update deploy workflow
vitkolos Feb 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.git
.gitignore
.vscode
.github
README.md
compose.yml
deploy/.dockerignore
deploy/Dockerfile

node_modules
*.log*
.nuxt
.nitro
.cache
.output*
dist
.DS_Store
.idea

.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
quote_type = single
max_line_length = 100

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# note: if you change these values, you may need to restart the `yarn dev` nuxt server

# needs to be changed in production environment
# if not set, VERCEL_URL is used instead
# APP_URL="http://localhost:3000"

# change if there is no need for proxy
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
- name: SSH in production server
uses: appleboy/ssh-action@v1.0.3
with:
script: |
cd /var/www/html/evangelickyzpevnik && make production-pull --silent && make deploy --silent
cd /var/www/html/evangelickykancional && make production-pull --silent && make deploy --silent
# script: |
# cd /var/www/html/evangelickyzpevnik && sh deploy/deploy.sh main
# cd /var/www/html/evangelickykancional && sh deploy/deploy.sh main
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USERNAME }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: SSH in staging server
uses: appleboy/ssh-action@v1.0.3
with:
script: cd /var/www/html/staging/evangelickyzpevnik-staging && make staging-pull --silent && make deploy --silent
script: cd /var/www/staging/zpevnik-web_zps-staging && sh deploy/deploy.sh develop
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USERNAME }}
Expand All @@ -24,4 +24,4 @@ jobs:
DISCORD_USERNAME: "${{ github.workflow }} - ${{ github.event.repository.name }}"
DISCORD_AVATAR: "https://upload.wikimedia.org/wikipedia/sl/1/11/048029f362c484a2a46b928afbe98837.jpg"
with:
args: "Proběhlo vývojové nasazení (frontend) na dev.evangelickyzpevnik.cz! :tada:"
args: "Proběhlo vývojové nasazení (frontend) na staging.zpevnik.proscholy.cz! :tada:"
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@ node_modules
.nuxt
.nitro
.cache
.output
.output*
.env
dist
.DS_Store
.idea

.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
17 changes: 0 additions & 17 deletions Makefile

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ Logo ČCE je jejím duševním vlastnictvím a nevztahuje se na něj open-source
Vývojový server se spustí na adrese `http://localhost:3000`.

Produkční build lze vytvořit pomocí `yarn build`. Náhled produkčního serveru se spouští příkazem `yarn preview`.

Aktuální verzi Node.js lze specifikovat v souboru `package.json` pomocí `engines`. Uvedenou verzí se řídí i Vercel.
7 changes: 0 additions & 7 deletions app.vue

This file was deleted.

25 changes: 25 additions & 0 deletions app/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<template>
<div>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</div>
</template>

<script setup>
const { siteUrl, variation } = useRuntimeConfig()?.public;
const route = useRoute();
useHead({
title: variation.title,
htmlAttrs: { lang: 'cs', dir: 'ltr' },
meta: [
{ property: 'og:url', content: siteUrl + route.path },
{ property: 'og:type', content: 'website' },
// { property: 'og:image', content: 'https://zpevnik.proscholy.cz/banner.png' },

{ name: 'apple-itunes-app', content: 'app-id=' + variation.itunesId },
],
link: getLinks(),
script: [{ src: '/dark.js' }],
});
</script>
10 changes: 1 addition & 9 deletions assets/css/tailwind.css → app/assets/css/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,8 @@
/* @import './tm-components'; */
/* @import './song'; */

body {
/* padding-bottom: calc(5.25 * theme(spacing.4)); */
@apply pb-[84px] /* this is equal to the line above */
md:pb-0 md:pl-[97px] /* pl-24 + 1px to preserve border */
print:pb-0 print:pl-0;
/* also used in BottomBar.vue and BottomSheets.vue */
}

.custom-container {
@apply max-w-[700px] mx-auto;
@apply w-full max-w-[700px] mx-auto;
}

.stretched-link {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions components/Basic/Button.vue → app/components/Basic/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
<script setup>
const props = defineProps({
eventId: String,
href: String,
to: String,
href: [String, Object],
to: [String, Object],
type: String,
compact: Boolean,
disabled: Boolean,
Expand All @@ -50,7 +50,7 @@ const btnType = computed(() => {
<style lang="postcss" scoped>
.btn {
@apply inline-flex flex-row items-center justify-center gap-x-2 py-2.5 px-5 rounded-[6.25rem]
text-sm tracking-[.00714em] font-custom-medium transition;
text-sm tracking-[.00714em] font-custom-medium no-underline transition;
}

.btn.primary {
Expand Down Expand Up @@ -91,10 +91,10 @@ const btnType = computed(() => {
}

.mobile-icon-only > :not(.icon) {
@apply hidden md:block;
@apply hidden lg:block;
}

@media screen(md) {
@media screen(lg) {
.mobile-icon-only {
@apply w-auto h-auto py-2.5 pl-5 pr-6;
}
Expand Down
5 changes: 5 additions & 0 deletions app/components/Basic/ButtonGroup.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<div class="inline-flex flex-row items-center whitespace-nowrap" role="group">
<slot />
</div>
</template>
8 changes: 6 additions & 2 deletions components/Basic/Chip.vue → app/components/Basic/Chip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<script setup>
const props = defineProps({
href: String,
to: String,
href: [String, Object],
to: [String, Object],
});
</script>

Expand All @@ -17,6 +17,10 @@ const props = defineProps({
border border-gray-500 dark:border-gray-200 rounded-lg text-sm tracking-[.00714em] m-1 transition-colors
hover:bg-surface-400 [&.active]:bg-primary-150;

&.tag-blue {
@apply hover:bg-blue/[.15] [&.active]:bg-blue/30;
}

&.tag-green {
@apply hover:bg-green/[.15] [&.active]:bg-green/30;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<template>
<component
:is="to ? NuxtLink : href ? 'a' : 'button'"
:is="(to || href) ? NuxtLink : 'button'"
:to="to"
:href="href"
:target="target"
@click="clicked"
class="clickable"
><slot /></component>
</template>

Expand All @@ -13,8 +14,8 @@ import { NuxtLink } from '#components';

const props = defineProps({
eventId: String,
href: String,
to: String,
href: [String, Object],
to: [String, Object],
target: String,
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<i v-if="type == 'fa'" :class="[name, 'text-xl -mt-px']"></i>
<i v-if="type == 'fa'" :class="[name, 'text-xl/tight']"></i>
<img v-else-if="type == 'img'" :src="'/img/' + name" class="w-7" />
<span
v-else
Expand Down
4 changes: 2 additions & 2 deletions components/Basic/Link.vue → app/components/Basic/Link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import { NuxtLink } from '#components';

const props = defineProps({
eventId: String,
href: String,
to: String,
href: [String, Object],
to: [String, Object],
underline: Boolean,
});
</script>
Expand Down
File renamed without changes.
File renamed without changes.
48 changes: 48 additions & 0 deletions app/components/Dashboard/Card.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<template>
<div>
<div class="mx-4 my-3 flex items-center justify-between">
<h2 v-if="title" class="text-xl font-custom-bold">{{ title }}</h2>
<BasicClickable v-if="moreLink" :to="moreLink" class="group flex items-center gap-1">
<span class="group-hover:underline">Zobrazit vše</span><BasicIcon name="chevron_right" />
</BasicClickable>
</div>
<div class="card-body">
<slot />
</div>
</div>
</template>

<script setup>
const props = defineProps({ title: String, moreLink: [String, Object] });
</script>

<style lang="postcss" scoped>
.card-body {
@apply bg-surface-200 shadow rounded-xl overflow-hidden;

:slotted(.card-item) {
@apply flex items-center gap-3 px-4 py-3 hover:bg-surface-50 border-gray-100;

&:not(:last-child) {
@apply border-b;
}
}

:deep(.card-icon),
:deep(.card-note) {
@apply inline-flex justify-center items-center text-gray-700;

&:first-child {
@apply text-center w-7 h-6;
}

&:last-child {
@apply ml-auto text-gray;
}
}

:deep(.card-note) {
@apply px-1;
}
}
</style>
Loading