https://gist.github.com/scil/593e3b7f569001f62deda2d8ef9f316e
Run 'mysqld --standalone' or 'mysqld --console' to start the Database,
mysqladmin -u root -pjinzhao245 shutdown
/* 用 Promise.all 运行一组 promise。考虑到这组 promise 非常庞大,所以分成 n 个一组, | |
如果第一组运行无错误,则运行第二组;第二组无错误,再运行第三组。依此类推。 | |
*/ | |
async function runPromisesInBatches(promises, batchSize = 50,startIndex = 0) { | |
let results = []; | |
let errorIndex=null; | |
while (startIndex < promises.length) { | |
const batch = promises.slice(startIndex, startIndex + batchSize); |
// https://github.com/maverick-js/signals | |
var Signals = (function (exports) { | |
'use strict'; | |
const SCOPE = Symbol(0); | |
let scheduledEffects = false, runningEffects = false, currentScope = null, currentObserver = null, currentObservers = null, currentObserversIndex = 0, effects = [], defaultContext = {}; | |
const NOOP = () => { | |
}, STATE_CLEAN = 0, STATE_CHECK = 1, STATE_DIRTY = 2, STATE_DISPOSED = 3; |
window.pluginLocalStorage={} | |
!(function (_exports, _state) { | |
"use strict"; | |
Object.defineProperty(_exports, "__esModule", { | |
value: true | |
}); | |
_exports.ObservablePersistSessionStorage = | |
_exports.ObservablePersistLocalStorage = void 0; | |
const MetadataSuffix = "__m"; |
// 原文链接:https://blog.csdn.net/u011982687/article/details/79743872 | |
var wAlert = window.alert; | |
window.alert = function (message) { | |
try { | |
var iframe = document.createElement("IFRAME"); | |
iframe.style.display = "none"; | |
iframe.setAttribute("src", 'data:text/plain,'); | |
document.documentElement.appendChild(iframe); | |
var alertFrame = window.frames[0]; |
export default { | |
publicKey:'', | |
dir: 'E:/Work/King/repos/iking-minishop/shopxo/shopxo-php-ik/public', | |
files:[ | |
'./static/upload/images/goods/2019/01/15/1547540603500383.jpg', | |
'./static/upload/images/goods/2019/01/14/1547455890402147.jpg', | |
'./static/upload/images/goods/2019/01/14/1547452714324599.jpg', |
import React from 'react' | |
import {TreeNode, createBehavior, createResource} from '@designable/core' | |
import {createVoidFieldSchema} from '@designable/formily-antd/lib/components/Field' | |
// import { AllSchemas } from '@designable/formily-antd/lib/schemas' | |
// import { AllLocales } from '@designable/formily-antd/lib/locales' | |
import { | |
useTreeNode, | |
// @ts-ignore | |
useNodeIdProps, |
/* | |
copy from: from: https://v2.formilyjs.org/zh-CN/guide/form-builder#%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B | |
just change | |
from './widgets' | |
to | |
from '@designable/formily-antd/playground/widgets' | |
change | |
from './service' |
<main class=""> | |
<user-article-list-tabulator :pageowner="pageowner" :searcher="searcher"></user-article-list-tabulator> | |
</main> |
https://gist.github.com/scil/593e3b7f569001f62deda2d8ef9f316e
Run 'mysqld --standalone' or 'mysqld --console' to start the Database,
mysqladmin -u root -pjinzhao245 shutdown
/** | |
* feature: function `f` only execute once. | |
* @param function `f` | |
* @param string `id` for debug | |
*/ | |
function addOnload(f, id) { | |
// to prevent f excute twice, as f is registered to both onload and 'pjax:ready' | |
f.n = 1; | |