diff --git a/.dockerignore b/.dockerignore index 663139339..e43b1ab1f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,5 @@ src/back/portal/.env src/back/media/ src/back/static/ -docs/.vitepress/cache \ No newline at end of file +docs/.vitepress/cache +/node_modules \ No newline at end of file diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit deleted file mode 100644 index 5318818a4..000000000 --- a/.git-hooks/pre-commit +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env sh -# docker-compose run --rm frontend npx lint-staged -npm run lint-staged -# -# Проверяем наличие pylint -if ! [ -x "$(command -v pylint)" ]; then - echo 'Error: pylint is not installed.' >&2 - exit 1 -fi - -# Получение списка всех Python-файлов, подготовленных для коммита -files=$(git diff --cached --name-only --diff-filter=ACM | grep '\.py$') - -# Если нет Python-файлов, выход -if [ -z "$files" ]; then - exit 0 -fi - -# Запуск pylint для всех подготовленных Python-файлов -pylint $files -if [ $? -ne 0 ]; then - echo "Pylint found issues. Commit aborted." - exit 1 -fi \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 756d79a45..e6b79188f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Используем официальный образ Node.js на базе Alpine FROM node:lts-alpine -# RUN apk add --no-cache git +RUN apk add --no-cache git # RUN adduser -D appuser @@ -17,8 +17,8 @@ RUN npm cache clean --force && npm install # RUN npm install husky --save-dev # npx husky install # Копируем остальные файлы приложения -# COPY . . +COPY . . # Указываем команду для запуска lint-staged -CMD ["npm","run", "lint-staged"] +CMD ["npm", "run", "lint-staged"] # CMD ["tail", "-f", "/dev/null"] diff --git a/package.json b/package.json index 8af213245..1522f6866 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "docs:dev": "vitepress dev docs", "docs:build": "vitepress build docs", "docs:preview": "vitepress preview docs", - "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", + "lint": "eslint", "prepare2": "git config core.hooksPath .git-hooks", "postinstall2":"vitepress init ./docs", "lint-staged": "lint-staged", diff --git a/src/front/src/views/FnsHol.vue b/src/front/src/views/FnsHol.vue index 284035b41..d3f9720cf 100644 --- a/src/front/src/views/FnsHol.vue +++ b/src/front/src/views/FnsHol.vue @@ -59,8 +59,9 @@ export default { setup() { const burl = baseURL.slice(0, -1); const carous = ref([{ link: '' }]); - console.log("sdf") + + axiosApiInstance.get(`api/fns/links/`).then((data) => { carous.value = data.data;