Skip to content

Commit

Permalink
Merge pull request #3 from csunibo/remake
Browse files Browse the repository at this point in the history
Remake
  • Loading branch information
samuelemusiani authored Jul 10, 2024
2 parents ab97c48 + a2400cf commit 3b0a47b
Show file tree
Hide file tree
Showing 41 changed files with 5,729 additions and 432 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
}
}
23 changes: 23 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
push

jobs:
build-check:
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22

- name: Checkout the repo
uses: actions/checkout@v4

- name: Install npm-run-all
run: npm install npm-run-all

- name: Check formatting
run: npm run build

53 changes: 53 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Pages deploy

on:
push:
branches:
- main

workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:

deploy-pages:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22

- name: Checkout the repo
uses: actions/checkout@v4

- name: Install dependencies
run: npm install

- name: Build project
run: npm run build
env:
BASE_PATH: /${{ github.event.repository.name }}

- name: Upload artifacts to github pages
uses: actions/upload-pages-artifact@v3
with:
path: dist

- name: Deploy pages
uses: actions/deploy-pages@v4

22 changes: 22 additions & 0 deletions .github/workflows/formatting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Formatting

on:
push

jobs:
format-check:
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22

- name: Checkout the repo
uses: actions/checkout@v4

- name: Install prettier
run: npm install --save-dev --save-exact prettier

- name: Check formatting
run: npx prettier --check src/
42 changes: 0 additions & 42 deletions .github/workflows/pages.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*.tsbuildinfo
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

Un semplice strumento per riassumere le attività svolte durante il proprio
tirocinio. Consulta anche la [pagina della wiki
relativa](https://csunibo.github.io/wiki/applicativi-web/diario-tirocinio/index.html).
relativa](https://csunibo.students.cs.unibo.it/wiki/applicativi-web/diario-tirocinio/index.html).
9 changes: 9 additions & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/// <reference types="vite/client" />

declare module "vuex" {
export * from "vuex/types/index.d.ts";
export * from "vuex/types/helpers.d.ts";
export * from "vuex/types/logger.d.ts";
export * from "vuex/types/vue.d.ts";
}

Binary file removed img/unibo.png
Binary file not shown.
Binary file removed img/unibo128.ico
Binary file not shown.
Binary file removed img/unibo128.png
Binary file not shown.
Binary file removed img/unibo180.ico
Binary file not shown.
Binary file removed img/unibo180.png
Binary file not shown.
Binary file removed img/unibo192.ico
Binary file not shown.
Binary file removed img/unibo192.png
Binary file not shown.
Binary file removed img/unibo32.ico
Binary file not shown.
Binary file removed img/unibo512.png
Binary file not shown.
Loading

0 comments on commit 3b0a47b

Please sign in to comment.