This commit is contained in:
kuaifan 2023-02-23 18:05:06 +08:00
parent b83010acdf
commit af2e68a97d
210 changed files with 657 additions and 9200 deletions

View File

@ -47,6 +47,7 @@ services:
- fileview
- drawio-webapp
- drawio-export
- minder
restart: unless-stopped
redis:
@ -147,6 +148,16 @@ services:
- ./docker/drawio/export/fonts:/usr/share/fonts/drawio
restart: unless-stopped
minder:
container_name: "dootask-minder-${APP_ID}"
image: "kuaifan/minder:latest"
networks:
extnetwork:
ipv4_address: "${APP_IPPR}.10"
environment:
TZ: "Asia/Shanghai"
restart: unless-stopped
networks:
extnetwork:
name: "dootask-networks-${APP_ID}"

View File

@ -151,6 +151,23 @@ server {
proxy_set_header Connection $connection_upgrade;
proxy_pass http://drawio-export:8000/;
}
location /minder/ {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-PORT $remote_port;
proxy_set_header X-Forwarded-Host $the_host;
proxy_set_header X-Forwarded-Proto $the_scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header Scheme $scheme;
proxy_set_header Server-Protocol $server_protocol;
proxy_set_header Server-Name $server_name;
proxy_set_header Server-Addr $server_addr;
proxy_set_header Server-Port $server_port;
proxy_pass http://minder/;
}
}
include /etc/nginx/conf.d/conf.d/*.conf;

View File

@ -2,10 +2,10 @@
directory=/var/www
# 生产环境
command=php bin/laravels start -i
#command=php bin/laravels start -i
# 开发环境
#command=./bin/inotify ./app
command=./bin/inotify ./app
numprocs=1
autostart=true

View File

@ -33,7 +33,7 @@
</div>
<script type="text/javascript">
document.writeln("<script src=\'./js/app.js?v=" + window.systemInfo.version + "\'><\/script>");
document.writeln("<script type=\"module\" src=\"./js/app.js?v=" + window.systemInfo.version + "\"><\/script>");
</script>
</body>

2
electron/utils.js vendored
View File

@ -1,7 +1,7 @@
const fs = require("fs");
const {shell, dialog, session} = require("electron");
module.exports = {
export default {
/**
* 是否数组
* @param obj

View File

@ -18,6 +18,7 @@
},
"devDependencies": {
"@chenfengyuan/vue-qrcode": "^1.0.2",
"@vitejs/plugin-legacy": "^1.8.2",
"axios": "^0.24.0",
"cross-env": "^7.0.3",
"css-loader": "^6.7.2",
@ -42,13 +43,17 @@
"quill": "^1.3.7",
"quill-mention-hi": "^3.1.0-1",
"resolve-url-loader": "^4.0.0",
"sass": "^1.56.1",
"sass": "~1.26.5",
"sass-loader": "^12.6.0",
"stylus": "^0.59.0",
"stylus-loader": "^7.1.0",
"tinymce": "^5.10.3",
"tui-calendar-hi": "^1.15.1-5",
"view-design-hi": "^4.7.0-36",
"vite": "^2.9.15",
"vite-plugin-vue2": "^2.0.3",
"vite-plugin-file-copy": "^1.0.0",
"vite-plugin-require": "^1.1.10",
"vue": "^2.7.14",
"vue-clipboard2": "^0.3.3",
"vue-kityminder-ggg": "^1.3.10",
@ -59,9 +64,7 @@
"vue-template-compiler": "^2.7.14",
"vue-virtual-scroll-list-hi": "^2.3.4-3",
"vuedraggable": "^2.24.3",
"vuex": "3.6.2",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.0"
"vuex": "3.6.2"
},
"app": [
{

View File

@ -37,6 +37,7 @@
"/docs/assets/prism.css": "/docs/assets/prism.css",
"/docs/index.html": "/docs/index.html",
"/favicon.ico": "/favicon.ico",
"/hot": "/hot",
"/images/avatar/default_1.png": "/images/avatar/default_1.png",
"/images/avatar/default_10.png": "/images/avatar/default_10.png",
"/images/avatar/default_11.png": "/images/avatar/default_11.png",
@ -1043,5 +1044,56 @@
"/mix-manifest.json": "/mix-manifest.json",
"/privacy.html": "/privacy.html",
"/robots.txt": "/robots.txt",
"/uploads/chat/202302/21/5b534ea4b47d8e97.png": "/uploads/chat/202302/21/5b534ea4b47d8e97.png",
"/uploads/chat/202302/21/5b534ea4b47d8e97.png_thumb.jpg": "/uploads/chat/202302/21/5b534ea4b47d8e97.png_thumb.jpg",
"/uploads/chat/202302/21/8928e5f80939509e.png": "/uploads/chat/202302/21/8928e5f80939509e.png",
"/uploads/chat/202302/21/8928e5f80939509e.png_thumb.jpg": "/uploads/chat/202302/21/8928e5f80939509e.png_thumb.jpg",
"/uploads/chat/202302/23/7bc8ad2d4a6f564946f970b9b711c295": "/uploads/chat/202302/23/7bc8ad2d4a6f564946f970b9b711c295",
"/uploads/chat/202302/23/7bc8ad2d4a6f564946f970b9b711c295.log": "/uploads/chat/202302/23/7bc8ad2d4a6f564946f970b9b711c295.log",
"/uploads/file/202302/17/7bc8ad2d4a6f564946f970b9b711c295": "/uploads/file/202302/17/7bc8ad2d4a6f564946f970b9b711c295",
"/uploads/file/document/202302/2/a6df806829f1f52bf1f38dec45686321": "/uploads/file/document/202302/2/a6df806829f1f52bf1f38dec45686321",
"/uploads/file/document/202302/3/c4942fb1bb6ccf29f9bcdba1d4492b22": "/uploads/file/document/202302/3/c4942fb1bb6ccf29f9bcdba1d4492b22",
"/uploads/file/document/202302/5/cde8589c6f4798296bf2296864be6071": "/uploads/file/document/202302/5/cde8589c6f4798296bf2296864be6071",
"/uploads/file/document/202302/8/78eda82d6629e53bb82460c51e7fc7fb": "/uploads/file/document/202302/8/78eda82d6629e53bb82460c51e7fc7fb",
"/uploads/file/document/202302/9/a201469e17efce7f268063f6feb205e2": "/uploads/file/document/202302/9/a201469e17efce7f268063f6feb205e2",
"/uploads/file/drawio/202302/12/28e31814da4091d00405c291d25c8d7d": "/uploads/file/drawio/202302/12/28e31814da4091d00405c291d25c8d7d",
"/uploads/file/excel/202302/11/xlsx-11-1676953656": "/uploads/file/excel/202302/11/xlsx-11-1676953656",
"/uploads/file/mind/202302/6/8abe2852fd70d43f1a793404546035c8": "/uploads/file/mind/202302/6/8abe2852fd70d43f1a793404546035c8",
"/uploads/task/content/202302/10/62775702d689fc832783d5f959710de2": "/uploads/task/content/202302/10/62775702d689fc832783d5f959710de2",
"/uploads/task/content/202302/11/a1c2ba35de1a0a85c2f9d0750aacc71e": "/uploads/task/content/202302/11/a1c2ba35de1a0a85c2f9d0750aacc71e",
"/uploads/task/content/202302/12/6f0385941c1b8e59610544f0d440d7e8": "/uploads/task/content/202302/12/6f0385941c1b8e59610544f0d440d7e8",
"/uploads/task/content/202302/13/d37f8c694f06b4820461404b459827eb": "/uploads/task/content/202302/13/d37f8c694f06b4820461404b459827eb",
"/uploads/task/content/202302/14/ce175b25e5af8305e9c5f59cf3e8eecf": "/uploads/task/content/202302/14/ce175b25e5af8305e9c5f59cf3e8eecf",
"/uploads/task/content/202302/15/d78b15b35d3f4f0eb68b73e581dd6f40": "/uploads/task/content/202302/15/d78b15b35d3f4f0eb68b73e581dd6f40",
"/uploads/task/content/202302/16/9019b20884389424cee2c1d0340ca462": "/uploads/task/content/202302/16/9019b20884389424cee2c1d0340ca462",
"/uploads/task/content/202302/17/bb0846c7b69f8b7bbfd18dfdf69ce3ea": "/uploads/task/content/202302/17/bb0846c7b69f8b7bbfd18dfdf69ce3ea",
"/uploads/task/content/202302/18/204c1384d289705f8380bf4a4332680c": "/uploads/task/content/202302/18/204c1384d289705f8380bf4a4332680c",
"/uploads/task/content/202302/19/df25b37a14ed631a0111a647e53fc24e": "/uploads/task/content/202302/19/df25b37a14ed631a0111a647e53fc24e",
"/uploads/task/content/202302/20/14b9e6faed15376ced2bf66eed9a10f2": "/uploads/task/content/202302/20/14b9e6faed15376ced2bf66eed9a10f2",
"/uploads/task/content/202302/21/9f62da40691774f904646e725e071b2c": "/uploads/task/content/202302/21/9f62da40691774f904646e725e071b2c",
"/uploads/task/content/202302/22/699623bdbe259c1e151120475ac5f566": "/uploads/task/content/202302/22/699623bdbe259c1e151120475ac5f566",
"/uploads/task/content/202302/23/e051d279ac266ea542786bfd973b1ed2": "/uploads/task/content/202302/23/e051d279ac266ea542786bfd973b1ed2",
"/uploads/task/content/202302/24/67f079e9b1d7c7edc10af133cd61956f": "/uploads/task/content/202302/24/67f079e9b1d7c7edc10af133cd61956f",
"/uploads/task/content/202302/25/7ea04d3fc054d2ab02645c04e1bbf2af": "/uploads/task/content/202302/25/7ea04d3fc054d2ab02645c04e1bbf2af",
"/uploads/task/content/202302/26/b02ab92959686dcab8d4d97d4d61f583": "/uploads/task/content/202302/26/b02ab92959686dcab8d4d97d4d61f583",
"/uploads/task/content/202302/27/6bf8575f601b6639f97c95bfd544d5bd": "/uploads/task/content/202302/27/6bf8575f601b6639f97c95bfd544d5bd",
"/uploads/task/content/202302/28/14f1663d878dbe7578b7f3c11b05a6c1": "/uploads/task/content/202302/28/14f1663d878dbe7578b7f3c11b05a6c1",
"/uploads/task/content/202302/29/ebb6157be1ffeb115e870b659f6e06c5": "/uploads/task/content/202302/29/ebb6157be1ffeb115e870b659f6e06c5",
"/uploads/task/content/202302/30/dc0fa7df3d07904a09288bd2d2bb5f40": "/uploads/task/content/202302/30/dc0fa7df3d07904a09288bd2d2bb5f40",
"/uploads/task/content/202302/33/0b112960fd82818d1685543c69d91838": "/uploads/task/content/202302/33/0b112960fd82818d1685543c69d91838",
"/uploads/task/content/202302/35/1e6514c7ecf8723d0014f91fe7ca0936": "/uploads/task/content/202302/35/1e6514c7ecf8723d0014f91fe7ca0936",
"/uploads/task/content/202302/36/6714a4737e4f2b9624a800f46285b249": "/uploads/task/content/202302/36/6714a4737e4f2b9624a800f46285b249",
"/uploads/task/content/202302/37/82b62a3e1b9315cf42432b7a7c081939": "/uploads/task/content/202302/37/82b62a3e1b9315cf42432b7a7c081939",
"/uploads/task/content/202302/38/1128c1cff0962868ed63065495297f38": "/uploads/task/content/202302/38/1128c1cff0962868ed63065495297f38",
"/uploads/task/content/202302/40/14b9e6faed15376ced2bf66eed9a10f2": "/uploads/task/content/202302/40/14b9e6faed15376ced2bf66eed9a10f2",
"/uploads/task/content/202302/41/14b9e6faed15376ced2bf66eed9a10f2": "/uploads/task/content/202302/41/14b9e6faed15376ced2bf66eed9a10f2",
"/uploads/task/content/202302/48/d41d8cd98f00b204e9800998ecf8427e": "/uploads/task/content/202302/48/d41d8cd98f00b204e9800998ecf8427e",
"/uploads/task/content/202302/59/d41d8cd98f00b204e9800998ecf8427e": "/uploads/task/content/202302/59/d41d8cd98f00b204e9800998ecf8427e",
"/uploads/task/content/202302/9/2a831d58e91542f8d9416bbb2ea245ab": "/uploads/task/content/202302/9/2a831d58e91542f8d9416bbb2ea245ab",
"/uploads/user/ldap/11.jpeg": "/uploads/user/ldap/11.jpeg",
"/uploads/user/picture/11/202302/c2fda30feeadf29d5c20e9a351175236.png": "/uploads/user/picture/11/202302/c2fda30feeadf29d5c20e9a351175236.png",
"/uploads/user/picture/11/202302/c2fda30feeadf29d5c20e9a351175236.png_thumb.jpg": "/uploads/user/picture/11/202302/c2fda30feeadf29d5c20e9a351175236.png_thumb.jpg",
"/uploads/user/picture/11/202302/e6fa48024b30f028c50b0dc494b9a559.png": "/uploads/user/picture/11/202302/e6fa48024b30f028c50b0dc494b9a559.png",
"/uploads/user/picture/11/202302/e6fa48024b30f028c50b0dc494b9a559.png_thumb.jpg": "/uploads/user/picture/11/202302/e6fa48024b30f028c50b0dc494b9a559.png_thumb.jpg",
"/web.config": "/web.config"
}

View File

@ -17,6 +17,8 @@ import ViewUI from 'view-design-hi'
import store from './store/index'
import mixin from "./store/mixin"
import "../sass/app.scss";
Vue.use(Vuex);
Vue.use(ViewUI, {
modal: {
@ -196,12 +198,11 @@ Vue.mixin(mixin)
let app;
store.dispatch("init").then(_ => {
app = new Vue({
el: '#app',
router,
store,
render: h => h(App),
template: '<App/>',
components: { App }
});
}).$mount('#app');
$A.goForward = app.goForward;
$A.goBack = app.goBack;

View File

@ -1,8 +1,8 @@
module.exports = function(hljs){
export default function(hljs){
// общий паттерн для определения идентификаторов
var UNDERSCORE_IDENT_RE = '[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+';
// v7 уникальные ключевые слова, отсутствующие в v8 ==> keyword
var v7_keywords =
'далее ';
@ -14,7 +14,7 @@ module.exports = function(hljs){
// keyword : ключевые слова
var KEYWORD = v7_keywords + v8_keywords;
// v7 уникальные директивы, отсутствующие в v8 ==> meta-keyword
var v7_meta_keywords =
'загрузитьизфайла ';
@ -31,7 +31,7 @@ module.exports = function(hljs){
// v7 системные константы ==> built_in
var v7_system_constants =
'разделительстраниц разделительстрок символтабуляции ';
// v7 уникальные методы глобального контекста, отсутствующие в v8 ==> built_in
var v7_global_context_methods =
'ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов ' +
@ -45,7 +45,7 @@ module.exports = function(hljs){
'префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына ' +
'рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента ' +
'счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ';
// v8 методы глобального контекста ==> built_in
var v8_global_context_methods =
'acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока ' +
@ -140,7 +140,7 @@ module.exports = function(hljs){
v7_system_constants +
v7_global_context_methods + v8_global_context_methods +
v8_global_context_property;
// v8 системные наборы значений ==> class
var v8_system_sets_of_values =
'webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ';
@ -292,7 +292,7 @@ module.exports = function(hljs){
одировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip ' +
'режимсохраненияпутейzip уровеньсжатияzip ';
// v8 системные перечисления -
// v8 системные перечисления -
// Блокировка данных, Фоновые задания, Автоматизированное тестирование,
// Доставляемые уведомления, Встроенные покупки, Интернет, Работа с двоичными данными ==> class
var v8_system_enums_other =
@ -411,7 +411,7 @@ module.exports = function(hljs){
// literal : примитивные типы
var LITERAL = 'null истина ложь неопределено';
// number : числа
var NUMBERS = hljs.inherit(hljs.NUMBER_MODE);
@ -432,10 +432,10 @@ module.exports = function(hljs){
}
]
};
// comment : комментарии
var COMMENTS = hljs.inherit(hljs.C_LINE_COMMENT_MODE);
// meta : инструкции препроцессора, директивы компиляции
var META = {
className: 'meta',
@ -446,13 +446,13 @@ module.exports = function(hljs){
COMMENTS
]
};
// symbol : метка goto
var SYMBOL = {
className: 'symbol',
begin: '~', end: ';|:', excludeEnd: true
};
};
// function : объявление процедур и функций
var FUNCTION = {
className: 'function',
@ -504,6 +504,6 @@ module.exports = function(hljs){
NUMBERS,
STRINGS,
DATE
]
]
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var regexes = {
ruleDeclaration: "^[a-zA-Z][a-zA-Z0-9-]*",
unexpectedChars: "[!@#$^&',?+~`|:]"
@ -67,4 +67,4 @@ module.exports = function(hljs) {
hljs.NUMBER_MODE
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
contains: [
// IP
@ -34,4 +34,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var IDENT_RE = '[a-zA-Z_$][a-zA-Z0-9_$]*';
var IDENT_FUNC_RETURN_TYPE_RE = '([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)';
@ -70,4 +70,4 @@ module.exports = function(hljs) {
],
illegal: /#/
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = // We try to support full Ada2012
export default // We try to support full Ada2012
//
// We highlight all appearances of types, keywords, literals (string, char, number, bool)
// and titles (user defined function/procedure/package)
@ -169,4 +169,4 @@ function(hljs) {
// {begin: '\\s+:=\\s+'},
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var builtInTypeMode = {
className: 'built_in',
begin: '\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)'
@ -103,4 +103,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var NUMBER = {className: 'number', begin: '[\\$%]\\d+'};
return {
aliases: ['apacheconf'],
@ -42,4 +42,4 @@ module.exports = function(hljs) {
],
illegal: /\S/
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: ''});
var PARAMS = {
className: 'params',
@ -82,4 +82,4 @@ module.exports = function(hljs) {
].concat(COMMENTS),
illegal: '//|->|=>|\\[\\['
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var IDENT_RE = '[A-Za-z_][0-9A-Za-z_]*';
var KEYWORDS = {
keyword:
@ -133,4 +133,4 @@ module.exports = function(hljs) {
],
illegal: /#(?!!)/
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var CPP = hljs.getLanguage('cpp').exports;
return {
keywords: {
@ -96,4 +96,4 @@ module.exports = function(hljs) {
hljs.C_NUMBER_MODE
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
//local labels: %?[FB]?[AT]?\d{1,2}\w+
return {
case_insensitive: true,
@ -88,4 +88,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
aliases: ['adoc'],
contains: [
@ -184,4 +184,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function (hljs) {
export default function (hljs) {
var KEYWORDS =
'false synchronized int abstract float private char boolean static null if const ' +
'for true while long throw strictfp finally protected import native final return void ' +
@ -141,4 +141,4 @@ module.exports = function (hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var BACKTICK_ESCAPE = {
begin: '`[\\s\\S]'
};
@ -40,7 +40,7 @@ module.exports = function(hljs) {
]
},
{
className: 'meta',
className: 'meta',
begin: '^\\s*#\\w+', end:'$',
relevance: 0
},
@ -54,4 +54,4 @@ module.exports = function(hljs) {
}
]
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var KEYWORDS = 'ByRef Case Const ContinueCase ContinueLoop ' +
'Default Dim Do Else ElseIf EndFunc EndIf EndSelect ' +
'EndSwitch EndWith Enum Exit ExitLoop For Func ' +
@ -132,4 +132,4 @@ module.exports = function(hljs) {
FUNCTION
]
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
case_insensitive: true,
lexemes: '\\.?' + hljs.IDENT_RE,
@ -58,4 +58,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var VARIABLE = {
className: 'variable',
variants: [
@ -49,4 +49,4 @@ module.exports = function(hljs) {
hljs.NUMBER_MODE
]
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
keywords: 'false int abstract private char boolean static null if for true ' +
'while long throw finally protected final return void enum else ' +
@ -27,4 +27,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var VAR = {
className: 'variable',
variants: [
@ -77,4 +77,4 @@ module.exports = function(hljs) {
VAR
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
case_insensitive: true,
illegal: '^\.',
@ -47,4 +47,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs){
export default function(hljs){
return {
contains: [
// Attribute
@ -25,4 +25,4 @@ module.exports = function(hljs){
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs){
export default function(hljs){
var LITERAL = {
className: 'literal',
begin: '[\\+\\-]',
@ -33,4 +33,4 @@ module.exports = function(hljs){
LITERAL
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var KEYWORDS =
'div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to ' +
'until while with var';
@ -76,4 +76,4 @@ module.exports = function(hljs) {
PROCEDURE
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
aliases: ['capnp'],
keywords: {
@ -45,4 +45,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
// 2.3. Identifiers and keywords
var KEYWORDS =
'assembly module package import alias class interface object given value ' +
@ -63,4 +63,4 @@ module.exports = function(hljs) {
}
].concat(EXPRESSIONS)
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
aliases: ['clean','icl','dcl'],
keywords: {
@ -23,4 +23,4 @@ module.exports = function(hljs) {
{begin: '->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>'} // relevance booster
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
contains: [
{
@ -11,4 +11,4 @@ module.exports = function(hljs) {
}
]
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var keywords = {
'builtin-name':
// Clojure keywords
@ -92,4 +92,4 @@ module.exports = function(hljs) {
illegal: /\S/,
contains: [LIST, STRING, HINT, HINT_COL, COMMENT, KEY, COLLECTION, NUMBER, LITERAL]
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
aliases: ['cmake.in'],
case_insensitive: true,
@ -49,4 +49,4 @@ module.exports = function(hljs) {
hljs.NUMBER_MODE
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var KEYWORDS = {
keyword:
// JS keywords
@ -142,4 +142,4 @@ module.exports = function(hljs) {
}
])
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
keywords: {
keyword:
@ -63,4 +63,4 @@ module.exports = function(hljs) {
{begin: /[-=]>/} // relevance booster
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function cos (hljs) {
export default function cos (hljs) {
var STRINGS = {
className: 'string',
@ -120,4 +120,4 @@ module.exports = function cos (hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var CPP_PRIMITIVE_TYPES = {
className: 'keyword',
begin: '\\b[a-z\\d_]*_t\\b'
@ -182,4 +182,4 @@ module.exports = function(hljs) {
keywords: CPP_KEYWORDS
}
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var RESOURCES = 'primitive rsc_template';
var COMMANDS = 'group clone ms master location colocation order fencing_topology ' +
@ -90,4 +90,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var INT_SUFFIX = '(_*[ui](8|16|32|64|128))?';
var FLOAT_SUFFIX = '(_*f(32|64))?';
var CRYSTAL_IDENT_RE = '[a-zA-Z_]\\w*[!?=]?';
@ -184,4 +184,4 @@ module.exports = function(hljs) {
keywords: CRYSTAL_KEYWORDS,
contains: CRYSTAL_DEFAULT_CONTAINS
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var KEYWORDS = {
keyword:
// Normal keywords.
@ -181,4 +181,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,11 +1,11 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
case_insensitive: false,
lexemes: '[a-zA-Z][a-zA-Z0-9_-]*',
keywords: {
keyword: 'base-uri child-src connect-src default-src font-src form-action' +
' frame-ancestors frame-src img-src media-src object-src plugin-types' +
' report-uri sandbox script-src style-src',
' report-uri sandbox script-src style-src',
},
contains: [
{
@ -18,4 +18,4 @@ module.exports = function(hljs) {
},
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*';
var RULE = {
begin: /(?:[A-Z\_\.\-]+|--[a-zA-Z0-9_-]+)\s*:/, returnBegin: true, end: ';', endsWithParent: true,
@ -101,4 +101,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = /**
export default /**
* Known issues:
*
* - invalid hex string literals will be recognized as a double quoted strings
@ -254,4 +254,4 @@ function(hljs) {
D_ATTRIBUTE_MODE
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function (hljs) {
export default function (hljs) {
var SUBST = {
className: 'subst',
variants: [
@ -106,4 +106,4 @@ module.exports = function (hljs) {
}
]
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var KEYWORDS =
'exports register file shl array record property for mod while set ally label uses raise not ' +
'stored class safecall var interface or private static exit index inherited to else stdcall ' +
@ -65,4 +65,4 @@ module.exports = function(hljs) {
DIRECTIVE
].concat(COMMENT_MODES)
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
aliases: ['patch'],
contains: [
@ -36,4 +36,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var FILTER = {
begin: /\|[A-Za-z]+:?/,
keywords: {
@ -60,4 +60,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
aliases: ['bind', 'zone'],
keywords: {
@ -25,4 +25,4 @@ module.exports = function(hljs) {
hljs.inherit(hljs.NUMBER_MODE, {begin: /\b\d+[dhwm]?/})
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
aliases: ['docker'],
case_insensitive: true,
@ -18,4 +18,4 @@ module.exports = function(hljs) {
],
illegal: '</'
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var COMMENT = hljs.COMMENT(
/^\s*@?rem\b/, /$/,
{
@ -48,4 +48,4 @@ module.exports = function(hljs) {
COMMENT
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var QUOTED_PROPERTY = {
className: 'string',
begin: /"/, end: /"/
@ -43,4 +43,4 @@ module.exports = function(hljs) {
hljs.HASH_COMMENT_MODE
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var STRINGS = {
className: 'string',
variants: [
@ -120,4 +120,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var EXPRESSION_KEYWORDS = 'if eq ne lt lte gt gte select default math sep';
return {
aliases: ['dst'],
@ -28,4 +28,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var commentMode = hljs.COMMENT(/\(\*/, /\*\)/);
var nonTerminalMode = {
@ -29,4 +29,4 @@ module.exports = function(hljs) {
ruleBodyMode
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var ELIXIR_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9_.]*(\\!|\\?)?';
var ELIXIR_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?';
var ELIXIR_KEYWORDS =
@ -96,4 +96,4 @@ module.exports = function(hljs) {
keywords: ELIXIR_KEYWORDS,
contains: ELIXIR_DEFAULT_CONTAINS
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var COMMENT = {
variants: [
hljs.COMMENT('--', '$'),
@ -86,4 +86,4 @@ module.exports = function(hljs) {
],
illegal: /;/
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
subLanguage: 'xml',
contains: [
@ -11,4 +11,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
keywords: {
built_in:
@ -42,4 +42,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var BASIC_ATOM_RE = '[a-z\'][a-zA-Z0-9_\']*';
var FUNCTION_NAME_RE = '(' + BASIC_ATOM_RE + ':' + BASIC_ATOM_RE + '|' + BASIC_ATOM_RE + ')';
var ERLANG_RESERVED = {
@ -142,4 +142,4 @@ module.exports = function(hljs) {
{begin: /\.$/} // relevance booster
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
aliases: ['xlsx', 'xls'],
case_insensitive: true,
@ -9,7 +9,7 @@ module.exports = function(hljs) {
},
contains: [
{
/* matches a beginning equal sign found in Excel formula examples */
/* matches a beginning equal sign found in Excel formula examples */
begin: /^=/,
end: /[^=]/, returnEnd: true, illegal: /=/, /* only allow single equal sign at front of line */
relevance: 10
@ -44,4 +44,4 @@ module.exports = function(hljs) {
})
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
contains: [
{
@ -25,4 +25,4 @@ module.exports = function(hljs) {
}],
case_insensitive: true
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function (hljs) {
export default function (hljs) {
var CHAR = {
className: 'string',
@ -41,4 +41,4 @@ module.exports = function (hljs) {
hljs.C_NUMBER_MODE
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var PARAMS = {
className: 'params',
begin: '\\(', end: '\\)'
@ -67,4 +67,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var TYPEPARAM = {
begin: '<', end: '>',
contains: [
@ -55,4 +55,4 @@ module.exports = function(hljs) {
hljs.C_NUMBER_MODE
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function (hljs) {
export default function (hljs) {
var KEYWORDS = {
'keyword':
'abort acronym acronyms alias all and assign binary card diag display ' +
@ -150,4 +150,4 @@ module.exports = function (hljs) {
SYMBOLS,
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var KEYWORDS = {
keyword: 'bool break call callexe checkinterrupt clear clearg closeall cls comlog compile ' +
'continue create debug declare delete disable dlibrary dllcall do dos ed edit else ' +
@ -287,4 +287,4 @@ module.exports = function(hljs) {
STRUCT_TYPE,
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var GCODE_IDENT_RE = '[A-Z_][A-Z0-9_.]*';
var GCODE_CLOSE_RE = '\\%';
var GCODE_KEYWORDS =
@ -63,4 +63,4 @@ module.exports = function(hljs) {
GCODE_START
].concat(GCODE_CODE)
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function (hljs) {
export default function (hljs) {
return {
aliases: ['feature'],
keywords: 'Feature Background Ability Business\ Need Scenario Scenarios Scenario\ Outline Scenario\ Template Examples Given And Then But When',
@ -33,4 +33,4 @@ module.exports = function (hljs) {
hljs.QUOTE_STRING_MODE
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
keywords: {
keyword:
@ -113,4 +113,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var GML_KEYWORDS = {
keywords: 'begin end if then else while do for break continue with until ' +
'repeat exit and or xor not return mod div switch case default var ' +
@ -869,4 +869,4 @@ module.exports = function(hljs) {
hljs.C_NUMBER_MODE
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var GO_KEYWORDS = {
keyword:
'break default func interface select case map struct chan else goto package switch ' +
@ -50,4 +50,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
keywords: {
keyword:
@ -19,4 +19,4 @@ module.exports = function(hljs) {
}
]
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
case_insensitive: true,
keywords: {
@ -31,4 +31,4 @@ module.exports = function(hljs) {
]
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
keywords: {
literal : 'true false null',
@ -90,4 +90,4 @@ module.exports = function(hljs) {
],
illegal: /#|<\//
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = // TODO support filter tags like :javascript, support inline HTML
export default // TODO support filter tags like :javascript, support inline HTML
function(hljs) {
return {
case_insensitive: true,
@ -103,4 +103,4 @@ function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var BUILT_INS = {'builtin-name': 'each in with if else unless bindattr action collection debugger log outlet template unbound view yield'};
return {
aliases: ['hbs', 'html.hbs', 'html.handlebars'],
@ -30,4 +30,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var COMMENT = {
variants: [
hljs.COMMENT('--', '$'),
@ -118,4 +118,4 @@ module.exports = function(hljs) {
{begin: '->|<-'} // No markup, relevance booster
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var IDENT_RE = '[a-zA-Z_$][a-zA-Z0-9_$]*';
var IDENT_FUNC_RETURN_TYPE_RE = '([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)';
@ -108,4 +108,4 @@ module.exports = function(hljs) {
],
illegal: /<\//
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
case_insensitive: true,
lexemes: /[\w\._]+/,
@ -42,4 +42,4 @@ module.exports = function(hljs) {
hljs.C_NUMBER_MODE
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var BUILT_INS = 'action collection component concat debugger each each-in else get hash if input link-to loc log mut outlet partial query-params render textarea unbound unless with yield view';
var ATTR_ASSIGNMENT = {
@ -67,4 +67,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var VERSION = 'HTTP/[0-9\\.]+';
return {
aliases: ['https'],
@ -37,4 +37,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var keywords = {
'builtin-name':
// keywords
@ -98,4 +98,4 @@ module.exports = function(hljs) {
illegal: /\S/,
contains: [SHEBANG, LIST, STRING, HINT, HINT_COL, COMMENT, KEY, COLLECTION, NUMBER, LITERAL]
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var START_BRACKET = '\\[';
var END_BRACKET = '\\]';
return {
@ -53,4 +53,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var STRING = {
className: "string",
contains: [hljs.BACKSLASH_ESCAPE],
@ -64,4 +64,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var PARAMS = {
className: 'params',
begin: '\\(', end: '\\)'
@ -72,4 +72,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
// Определение идентификаторов
var UNDERSCORE_IDENT_RE = "[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*";
@ -3169,4 +3169,4 @@ module.exports = function(hljs) {
COMMENTS,
],
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var JAVA_IDENT_RE = '[\u00C0-\u02B8a-zA-Z_$][\u00C0-\u02B8a-zA-Z_$0-9]*';
var GENERIC_IDENT_RE = JAVA_IDENT_RE + '(<' + JAVA_IDENT_RE + '(\\s*,\\s*' + JAVA_IDENT_RE + ')*>)?';
var KEYWORDS =
@ -104,4 +104,4 @@ module.exports = function(hljs) {
}
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';
var KEYWORDS = {
keyword:
@ -198,4 +198,4 @@ module.exports = function(hljs) {
],
illegal: /#(?!!)/
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function (hljs) {
export default function (hljs) {
var PARAM = {
begin: /[\w-]+ *=/, returnBegin: true,
relevance: 0,
@ -43,4 +43,4 @@ module.exports = function (hljs) {
PARAMSBLOCK
]
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var LITERALS = {literal: 'true false null'};
var TYPES = [
hljs.QUOTE_STRING_MODE,
@ -33,4 +33,4 @@ module.exports = function(hljs) {
keywords: LITERALS,
illegal: '\\S'
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
contains: [
{
@ -20,4 +20,4 @@ module.exports = function(hljs) {
}
]
}
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
// Since there are numerous special names in Julia, it is too much trouble
// to maintain them by hand. Hence these names (i.e. keywords, literals and
// built-ins) are automatically generated from Julia v0.6 itself through
@ -158,4 +158,4 @@ module.exports = function(hljs) {
INTERPOLATION.contains = DEFAULT.contains;
return DEFAULT;
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var KEYWORDS = {
keyword:
'abstract as val var vararg get set class object open private protected public noinline ' +
@ -212,4 +212,4 @@ module.exports = function(hljs) {
KOTLIN_NUMBER_MODE
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
var LASSO_IDENT_RE = '[a-zA-Z_][\\w.]*';
var LASSO_ANGLE_RE = '<\\?(lasso(script)?|=)';
var LASSO_CLOSE_RE = '\\]|\\?>';
@ -159,4 +159,4 @@ module.exports = function(hljs) {
}
].concat(LASSO_CODE)
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function(hljs) {
export default function(hljs) {
return {
contains: [
{
@ -19,4 +19,4 @@ module.exports = function(hljs) {
hljs.HASH_COMMENT_MODE
]
};
};
};

View File

@ -1,4 +1,4 @@
module.exports = function (hljs) {
export default function (hljs) {
return {
contains: [
{
@ -36,4 +36,4 @@ module.exports = function (hljs) {
}
]
};
};
};

Some files were not shown because too many files have changed in this diff Show More