Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

132 migrate data layer from localstorage to database #170

Merged
merged 10 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
{
"name": "Node.js",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/javascript-node:dev-22-bookworm",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"Nuxtr.nuxtr-vscode",
"Vue.volar",
"EditorConfig.EditorConfig",
"github.vscode-github-actions"
]
}
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = false

[*.{mts,ts,json,config,js,mjs}]
indent_size = 4

[*.yml]
indent_size = 2
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# @mlhaufe will be requested for
# review when someone opens a pull request

* @mlhaufe
* @mlhaufe
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
22 changes: 14 additions & 8 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,23 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
node-version: 22.x
cache: "npm"
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Restore Cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
# - name: Restore Cache
# uses: actions/cache@v3
# with:
# path: ~/.npm
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-
# Below is temporary due to <https://github.com/npm/cli/issues/4828>
# Maybe related to using devcontainer locally?
- name: Delete node_modules and package-lock.json
run: |
rm -rf node_modules
rm package-lock.json
- name: Install dependencies
run: npm install
- name: Build Application
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,23 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
node-version: 22.x
cache: "npm"
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Restore Cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
# - name: Restore Cache
# uses: actions/cache@v3
# with:
# path: ~/.npm
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-
# Below is temporary due to <https://github.com/npm/cli/issues/4828>
# Maybe related to using devcontainer locally?
- name: Delete node_modules and package-lock.json
run: |
rm -rf node_modules
rm package-lock.json
- name: Install dependencies
run: npm install
- name: Build Application
Expand Down
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.formatOnSave": true,
"git.pruneOnFetch": true
}
38 changes: 19 additions & 19 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "typecheck",
"group": "build",
"problemMatcher": [],
"label": "npm: typecheck",
"detail": "nuxi typecheck"
},
{
"type": "npm",
"script": "dev",
"group": "build",
"problemMatcher": [],
"label": "npm: dev",
"detail": "nuxt dev"
}
]
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "typecheck",
"group": "build",
"problemMatcher": [],
"label": "npm: typecheck",
"detail": "nuxi typecheck"
},
{
"type": "npm",
"script": "dev",
"group": "build",
"problemMatcher": [],
"label": "npm: dev",
"detail": "nuxt dev"
}
]
}
Loading
Loading