This commit is contained in:
Nukeap committed 2025-02-14 14:22:48 +03:00
1 parent e9685cf858
commit 51a76fffa3
5 files changed
+7 -29

No files matched your search

+1
View File
@@ -2,3 +2,4 @@ src/back/portal/.env
src/back/media/ src/back/media/
src/back/static/ 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 # Используем официальный образ Node.js на базе Alpine
FROM node:lts-alpine FROM node:lts-alpine
# RUN apk add --no-cache git RUN apk add --no-cache git
# RUN adduser -D appuser # RUN adduser -D appuser
@@ -17,8 +17,8 @@ RUN npm cache clean --force && npm install
# RUN npm install husky --save-dev # RUN npm install husky --save-dev
# npx husky install # npx husky install
# Копируем остальные файлы приложения # Копируем остальные файлы приложения
# COPY . . COPY . .
# Указываем команду для запуска lint-staged # Указываем команду для запуска lint-staged
CMD ["npm","run", "lint-staged"] CMD ["npm", "run", "lint-staged"]
# CMD ["tail", "-f", "/dev/null"] # CMD ["tail", "-f", "/dev/null"]
+1 -1
View File
@@ -7,7 +7,7 @@
"docs:dev": "vitepress dev docs", "docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs", "docs:build": "vitepress build docs",
"docs:preview": "vitepress preview 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", "prepare2": "git config core.hooksPath .git-hooks",
"postinstall2":"vitepress init ./docs", "postinstall2":"vitepress init ./docs",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
+2 -1
View File
@@ -59,7 +59,8 @@ export default {
setup() { setup() {
const burl = baseURL.slice(0, -1); const burl = baseURL.slice(0, -1);
const carous = ref([{ link: '' }]); const carous = ref([{ link: '' }]);
console.log("sdf")
axiosApiInstance.get(`api/fns/links/`).then((data) => { axiosApiInstance.get(`api/fns/links/`).then((data) => {
carous.value = data.data; carous.value = data.data;