From 7009dfbef41261e8eadd0736cd60cdf3b7ad2a35 Mon Sep 17 00:00:00 2001 From: Han Date: Wed, 20 Nov 2024 13:37:41 +0800 Subject: [PATCH] Modify the LICENSE. issue: https://gitee.com/openharmony/commonlibrary_ets_utils/issues/IAYWCO Signed-off-by: Han --- README.en.md | 10 --- README.md | 10 --- js_api_module/mozilla_docs.txt | 58 ---------------- js_concurrent_module/mozilla_docs.txt | 95 --------------------------- js_sys_module/mozilla_docs.txt | 51 -------------- js_util_module/mozilla_docs.txt | 43 ------------ 6 files changed, 267 deletions(-) delete mode 100644 js_api_module/mozilla_docs.txt delete mode 100644 js_concurrent_module/mozilla_docs.txt delete mode 100644 js_sys_module/mozilla_docs.txt delete mode 100644 js_util_module/mozilla_docs.txt diff --git a/README.en.md b/README.en.md index aa3ae520..1c50a975 100644 --- a/README.en.md +++ b/README.en.md @@ -2420,13 +2420,3 @@ parentPort.onmessageerror = function(e) { [arkcompiler_ets_runtime](https://gitee.com/openharmony/arkcompiler_ets_runtime/blob/master/README_zh.md) [arkui_ace_engine](https://gitee.com/openharmony/arkui_ace_engine/blob/master/README_zh.md) [arkui_napi](https://gitee.com/openharmony/arkui_napi/blob/master/README_zh.md) - -# Licenses - -**js_api_module** can be used under the [Mozilla Public License](https://www.mozilla.org/en-US/MPL/). For the complete license text, see [License](https://gitee.com/openharmony/commonlibrary_ets_utils/blob/master/js_api_module/mozilla_docs.txt). - -**js_util_module** can be used under the [Mozilla Public License](https://www.mozilla.org/en-US/MPL/). For the complete license text, see [License](https://gitee.com/openharmony/commonlibrary_ets_utils/blob/master/js_util_module/mozilla_docs.txt). - -**js_concurrent_module** can be used under the [Mozilla Public License](https://www.mozilla.org/en-US/MPL/). For the complete license text, see [License](https://gitee.com/openharmony/commonlibrary_ets_utils/blob/master/js_concurrent_module/mozilla_docs.txt). - -**js_sys_module** can be used under the [Mozilla Public License](https://www.mozilla.org/en-US/MPL/). For the complete license text, see [License](https://gitee.com/openharmony/commonlibrary_ets_utils/blob/master/js_sys_module/mozilla_docs.txt). \ No newline at end of file diff --git a/README.md b/README.md index cdaa2d28..9fa1afb2 100644 --- a/README.md +++ b/README.md @@ -5493,13 +5493,3 @@ parentPort.onmessageerror = function(e) { # 相关仓 [ets_utils子系统](https://gitee.com/openharmony/commonlibrary_ets_utils/blob/master/README.md) - -# 许可证 - -js_api_module子模块在[Mozilla许可证](https://www.mozilla.org/en-US/MPL/)下可用,有关完整的许可证文本,请参见[许可证](https://gitee.com/openharmony/commonlibrary_ets_utils/blob/master/js_api_module/mozilla_docs.txt)。 - -js_util_module子模块在[Mozilla许可证](https://www.mozilla.org/en-US/MPL/)下可用,有关完整的许可证文本,请参见[许可证](https://gitee.com/openharmony/commonlibrary_ets_utils/blob/master/js_util_module/mozilla_docs.txt)。 - -js_concurrent_module子模块在[Mozilla许可证](https://www.mozilla.org/en-US/MPL/)下可用,有关完整的许可证文本,请参见[许可证](https://gitee.com/openharmony/commonlibrary_ets_utils/blob/master/js_concurrent_module/mozilla_docs.txt)。 - -js_sys_module子模块在[Mozilla许可证](https://www.mozilla.org/en-US/MPL/)下可用,有关完整的许可证文本,请参见[许可证](https://gitee.com/openharmony/commonlibrary_ets_utils/blob/master/js_sys_module/mozilla_docs.txt)。 \ No newline at end of file diff --git a/js_api_module/mozilla_docs.txt b/js_api_module/mozilla_docs.txt deleted file mode 100644 index da19b3c6..00000000 --- a/js_api_module/mozilla_docs.txt +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -The definitions of some interfaces implemented in jsapi/api/js_url.cpp are released under Mozilla license. - -The definitions and functions of these interfaces are consistent with the standard interfaces under mozilla license, -but the implementation of specific functions is independent and self-developed. - -All interfaces are described in d.ts, the following is the interface written in d.ts under to Mozilla license - -class URLSearchParams { - - constructor(init?: string[][] | Record | string | URLSearchParams); - append(name: string, value: string): void; - delete(name: string): void; - getAll(name: string): string[]; - entries(): IterableIterator<[string, string]>; - forEach(callbackfn: (value: string, key: string, searchParams: this) => void): void; - get(name: string): string | null; - has(name: string): boolean; - set(name: string, value: string): void; - sort(): void; - keys(): IterableIterator; - values(): IterableIterator; - [Symbol.iterator](): IterableIterator<[string, string]>; - toString(): string; -} - -class URL { - - constructor(url: string, base?: string | URL); - toString(): string; - toJSON(): string; - hash: string; - host: string; - hostname: string; - href: string; - readonly origin: string; - password: string; - pathname: string; - port: string; - protocol: string; - search: string; - readonly searchParams: URLSearchParams; - username: string; -} \ No newline at end of file diff --git a/js_concurrent_module/mozilla_docs.txt b/js_concurrent_module/mozilla_docs.txt deleted file mode 100644 index d93f30db..00000000 --- a/js_concurrent_module/mozilla_docs.txt +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -The definitions of some interfaces implemented in jsapi/workers/worker.cpp are released under Mozilla license. - -The definitions and functions of these interfaces are consistent with the standard interfaces under mozila license, -but the implementation of specific functions is independent and self-developed. - -All interfaces are described in d.ts, the following is the interface written in d.ts under to Mozilla license - -export interface WorkerOptions { - type?: "classic" | "module"; - name?: string; - shared?: boolean; -} - -export interface Event { - readonly type: string; - readonly timeStamp: number; -} - -interface ErrorEvent extends Event { - readonly message: string; - readonly filename: string; - readonly lineno: number; - readonly colno: number; - readonly error: Object; -} - -declare interface MessageEvent extends Event { - readonly data: T; -} - -export interface PostMessageOptions { - transfer?: Object[]; -} - -export interface EventListener { - (evt: Event): void | Promise; -} - -type MessageType = "message" | "messageerror"; - -declare interface EventTarget { - addEventListener( - type: string, - listener: EventListener - ): void; - dispatchEvent(event: Event): boolean; - removeEventListener( - type: string, - callback?: EventListener - ): void; - removeAllListener(): void; -} - -declare interface WorkerGlobalScope extends EventTarget { - readonly name: string; - onerror?: (ev: ErrorEvent) => void; - readonly self: WorkerGlobalScope & typeof globalThis; -} - -declare interface DedicatedWorkerGlobalScope extends WorkerGlobalScope { - onmessage?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void; - onmessageerror?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void; - close(): void; - postMessage(messageObject: Object, transfer: Transferable[]): void; - postMessage(messageObject: Object, options?: PostMessageOptions): void; -} - -declare namespace worker { - class Worker extends EventTarget { - constructor(scriptURL: string, options?: WorkerOptions); - onexit?: (code: number) => void; - onerror?: (err: ErrorEvent) => void; - onmessage?: (event: MessageEvent) => void; - onmessageerror?: (event: MessageEvent) => void; - postMessage(message: Object, transfer: ArrayBuffer[]): void; - postMessage(message: Object, options?: PostMessageOptions): void; - terminate(): void; - } - const parentPort: DedicatedWorkerGlobalScope; -} \ No newline at end of file diff --git a/js_sys_module/mozilla_docs.txt b/js_sys_module/mozilla_docs.txt deleted file mode 100644 index c30a0050..00000000 --- a/js_sys_module/mozilla_docs.txt +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -The definitions of some interfaces implemented in js_sys_module/console/console.cpp are released under Mozilla license. -The definitions of some interfaces implemented in js_sys_module/timer/timer.cpp are released under Mozilla license. - -The definitions and functions of these interfaces are consistent with the standard interfaces under mozilla license, -but the implementation of specific functions is independent and self-developed. - -All interfaces are described in d.ts, the following is the interface written in d.ts under to Mozilla license - -export declare class console { - debug(message: string, ...arguments: any[]): void; - log(message: string, ...arguments: any[]): void; - info(message: string, ...arguments: any[]): void; - warn(message: string, ...arguments: any[]): void; - error(message: string, ...arguments: any[]): void; - assert(value?: Object, ...arguments: Object[]): void; - count(label?: string): void; - countReset(label?: string): void; - dir(dir?: Object): void; - dirxml(...arguments: Object[]): void; - group(...arguments: Object[]): void; - groupCollapsed(...arguments: Object[]): void; - groupEnd(): void; - table(tableData?: Object): void; - time(label?: string): void; - timeEnd(label?: string): void; - timeLog(label?: string, ...arguments: Object[]): void; - trace(...arguments: Object[]): void; -} - -export declare function setInterval(handler: Function | string, delay: number, ...arguments: any[]): number; - -export declare function setTimeout(handler: Function | string, delay?: number, ...arguments: any[]): number; - -export declare function clearInterval(intervalID?: number): void; - -export declare function clearTimeout(timeoutID?: number): void; \ No newline at end of file diff --git a/js_util_module/mozilla_docs.txt b/js_util_module/mozilla_docs.txt deleted file mode 100644 index 2fd6176e..00000000 --- a/js_util_module/mozilla_docs.txt +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -The definitions of some interfaces implemented in jsapi/api/js_url.cpp are released under Mozilla license. - -The definitions and functions of these interfaces are consistent with the standard interfaces under mozilla license, -but the implementation of specific functions is independent and self-developed. - -All interfaces are described in d.ts, the following is the interface written in d.ts under to Mozilla license - -class TextDecoder { - readonly encoding: string; - readonly fatal: boolean; - readonly ignoreBOM = false; - constructor( - encoding?: string, - options?: { fatal?: boolean; ignoreBOM?: boolean }, - ); - decode(input: Uint8Array, options?: { stream?: false }): string; -} - -class TextEncoder { - - readonly encoding = "utf-8"; - constructor(); - encode(input?: string): Uint8Array; - encodeInto( - input: string, - dest: Uint8Array, - ): { read: number; written: number }; -} \ No newline at end of file