clickgo 3.8.1 → 3.8.2

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.
package/README.md CHANGED
@@ -28,7 +28,7 @@ Load the module loader first, and then load it using the module loader.
28
28
  **index.html**
29
29
 
30
30
  ```html
31
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.8.1'}"></script>
31
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.8.2'}"></script>
32
32
  ```
33
33
 
34
34
  **index.js**
@@ -129,12 +129,12 @@ This library is published under [Apache-2.0](./LICENSE) license.
129
129
 
130
130
  #### Iconview
131
131
 
132
- [Folder SVG Vector](https://www.svgrepo.com/svg/474852/folder)
132
+ [Folder SVG Vector](https://www.svgrepo.com/svg/474852/folder)
133
133
  [File SVG Vector](https://www.svgrepo.com/svg/474842/file)
134
134
 
135
135
  ### **LICENSE:** MIT License **AUTHOR:** instructure-ui
136
136
 
137
137
  #### Arteditor
138
138
 
139
- [Bold SVG Vector](https://www.svgrepo.com/svg/501109/bold)
139
+ [Bold SVG Vector](https://www.svgrepo.com/svg/501109/bold)
140
140
  [Italic SVG Vector](https://www.svgrepo.com/svg/501238/italic)
@@ -91,5 +91,8 @@ class default_1 extends clickgo.form.AbstractForm {
91
91
  yield clickgo.form.dialog('No permission.');
92
92
  });
93
93
  }
94
+ open() {
95
+ clickgo.core.open('https://www.maiyun.net');
96
+ }
94
97
  }
95
98
  exports.default = default_1;
@@ -1,4 +1,4 @@
1
- <form width="350" height="450" title="Library task" padding="10">
1
+ <form width="350" height="500" title="Library task" padding="10">
2
2
  <layout direction="v" gutter="10" style="flex: 1;">
3
3
  <label>config:</label>
4
4
  <text v-model="config" readonly multi style="flex: 1;"></text>
@@ -16,5 +16,6 @@
16
16
  </layout>
17
17
  <button @click="getLocation">getLocation()</button>
18
18
  <button @click="back">back()</button>
19
+ <button @click="open">open('https://www.maiyun.net')</button>
19
20
  </layout>
20
21
  </form>
package/dist/clickgo.js CHANGED
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.zip = exports.tool = exports.theme = exports.task = exports.storage = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = exports.hasFrame = exports.isImmersion = exports.getPlatform = exports.isNative = exports.getVersion = void 0;
27
- const version = '3.8.1';
27
+ const version = '3.8.2';
28
28
  function getVersion() {
29
29
  return version;
30
30
  }
package/dist/clickgo.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- const version = '3.8.1';
16
+ const version = '3.8.2';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
package/dist/lib/core.js CHANGED
@@ -32,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32
32
  });
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
- exports.back = exports.getLocation = exports.location = exports.getHost = exports.getHash = exports.hash = exports.getAvailArea = exports.fetchApp = exports.readApp = exports.trigger = exports.getModule = exports.regModule = exports.boot = exports.getCdn = exports.AbstractApp = exports.config = void 0;
35
+ exports.open = exports.back = exports.getLocation = exports.location = exports.getHost = exports.getHash = exports.hash = exports.getAvailArea = exports.fetchApp = exports.readApp = exports.trigger = exports.getModule = exports.regModule = exports.boot = exports.getCdn = exports.AbstractApp = exports.config = void 0;
36
36
  const clickgo = __importStar(require("../clickgo"));
37
37
  const fs = __importStar(require("./fs"));
38
38
  const form = __importStar(require("./form"));
@@ -849,6 +849,10 @@ function back(taskId) {
849
849
  return true;
850
850
  }
851
851
  exports.back = back;
852
+ function open(url) {
853
+ window.open(url);
854
+ }
855
+ exports.open = open;
852
856
  window.addEventListener('hashchange', function () {
853
857
  trigger('hashChanged', window.location.hash ? decodeURIComponent(window.location.hash.slice(1)) : '');
854
858
  });
package/dist/lib/core.ts CHANGED
@@ -977,6 +977,14 @@ export function back(taskId?: number): boolean {
977
977
  return true;
978
978
  }
979
979
 
980
+ /**
981
+ * --- 打开新的标签页
982
+ * @param url 要访问的网址
983
+ */
984
+ export function open(url: string): void {
985
+ window.open(url);
986
+ }
987
+
980
988
  window.addEventListener('hashchange', function() {
981
989
  trigger('hashChanged', window.location.hash ? decodeURIComponent(window.location.hash.slice(1)) : '');
982
990
  });
package/dist/lib/task.js CHANGED
@@ -460,6 +460,9 @@ function run(url, opt = {}, ntid) {
460
460
  },
461
461
  back: function () {
462
462
  return core.back(taskId);
463
+ },
464
+ open: function (url) {
465
+ core.open(url);
463
466
  }
464
467
  },
465
468
  'dom': {
package/dist/lib/task.ts CHANGED
@@ -518,6 +518,9 @@ export async function run(url: string | types.IApp, opt: types.ITaskRunOptions =
518
518
  },
519
519
  back: function(): boolean {
520
520
  return core.back(taskId);
521
+ },
522
+ open: function(url: string): void {
523
+ core.open(url);
521
524
  }
522
525
  },
523
526
  'dom': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.8.1",
3
+ "version": "3.8.2",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",