repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-interactive/pages/interactive/partial-node/data.js
packages/examples-wx/package-interactive/pages/interactive/partial-node/data.js
export default { nodes: [ { id: "node1", x: 100, y: 150, label: "node1", size: 100, type: "customNode", }, { id: "node2", x: 300, y: 150, label: "node2", size: 100, type: "customNode", }, ], edges: [ { source: "node1...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-interactive/pages/interactive/partial-node/index.js
packages/examples-wx/package-interactive/pages/interactive/partial-node/index.js
import F6 from "@antv/f6-wx"; import data from "./data"; /** * partial-node */ Page({ canvas: null, ctx: null, renderer: "", // mini、mini-native等,F6需要,标记环境 isCanvasInit: false, // canvas是否准备好了 graph: null, data: { width: 375, height: 600, pixelRatio: 1, forceMini: false, }, onLoad...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-animation/pages/animation/change-position-default/data.js
packages/examples-wx/package-animation/pages/animation/change-position-default/data.js
export default { nodes: [ { id: "a", x: 200, y: 100, style: { fill: "#5B8FF9", stroke: null }, }, { id: "b", x: 100, y: 200, style: { fill: "#5AD8A6", stroke: null }, }, { id: "c", x: 300, y: 200, style: { fill: "#5D7092", str...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-animation/pages/animation/change-position-default/index.js
packages/examples-wx/package-animation/pages/animation/change-position-default/index.js
import F6 from "@antv/f6-wx"; import data from "./data"; /** * changePosition#default */ Page({ canvas: null, ctx: null, renderer: "", // mini、mini-native等,F6需要,标记环境 isCanvasInit: false, // canvas是否准备好了 graph: null, data: { width: 375, height: 600, pixelRatio: 1, forceMini: false, },...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-animation/pages/animation/point-in-line/data.js
packages/examples-wx/package-animation/pages/animation/point-in-line/data.js
export default { nodes: [ { id: "node1", x: 100, y: 100, label: "Node 1", labelCfg: { position: "top", }, }, { id: "node2", x: 300, y: 200, color: "#40a9ff", label: "Node 2", labelCfg: { position: "left", offse...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-animation/pages/animation/point-in-line/index.js
packages/examples-wx/package-animation/pages/animation/point-in-line/index.js
import F6 from "@antv/f6-wx"; import data from "./data"; /** * point-in-line */ F6.registerEdge( "circle-running", { afterDraw(cfg, group) { // get the first shape in the group, it is the edge's path here= const shape = group.get("children")[0]; // the start position of the edge's path ...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-animation/pages/animation/edge-line-growth/data.js
packages/examples-wx/package-animation/pages/animation/edge-line-growth/data.js
export default { nodes: [ { id: "node1", x: 100, y: 100, label: "Node 1", labelCfg: { position: "top", }, }, { id: "node2", x: 300, y: 200, color: "#40a9ff", label: "Node 2", labelCfg: { position: "left", offse...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-animation/pages/animation/edge-line-growth/index.js
packages/examples-wx/package-animation/pages/animation/edge-line-growth/index.js
import F6 from "@antv/f6-wx"; import data from "./data"; /** * edge#lineGrowth */ F6.registerEdge( "line-growth", { afterDraw(_, group) { const shape = group.get("children")[0]; const length = shape.getTotalLength(); console.log(_); shape.animate( (ratio) => { // t...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-animation/pages/animation/node-node/data.js
packages/examples-wx/package-animation/pages/animation/node-node/data.js
export default { nodes: [ { id: "node1", x: 100, y: 100, type: "circle-animate", size: 20, label: "Scale Animation", labelCfg: { position: "top", }, }, { id: "node2", x: 300, y: 200, type: "background-animate", color: "#...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-animation/pages/animation/node-node/index.js
packages/examples-wx/package-animation/pages/animation/node-node/index.js
import F6 from "@antv/f6-wx"; import data from "./data"; /** * node#node */ const { Util } = F6; // // Scale Animation F6.registerNode( "circle-animate", { afterDraw(cfg, group) { const shape = group.get("children")[0]; shape.animate( (ratio) => { const diff = ratio <= 0.5 ? ...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-animation/pages/animation/edge-edge/data.js
packages/examples-wx/package-animation/pages/animation/edge-edge/data.js
export default { nodes: [ { id: "node1", x: 100, y: 100, label: "Node 1", labelCfg: { position: "top", }, }, { id: "node2", x: 300, y: 200, color: "#40a9ff", label: "Node 2", labelCfg: { position: "left", offse...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-animation/pages/animation/edge-edge/index.js
packages/examples-wx/package-animation/pages/animation/edge-edge/index.js
import F6 from "@antv/f6-wx"; import data from "./data"; /** * edge#edge */ const lineDash = [4, 2, 1, 2]; F6.registerEdge( "line-dash", { afterDraw(cfg, group) { // get the first shape in the group, it is the edge's path here= const shape = group.get("children")[0]; let index = 0; /...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-animation/pages/animation/state-change-hover/data.js
packages/examples-wx/package-animation/pages/animation/state-change-hover/data.js
const nodes = []; const edges = []; // Center node const centerNode = { id: "center", x: 500, y: 300, type: "center-node", size: 20, }; nodes.push(centerNode); // Add 4 nodes on the left for (let i = 0; i < 4; i++) { const id = `left${i}`; nodes.push({ id, x: 250, y: (i + 1) * 100 + 50, t...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-animation/pages/animation/state-change-hover/index.js
packages/examples-wx/package-animation/pages/animation/state-change-hover/index.js
import F6 from "@antv/f6-wx"; import { nodes, edges } from "./data"; /** * state-change-hover */ F6.registerNode( "leaf-node", { afterDraw(cfg, group) { group.addShape("circle", { attrs: { x: 0, y: 0, r: 5, fill: cfg.color || "#5B8FF9", }, ...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
antvis/F6
https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/examples-wx/package-animation/pages/animation/custom-animate-position/index.js
packages/examples-wx/package-animation/pages/animation/custom-animate-position/index.js
import F6 from "@antv/f6-wx"; /** * customAnimate#position */ const r = 50; const radius = Math.PI; Page({ canvas: null, ctx: null, renderer: "", // mini、mini-native等,F6需要,标记环境 isCanvasInit: false, // canvas是否准备好了 graph: null, data: { width: 375, height: 600, pixelRatio: 1, forceMini: ...
javascript
MIT
f632a34ab2bba06bc735c234263db238cad549cb
2026-01-05T03:38:06.879725Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/mock.js
mock.js
import './apps/markdown/mock.js'; import './apps/mk-app-portal/apps/mk-app-portal-about/mock.js'; import './apps/mk-app-portal/apps/mk-app-portal-app1/mock.js'; import './apps/mk-app-portal/apps/mk-app-portal-app2/mock.js'; import './apps/mk-app-portal/mock.js';
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/index.js
index.js
import { config, start, componentFactory } from 'mk-meta-engine' import * as mkComponents from 'mk-component' import myConfig from './config' import markdown from './apps/markdown/index.js' import mk_app_portal_about from './apps/mk-app-portal/apps/mk-app-portal-about/index.js' import mk_app_portal_app1 from './apps/...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/config.js
config.js
import { Toast, Notification, Modal } from 'mk-component' import { componentFactory } from 'mk-meta-engine' import { fetch,history } from 'mk-utils' import Markdown from './components/markdown' import './mock.js' //脱离后台测试,启用mock,否则这行注释 import mdAbout from './docs/about.md' import mdHelloWorld from './docs/helloWorld.m...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/webpack.config.js
webpack.config.js
var webpack = require("webpack"); var path = require("path"); var HtmlWebpackPlugin = require('html-webpack-plugin'); var env = process.env.NODE_ENV var compress = process.env.COMPRESS var plugins = [] const marked = require("marked") const renderer = new marked.Renderer() //node环境变量,生产环境:production,开发环境:development...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/reducer.js
apps/mk-app-portal/reducer.js
import { Map, List, fromJS } from 'immutable' import { reducer as MetaReducer } from 'mk-meta-engine' import config from './config' import { getInitState } from './data' import { history } from 'mk-utils' class reducer { constructor(option) { this.metaReducer = option.metaReducer this.config = conf...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/mock.js
apps/mk-app-portal/mock.js
/** * mock.js 提供应用截获ajax请求,为脱离后台测试使用 * 模拟查询更改内存中mockData,并返回数据 */ import { fetch } from 'mk-utils' const mockData = fetch.mockData function initMockData() { if (!mockData.users) { mockData.users = [{ id: 1, mobile: 13334445556, password: '1', }] } } ...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/data.js
apps/mk-app-portal/data.js
export function getMeta() { return { name: 'root', component: 'Layout', className: 'mk-app-portal', children: [{ name: 'header', component: 'Layout', className: 'mk-app-portal-header', children: [{ name: 'left', component: 'Layout', className: "{{'mk-app-portal-header-left mk-app-portal...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/index.js
apps/mk-app-portal/index.js
import config from './config' import * as data from './data' export default { name: "mk-app-portal", version: "1.0.45", description: "mk-app-portal", meta: data.getMeta(), components: [], config: config, load: (cb) => { require.ensure([], require => { cb(require('./component'), require('./action'), require...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/component.js
apps/mk-app-portal/component.js
import React, { Component } from 'react' import { wrapper } from 'mk-meta-engine' import appInfo from './index' @wrapper(appInfo) export default class C extends Component { render() { return this.props.monkeyKing({ ...this.props, path: 'root' }) } }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/config.js
apps/mk-app-portal/config.js
import logo from './img/logo.png' import webapi from './webapi' var _options = { webapi, goAfterLogout: { appName: 'mk-app-login', appParams: {} }, menu: [{ key: '1', name: 'about', appName: 'mk-app-portal-about', icon: 'question-circle', isDefault: true }, { key: '2', name: 'apps', icon: 'app...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/webapi.js
apps/mk-app-portal/webapi.js
/** * webapi.js 封装app所需的所有web请求 * 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app */ import { fetch } from 'mk-utils' export default { portal: { init: (option) => fetch.post('/v1/portal/init', option), }, user: { logout: () => fetch.post('/v1/user/logout') } }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/action.js
apps/mk-app-portal/action.js
import React from 'react' import { Menu } from 'mk-component' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import { fromJS } from 'immutable' import { history } from 'mk-utils' import config from './config' class action { constructor(option) { this.metaAction = option.metaAction ...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app1/reducer.js
apps/mk-app-portal/apps/mk-app-portal-app1/reducer.js
import { Map } from 'immutable' import { reducer as MetaReducer } from 'mk-meta-engine' import config from './config' import { getInitState } from './data' class reducer { constructor(option) { this.metaReducer = option.metaReducer this.config = config.current } init = (state, option) => {...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app1/mock.js
apps/mk-app-portal/apps/mk-app-portal-app1/mock.js
/** * mock.js 提供应用截获ajax请求,为脱离后台测试使用 * 模拟查询更改内存中mockData,并返回数据 */ import { fetch } from 'mk-utils' const mockData = fetch.mockData /* fetch.mock('/v1/person/query', (option) => { return {resulet:true, value:[]} }) */
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app1/data.js
apps/mk-app-portal/apps/mk-app-portal-app1/data.js
export function getMeta() { return { name: 'root', component: 'Layout', className: 'mk-app-portal-app1', children: 'app1' } } export function getInitState() { return { data: {} } }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app1/index.js
apps/mk-app-portal/apps/mk-app-portal-app1/index.js
import config from './config' import * as data from './data' export default { name: "mk-app-portal-app1", version: "1.0.0", description: "mk-app-portal-app1", meta: data.getMeta(), components: [], config: config, load: (cb) => { require.ensure([], require => { cb(require('./component'), require('./action')...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app1/component.js
apps/mk-app-portal/apps/mk-app-portal-app1/component.js
import React, { Component } from 'react' import { wrapper } from 'mk-meta-engine' import appInfo from './index' @wrapper(appInfo) export default class C extends Component { render() { return this.props.monkeyKing({ ...this.props, path: 'root' }) } }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app1/config.js
apps/mk-app-portal/apps/mk-app-portal-app1/config.js
import webapi from './webapi' var _options = { webapi } function config(options) { if (options) { Object.assign(_options, options) } } config.current = _options export default config
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app1/webapi.js
apps/mk-app-portal/apps/mk-app-portal-app1/webapi.js
/** * webapi.js 封装app所需的所有web请求 * 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app */ import { fetch } from 'mk-utils' export default { /* person: { query: (option) => fetch.post('/v1/person/query', option) }*/ }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app1/action.js
apps/mk-app-portal/apps/mk-app-portal-app1/action.js
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' class action { constructor(option) { this.metaAction = option.metaAction this.config = config.current } onInit = ({ component, injections }) => { this.component ...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app2/reducer.js
apps/mk-app-portal/apps/mk-app-portal-app2/reducer.js
import { Map } from 'immutable' import { reducer as MetaReducer } from 'mk-meta-engine' import config from './config' import { getInitState } from './data' class reducer { constructor(option) { this.metaReducer = option.metaReducer this.config = config.current } init = (state, option) => {...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app2/mock.js
apps/mk-app-portal/apps/mk-app-portal-app2/mock.js
/** * mock.js 提供应用截获ajax请求,为脱离后台测试使用 * 模拟查询更改内存中mockData,并返回数据 */ import { fetch } from 'mk-utils' const mockData = fetch.mockData /* fetch.mock('/v1/person/query', (option) => { return {resulet:true, value:[]} }) */
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app2/data.js
apps/mk-app-portal/apps/mk-app-portal-app2/data.js
export function getMeta() { return { name: 'root', component: 'Layout', className: 'mk-app-portal-app2', children: 'app2' } } export function getInitState() { return { data: {} } }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app2/index.js
apps/mk-app-portal/apps/mk-app-portal-app2/index.js
import config from './config' import * as data from './data' export default { name: "mk-app-portal-app2", version: "1.0.0", description: "mk-app-portal-app2", meta: data.getMeta(), components: [], config: config, load: (cb) => { require.ensure([], require => { cb(require('./component'), require('./action')...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app2/component.js
apps/mk-app-portal/apps/mk-app-portal-app2/component.js
import React, { Component } from 'react' import { wrapper } from 'mk-meta-engine' import appInfo from './index' @wrapper(appInfo) export default class C extends Component { render() { return this.props.monkeyKing({ ...this.props, path: 'root' }) } }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app2/config.js
apps/mk-app-portal/apps/mk-app-portal-app2/config.js
import webapi from './webapi' var _options = { webapi } function config(options) { if (options) { Object.assign(_options, options) } } config.current = _options export default config
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app2/webapi.js
apps/mk-app-portal/apps/mk-app-portal-app2/webapi.js
/** * webapi.js 封装app所需的所有web请求 * 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app */ import { fetch } from 'mk-utils' export default { /* person: { query: (option) => fetch.post('/v1/person/query', option) }*/ }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-app2/action.js
apps/mk-app-portal/apps/mk-app-portal-app2/action.js
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' class action { constructor(option) { this.metaAction = option.metaAction this.config = config.current } onInit = ({ component, injections }) => { this.component ...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-about/reducer.js
apps/mk-app-portal/apps/mk-app-portal-about/reducer.js
import { Map } from 'immutable' import { reducer as MetaReducer } from 'mk-meta-engine' import config from './config' import { getInitState } from './data' class reducer { constructor(option) { this.metaReducer = option.metaReducer this.config = config.current } init = (state, option) => {...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-about/mock.js
apps/mk-app-portal/apps/mk-app-portal-about/mock.js
/** * mock.js 提供应用截获ajax请求,为脱离后台测试使用 * 模拟查询更改内存中mockData,并返回数据 */ import { fetch } from 'mk-utils' const mockData = fetch.mockData /* fetch.mock('/v1/person/query', (option) => { return {resulet:true, value:[]} }) */
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-about/data.js
apps/mk-app-portal/apps/mk-app-portal-about/data.js
export function getMeta() { return { name: 'root', component: 'Layout', className: 'mk-app-portal-about', children: 'about' } } export function getInitState() { return { data: {} } }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-about/index.js
apps/mk-app-portal/apps/mk-app-portal-about/index.js
import config from './config' import * as data from './data' export default { name: "mk-app-portal-about", version: "1.0.0", description: "mk-app-portal-about", meta: data.getMeta(), components: [], config: config, load: (cb) => { require.ensure([], require => { cb(require('./component'), require('./action...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-about/component.js
apps/mk-app-portal/apps/mk-app-portal-about/component.js
import React, { Component } from 'react' import { wrapper } from 'mk-meta-engine' import appInfo from './index' @wrapper(appInfo) export default class C extends Component { render() { return this.props.monkeyKing({ ...this.props, path: 'root' }) } }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-about/config.js
apps/mk-app-portal/apps/mk-app-portal-about/config.js
import webapi from './webapi' var _options = { webapi } function config(options) { if (options) { Object.assign(_options, options) } } config.current = _options export default config
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-about/webapi.js
apps/mk-app-portal/apps/mk-app-portal-about/webapi.js
/** * webapi.js 封装app所需的所有web请求 * 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app */ import { fetch } from 'mk-utils' export default { /* person: { query: (option) => fetch.post('/v1/person/query', option) }*/ }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/mk-app-portal/apps/mk-app-portal-about/action.js
apps/mk-app-portal/apps/mk-app-portal-about/action.js
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' class action { constructor(option) { this.metaAction = option.metaAction this.config = config.current } onInit = ({ component, injections }) => { this.component ...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/markdown/reducer.js
apps/markdown/reducer.js
import { Map } from 'immutable' import { reducer as MetaReducer } from 'mk-meta-engine' import config from './config' class reducer { constructor(option) { this.metaReducer = option.metaReducer this.config = config.current } init = (state, option) => { const data = { data: {} } ...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/markdown/mock.js
apps/markdown/mock.js
/** * mock.js 提供应用截获ajax请求,为脱离后台测试使用 * 模拟查询更改内存中mockData,并返回数据 */ import { fetch } from 'mk-utils' const mockData = fetch.mockData /* fetch.mock('/v1/person/query', (option) => { return {result:true, value:{}} }) */
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/markdown/data.js
apps/markdown/data.js
export function getMeta() { return { name: 'root', component: 'Markdown', content:'{{$getContent()}}' } }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/markdown/index.js
apps/markdown/index.js
import config from './config' import * as data from './data' export default { name: "markdown", version: "1.0.0", description: "markdown", meta: data.getMeta(), components: [], config: config, load: (cb) => { require.ensure([], require => { cb(require('./component'), require('./action'), require('./reducer...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/markdown/component.js
apps/markdown/component.js
import React, { Component } from 'react' import { wrapper } from 'mk-meta-engine' import appInfo from './index' @wrapper(appInfo) export default class C extends Component { render() { return this.props.monkeyKing({ ...this.props, path: 'root' }) } }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/markdown/config.js
apps/markdown/config.js
import webapi from './webapi' var _options = { webapi } function config(options) { if (options) { Object.assign(_options, options) } } config.current = _options export default config
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/markdown/webapi.js
apps/markdown/webapi.js
/** * webapi.js 封装app所需的所有web请求 * 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app */ import { fetch } from 'mk-utils' export default { /* person: { query: (option) => fetch.post('/v1/person/query', option) }*/ }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/apps/markdown/action.js
apps/markdown/action.js
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' class action { constructor(option) { this.metaAction = option.metaAction this.config = config.current } onInit = ({ component, injections }) => { this.component ...
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
ziaochina/mk-docs
https://github.com/ziaochina/mk-docs/blob/893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5/components/markdown/index.js
components/markdown/index.js
import React from 'react' export default function Markdown(props) { return ( <div className='markdown-body' dangerouslySetInnerHTML={{ __html: props.content }}> </div> ) }
javascript
MIT
893c6ef2c78ef65ffae5f4f5dd3e5e8714acdde5
2026-01-05T03:38:46.431782Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/prepare-release.js
prepare-release.js
/* eslint-disable no-console */ import { exec } from 'node:child_process'; console.log('> git status --porcelain'); exec('git status --porcelain', (err, stdout, stderr) => { if (err) { console.error(`Error executing git status: ${stderr}`); return; } if (stdout) { console.log( ...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/.mcdev-validations.js
.mcdev-validations.js
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/eslint.config.js
eslint.config.js
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; import eslintPluginUnicorn from 'eslint-plugin-unicorn'; import globals from 'globals'; import mochaPlugin from 'eslint-plugin-mocha'; import jsdoc from 'eslint-plugin-jsdoc'; import js from '@eslint/js'; export default [ { i...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/boilerplate/files/eslint.config.js
boilerplate/files/eslint.config.js
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; import eslintPluginUnicorn from 'eslint-plugin-unicorn'; import globals from 'globals'; import jsdoc from 'eslint-plugin-jsdoc'; import js from '@eslint/js'; import sfmcSsjs from 'eslint-config-ssjs'; export default [ { ignor...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.event.test.js
test/type.event.test.js
import * as chai from 'chai'; const assert = chai.assert; const expect = chai.expect; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: event', () => { beforeEach(() => ...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.attributeGroup.test.js
test/type.attributeGroup.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: attributeGroup', () => { beforeEach(() => { testUtils...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/general.test.js
test/general.test.js
import * as chai from 'chai'; const assert = chai.assert; const expect = chai.expect; import chaiFiles from 'chai-files'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('GENERAL', () => { beforeEach(() => { testUtils.mockSetup(); }); ...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
true
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.query.test.js
test/type.query.test.js
import * as chai from 'chai'; const assert = chai.assert; const expect = chai.expect; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: query', () => { beforeEach(() => ...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
true
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.asset.test.js
test/type.asset.test.js
import File from '../lib/util/file.js'; import * as chai from 'chai'; const assert = chai.assert; const expect = chai.expect; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); /** * gets ...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
true
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.triggeredSendSummary.test.js
test/type.triggeredSendSummary.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: triggeredSendSummary', () => { beforeEach(() => { tes...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.dataExtension.test.js
test/type.dataExtension.test.js
import * as chai from 'chai'; const assert = chai.assert; const expect = chai.expect; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: dataExtension', () => { beforeEac...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.user.test.js
test/type.user.test.js
import * as chai from 'chai'; const assert = chai.assert; const expect = chai.expect; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); const file = chaiFiles.file; import File from '../lib/...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.transactionalPush.test.js
test/type.transactionalPush.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: transactionalPush', () => { beforeEach(() => { testUt...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.domainVerification.test.js
test/type.domainVerification.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: domainVerification', () => { beforeEach(() => { testU...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.journey.test.js
test/type.journey.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: journey', () => { beforeEach(() => { testUtils.mockSe...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
true
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.deliveryProfile.test.js
test/type.deliveryProfile.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: deliveryProfile', () => { beforeEach(() => { testUtil...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.emailSend.test.js
test/type.emailSend.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: emailSend', () => { beforeEach(() => { testUtils.mock...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.attributeSet.test.js
test/type.attributeSet.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: attributeSet', () => { beforeEach(() => { testUtils.m...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.importFile.test.js
test/type.importFile.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: importFile', () => { beforeEach(() => { testUtils.moc...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.script.test.js
test/type.script.test.js
import * as chai from 'chai'; const assert = chai.assert; const expect = chai.expect; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: script', () => { beforeEach(() =>...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.fileTransfer.test.js
test/type.fileTransfer.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: fileTransfer', () => { beforeEach(() => { testUtils.m...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/resourceFactory.js
test/resourceFactory.js
import fs from 'fs-extra'; import path from 'node:path'; import { XMLParser } from 'fast-xml-parser'; import { Util } from '../lib/util/util.js'; import { fileURLToPath } from 'node:url'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const projectRootHelper = __dirname.split(path.sep); projectRootHel...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.folder.test.js
test/type.folder.test.js
import * as chai from 'chai'; const assert = chai.assert; // const expect = chai.expect; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: folder', () => { beforeEach(()...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.triggeredSend.test.js
test/type.triggeredSend.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: triggeredSend', () => { beforeEach(() => { testUtils....
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.senderProfile.test.js
test/type.senderProfile.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: senderProfile', () => { beforeEach(() => { testUtils....
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.verification.test.js
test/type.verification.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: verification', () => { beforeEach(() => { testUtils.m...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.transactionalSMS.test.js
test/type.transactionalSMS.test.js
import * as chai from 'chai'; const assert = chai.assert; const expect = chai.expect; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: transactionalSMS', () => { before...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.mobileMessage.test.js
test/type.mobileMessage.test.js
import * as chai from 'chai'; const assert = chai.assert; const expect = chai.expect; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: mobileMessage', () => { beforeEac...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.dataExtensionField.test.js
test/type.dataExtensionField.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: dataExtensionField', () => { beforeEach(() => { testUtils.mockSetup(); }); afterEach((...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.transactionalEmail.test.js
test/type.transactionalEmail.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: transactionalEmail', () => { beforeEach(() => { testU...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.mobileKeyword.test.js
test/type.mobileKeyword.test.js
import * as chai from 'chai'; const assert = chai.assert; const expect = chai.expect; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: mobileKeyword', () => { beforeEac...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.sendClassification.test.js
test/type.sendClassification.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: sendClassification', () => { beforeEach(() => { testU...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.automation.test.js
test/type.automation.test.js
import * as chai from 'chai'; const assert = chai.assert; const expect = chai.expect; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: automation', () => { beforeEach((...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
true
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/type.dataExtract.test.js
test/type.dataExtract.test.js
import * as chai from 'chai'; const assert = chai.assert; import chaiFiles from 'chai-files'; import cache from '../lib/util/cache.js'; import * as testUtils from './utils.js'; import handler from '../lib/index.js'; chai.use(chaiFiles); describe('type: dataExtract', () => { beforeEach(() => { testUtils.mo...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/utils.js
test/utils.js
import File from '../lib/util/file.js'; import path from 'node:path'; import MockAdapter from 'axios-mock-adapter'; import { axiosInstance } from '../node_modules/sfmc-sdk/lib/util.js'; import handler from '../lib/index.js'; import auth from '../lib/util/auth.js'; import { Util } from '../lib/util/util.js'; import cach...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/mockRoot/.mcdev-validations.js
test/mockRoot/.mcdev-validations.js
/* eslint-disable no-unused-vars */ 'use strict'; /** * @typedef {Object.<string, any>} MetadataTypeItem generic metadata item * * @typedef {object} CodeExtract * @property {string[]} subFolder mostly set to null, otherwise subfolders path split into elements * @property {string} fileName name of file w/o extensio...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/test/resources/9999999/asset/test_coderesource_js-retrieve-expected.js
test/resources/9999999/asset/test_coderesource_js-retrieve-expected.js
/* insert code here */
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/types/mcdev.d.js
types/mcdev.d.js
/** * @typedef {object} BuObject * @property {string} [clientId] installed package client id * @property {string} [clientSecret] installed package client secret * @property {string} [tenant] subdomain part of Authentication Base Uri * @property {number} [eid] Enterprise ID = MID of the parent BU * @property {numb...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
true
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/lib/Deployer.js
lib/Deployer.js
'use strict'; import MetadataTypeInfo from './MetadataTypeInfo.js'; import path from 'node:path'; import Cli from './util/cli.js'; import { Util } from './util/util.js'; import File from './util/file.js'; import config from './util/config.js'; import cache from './util/cache.js'; import auth from './util/auth.js'; /*...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false
Accenture/sfmc-devtools
https://github.com/Accenture/sfmc-devtools/blob/89d04293ea3d14be4ba36f3cd5571b78cf83d9c1/lib/Builder.js
lib/Builder.js
'use strict'; import { Util } from './util/util.js'; import File from './util/file.js'; import config from './util/config.js'; import Cli from './util/cli.js'; import auth from './util/auth.js'; import MetadataTypeInfo from './MetadataTypeInfo.js'; /** * @typedef {import('../types/mcdev.d.js').BuObject} BuObject * ...
javascript
MIT
89d04293ea3d14be4ba36f3cd5571b78cf83d9c1
2026-01-05T03:38:46.711727Z
false