clickgo 3.8.0 → 3.8.1

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.0'}"></script>
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>
32
32
  ```
33
33
 
34
34
  **index.js**
@@ -1,7 +1,7 @@
1
1
  <form title="Arteditor" width="500" height="450" padding="10">
2
2
  <layout gutter="10" direction="v" style="flex: 1; width: 0;">
3
3
  <label>Line: {{value.length}}</label>
4
- <arteditor v-model="value" :readonly="readonly" :disabled="disabled" pre="https://cdn.jsdelivr.net/npm/clickgo@3.8.0/dist/app/demo/" style="flex: 1; height: 0;" @imgselect="imgselect" :style="{'font-size': size[0], 'font-family': family ? 'Consolas, \'Courier New\', monospace' : undefined}"></arteditor>
4
+ <arteditor v-model="value" :readonly="readonly" :disabled="disabled" pre="https://cdn.jsdelivr.net/npm/clickgo@3.7.0/dist/app/demo/" style="flex: 1; height: 0;" @imgselect="imgselect" :style="{'font-size': size[0], 'font-family': family ? 'Consolas, \'Courier New\', monospace' : undefined}"></arteditor>
5
5
  <layout gutter="10">
6
6
  <button @click="disabled = !disabled" style="flex: 1; width: 0;">{{disabled ? '' : '!'}}disabled</button>
7
7
  <button @click="readonly = !readonly" style="flex: 1; width: 0;">{{readonly ? '' : '!'}}readonly</button>
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.0';
27
+ const version = '3.8.1';
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.0';
16
+ const version = '3.8.1';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
package/dist/lib/tool.js CHANGED
@@ -499,6 +499,9 @@ function request(url, opt) {
499
499
  return new Promise(function (resove) {
500
500
  var _a;
501
501
  const xhr = new XMLHttpRequest();
502
+ if (opt.credentials === false) {
503
+ xhr.withCredentials = false;
504
+ }
502
505
  xhr.upload.onloadstart = function (e) {
503
506
  var _a;
504
507
  const r = (_a = opt.uploadStart) === null || _a === void 0 ? void 0 : _a.call(opt, e.total);
package/dist/lib/tool.ts CHANGED
@@ -658,6 +658,9 @@ export function rgb2hsl(rgb: string): number[] {
658
658
  export function request(url: string, opt: types.IRequestOptions): Promise<null | any> {
659
659
  return new Promise(function(resove) {
660
660
  const xhr = new XMLHttpRequest();
661
+ if (opt.credentials === false) {
662
+ xhr.withCredentials = false;
663
+ }
661
664
  xhr.upload.onloadstart = function(e: ProgressEvent): void {
662
665
  const r = opt.uploadStart?.(e.total);
663
666
  if (r && (r instanceof Promise)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",
package/types/index.d.ts CHANGED
@@ -491,6 +491,7 @@ export interface IThemeConfig {
491
491
  // --------------------------
492
492
 
493
493
  export interface IRequestOptions {
494
+ 'credentials'?: boolean;
494
495
  'method'?: 'GET' | 'POST';
495
496
  'body'?: FormData;
496
497
  'timeout'?: number;