diff --git a/.git-hooks/commit-msg b/.git-hooks1/commit-msg similarity index 100% rename from .git-hooks/commit-msg rename to .git-hooks1/commit-msg diff --git a/.git-hooks1/pre-commit b/.git-hooks1/pre-commit new file mode 100644 index 000000000..2e0f4c32b --- /dev/null +++ b/.git-hooks1/pre-commit @@ -0,0 +1,24 @@ +#!/usr/bin/env sh +docker-compose run --rm frontend +# 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 e6b79188f..534f0896f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN apk add --no-cache git # Копируем package.json и package-lock.json WORKDIR /app -RUN mkdir src + COPY package*.json ./ # Устанавливаем зависимости @@ -17,6 +17,8 @@ RUN npm cache clean --force && npm install # RUN npm install husky --save-dev # npx husky install # Копируем остальные файлы приложения +# COPY ./src/front ./src/front +# COPY ./.git ./.git COPY . . # Указываем команду для запуска lint-staged diff --git a/src/front/src/views/FnsHol.vue b/src/front/src/views/FnsHol.vue index d3f9720cf..0fb0f74f6 100644 --- a/src/front/src/views/FnsHol.vue +++ b/src/front/src/views/FnsHol.vue @@ -60,7 +60,8 @@ export default { const burl = baseURL.slice(0, -1); const carous = ref([{ link: '' }]); - + console.log("adыыыыыыыыыыыыыыыsааd") + axiosApiInstance.get(`api/fns/links/`).then((data) => { carous.value = data.data; diff --git a/src/front/src/views/HomePage.vue b/src/front/src/views/HomePage.vue index 8f4cab584..32d8550d8 100644 --- a/src/front/src/views/HomePage.vue +++ b/src/front/src/views/HomePage.vue @@ -142,7 +142,7 @@ const appStore = useAppStore() const favorit = ref([]) const toggle = ref(null) - + const burl ="d" const accountStore = useAccountStore() pagecounter()