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
<script setup> | |
import { ref } from'vue' | |
let message = ref("Hello World") | |
let question =ref("How are you?") | |
let updateMessage= () => { message.value ='Goodbye World' } | |
let updateQuestion= () => { question.value ='What is your name?' } | |
</script> | |
<template> | |
<h1 v-memo="[ message ]">{{message}} - {{question}}</h1> | |
<button @click="updateMessage"> Обновить сообщение </button> |
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
<script setup> | |
import { ref } from 'vue' | |
let message = ref("Hello World") | |
let updateMessage = () => { | |
message.value = 'Goodbye World' | |
} | |
</script> | |
<template> |
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
import Router from 'vue-router'; | |
import MarketingRoutes from '@client/router/marketing.js'; | |
import HotelsRoutes from '@client/router/hotels.js'; | |
const BaseLayout = () => import( /* webpackChunkName: "layout/base" */ '@client/layouts/base.vue'); | |
const EmptyLayout = () => import( /* webpackChunkName: "layout/empty" */ '@client/layouts/empty.vue'); | |
const LkLayout = () => import( /* webpackChunkName: "layout/lk" */ '@client/layouts/lk/index.vue'); | |
export const routes = [ |
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
/** | |
* Class Swagger API | |
*/ | |
export class SwaggerApi { | |
/** | |
* Метод API для получения токена | |
* @param {Object} payload query data | |
* @returns {Object} {data, pagination} | |
*/ |
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
<%_ let pathNames = Object.keys(paths); -%> | |
/* eslint-disable */ | |
/** | |
* Class Swagger API | |
*/ | |
export class SwaggerApi { | |
<%_ for(let i = 0; i < pathNames.length; ++i) { | |
let path = paths[pathNames[i]]; -%> | |
<% for(let action in path) { | |
let endpoint = path[action]; |
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
/* eslint-disable */ | |
const ejs = require('ejs'), | |
path = require('path'), | |
request = require('request'), | |
fs = require('fs'), | |
resolvePath = p => path.resolve(__dirname, p); | |
let specCompiled = false; | |
class CodegenPlugin { |
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
variables: | |
VERSION_TASK: "2.2.1" | |
stages: | |
- spawn | |
- lint | |
- build | |
- test-build | |
- stage | |
- test-stage |
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
#!/bin/bash | |
#params $1 - user $2 - host - $3 - nginx path $4-app\path $5-SSH_KEY $6 - ENV | |
#Присваиваем аргументы переменным | |
CI_USER=$1 #пользователь от имени которого логинимся | |
STAGE_HOST=$2 #host куда коннектимся | |
NGINX_PATH=$3 #путь к nginx конфигу | |
APP_PATH=$4 #путь к приложению | |
ENV=$6 #имя окружения | |
SSH_KEY=$5 #SSH PRIVATE KEY | |
#Шаманство с ssh агентом, создаем known_hosts, запускаем агента, добавляем ключик |
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
#GREEN | |
upstream NODE_SSR_GREEN { server 127.0.0.1:8080; } | |
upstream NODE_SSR_BLUE { server 127.0.0.1:8082; } | |
#Основной сервер | |
server { | |
set $ACTIVE_SSR NODE_SSR_GREEN; | |
set $APP_ROOT /var/www/app-GREEN/dist; | |
server_name vue.ssr; |
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
let ENVOIRMENT = require('./env.production.js'), | |
GREEN_ENV = Object.assign({ | |
SSR_PORT: 8080, | |
}, ENVOIRMENT), | |
BLUE_ENV = Object.assign({ | |
SSR_PORT: 9090, | |
}, ENVOIRMENT); | |
console.log('GREEN ENV', GREEN_ENV); | |
console.log('BLUE ENV', BLUE_ENV); |
NewerOlder