Skip to content

Commit

Permalink
#33 add license in all files
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcellino-Palerme committed Jan 17, 2024
1 parent 8c10e85 commit 11ab470
Show file tree
Hide file tree
Showing 58 changed files with 248 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>

// SPDX-License-Identifier: MIT
module.exports = {
"env": {
"browser": true,
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
#
# SPDX-License-Identifier: MIT
FROM node:latest
WORKDIR /EP2M2
COPY ./.output .
Expand All @@ -6,4 +9,4 @@ RUN mkdir /results
ENV EP2M2_DIR_SHARE=/shareFile
ENV EP2M2_DIR_RESULT=/results
ENV PGHOST=db
CMD ["node", "./server/index.mjs"]
CMD ["node", "./server/index.mjs"]
3 changes: 3 additions & 0 deletions Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
#
# SPDX-License-Identifier: MIT
FROM node:latest
WORKDIR /EP2M2
COPY . .
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
<!--
SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
SPDX-License-Identifier: MIT
-->

# EP2M2
8 changes: 7 additions & 1 deletion components/BannerMain.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<!-- This module provide banner of site -->
<!--
SPDX-FileCopyrightText: 2024 Marcellino Palerme <marcellino.palerme@inrae.fr>

SPDX-License-Identifier: MIT
-->

<!-- This module provide banner of site -->
<script setup lang="ts">
// import { useI18n } from "#imports";
const { t } = useI18n();
Expand Down
6 changes: 6 additions & 0 deletions components/BugButton.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Marcellino Palerme <marcellino.palerme@inrae.fr>

SPDX-License-Identifier: MIT
-->

<template>
<UButton
to="mailto:[email protected]?subject=retour tamama (ep2m2)"
Expand Down
6 changes: 6 additions & 0 deletions components/DbCompoundShowList.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Marcellino Palerme <marcellino.palerme@inrae.fr>

SPDX-License-Identifier: MIT
-->

<script setup lang="ts">
// const { t } = useI18n();
const props = defineProps({
Expand Down
6 changes: 6 additions & 0 deletions components/DbFittingShowList.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Marcellino Palerme <marcellino.palerme@inrae.fr>

SPDX-License-Identifier: MIT
-->

<script setup lang="ts">

import { ref, reactive, computed } from "vue";
Expand Down
6 changes: 6 additions & 0 deletions components/DbMachineShowList.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Marcellino Palerme <marcellino.palerme@inrae.fr>

SPDX-License-Identifier: MIT
-->

<script setup lang="ts">
// const { t } = useI18n();
const props = defineProps({
Expand Down
6 changes: 6 additions & 0 deletions components/ExtractInfo.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Marcellino Palerme <marcellino.palerme@inrae.fr>

SPDX-License-Identifier: MIT
-->

<!--
This composant provide part to managa raw file from engine and extract all
information.
Expand Down
6 changes: 6 additions & 0 deletions components/ExtrasNav.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Marcellino Palerme <marcellino.palerme@inrae.fr>

SPDX-License-Identifier: MIT
-->

<!--
This module give access to help, profile, logout, home page
-->
Expand Down
6 changes: 6 additions & 0 deletions components/LangButton.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Marcellino Palerme <marcellino.palerme@inrae.fr>

SPDX-License-Identifier: MIT
-->

<!--
This file contain

Expand Down
6 changes: 6 additions & 0 deletions components/LoginForm.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Marcellino Palerme <marcellino.palerme@inrae.fr>

SPDX-License-Identifier: MIT
-->

<script setup lang="ts">
import lang from "~/components/LangButton.vue";
import { ref } from "vue";
Expand Down
4 changes: 4 additions & 0 deletions compose.test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
#
# SPDX-License-Identifier: MIT

services:
web:
build:
Expand Down
4 changes: 4 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
#
# SPDX-License-Identifier: MIT

services:
web:
build: .
Expand Down
4 changes: 4 additions & 0 deletions db/init.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

const pg = require("pg");
const client = new pg.Client({
database: "ep2m2db",
Expand Down
4 changes: 4 additions & 0 deletions db/init.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
--
-- SPDX-License-Identifier: MIT

-- CREATE USER ep2m2 WITH PASSWORD 'ep2m2';
CREATE DATABASE ep2m2db;
GRANT ALL PRIVILEGES ON DATABASE ep2m2db TO ep2m2;
Expand Down
4 changes: 4 additions & 0 deletions lang/en-US.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

export default {
button:{
addcompound: "Add reference",
Expand Down
4 changes: 4 additions & 0 deletions lang/fr-FR.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

export default {
button: {
addcompound: "Ajout d'un témoin",
Expand Down
4 changes: 4 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

// https://nuxt.com/docs/api/configuration/nuxt-config
import { defineNuxtConfig } from "nuxt/config";
import vuetify, { transformAssetUrls } from "vite-plugin-vuetify";
Expand Down
3 changes: 3 additions & 0 deletions package-lock.json.license

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>

SPDX-License-Identifier: MIT
6 changes: 6 additions & 0 deletions pages/control.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Marcellino Palerme <marcellino.palerme@inrae.fr>

SPDX-License-Identifier: MIT
-->

<!--
This page provide manage of compound control
-->
Expand Down
6 changes: 6 additions & 0 deletions pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Marcellino Palerme <marcellino.palerme@inrae.fr>

SPDX-License-Identifier: MIT
-->

<!--
This file contain the componant root of application ep2m2.
EP2M2 provide web wide to extract all information from raw files of
Expand Down
4 changes: 4 additions & 0 deletions plugins/bcrypt.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

declare module "bcrypt"
4 changes: 4 additions & 0 deletions plugins/file.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

export { tFile, tProject, tCompound, tMachine,tFitting};

declare global {
Expand Down
4 changes: 4 additions & 0 deletions plugins/pg.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

declare module "pg"
4 changes: 4 additions & 0 deletions plugins/vuetify.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

// import this after install `@mdi/font` package
import "@mdi/font/css/materialdesignicons.css";

Expand Down
3 changes: 3 additions & 0 deletions public/logoP2M2_en.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 INRAE

SPDX-License-Identifier: CC-BY-NC-ND-4.00
3 changes: 3 additions & 0 deletions public/logoP2M2_fr.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 INRAE

SPDX-License-Identifier: CC-BY-NC-ND-4.00
3 changes: 3 additions & 0 deletions public/p2m2.ico.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 INRAE

SPDX-License-Identifier: CC-BY-NC-ND-4.00
4 changes: 4 additions & 0 deletions server/api/AddToken.post.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

import pg from "pg";

export default defineEventHandler(async (event) : Promise<number> => {
Expand Down
4 changes: 4 additions & 0 deletions server/api/addFile.post.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

import pg from "pg";
import {readFile, rm} from "fs/promises";
import {join} from "path";
Expand Down
4 changes: 4 additions & 0 deletions server/api/changeNameProject.post.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

/*
Change name of project
*/
Expand Down
4 changes: 4 additions & 0 deletions server/api/checkLogin.post.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

import pg from "pg";
import {compare, hash} from "bcrypt";

Expand Down
4 changes: 4 additions & 0 deletions server/api/checkToken.post.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

import pg from "pg";

export default defineEventHandler(async (event) => {
Expand Down
4 changes: 4 additions & 0 deletions server/api/class/tableClass.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

import pg from "pg";

export default class Table {
Expand Down
4 changes: 4 additions & 0 deletions server/api/createProject.post.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

import pg from "pg";
import type { MultiPartData } from "h3";
import { rm } from "fs/promises";
Expand Down
4 changes: 4 additions & 0 deletions server/api/delFile.post.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

/*
Delete list of files
*/
Expand Down
4 changes: 4 additions & 0 deletions server/api/delProject.post.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

/*
Delete a project
*/
Expand Down
4 changes: 4 additions & 0 deletions server/api/extract.post.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

import pg from "pg";

function exportFile(addressFile: {
Expand Down
4 changes: 4 additions & 0 deletions server/api/function/team.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

import pg from "pg";
import { compare } from "bcrypt";

Expand Down
4 changes: 4 additions & 0 deletions server/api/getProjects.post.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

import pg from "pg";
import type { tProject } from "~/plugins/file";
import { teamFromHash } from "./function/team";
Expand Down
4 changes: 4 additions & 0 deletions server/api/infoFile.post.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

// import fs from "fs";
import { readFileSync, existsSync, mkdirSync} from "fs";
import { writeFile, rm} from "fs/promises";
Expand Down
4 changes: 4 additions & 0 deletions server/api/manageControl/[action].post.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

import Table from "../class/tableClass";

export default defineEventHandler(async (event) => {
Expand Down
3 changes: 3 additions & 0 deletions server/tsconfig.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>

SPDX-License-Identifier: MIT
4 changes: 4 additions & 0 deletions test/db/compound.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

import { describe, test } from "vitest";
import pg from "pg";

Expand Down
4 changes: 4 additions & 0 deletions test/extract.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

import { describe, test } from "vitest";
import { mount } from "@vue/test-utils";
import VV from "~/pages/index.vue";
Expand Down
4 changes: 4 additions & 0 deletions test/server/tableClass.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]>
//
// SPDX-License-Identifier: MIT

import { describe, test } from "vitest";
import Table from "~/server/api/class/tableClass";

Expand Down
Loading

0 comments on commit 11ab470

Please sign in to comment.