This file contains hidden or 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
| digraph G { | |
| subgraph cluster_master { | |
| label="master" | |
| style = "dotted"; | |
| m1_0_0 [label="" style="filled"]; | |
| m1_0_1 [label="" style="filled"]; | |
| m1_1_0 [label="" style="filled"]; | |
| m1_1_1 [label="" style="filled"]; | |
| m2_0_0 [label="" style="filled"]; |
This file contains hidden or 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
| deploy_backend: | |
| stage: deploy | |
| only: | |
| refs: | |
| - /^release\/.*$/ | |
| - /^feature\/.*$/ | |
| - staging | |
| - master | |
| changes: | |
| - .gitlab-ci.yml |
This file contains hidden or 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
| ///<reference path="./global.d.ts" /> | |
| import React from 'react' | |
| import dva from 'dva' | |
| import createHistory from 'history/createBrowserHistory' | |
| import createLoading from 'dva-loading' | |
| import { Router, Route } from 'dva/router' | |
| import './index.css' | |
| import App from './App' | |
| import * as serviceWorker from './serviceWorker' |
This file contains hidden or 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 * as SDK from '@yuque/sdk' | |
| import * as YAML from 'yaml' | |
| const getToc = async (token: string, bookId: number | string) => { | |
| const client = new SDK({ | |
| token: token || process.env.YUQUE_TOKEN || undefined | |
| }) | |
| const repo = await client.repos.get({ | |
| namespace: bookId // bookId | |
| }) |
This file contains hidden or 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 * as SDK from '@yuque/sdk' | |
| const syncArticle = async (token: string, bookId: number | string, slug: number) => { | |
| const client = new SDK({ | |
| token: token || process.env.YUQUE_TOKEN || undefined | |
| }) | |
| const article = await client.docs.get({ | |
| namespace: bookId, | |
| slug, | |
| data: { |
This file contains hidden or 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
| { | |
| "globals" : | |
| { | |
| "alwaysShowTabs" : true, | |
| "defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
| "initialCols" : 120, | |
| "initialRows" : 30, | |
| "keybindings" : | |
| [ | |
| { |
This file contains hidden or 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
| const { JSDOM } = require('jsdom') | |
| const { window } = new JSDOM('', { | |
| url: 'http://localhost/' | |
| }) | |
| global.window = window | |
| for (let item of ['document', 'navigator', 'location', 'localStorage', 'sessionStorage']) { | |
| global[item] = window[item] | |
| } | |
| // other custom properties, rename futureWindowProperties to what you need. |
This file contains hidden or 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
| server { | |
| location / { | |
| root /var/www; | |
| index index.html; | |
| try_files $uri $uri/ /index.html =404; | |
| } | |
| } |
This file contains hidden or 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
| concurrent = 8 | |
| check_interval = 0 | |
| [session_server] | |
| session_timeout = 1800 | |
| [[runners]] | |
| name = "dev" | |
| limit = 1 | |
| url = "http://git.demo.com/" |
This file contains hidden or 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
| https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro&explaintext&redirects=1&titles=Stack%20Overflow |