-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Gitea repo integration - [X] change database model - [X] change ui - [X] change scrap method including authentication with header - [X] tested on gitea and codeberg (gitea clone) - [X ] authentication git repo encrypted - [ ] css fix - [ ] tests features * fix * Gitea repo integration - Bump update server: see package-lock.json - Bump update client: see client/package-lock.json - fix storybook ScrapGitHubReleaseTags - fix scss * Gitea repo integration - [ ] update API documentation * Gitea repo integration - [X] UI -exclude stories from build * Gitea repo integration - [X] Dockerfile cleaning - [X] Dockerfile for dev (UI must be built by developer) - [X] build prod load (no direct push) * Gitea repo integration - [X] update version * Dark UI/controls displayed as table - [ ] detect browser user-pref - [-] add toggle button dark/bright - [ ] refactoring colors - [ ] Create table component - [ ] add toggle button table/card * UI/controls displayed as table - [ ] refactoring css bright/dark - [ ] add toggle button dark/bright * refactoring css dark in progress * UI improvement in progress * UI improvement in progress * UI improvement in progress - [X] light - [X] typo * UI improvement in progress - [X] remove toggle theme featyre, useless, managed by browser-prefs (light/dark) - [X] typo * UI improvement in progress - [X] light * UI improvement in progress - [X] light * UI improvement in progress - [X] light * UI improvement in progress - [X] Controls view as table implementation * UI improvement in progress - [X] Controls view as table implementation * UI improvement in progress - [X] Controls view as table implementation * UI improvement in progress - [X] Controls view as table implementation * UI improvement in progress - [X] Controls view as table implementation * UI improvement in progress - [X] Update stories - [ ] Controls view as table implementation (url display) - [ ] duplicate a control * UI improvement in progress - [X] Controls view as table implementation (url display) - [X] duplicate a control * Tests - [X] duplicate a control * UI - [X] duplicate a control - [X] Controls cards/table - [X] Refactoring DisplayControls - [X] fix curl * UI - [X] duplicate a control - no state * UI - [X] curl -k * compare - [X] API: modifying specifications GET=>PUT (API: modify specifications, data is altered in reality) * compare - [X] UI * compare - [X] UI * compare UI - [X] API: modifying specifications GET=>PUT (API: modify specifications, data is altered in reality) * server - [X] test: add remote ip in server log * UI - fixed response analysis to control deletion * server - [X] test: add remote ip in server log * refactcoring auth token * Ui - control summary * UI - translations * server - [ ] log system improvements * UI - [X] search by uuid * UI - [X] usermanager disable username when editmode is true * server [X] login/logout refactorin session.regenerate after login * server [X] login/logout refactorin session.regenerate after login * Global github token - [ ] inprogress, Github authentication to remove rate limit barrier, use for public repositories. With the implementation of gitea, it is now possible to retrieve private repositories from Github. If not present, use global if provided... * Global github token - [ ] inprogress, Github authentication to remove rate limit barrier, use for public repositories. With the implementation of gitea, it is now possible to retrieve private repositories from Github. If not present, use global if provided... * UI - [X] remove sticky toasts, keep only on error * UI - [X] creating component to display versions - [X] adding component to table * UI Explainations & typo * UI Explainations & typo * Global Github Token - [X] server integration - [X] UI * UI - [X] toast default life time * Fixed production version implementation - [X] server - [X] UI * UI - [X] header: global github token only for admin - [X] index.html: disable cache to get always fresh js - [X] remove unexpected toast on login page loading * Stories: update * UI-server - Typo - remove log isauthenticated - dark theme * Documentation * typo * builder ---------
- Loading branch information
Showing
122 changed files
with
5,203 additions
and
9,444 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 |
---|---|---|
|
@@ -8,3 +8,4 @@ test/devtest.test.ts | |
coverage/** | ||
.envlocaldev | ||
public | ||
src/data |
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 @@ | ||
[English Changelog](./Change.log.md) | ||
|
||
# Changelogs | ||
|
||
# 1.7.0 | ||
|
||
- **BREAKING CHANGE**: Changement de la méthode HTTP pour l'entrée API: "compare". La méthode originale n'était pas appropriée, car la fonction appelée altère les données, par conséquent elle a été remplacée par "PUT". Si vous utiliser utdon dans une tâche "cron" avec curl, ajouter le paramètre: '-X PUT' | ||
- **BREAKING CHANGE**: Harmonisation et amélioration des logs serveur, **le contenu des logs a changé**. | ||
- Refactorisation login/logout, le login retourne un nouveau cookie (corrige session fixation). | ||
- Correction de plusieurs bugs et refactorisation de méthodes. | ||
- Rechercher par uuid ou partie d'uuid. | ||
- UserManager: Le champs username est inactif en mode "Edition". | ||
- Présentation des contrôles sous la forme d'un tableau. | ||
- Duplication d'un contrôle. | ||
- Support des dépôts git de type "Gitea" avec authentification, permet ainsi l'authentification Github pour les projets privés, valeur (HTTP HEADER) Key: Authorization value: Bearer <You token> | ||
- Authentification Github globale pour supprimer la barrière "rate-limit". La valeur est prise seulement dans le cas où le contrôle ne dispose pas déjà d'une authentification spécifique. | ||
- Pour les applications n'offrant pas de point d'entrée de niveau de version, possibilité de saisir la valeur de la version utilisée, ceci peut aussi permettre de suivre l'évolution d'une application qui n'est pas en production. |
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 @@ | ||
[Changelog en Français](./Change.log.fr.md) | ||
|
||
# Changelogs | ||
|
||
# 1.7.0 | ||
|
||
- **BREAKING CHANGE**: Changed the HTTP method for API input to "compare". The original method was not appropriate, as the function called alters the data, so it has been replaced by "PUT". If you use utdon in a "cron" task with curl, add the parameter: '-X PUT'. | ||
- **BREAKING CHANGE**: Harmonization and improvement of server logs, **log content has changed**. | ||
- Refactor login/logout, login returns a new cookie (fix session fixation). | ||
- Several bugs fixed and methods refactored. | ||
- Search by uuid or part of uuid. | ||
- UserManager: The username field is inactive in "Edit" mode. | ||
- Presentation of controls as table. | ||
- Control duplication. | ||
- Support for "Gitea" git repositories with authentication, enabling Github authentication for private projects, value (HTTP HEADER) Key: Authorization value: Bearer <You token>. | ||
- Global Github authentication to remove the "rate-limit" barrier. The value is taken only if the control does not already have a specific authentication. | ||
- For applications that don't offer a version level entry point, it is possible to enter the value of the version in use. This can also be used to track the evolution of an application that is not in production. |
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
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,53 @@ | ||
# @author DHENRY for mytinydc.com | ||
# @license AGPL3 | ||
|
||
ARG RUNASUSER="utdon" | ||
ARG RUNASUSERID="1001" | ||
ARG RUNASGROUP="1001" | ||
|
||
FROM node:20.10.0-alpine3.19 as base | ||
|
||
# build | ||
FROM base AS builder | ||
|
||
WORKDIR /app | ||
|
||
# Server | ||
COPY ./src/ ./src/ | ||
RUN rm -f ./genSwaggerJson.ts | ||
COPY ./openapi.yaml . | ||
COPY ./package.json . | ||
COPY ./locales ./locales | ||
COPY ./tsconfig.json . | ||
# Building server, final dest is /dist | ||
RUN npm install && npm run build | ||
RUN rm -rf node_modules && npm install --omit=dev | ||
|
||
FROM base AS runner | ||
LABEL org.opencontainers.image.source=https://github.com/dhenry123/utdon | ||
LABEL org.opencontainers.image.description="Multi arch image" | ||
LABEL org.opencontainers.image.licenses=AGPLV3 | ||
|
||
ARG RUNASUSER | ||
ARG RUNASUSERID | ||
ARG RUNASGROUP | ||
|
||
# Creating user & group | ||
RUN addgroup -S ${RUNASUSER} --gid "${RUNASGROUP}" && adduser -S ${RUNASUSER} -s /bin/sh --uid "${RUNASUSERID}" -G ${RUNASUSER} | ||
|
||
USER ${RUNASUSERID} | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder --chown=${RUNASUSERID}:${RUNASGROUP} /app/dist/ ./ | ||
COPY --from=builder --chown=${RUNASUSERID}:${RUNASGROUP} /app/openapi.yaml ./ | ||
COPY --from=builder --chown=${RUNASUSERID}:${RUNASGROUP} /app/node_modules/ ./node_modules | ||
# UI must be built by developer | ||
COPY --chown=${RUNASUSERID}:${RUNASGROUP} ./client/dist/ ./public | ||
|
||
# data directory for mount point | ||
RUN mkdir data | ||
|
||
EXPOSE 3015 | ||
|
||
CMD ["node","main.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
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
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
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
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
Oops, something went wrong.