@codady/coax 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,7 @@
9
9
  </head>
10
10
 
11
11
  <body>
12
+ <h1>Coax - 使用append方法在末尾追加新代码高亮渲染</h1>
12
13
  <ax-code streaming tools="copy" indexed lang="js">
13
14
  <code>
14
15
  /**
package/examples/css.html CHANGED
@@ -9,6 +9,7 @@
9
9
  </head>
10
10
 
11
11
  <body>
12
+ <h1>Coax - 渲染css代码</h1>
12
13
  <ax-code lang="css">
13
14
  <code>
14
15
  /* Main Layout Style */
@@ -22,10 +22,11 @@
22
22
  </head>
23
23
 
24
24
  <body>
25
+ <h1>Coax - deepseek 真实流式输出代码</h1>
25
26
  <ax-code lang="js" indexed></ax-code>
26
27
 
27
28
  <button>随机展示javascript</button>
28
- <script src="../node_modules/@codady/utils/dist/utils.umd.js" type='text/javascript'></script>
29
+ <script src="https://unpkg.com/@codady/utils/dist/utils.umd.js" type='text/javascript'></script>
29
30
  <script src="../dist/coax.umd.js" type='text/javascript'></script>
30
31
  <script type='text/javascript'>
31
32
 
@@ -9,6 +9,7 @@
9
9
  </head>
10
10
 
11
11
  <body>
12
+ <h1>Coax - 渲染html代码</h1>
12
13
  <ax-code lang="html" indexed>
13
14
  <code>
14
15
  &lt;!---->
package/examples/js.html CHANGED
@@ -9,6 +9,7 @@
9
9
  </head>
10
10
 
11
11
  <body>
12
+ <h1>Coax - 渲染javascript代码</h1>
12
13
  <ax-code lang="js">
13
14
  <code>
14
15
  /**
package/examples/md.html CHANGED
@@ -9,6 +9,7 @@
9
9
  </head>
10
10
 
11
11
  <body>
12
+ <h1>Coax - 渲染markdown格式代码</h1>
12
13
  <ax-code lang="md">
13
14
  <code>
14
15
  # 这是一个一级标题
@@ -9,6 +9,7 @@
9
9
  </head>
10
10
 
11
11
  <body>
12
+ <h1>Coax - 模块化定制高亮主题</h1>
12
13
  <ax-code lang="css">
13
14
  <code>
14
15
  /* Main Layout Style */
@@ -35,7 +36,7 @@
35
36
 
36
37
  <script type='module'>
37
38
 
38
- const {CoaxElem,css} = await import('../dist/coax.esm.js');
39
+ const {Coax,css} = await import('../dist/coax.esm.js');
39
40
 
40
41
  css.themeStyles = `
41
42
  :host {
@@ -56,7 +57,7 @@
56
57
  }
57
58
  }
58
59
  `;
59
- customElements.define(`ax-code`, CoaxElem);
60
+ customElements.define(`ax-code`, Coax);
60
61
 
61
62
 
62
63
  </script>
@@ -9,6 +9,7 @@
9
9
  </head>
10
10
 
11
11
  <body>
12
+ <h1>Coax - 默认未高亮渲染</h1>
12
13
  <ax-code>
13
14
  <code>
14
15
  /* Main Layout Style */
@@ -8,6 +8,7 @@
8
8
  </head>
9
9
 
10
10
  <body>
11
+ <h1>Coax - 使用replace方法整体替换代码</h1>
11
12
  <ax-code streaming tools="copy" indexed lang="js">
12
13
  <code>
13
14
  /**
@@ -9,6 +9,7 @@
9
9
  </head>
10
10
 
11
11
  <body>
12
+ <h1>Coax - 使用stream方法手动真实流式输出</h1>
12
13
  <ax-code tools="copy" indexed lang="js"></ax-code>
13
14
 
14
15
  <p></p>
@@ -9,6 +9,7 @@
9
9
  </head>
10
10
 
11
11
  <body>
12
+ <h1>Coax 代码高亮插件</h1>
12
13
  <ax-code tools="copy" lang="js">
13
14
  <code>
14
15
  /**
package/examples/ts.html CHANGED
@@ -9,6 +9,7 @@
9
9
  </head>
10
10
 
11
11
  <body>
12
+ <h1>Coax - 渲染typescript代码</h1>
12
13
  <ax-code lang="ts">
13
14
  <code>
14
15
  @Component({
@@ -9,6 +9,7 @@
9
9
  </head>
10
10
 
11
11
  <body>
12
+ <h1>Coax - 使用speed属性实现以打字方式模拟流式输出(非真正流式输出)</h1>
12
13
  <ax-code speed="10" lang="js">
13
14
  <code>
14
15
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codady/coax",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },