Skip to content

Commit

Permalink
Create new project for vue 3 and move existing pages and compoenets o…
Browse files Browse the repository at this point in the history
…ver (#148)

* Create new project for vue 3 and move existing pages and compoenets over

* finish moving all components and stores over to vue 3

* finish updating the store

* remove old vue app and rename new one

* add auto-import package

* add back all routes

* add auth components

* fix lots of components

* fix image imports

* clean up pinia stores and remove placeholders

* fix app running in browser; resolve all console errors preventing load
  • Loading branch information
gwenf authored Aug 8, 2024
1 parent 711c1e2 commit 48ad9f7
Show file tree
Hide file tree
Showing 91 changed files with 5,832 additions and 43,058 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig is awesome: http://EditorConfig.org

# Top-most EditorConfig file
root = true

# defaults for all files
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

# Markdown files uses two trailing spaces to indicate a <br>
[*.{md,snap}]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"editor.tabSize": 2,
"eslint.format.enable": true,
"editor.formatOnSave": true
}
2 changes: 0 additions & 2 deletions curriculum-front/.browserslistrc

This file was deleted.

25 changes: 25 additions & 0 deletions curriculum-front/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* eslint-env node */
module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended'
],
rules: {
'vue/multi-word-component-names': 'off',
'vue/no-multiple-template-root': 'off',
},
overrides: [
{
files: [
'e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'
],
'extends': [
'plugin:playwright/recommended'
]
}
],
parserOptions: {
ecmaVersion: 2021,
}
}
27 changes: 0 additions & 27 deletions curriculum-front/.eslintrc.js

This file was deleted.

31 changes: 22 additions & 9 deletions curriculum-front/.gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,33 @@
.DS_Store
node_modules
/dist

/tests/e2e/reports/
selenium-debug.log

# Log files
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*.tsbuildinfo

test-results/
playwright-report/
7 changes: 7 additions & 0 deletions curriculum-front/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"Vue.volar",
"ms-playwright.playwright",
"dbaeumer.vscode-eslint"
]
}
5 changes: 0 additions & 5 deletions curriculum-front/babel.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions curriculum-front/e2e/vue.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { test, expect } from '@playwright/test';

// See here how to get started:
// https://playwright.dev/docs/intro
test('visits the app root url', async ({ page }) => {
await page.goto('/');
await expect(page.locator('div.greetings > h1')).toHaveText('You did it!');
})
13 changes: 13 additions & 0 deletions curriculum-front/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
33 changes: 0 additions & 33 deletions curriculum-front/jest.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions curriculum-front/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": ["node_modules", "dist"]
}
18 changes: 0 additions & 18 deletions curriculum-front/nodeServer.js

This file was deleted.

Loading

0 comments on commit 48ad9f7

Please sign in to comment.