MCPcopy Index your code
hub / github.com/docsifyjs/docsify / getSharedConfig

Function getSharedConfig

test/e2e/vue.test.js:11–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10test.describe('Vue.js Compatibility', () => {
11 function getSharedConfig() {
12 const config = {
13 config: {
14 vueComponents: {
15 'button-counter': {
16 template: `
17 <button @click="counter++">{{ counter }}</button>
18 `,
19 data: function () {
20 return {
21 counter: 0,
22 };
23 },
24 },
25 },
26 vueGlobalOptions: {
27 data: function () {
28 return {
29 counter: 0,
30 msg: 'vueglobaloptions',
31 };
32 },
33 },
34 vueMounts: {
35 '#vuemounts': {
36 data: function () {
37 return {
38 counter: 0,
39 msg: 'vuemounts',
40 };
41 },
42 },
43 },
44 },
45 markdown: {
46 homepage: stripIndent`
47 <div id="vuefor"><span v-for="i in 5">{{ i }}</span></div>
48
49 <button-counter id="vuecomponent">---</button-counter>
50
51 <div id="vueglobaloptions">
52 <p v-text="msg">---</p>
53 <button @click="counter += 1">+</button>
54 <span>{{ counter }}<span>
55 </div>
56
57 <div id="vuemounts">
58 <p v-text="msg">---</p>
59 <button @click="counter += 1">+</button>
60 <span>{{ counter }}<span>
61 </div>
62
63 <div id="vuescript">
64 <p v-text="msg">---</p>
65 <button @click="counter += 1">+</button>
66 <span>{{ counter }}<span>
67 </div>
68

Callers 1

vue.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…