This commit is contained in:
Nukeap committed 2025-02-14 14:22:48 +03:00
1 parent fcadbacf64
commit dc8203ad9d
5 files changed
+8 -30

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
src/back/portal/.env
src/back/media/
src/back/static/
docs/.vitepress/cache
docs/.vitepress/cache
/node_modules
-24
View File
@@ -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
+3 -3
View File
@@ -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"]
+1 -1
View File
@@ -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",
+2 -1
View File
@@ -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;