-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4f33ea2
Showing
77 changed files
with
7,373 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
.vercel | ||
.output | ||
dist | ||
*secret.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Environment variables declared in this file are automatically made available to Prisma. | ||
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema | ||
|
||
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. | ||
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings | ||
|
||
DATABASE_URL="postgresql://kudos:secret@localhost:5432/kudos?schema=public" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock | ||
helm | ||
deploy | ||
*.yml | ||
*.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:svelte/recommended', 'prettier'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2020, | ||
extraFileExtensions: ['.svelte'], | ||
}, | ||
env: { | ||
browser: true, | ||
es2017: true, | ||
node: true, | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.svelte'], | ||
parser: 'svelte-eslint-parser', | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
.vercel | ||
.output | ||
*secret.yaml | ||
vite.config.js.timestamp-* | ||
vite.config.ts.timestamp-* |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
engine-strict=true | ||
resolution-mode=highest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v18.16.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock | ||
helm | ||
deploy | ||
*.yml | ||
*.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 120, | ||
"plugins": ["prettier-plugin-svelte"], | ||
"pluginSearchDirs": ["."], | ||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"prettier.documentSelectors": ["**/*.svelte"], | ||
"tailwindCSS.classAttributes": [ | ||
"class", | ||
"accent", | ||
"active", | ||
"aspectRatio", | ||
"background", | ||
"bgBackdrop", | ||
"bgDark", | ||
"bgDrawer", | ||
"bgLight", | ||
"blur", | ||
"border", | ||
"button", | ||
"buttonClasses", | ||
"buttonTextFirst", | ||
"buttonTextLast", | ||
"buttonTextNext", | ||
"buttonTextPrevious", | ||
"caretClosed", | ||
"caretOpen", | ||
"color", | ||
"controlSeparator", | ||
"controlVariant", | ||
"cursor", | ||
"display", | ||
"element", | ||
"fill", | ||
"fillDark", | ||
"fillLight", | ||
"flex", | ||
"gap", | ||
"gridColumns", | ||
"height", | ||
"hover", | ||
"inactive", | ||
"indent", | ||
"justify", | ||
"meter", | ||
"padding", | ||
"regionAnchor", | ||
"regionBackdrop", | ||
"regionBody", | ||
"regionCaption", | ||
"regionCaret", | ||
"regionCell", | ||
"regionChildren", | ||
"regionCone", | ||
"regionContent", | ||
"regionControl", | ||
"regionDefault", | ||
"regionDrawer", | ||
"regionFoot", | ||
"regionFootCell", | ||
"regionHead", | ||
"regionHeadCell", | ||
"regionHeader", | ||
"regionIcon", | ||
"regionInterface", | ||
"regionInterfaceText", | ||
"regionLabel", | ||
"regionLead", | ||
"regionLegend", | ||
"regionList", | ||
"regionListItem", | ||
"regionNavigation", | ||
"regionPage", | ||
"regionPanel", | ||
"regionRowHeadline", | ||
"regionRowMain", | ||
"regionSummary", | ||
"regionSymbol", | ||
"regionTab", | ||
"regionTrail", | ||
"ring", | ||
"rounded", | ||
"select", | ||
"shadow", | ||
"slotDefault", | ||
"slotFooter", | ||
"slotHeader", | ||
"slotLead", | ||
"slotMessage", | ||
"slotMeta", | ||
"slotPageContent", | ||
"slotPageFooter", | ||
"slotPageHeader", | ||
"slotSidebarLeft", | ||
"slotSidebarRight", | ||
"slotTrail", | ||
"spacing", | ||
"text", | ||
"track", | ||
"width", | ||
"zIndex" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM node:18.16.0-slim AS build | ||
|
||
WORKDIR /app | ||
COPY . . | ||
RUN npm install | ||
RUN ./_tools/patch-perfect-freehand.sh | ||
RUN apt-get update && apt-get install -y libssl-dev | ||
RUN npm run prisma:generate | ||
RUN npm run build | ||
|
||
####################################### | ||
|
||
FROM node:18.16.0-alpine3.16 | ||
|
||
WORKDIR /app | ||
RUN rm -rf ./* | ||
|
||
COPY --from=build /app/package*.json ./ | ||
RUN npm install | ||
|
||
COPY _tools/patch-perfect-freehand.sh ./_tools/patch-perfect-freehand.sh | ||
RUN sh ./_tools/patch-perfect-freehand.sh | ||
|
||
COPY --from=build /app/prisma ./prisma/ | ||
RUN npm run prisma:generate | ||
|
||
COPY --from=build /app/build . | ||
CMD [ "node", "index.js" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 synyx GmbH & Co. KG | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Kudos | ||
|
||
👏 **Kudos** is a versatile and interactive web application, meticulously crafted to revolutionize the way you appreciate and celebrate your colleagues in the workplace. Kudos allows you not only to send tailor-made "Kudo" cards, but also to enhance them with your personal touch. | ||
|
||
Transform your workplace culture by celebrating individual and team accomplishments, fostering positive reinforcement, and promoting an atmosphere of genuine appreciation with Kudos! | ||
|
||
## 🌟 Features | ||
|
||
📝 **Personalized Text**: Add heartfelt messages to let your colleagues know how much they mean to you. | ||
|
||
🎴 **Multiple Templates**: Choose from a variety of templates to suit the occasion. | ||
|
||
🎨 **Drawing Functionality**: Unleash your creativity by drawing directly on the card for that extra personal touch. | ||
|
||
🎉 **Presentation Mode**: | ||
Planning to showcase the Kudos in a team meeting or special occasion? Switch to Presentation Mode, where you can shuffle through all received cards and celebrate together as a team. | ||
|
||
🗂 **Archiving**: | ||
Keep track of all the positive vibes by utilizing our archiving functionality. Save cherished moments and revisit them any time you need a morale boost. | ||
|
||
## Developing | ||
|
||
To get you up and running you need to run the following steps: | ||
|
||
1. Install [nvm](https://github.com/nvm-sh/nvm#installing-and-updating) and install the required NodeJS version with `nvm install` | ||
2. Make sure you run the correct NodeJS version with `nvm use` | ||
3. Install dependencies with `npm install` | ||
4. Configure db connection with environment variable (eg. via `.env` file) `DATABASE_URL="postgres://kudos:secret@localhost:5432/kudos?schema=public"` | ||
5. Start db with `docker compose up` | ||
6. Run db migrations with `npm run prisma:migrate:dev` | ||
7. Start local dev server with `npm run dev` | ||
|
||
## Building | ||
|
||
To create a production version of your app: | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
You can preview the production build with `npm run preview`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
# this fixes https://github.com/steveruizok/perfect-freehand/pull/59 | ||
# This script exists because the PR is not merged/pulled yet | ||
|
||
echo "patching perfect-freehand" | ||
mv node_modules/perfect-freehand/dist/esm/index.js node_modules/perfect-freehand/dist/esm/index.mjs | ||
sed -i 's/.\/dist\/esm\/index.js/.\/dist\/esm\/index.mjs/g' node_modules/perfect-freehand/package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
services: | ||
db: | ||
image: postgres:14.4 | ||
environment: | ||
POSTGRES_USER: kudos | ||
POSTGRES_PASSWORD: secret | ||
ports: | ||
- '5432:5432' | ||
|
||
#app: | ||
# build: . | ||
# environment: | ||
# DATABASE_URL: "postgresql://kudos:example@db:5432/kudos?schema=public" | ||
# ORIGIN: "http://localhost:3000" | ||
# ports: | ||
# - "3000:3000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dependencies: | ||
- name: postgresql | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 12.1.2 | ||
digest: sha256:525689611a29f90b0bc8cd674df5d97024c99eda8104216390f6747904fd0208 | ||
generated: "2022-11-15T13:35:03.718968048+01:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v2 | ||
name: kudos | ||
description: The Kudos Helm chart | ||
type: application | ||
version: 0.1.1 | ||
appVersion: 1.1.2 | ||
dependencies: | ||
- name: postgresql | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 12.1.2 | ||
condition: postgresql.enabled |
Binary file not shown.
Oops, something went wrong.