diff --git a/.cloudbuild/release.sh b/.cloudbuild/release.sh index 5e995a6b..5d99f4f9 100644 --- a/.cloudbuild/release.sh +++ b/.cloudbuild/release.sh @@ -1,8 +1,8 @@ #!/bin/bash # -# Copyright (c) 2020 Huawei Technologies Co.,Ltd. +# Copyright (c) 2023 Huawei Technologies Co.,Ltd. # -# openGauss is licensed under Mulan PSL v2. +# openInula is licensed under Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # diff --git a/.eslintrc.js b/.eslintrc.js index 860de8a4..61851c83 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/.idea/copyright/huawei.xml b/.idea/copyright/huawei.xml index ce060b15..6021cd5a 100644 --- a/.idea/copyright/huawei.xml +++ b/.idea/copyright/huawei.xml @@ -1,6 +1,6 @@ - - + \ No newline at end of file diff --git a/.prettierrc.js b/.prettierrc.js index da8f33e7..c2622eaa 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/create-inula/.prettierrc.js b/packages/create-inula/.prettierrc.js index 35bab217..782f2b85 100644 --- a/packages/create-inula/.prettierrc.js +++ b/packages/create-inula/.prettierrc.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/create-inula/bin/cli.js b/packages/create-inula/bin/cli.js index 5933b66e..7363bcca 100644 --- a/packages/create-inula/bin/cli.js +++ b/packages/create-inula/bin/cli.js @@ -1,3 +1,18 @@ #! /usr/bin/env node +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + require('../index.js'); diff --git a/packages/create-inula/index.js b/packages/create-inula/index.js index f24337df..8af7e8c1 100644 --- a/packages/create-inula/index.js +++ b/packages/create-inula/index.js @@ -1,5 +1,20 @@ #! /usr/bin/env node +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + const yParser = require('yargs-parser'); const chalk = require('chalk'); const run = require('./lib/run'); diff --git a/packages/create-inula/lib/BasicGenerator.js b/packages/create-inula/lib/BasicGenerator.js index ec38bd0a..4631dccb 100644 --- a/packages/create-inula/lib/BasicGenerator.js +++ b/packages/create-inula/lib/BasicGenerator.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + const fs = require('fs'); const path = require('path'); const Generator = require('yeoman-generator'); diff --git a/packages/create-inula/lib/generators/Simple-app/index.js b/packages/create-inula/lib/generators/Simple-app/index.js index c9d34e92..2d52bc4b 100644 --- a/packages/create-inula/lib/generators/Simple-app/index.js +++ b/packages/create-inula/lib/generators/Simple-app/index.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + const BasicGenerator = require('../../BasicGenerator'); class Generator extends BasicGenerator { diff --git a/packages/create-inula/lib/generators/Simple-app/templates/vite/src/index.jsx b/packages/create-inula/lib/generators/Simple-app/templates/vite/src/index.jsx index 8287bc49..bfd98870 100644 --- a/packages/create-inula/lib/generators/Simple-app/templates/vite/src/index.jsx +++ b/packages/create-inula/lib/generators/Simple-app/templates/vite/src/index.jsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import './index.css'; diff --git a/packages/create-inula/lib/generators/Simple-app/templates/vite/vite.config.js b/packages/create-inula/lib/generators/Simple-app/templates/vite/vite.config.js index f267f2a2..b49853a3 100644 --- a/packages/create-inula/lib/generators/Simple-app/templates/vite/vite.config.js +++ b/packages/create-inula/lib/generators/Simple-app/templates/vite/vite.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import react from '@vitejs/plugin-react'; let alias = { diff --git a/packages/create-inula/lib/generators/Simple-app/templates/webpack/src/App.js b/packages/create-inula/lib/generators/Simple-app/templates/webpack/src/App.js index 48eeaa3f..5b44935b 100644 --- a/packages/create-inula/lib/generators/Simple-app/templates/webpack/src/App.js +++ b/packages/create-inula/lib/generators/Simple-app/templates/webpack/src/App.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import './styles.css'; diff --git a/packages/create-inula/lib/generators/Simple-app/templates/webpack/src/index.js b/packages/create-inula/lib/generators/Simple-app/templates/webpack/src/index.js index aa84a3bf..6a3c0f75 100644 --- a/packages/create-inula/lib/generators/Simple-app/templates/webpack/src/index.js +++ b/packages/create-inula/lib/generators/Simple-app/templates/webpack/src/index.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import App from './App'; diff --git a/packages/create-inula/lib/generators/Simple-app/templates/webpack/webpack.config.js b/packages/create-inula/lib/generators/Simple-app/templates/webpack/webpack.config.js index a07f60cc..e4237c6b 100644 --- a/packages/create-inula/lib/generators/Simple-app/templates/webpack/webpack.config.js +++ b/packages/create-inula/lib/generators/Simple-app/templates/webpack/webpack.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); diff --git a/packages/create-inula/lib/run.js b/packages/create-inula/lib/run.js index f5a5c911..3cb54de4 100644 --- a/packages/create-inula/lib/run.js +++ b/packages/create-inula/lib/run.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + const fs = require('fs'); const path = require('path'); const chalk = require('chalk'); diff --git a/packages/inula-cli/.eslintrc.cjs b/packages/inula-cli/.eslintrc.cjs index 9e3e1b8f..24af81bf 100644 --- a/packages/inula-cli/.eslintrc.cjs +++ b/packages/inula-cli/.eslintrc.cjs @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + module.exports = { 'parser': 'babel-eslint', 'env': { diff --git a/packages/inula-cli/.prettierrc.js b/packages/inula-cli/.prettierrc.js index b30250ac..de67b075 100644 --- a/packages/inula-cli/.prettierrc.js +++ b/packages/inula-cli/.prettierrc.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + export default { printWidth: 120, // 一行120字符数,如果超过会进行换行 tabWidth: 2, // tab等2个空格 diff --git a/packages/inula-cli/bin/start.js b/packages/inula-cli/bin/start.js index 8f65a64f..32a914ed 100644 --- a/packages/inula-cli/bin/start.js +++ b/packages/inula-cli/bin/start.js @@ -1,5 +1,20 @@ #!/usr/bin/env node +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import run from '../lib/cli/cli.js'; run(); \ No newline at end of file diff --git a/packages/inula-cli/src/builtInPlugins/command/build/build.ts b/packages/inula-cli/src/builtInPlugins/command/build/build.ts index 5247d43d..d3b38966 100644 --- a/packages/inula-cli/src/builtInPlugins/command/build/build.ts +++ b/packages/inula-cli/src/builtInPlugins/command/build/build.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import webpack from 'webpack'; import { build } from 'vite'; diff --git a/packages/inula-cli/src/builtInPlugins/command/dev/buildDev.ts b/packages/inula-cli/src/builtInPlugins/command/dev/buildDev.ts index 63ba8ec5..cb1e176e 100644 --- a/packages/inula-cli/src/builtInPlugins/command/dev/buildDev.ts +++ b/packages/inula-cli/src/builtInPlugins/command/dev/buildDev.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import webpack from 'webpack'; import WebpackDevServer from 'webpack-dev-server'; import { createServer } from 'vite'; diff --git a/packages/inula-cli/src/builtInPlugins/command/generate/generate.ts b/packages/inula-cli/src/builtInPlugins/command/generate/generate.ts index a16d6337..630c114f 100644 --- a/packages/inula-cli/src/builtInPlugins/command/generate/generate.ts +++ b/packages/inula-cli/src/builtInPlugins/command/generate/generate.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { API } from '../../../types/types'; import yargsParser from 'yargs-parser'; import inquirer from 'inquirer'; diff --git a/packages/inula-cli/src/builtInPlugins/command/help/help.ts b/packages/inula-cli/src/builtInPlugins/command/help/help.ts index 8775ede0..d0c9864c 100644 --- a/packages/inula-cli/src/builtInPlugins/command/help/help.ts +++ b/packages/inula-cli/src/builtInPlugins/command/help/help.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import chalk from 'chalk'; import lodash from 'lodash'; diff --git a/packages/inula-cli/src/builtInPlugins/command/mock/webpack_mock.ts b/packages/inula-cli/src/builtInPlugins/command/mock/webpack_mock.ts index 035cf2a5..f5cf0935 100644 --- a/packages/inula-cli/src/builtInPlugins/command/mock/webpack_mock.ts +++ b/packages/inula-cli/src/builtInPlugins/command/mock/webpack_mock.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { createRequire } from 'module'; import mockServer from '../../../utils/mockServer.js'; const require = createRequire(import.meta.url); diff --git a/packages/inula-cli/src/builtInPlugins/command/proxy/proxy.ts b/packages/inula-cli/src/builtInPlugins/command/proxy/proxy.ts index ba16cfb7..8a38d1ce 100644 --- a/packages/inula-cli/src/builtInPlugins/command/proxy/proxy.ts +++ b/packages/inula-cli/src/builtInPlugins/command/proxy/proxy.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import express from 'express'; import { createRequire } from 'module'; import { createProxyMiddleware } from 'http-proxy-middleware'; diff --git a/packages/inula-cli/src/builtInPlugins/command/test/test.ts b/packages/inula-cli/src/builtInPlugins/command/test/test.ts index dc7af1e5..22b63e86 100644 --- a/packages/inula-cli/src/builtInPlugins/command/test/test.ts +++ b/packages/inula-cli/src/builtInPlugins/command/test/test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { API } from '../../../types/types'; import jest from 'jest'; import yargsParser from 'yargs-parser'; diff --git a/packages/inula-cli/src/builtInPlugins/command/version/version.ts b/packages/inula-cli/src/builtInPlugins/command/version/version.ts index 9f69f534..96d849df 100644 --- a/packages/inula-cli/src/builtInPlugins/command/version/version.ts +++ b/packages/inula-cli/src/builtInPlugins/command/version/version.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url'; diff --git a/packages/inula-cli/src/cli/cli.ts b/packages/inula-cli/src/cli/cli.ts index c26299c6..54598108 100644 --- a/packages/inula-cli/src/cli/cli.ts +++ b/packages/inula-cli/src/cli/cli.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import chalk from 'chalk'; import yargsParser from 'yargs-parser'; import Hub from '../core/Hub.js'; @@ -33,7 +48,7 @@ export default async function run() { if (command === 'version' || command === 'help') { process.env.INNER_COMMAND = "true" } - + switch (command) { case 'build': process.env.NODE_ENV = 'production'; diff --git a/packages/inula-cli/src/config/Config.ts b/packages/inula-cli/src/config/Config.ts index 4fffb724..115ac5d8 100644 --- a/packages/inula-cli/src/config/Config.ts +++ b/packages/inula-cli/src/config/Config.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { existsSync } from 'fs'; import { extname, join } from 'path'; import { parseRequireDeps, cleanRequireCache } from '../utils/util.js'; diff --git a/packages/inula-cli/src/core/Hub.ts b/packages/inula-cli/src/core/Hub.ts index 662acba3..bb8cc16c 100644 --- a/packages/inula-cli/src/core/Hub.ts +++ b/packages/inula-cli/src/core/Hub.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { join, isAbsolute } from 'path'; import Config from '../config/Config.js'; import { BuildConfig, DevBuildConfig, DevProxy, ICommand, UserConfig } from '../types/types.js'; @@ -40,7 +55,7 @@ export default class Hub { pluginPaths: string[] = []; devProxy: DevProxy | null = null; logger: Logger; - + [key: string]: any; constructor(opts: HubOpts) { @@ -84,11 +99,11 @@ export default class Hub { // 获取编译配置 await this.analyzeBuildConfig(); - + this.setStage(ServiceStage.initPlugins); this.builtInPlugins = this.getBuiltInPlugins(); await this.pluginManager.register(this.builtInPlugins, this.userConfig.plugins); - + this.setStage(ServiceStage.initHooks); this.pluginManager.initHook(); } diff --git a/packages/inula-cli/src/enum/enum.ts b/packages/inula-cli/src/enum/enum.ts index cde532f5..a4a01553 100644 --- a/packages/inula-cli/src/enum/enum.ts +++ b/packages/inula-cli/src/enum/enum.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + export enum PluginType { preset = 'preset', plugin = 'plugin', diff --git a/packages/inula-cli/src/plugin/Plugin.ts b/packages/inula-cli/src/plugin/Plugin.ts index ae3c5ba5..a311cae6 100644 --- a/packages/inula-cli/src/plugin/Plugin.ts +++ b/packages/inula-cli/src/plugin/Plugin.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import resolve from 'resolve'; import chalk from 'chalk'; import PluginAPI, { IOpts } from './PluginAPI.js'; @@ -93,7 +108,7 @@ export default class Plugin { api, }; }); - + for (const obj of objs) { const module: Function | undefined = await loadModule(obj.path); if (module) { @@ -120,14 +135,14 @@ export default class Plugin { return new Proxy(pluginAPI, { get: (target: PluginAPI, prop: string) => { if (['userConfig', 'devBuildConfig', 'buildConfig', 'compileMode', 'packageJson', 'cwd'].includes(prop)) { - return typeof this.hub[prop] === 'function' - ? this.hub[prop].bind(this.hub) + return typeof this.hub[prop] === 'function' + ? this.hub[prop].bind(this.hub) : this.hub[prop]; } if (['setStore', 'logger', 'commands'].includes(prop)) { - return typeof this[prop] === 'function' - ? this[prop].bind(this) + return typeof this[prop] === 'function' + ? this[prop].bind(this) : this[prop]; } diff --git a/packages/inula-cli/src/plugin/PluginAPI.ts b/packages/inula-cli/src/plugin/PluginAPI.ts index ba833602..7dd3bebc 100644 --- a/packages/inula-cli/src/plugin/PluginAPI.ts +++ b/packages/inula-cli/src/plugin/PluginAPI.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Plugin from './Plugin.js'; import { IHook, ICommand } from '../types/types.js'; import { Logger } from '../utils/logger.js'; @@ -24,7 +39,7 @@ export default class PluginAPI { if (!this.manager.hooksByPluginPath[this.path]) { this.manager.hooksByPluginPath[this.path] = []; } - + this.manager.hooksByPluginPath[this.path].push(hook); } diff --git a/packages/inula-cli/src/template/test/cjs/jest.config.js b/packages/inula-cli/src/template/test/cjs/jest.config.js index ba163dc3..efef2fb5 100644 --- a/packages/inula-cli/src/template/test/cjs/jest.config.js +++ b/packages/inula-cli/src/template/test/cjs/jest.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + module.exports = { testEnvironment: 'node', // 使用 Node.js 环境进行测试 diff --git a/packages/inula-cli/src/template/test/cjs/sum.js b/packages/inula-cli/src/template/test/cjs/sum.js index afa261cd..63936bc8 100644 --- a/packages/inula-cli/src/template/test/cjs/sum.js +++ b/packages/inula-cli/src/template/test/cjs/sum.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + function sum(a, b) { return a + b; } diff --git a/packages/inula-cli/src/template/test/cjs/sum.test.js b/packages/inula-cli/src/template/test/cjs/sum.test.js index a6a3eaa1..69b0b414 100644 --- a/packages/inula-cli/src/template/test/cjs/sum.test.js +++ b/packages/inula-cli/src/template/test/cjs/sum.test.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + const sum = require('./sum'); describe('sum', () => { diff --git a/packages/inula-cli/src/template/test/mjs/jest.config.js b/packages/inula-cli/src/template/test/mjs/jest.config.js index c3a424a7..8cc0a3ac 100644 --- a/packages/inula-cli/src/template/test/mjs/jest.config.js +++ b/packages/inula-cli/src/template/test/mjs/jest.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + export default { testEnvironment: 'node', // 使用 Node.js 环境进行测试 diff --git a/packages/inula-cli/src/template/test/mjs/sum.js b/packages/inula-cli/src/template/test/mjs/sum.js index e4739d5e..b558964b 100644 --- a/packages/inula-cli/src/template/test/mjs/sum.js +++ b/packages/inula-cli/src/template/test/mjs/sum.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + function sum(a, b) { return a + b; } diff --git a/packages/inula-cli/src/template/test/mjs/sum.test.js b/packages/inula-cli/src/template/test/mjs/sum.test.js index a22bc2f3..6835b5b0 100644 --- a/packages/inula-cli/src/template/test/mjs/sum.test.js +++ b/packages/inula-cli/src/template/test/mjs/sum.test.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import sum from './sum'; describe('sum', () => { diff --git a/packages/inula-cli/src/template/test/ts/jest.config.ts b/packages/inula-cli/src/template/test/ts/jest.config.ts index db9fce00..6ff3a42d 100644 --- a/packages/inula-cli/src/template/test/ts/jest.config.ts +++ b/packages/inula-cli/src/template/test/ts/jest.config.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + export default { preset: 'ts-jest', testEnvironment: 'node', // 使用 Node.js 环境进行测试 diff --git a/packages/inula-cli/src/template/test/ts/sum.test.ts b/packages/inula-cli/src/template/test/ts/sum.test.ts index a22bc2f3..6835b5b0 100644 --- a/packages/inula-cli/src/template/test/ts/sum.test.ts +++ b/packages/inula-cli/src/template/test/ts/sum.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import sum from './sum'; describe('sum', () => { diff --git a/packages/inula-cli/src/template/test/ts/sum.ts b/packages/inula-cli/src/template/test/ts/sum.ts index a5355e98..50a0f836 100644 --- a/packages/inula-cli/src/template/test/ts/sum.ts +++ b/packages/inula-cli/src/template/test/ts/sum.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + function sum(a: number, b: number): number { return a + b; } diff --git a/packages/inula-cli/src/types/types.ts b/packages/inula-cli/src/types/types.ts index 4f2b6ba1..222c8e05 100644 --- a/packages/inula-cli/src/types/types.ts +++ b/packages/inula-cli/src/types/types.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { PackageJSON } from 'resolve'; import yargsParser from 'yargs-parser'; import { Logger } from '../utils/logger.js'; diff --git a/packages/inula-cli/src/utils/build.ts b/packages/inula-cli/src/utils/build.ts index 898178a0..036104e5 100644 --- a/packages/inula-cli/src/utils/build.ts +++ b/packages/inula-cli/src/utils/build.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import path from 'path'; import fs from 'fs'; import { build as esbuild, Plugin } from 'esbuild'; diff --git a/packages/inula-cli/src/utils/dynamicImport.ts b/packages/inula-cli/src/utils/dynamicImport.ts index 0a10a521..a10bd3c6 100644 --- a/packages/inula-cli/src/utils/dynamicImport.ts +++ b/packages/inula-cli/src/utils/dynamicImport.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + export default async function dynamicImport(filePath: string) { let importPath = filePath; diff --git a/packages/inula-cli/src/utils/initializeEnv.ts b/packages/inula-cli/src/utils/initializeEnv.ts index b2a8573e..ea497485 100644 --- a/packages/inula-cli/src/utils/initializeEnv.ts +++ b/packages/inula-cli/src/utils/initializeEnv.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { join } from 'path'; import { readFileSync, existsSync } from 'fs'; import { parse } from 'dotenv'; diff --git a/packages/inula-cli/src/utils/loadModule.ts b/packages/inula-cli/src/utils/loadModule.ts index 9f977077..3e3a2f7c 100644 --- a/packages/inula-cli/src/utils/loadModule.ts +++ b/packages/inula-cli/src/utils/loadModule.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { pathToFileURL } from 'url'; import { join, isAbsolute } from 'path'; import fs from 'fs'; diff --git a/packages/inula-cli/src/utils/loadPkg.ts b/packages/inula-cli/src/utils/loadPkg.ts index 27534fe0..0d07ee5b 100644 --- a/packages/inula-cli/src/utils/loadPkg.ts +++ b/packages/inula-cli/src/utils/loadPkg.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import fs from 'fs'; import { PackageJSON } from 'resolve'; diff --git a/packages/inula-cli/src/utils/logger.ts b/packages/inula-cli/src/utils/logger.ts index 9276a5ad..ae0a4729 100644 --- a/packages/inula-cli/src/utils/logger.ts +++ b/packages/inula-cli/src/utils/logger.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + export enum LogLevel { DEBUG = 0, INFO = 1, diff --git a/packages/inula-cli/src/utils/mockServer.ts b/packages/inula-cli/src/utils/mockServer.ts index b2cace9a..519deaa5 100644 --- a/packages/inula-cli/src/utils/mockServer.ts +++ b/packages/inula-cli/src/utils/mockServer.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import chokidar from 'chokidar'; import bodyParser from 'body-parser'; import {globSync} from 'glob'; diff --git a/packages/inula-cli/src/utils/readDirectory.ts b/packages/inula-cli/src/utils/readDirectory.ts index 2d07dc04..497f4ba0 100644 --- a/packages/inula-cli/src/utils/readDirectory.ts +++ b/packages/inula-cli/src/utils/readDirectory.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import fs from 'fs'; import path from 'path'; diff --git a/packages/inula-cli/src/utils/setupProxy.ts b/packages/inula-cli/src/utils/setupProxy.ts index 15726ed1..c565d84c 100644 --- a/packages/inula-cli/src/utils/setupProxy.ts +++ b/packages/inula-cli/src/utils/setupProxy.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { createProxyMiddleware } from 'http-proxy-middleware'; import { API } from '../types/types'; diff --git a/packages/inula-cli/src/utils/util.ts b/packages/inula-cli/src/utils/util.ts index 1935b620..6ad4942e 100644 --- a/packages/inula-cli/src/utils/util.ts +++ b/packages/inula-cli/src/utils/util.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { dirname } from 'path'; import { readFileSync, writeFileSync } from 'fs'; import resolve from 'resolve'; diff --git a/packages/inula-cli/template/test/cjs/jest.config.js b/packages/inula-cli/template/test/cjs/jest.config.js index ba163dc3..efef2fb5 100644 --- a/packages/inula-cli/template/test/cjs/jest.config.js +++ b/packages/inula-cli/template/test/cjs/jest.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + module.exports = { testEnvironment: 'node', // 使用 Node.js 环境进行测试 diff --git a/packages/inula-cli/template/test/cjs/sum.js b/packages/inula-cli/template/test/cjs/sum.js index afa261cd..63936bc8 100644 --- a/packages/inula-cli/template/test/cjs/sum.js +++ b/packages/inula-cli/template/test/cjs/sum.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + function sum(a, b) { return a + b; } diff --git a/packages/inula-cli/template/test/cjs/sum.test.js b/packages/inula-cli/template/test/cjs/sum.test.js index a6a3eaa1..69b0b414 100644 --- a/packages/inula-cli/template/test/cjs/sum.test.js +++ b/packages/inula-cli/template/test/cjs/sum.test.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + const sum = require('./sum'); describe('sum', () => { diff --git a/packages/inula-cli/template/test/mjs/jest.config.js b/packages/inula-cli/template/test/mjs/jest.config.js index c3a424a7..8cc0a3ac 100644 --- a/packages/inula-cli/template/test/mjs/jest.config.js +++ b/packages/inula-cli/template/test/mjs/jest.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + export default { testEnvironment: 'node', // 使用 Node.js 环境进行测试 diff --git a/packages/inula-cli/template/test/mjs/sum.js b/packages/inula-cli/template/test/mjs/sum.js index e4739d5e..b558964b 100644 --- a/packages/inula-cli/template/test/mjs/sum.js +++ b/packages/inula-cli/template/test/mjs/sum.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + function sum(a, b) { return a + b; } diff --git a/packages/inula-cli/template/test/mjs/sum.test.js b/packages/inula-cli/template/test/mjs/sum.test.js index a22bc2f3..6835b5b0 100644 --- a/packages/inula-cli/template/test/mjs/sum.test.js +++ b/packages/inula-cli/template/test/mjs/sum.test.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import sum from './sum'; describe('sum', () => { diff --git a/packages/inula-cli/template/test/ts/jest.config.ts b/packages/inula-cli/template/test/ts/jest.config.ts index db9fce00..6ff3a42d 100644 --- a/packages/inula-cli/template/test/ts/jest.config.ts +++ b/packages/inula-cli/template/test/ts/jest.config.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + export default { preset: 'ts-jest', testEnvironment: 'node', // 使用 Node.js 环境进行测试 diff --git a/packages/inula-cli/template/test/ts/sum.test.ts b/packages/inula-cli/template/test/ts/sum.test.ts index a22bc2f3..6835b5b0 100644 --- a/packages/inula-cli/template/test/ts/sum.test.ts +++ b/packages/inula-cli/template/test/ts/sum.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import sum from './sum'; describe('sum', () => { diff --git a/packages/inula-cli/template/test/ts/sum.ts b/packages/inula-cli/template/test/ts/sum.ts index a5355e98..50a0f836 100644 --- a/packages/inula-cli/template/test/ts/sum.ts +++ b/packages/inula-cli/template/test/ts/sum.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + function sum(a: number, b: number): number { return a + b; } diff --git a/packages/inula-intl/.eslintrc.js b/packages/inula-intl/.eslintrc.js index 3ca73b64..468e97e4 100644 --- a/packages/inula-intl/.eslintrc.js +++ b/packages/inula-intl/.eslintrc.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula-intl/.prettierrc.js b/packages/inula-intl/.prettierrc.js index 4bf32557..ac0b2bb8 100644 --- a/packages/inula-intl/.prettierrc.js +++ b/packages/inula-intl/.prettierrc.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + module.exports = { printWidth: 120, // 一行120字符数,如果超过会进行换行 tabWidth: 2, // tab等2个空格 diff --git a/packages/inula-intl/babel.config.js b/packages/inula-intl/babel.config.js index fd1b09a9..0ec86be8 100644 --- a/packages/inula-intl/babel.config.js +++ b/packages/inula-intl/babel.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + const {preset} = require("./jest.config"); module.exports = { presets: [ diff --git a/packages/inula-intl/example/App.tsx b/packages/inula-intl/example/App.tsx index 63bd9f2d..05475c24 100644 --- a/packages/inula-intl/example/App.tsx +++ b/packages/inula-intl/example/App.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Inula, { useState } from 'inulajs'; diff --git a/packages/inula-intl/example/components/Example1.tsx b/packages/inula-intl/example/components/Example1.tsx index 3f6c3ec4..9172d55b 100644 --- a/packages/inula-intl/example/components/Example1.tsx +++ b/packages/inula-intl/example/components/Example1.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Inula from "inulajs"; diff --git a/packages/inula-intl/example/components/Example2.tsx b/packages/inula-intl/example/components/Example2.tsx index 5cb97bee..1994be32 100644 --- a/packages/inula-intl/example/components/Example2.tsx +++ b/packages/inula-intl/example/components/Example2.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Inula from "inulajs"; import { FormattedMessage } from "../../index"; diff --git a/packages/inula-intl/example/components/Example3.tsx b/packages/inula-intl/example/components/Example3.tsx index e21c9185..88923491 100644 --- a/packages/inula-intl/example/components/Example3.tsx +++ b/packages/inula-intl/example/components/Example3.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Inula from 'inulajs'; diff --git a/packages/inula-intl/example/components/Example4.tsx b/packages/inula-intl/example/components/Example4.tsx index 29f4cec5..e838c1ad 100644 --- a/packages/inula-intl/example/components/Example4.tsx +++ b/packages/inula-intl/example/components/Example4.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Inula from "inulajs"; diff --git a/packages/inula-intl/example/components/Example5.tsx b/packages/inula-intl/example/components/Example5.tsx index 6499bf81..d3e6df50 100644 --- a/packages/inula-intl/example/components/Example5.tsx +++ b/packages/inula-intl/example/components/Example5.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Inula, { Component } from 'inulajs'; diff --git a/packages/inula-intl/example/components/Example6.tsx b/packages/inula-intl/example/components/Example6.tsx index 28f2ad9f..e4180d21 100644 --- a/packages/inula-intl/example/components/Example6.tsx +++ b/packages/inula-intl/example/components/Example6.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Inula from "inulajs"; diff --git a/packages/inula-intl/example/components/Example6Child.tsx b/packages/inula-intl/example/components/Example6Child.tsx index 3723de4f..9cee1c42 100644 --- a/packages/inula-intl/example/components/Example6Child.tsx +++ b/packages/inula-intl/example/components/Example6Child.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { useIntl } from "../../index"; diff --git a/packages/inula-intl/example/index.tsx b/packages/inula-intl/example/index.tsx index f1fb4c72..c33d4c1c 100644 --- a/packages/inula-intl/example/index.tsx +++ b/packages/inula-intl/example/index.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import * as Inula from 'inulajs'; import App from './App' diff --git a/packages/inula-intl/example/locale/en.ts b/packages/inula-intl/example/locale/en.ts index 123cee99..1c1fb697 100644 --- a/packages/inula-intl/example/locale/en.ts +++ b/packages/inula-intl/example/locale/en.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ export default { diff --git a/packages/inula-intl/example/locale/zh.ts b/packages/inula-intl/example/locale/zh.ts index 94e2297c..4051f195 100644 --- a/packages/inula-intl/example/locale/zh.ts +++ b/packages/inula-intl/example/locale/zh.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ export default { button: '欢迎使用国际化组件!', diff --git a/packages/inula-intl/index.ts b/packages/inula-intl/index.ts index e8879fae..da43b69b 100644 --- a/packages/inula-intl/index.ts +++ b/packages/inula-intl/index.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import DateTimeFormatter from './src/format/fomatters/DateTimeFormatter'; diff --git a/packages/inula-intl/jest.config.js b/packages/inula-intl/jest.config.js index d5f060a9..582e6b9f 100644 --- a/packages/inula-intl/jest.config.js +++ b/packages/inula-intl/jest.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + module.exports = { coverageDirectory: 'coverage', resetModules: true, diff --git a/packages/inula-intl/rollup.config.js b/packages/inula-intl/rollup.config.js index 189e4ae0..632fb066 100644 --- a/packages/inula-intl/rollup.config.js +++ b/packages/inula-intl/rollup.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import path from 'path'; import { fileURLToPath } from 'url'; import babel from '@rollup/plugin-babel'; diff --git a/packages/inula-intl/src/constants/index.ts b/packages/inula-intl/src/constants/index.ts index 883fdff9..ff6353cb 100644 --- a/packages/inula-intl/src/constants/index.ts +++ b/packages/inula-intl/src/constants/index.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ /** diff --git a/packages/inula-intl/src/core/I18n.ts b/packages/inula-intl/src/core/I18n.ts index e4439de6..01382119 100644 --- a/packages/inula-intl/src/core/I18n.ts +++ b/packages/inula-intl/src/core/I18n.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import EventDispatcher from '../utils/eventListener'; diff --git a/packages/inula-intl/src/core/components/FormattedMessage.tsx b/packages/inula-intl/src/core/components/FormattedMessage.tsx index 837498c0..852e8b43 100644 --- a/packages/inula-intl/src/core/components/FormattedMessage.tsx +++ b/packages/inula-intl/src/core/components/FormattedMessage.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Inula, { Children, Fragment } from 'inulajs'; import { FormattedMessageProps } from '../../types/interfaces'; diff --git a/packages/inula-intl/src/core/components/I18nProvider.tsx b/packages/inula-intl/src/core/components/I18nProvider.tsx index 35730bf2..0d8954a0 100644 --- a/packages/inula-intl/src/core/components/I18nProvider.tsx +++ b/packages/inula-intl/src/core/components/I18nProvider.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Inula, { useRef, useState, useEffect, useMemo, Component } from 'inulajs'; import utils from '../../utils/utils'; diff --git a/packages/inula-intl/src/core/components/InjectI18n.tsx b/packages/inula-intl/src/core/components/InjectI18n.tsx index 859a8930..01476121 100644 --- a/packages/inula-intl/src/core/components/InjectI18n.tsx +++ b/packages/inula-intl/src/core/components/InjectI18n.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Inula , { createContext, forwardRef } from 'inulajs'; import { isVariantI18n } from '../../utils/utils'; diff --git a/packages/inula-intl/src/core/createI18n.ts b/packages/inula-intl/src/core/createI18n.ts index b731c5ab..6069e353 100644 --- a/packages/inula-intl/src/core/createI18n.ts +++ b/packages/inula-intl/src/core/createI18n.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { configProps, I18nCache } from '../types/interfaces'; import I18n, { createI18nInstance } from './I18n'; diff --git a/packages/inula-intl/src/core/hook/useI18n.ts b/packages/inula-intl/src/core/hook/useI18n.ts index 48615a86..25cfa3f2 100644 --- a/packages/inula-intl/src/core/hook/useI18n.ts +++ b/packages/inula-intl/src/core/hook/useI18n.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Inula, { useContext } from 'inulajs'; import utils from '../../utils/utils'; diff --git a/packages/inula-intl/src/format/Translation.ts b/packages/inula-intl/src/format/Translation.ts index 66089fab..8cb629a3 100644 --- a/packages/inula-intl/src/format/Translation.ts +++ b/packages/inula-intl/src/format/Translation.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { UNICODE_REG } from '../constants'; diff --git a/packages/inula-intl/src/format/cache/cache.ts b/packages/inula-intl/src/format/cache/cache.ts index 0b066faf..e783f92c 100644 --- a/packages/inula-intl/src/format/cache/cache.ts +++ b/packages/inula-intl/src/format/cache/cache.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { I18nCache } from '../../types/interfaces'; diff --git a/packages/inula-intl/src/format/fomatters/DateTimeFormatter.ts b/packages/inula-intl/src/format/fomatters/DateTimeFormatter.ts index 44c4185f..0f61fbe8 100644 --- a/packages/inula-intl/src/format/fomatters/DateTimeFormatter.ts +++ b/packages/inula-intl/src/format/fomatters/DateTimeFormatter.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import creatI18nCache from '../cache/cache'; diff --git a/packages/inula-intl/src/format/fomatters/NumberFormatter.ts b/packages/inula-intl/src/format/fomatters/NumberFormatter.ts index 92cddda9..b678d008 100644 --- a/packages/inula-intl/src/format/fomatters/NumberFormatter.ts +++ b/packages/inula-intl/src/format/fomatters/NumberFormatter.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import creatI18nCache from '../cache/cache'; diff --git a/packages/inula-intl/src/format/fomatters/PluralFormatter.ts b/packages/inula-intl/src/format/fomatters/PluralFormatter.ts index ff843351..0f521958 100644 --- a/packages/inula-intl/src/format/fomatters/PluralFormatter.ts +++ b/packages/inula-intl/src/format/fomatters/PluralFormatter.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import utils from '../../utils/utils'; diff --git a/packages/inula-intl/src/format/fomatters/SelectFormatter.ts b/packages/inula-intl/src/format/fomatters/SelectFormatter.ts index ee57fabd..78e5ecc0 100644 --- a/packages/inula-intl/src/format/fomatters/SelectFormatter.ts +++ b/packages/inula-intl/src/format/fomatters/SelectFormatter.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import utils from '../../utils/utils'; diff --git a/packages/inula-intl/src/format/generateFormatters.ts b/packages/inula-intl/src/format/generateFormatters.ts index a6b43d8a..d0f117a9 100644 --- a/packages/inula-intl/src/format/generateFormatters.ts +++ b/packages/inula-intl/src/format/generateFormatters.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import DateTimeFormatter from './fomatters/DateTimeFormatter'; diff --git a/packages/inula-intl/src/format/getFormatMessage.ts b/packages/inula-intl/src/format/getFormatMessage.ts index aff396ea..77762866 100644 --- a/packages/inula-intl/src/format/getFormatMessage.ts +++ b/packages/inula-intl/src/format/getFormatMessage.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import utils from '../utils/utils'; diff --git a/packages/inula-intl/src/parser/Lexer.ts b/packages/inula-intl/src/parser/Lexer.ts index 6b2e8392..c233861e 100644 --- a/packages/inula-intl/src/parser/Lexer.ts +++ b/packages/inula-intl/src/parser/Lexer.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import ruleUtils from '../utils/parseRuleUtils'; diff --git a/packages/inula-intl/src/parser/mappingRule.ts b/packages/inula-intl/src/parser/mappingRule.ts index bdff609f..962816ca 100644 --- a/packages/inula-intl/src/parser/mappingRule.ts +++ b/packages/inula-intl/src/parser/mappingRule.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ const body: Record = { diff --git a/packages/inula-intl/src/parser/parseMappingRule.ts b/packages/inula-intl/src/parser/parseMappingRule.ts index 98acc9ed..55e9af13 100644 --- a/packages/inula-intl/src/parser/parseMappingRule.ts +++ b/packages/inula-intl/src/parser/parseMappingRule.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Lexer from './Lexer'; diff --git a/packages/inula-intl/src/parser/parser.ts b/packages/inula-intl/src/parser/parser.ts index 23b04caf..76a6f9fd 100644 --- a/packages/inula-intl/src/parser/parser.ts +++ b/packages/inula-intl/src/parser/parser.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { lexer } from './parseMappingRule'; diff --git a/packages/inula-intl/src/types/interfaces.ts b/packages/inula-intl/src/types/interfaces.ts index e963df7f..2c540caf 100644 --- a/packages/inula-intl/src/types/interfaces.ts +++ b/packages/inula-intl/src/types/interfaces.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { diff --git a/packages/inula-intl/src/types/types.ts b/packages/inula-intl/src/types/types.ts index f4cd8025..2a7e463b 100644 --- a/packages/inula-intl/src/types/types.ts +++ b/packages/inula-intl/src/types/types.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { diff --git a/packages/inula-intl/src/utils/copyStaticProps.ts b/packages/inula-intl/src/utils/copyStaticProps.ts index b7192f2a..c46de88a 100644 --- a/packages/inula-intl/src/utils/copyStaticProps.ts +++ b/packages/inula-intl/src/utils/copyStaticProps.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { isMemo, ForwardRef } from 'inulajs'; import { diff --git a/packages/inula-intl/src/utils/eventListener.ts b/packages/inula-intl/src/utils/eventListener.ts index 26f9250f..ef290e79 100644 --- a/packages/inula-intl/src/utils/eventListener.ts +++ b/packages/inula-intl/src/utils/eventListener.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { EventCallback } from "../types/types"; diff --git a/packages/inula-intl/src/utils/getTokenAST.ts b/packages/inula-intl/src/utils/getTokenAST.ts index 952dccf7..67a8f0ff 100644 --- a/packages/inula-intl/src/utils/getTokenAST.ts +++ b/packages/inula-intl/src/utils/getTokenAST.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + /** * 将parse后的Token数组针对不同的匀速类型进行处理 */ diff --git a/packages/inula-intl/src/utils/parseRuleUtils.ts b/packages/inula-intl/src/utils/parseRuleUtils.ts index eecdbdeb..a28bd1f7 100644 --- a/packages/inula-intl/src/utils/parseRuleUtils.ts +++ b/packages/inula-intl/src/utils/parseRuleUtils.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ function getType(input: any): string { diff --git a/packages/inula-intl/src/utils/utils.ts b/packages/inula-intl/src/utils/utils.ts index cd6d9de6..d58dbd54 100644 --- a/packages/inula-intl/src/utils/utils.ts +++ b/packages/inula-intl/src/utils/utils.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { CompiledMessage } from "../types/types"; import parse from "../parser/parser"; diff --git a/packages/inula-intl/tests/core/I18n.test.ts b/packages/inula-intl/tests/core/I18n.test.ts index 8a86b60c..3da70296 100644 --- a/packages/inula-intl/tests/core/I18n.test.ts +++ b/packages/inula-intl/tests/core/I18n.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import I18n from '../../src/core/I18n'; diff --git a/packages/inula-intl/tests/core/components/FormattedMessage.test.tsx b/packages/inula-intl/tests/core/components/FormattedMessage.test.tsx index eafa16c9..9e63aafc 100644 --- a/packages/inula-intl/tests/core/components/FormattedMessage.test.tsx +++ b/packages/inula-intl/tests/core/components/FormattedMessage.test.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import * as React from 'react'; import I18nProvider from '../../../src/core/components/I18nProvider'; diff --git a/packages/inula-intl/tests/core/components/I18nProvider.test.tsx b/packages/inula-intl/tests/core/components/I18nProvider.test.tsx index 279d3de0..9430620e 100644 --- a/packages/inula-intl/tests/core/components/I18nProvider.test.tsx +++ b/packages/inula-intl/tests/core/components/I18nProvider.test.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import * as React from 'react'; diff --git a/packages/inula-intl/tests/core/components/InjectI18n.test.tsx b/packages/inula-intl/tests/core/components/InjectI18n.test.tsx index d556c746..6ba1f71f 100644 --- a/packages/inula-intl/tests/core/components/InjectI18n.test.tsx +++ b/packages/inula-intl/tests/core/components/InjectI18n.test.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import * as React from 'react'; diff --git a/packages/inula-intl/tests/core/creatI18n.test.ts b/packages/inula-intl/tests/core/creatI18n.test.ts index 2fc8b74b..558bf7f2 100644 --- a/packages/inula-intl/tests/core/creatI18n.test.ts +++ b/packages/inula-intl/tests/core/creatI18n.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import createI18n from '../../src/core/createI18n'; diff --git a/packages/inula-intl/tests/core/hooks/useIntl.test.tsx b/packages/inula-intl/tests/core/hooks/useIntl.test.tsx index d346e339..8604b5c0 100644 --- a/packages/inula-intl/tests/core/hooks/useIntl.test.tsx +++ b/packages/inula-intl/tests/core/hooks/useIntl.test.tsx @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import * as React from 'react' diff --git a/packages/inula-intl/tests/format/Translation.test.ts b/packages/inula-intl/tests/format/Translation.test.ts index 1551f98e..568861f8 100644 --- a/packages/inula-intl/tests/format/Translation.test.ts +++ b/packages/inula-intl/tests/format/Translation.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Translation from '../../src/format/Translation'; diff --git a/packages/inula-intl/tests/format/cache/cache.test.ts b/packages/inula-intl/tests/format/cache/cache.test.ts index caa1d632..1a74a791 100644 --- a/packages/inula-intl/tests/format/cache/cache.test.ts +++ b/packages/inula-intl/tests/format/cache/cache.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import creatI18nCache from '../../../src/format/cache/cache'; diff --git a/packages/inula-intl/tests/format/compile.test.ts b/packages/inula-intl/tests/format/compile.test.ts index 51187c2e..46b3886e 100644 --- a/packages/inula-intl/tests/format/compile.test.ts +++ b/packages/inula-intl/tests/format/compile.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import Translation from '../../src/format/Translation'; import utils from '../../src/utils/utils'; diff --git a/packages/inula-intl/tests/format/formatters/DateTimeFormatter.test.ts b/packages/inula-intl/tests/format/formatters/DateTimeFormatter.test.ts index 8b2bf79d..aa3c80c2 100644 --- a/packages/inula-intl/tests/format/formatters/DateTimeFormatter.test.ts +++ b/packages/inula-intl/tests/format/formatters/DateTimeFormatter.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { DateTimeFormatter } from '../../../index'; diff --git a/packages/inula-intl/tests/format/formatters/NumberFormatter.test.ts b/packages/inula-intl/tests/format/formatters/NumberFormatter.test.ts index 94bb8648..12f46aaa 100644 --- a/packages/inula-intl/tests/format/formatters/NumberFormatter.test.ts +++ b/packages/inula-intl/tests/format/formatters/NumberFormatter.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { NumberFormatter } from '../../../index'; diff --git a/packages/inula-intl/tests/format/getFormatMessage.test.ts b/packages/inula-intl/tests/format/getFormatMessage.test.ts index 7fc4c93e..f64c842f 100644 --- a/packages/inula-intl/tests/format/getFormatMessage.test.ts +++ b/packages/inula-intl/tests/format/getFormatMessage.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { getFormatMessage } from '../../src/format/getFormatMessage'; import I18n from '../../src/core/I18n'; diff --git a/packages/inula-intl/tests/index.test.ts b/packages/inula-intl/tests/index.test.ts index ee762935..6339c3a8 100644 --- a/packages/inula-intl/tests/index.test.ts +++ b/packages/inula-intl/tests/index.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { defineMessage, defineMessages } from '../index'; diff --git a/packages/inula-intl/tests/parser/checkSelectType.test.ts b/packages/inula-intl/tests/parser/checkSelectType.test.ts index 611f1804..54260dbe 100644 --- a/packages/inula-intl/tests/parser/checkSelectType.test.ts +++ b/packages/inula-intl/tests/parser/checkSelectType.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { checkSelectType } from '../../src/parser/parser'; diff --git a/packages/inula-intl/tests/parser/checkStateGroup.test.ts b/packages/inula-intl/tests/parser/checkStateGroup.test.ts index 8529084a..92bed937 100644 --- a/packages/inula-intl/tests/parser/checkStateGroup.test.ts +++ b/packages/inula-intl/tests/parser/checkStateGroup.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import { checkStateGroup } from '../../src/parser/parseMappingRule'; diff --git a/packages/inula-intl/tests/utils/copyStatics.test.ts b/packages/inula-intl/tests/utils/copyStatics.test.ts index 9c64e0f7..ead6a6a8 100644 --- a/packages/inula-intl/tests/utils/copyStatics.test.ts +++ b/packages/inula-intl/tests/utils/copyStatics.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import copyStaticProps from '../../src/utils/copyStaticProps'; diff --git a/packages/inula-intl/tests/utils/eventListener.test.ts b/packages/inula-intl/tests/utils/eventListener.test.ts index 1b6e51cb..693290cb 100644 --- a/packages/inula-intl/tests/utils/eventListener.test.ts +++ b/packages/inula-intl/tests/utils/eventListener.test.ts @@ -1,6 +1,17 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import EventEmitter from '../../src/utils/eventListener'; diff --git a/packages/inula-intl/tests/utils/generateKey.test.ts b/packages/inula-intl/tests/utils/generateKey.test.ts index 4f47c734..60b28270 100644 --- a/packages/inula-intl/tests/utils/generateKey.test.ts +++ b/packages/inula-intl/tests/utils/generateKey.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import utils from '../../src/utils/utils'; diff --git a/packages/inula-intl/tests/utils/getTokenAST.test.ts b/packages/inula-intl/tests/utils/getTokenAST.test.ts index 731076b2..7862db30 100644 --- a/packages/inula-intl/tests/utils/getTokenAST.test.ts +++ b/packages/inula-intl/tests/utils/getTokenAST.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import getTokenAST from '../../src/utils/getTokenAST'; import * as assert from 'assert'; diff --git a/packages/inula-intl/tests/utils/ruleUtils.test.ts b/packages/inula-intl/tests/utils/ruleUtils.test.ts index 7723dbcb..b571ae51 100644 --- a/packages/inula-intl/tests/utils/ruleUtils.test.ts +++ b/packages/inula-intl/tests/utils/ruleUtils.test.ts @@ -1,5 +1,16 @@ /* - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. */ import ruleUtils from '../../src/utils/parseRuleUtils'; diff --git a/packages/inula-intl/webpack.config.js b/packages/inula-intl/webpack.config.js index 4d45992d..aa49ff04 100644 --- a/packages/inula-intl/webpack.config.js +++ b/packages/inula-intl/webpack.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + const { resolve } = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const isDevelopment = process.env.NODE_ENV === 'development'; diff --git a/packages/inula-request/.eslintrc.js b/packages/inula-request/.eslintrc.js index 46f2b651..a0c1c60f 100644 --- a/packages/inula-request/.eslintrc.js +++ b/packages/inula-request/.eslintrc.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + module.exports = { extends: [ 'eslint:recommended', diff --git a/packages/inula-request/.prettierrc.js b/packages/inula-request/.prettierrc.js index 18746c04..c2622eaa 100644 --- a/packages/inula-request/.prettierrc.js +++ b/packages/inula-request/.prettierrc.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + 'use strict'; module.exports = { diff --git a/packages/inula-request/babel.config.js b/packages/inula-request/babel.config.js index cdefbd6d..8fbcfa69 100644 --- a/packages/inula-request/babel.config.js +++ b/packages/inula-request/babel.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + module.exports = { presets: [ [ diff --git a/packages/inula-request/examples/server/serverTest.mjs b/packages/inula-request/examples/server/serverTest.mjs index fe69ceae..8dd561d3 100644 --- a/packages/inula-request/examples/server/serverTest.mjs +++ b/packages/inula-request/examples/server/serverTest.mjs @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import express from "express"; import * as fs from "fs"; import bodyParser from "body-parser"; diff --git a/packages/inula-request/examples/useIR/App .jsx b/packages/inula-request/examples/useIR/App .jsx index 86793b2d..c8fb46dd 100644 --- a/packages/inula-request/examples/useIR/App .jsx +++ b/packages/inula-request/examples/useIR/App .jsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula, { useState } from 'inulajs'; import { useIR } from '../../index'; diff --git a/packages/inula-request/examples/useIR/index.jsx b/packages/inula-request/examples/useIR/index.jsx index 5a2dbf2b..e78c3ab5 100644 --- a/packages/inula-request/examples/useIR/index.jsx +++ b/packages/inula-request/examples/useIR/index.jsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import App from "./App "; diff --git a/packages/inula-request/index.ts b/packages/inula-request/index.ts index dbe90c7f..464cdd8b 100644 --- a/packages/inula-request/index.ts +++ b/packages/inula-request/index.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import inulaRequest from './src/inulaRequest'; import useIR from './src/core/useIR/useIR'; diff --git a/packages/inula-request/jest.config.cjs b/packages/inula-request/jest.config.cjs index f58df5e7..1d02ca5e 100644 --- a/packages/inula-request/jest.config.cjs +++ b/packages/inula-request/jest.config.cjs @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + module.exports = { clearMocks: true, collectCoverage: true, diff --git a/packages/inula-request/rollup.config.example.js b/packages/inula-request/rollup.config.example.js index 71bd9527..38df111b 100644 --- a/packages/inula-request/rollup.config.example.js +++ b/packages/inula-request/rollup.config.example.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import typescript from 'rollup-plugin-typescript2'; import resolve from 'rollup-plugin-node-resolve'; // 解析第三方模块,并将它们包含在最终的打包文件中 import commonjs from 'rollup-plugin-commonjs'; // 将 CommonJS 模块转换为 ES6 模块 diff --git a/packages/inula-request/rollup.config.js b/packages/inula-request/rollup.config.js index c864ed34..54689cb2 100644 --- a/packages/inula-request/rollup.config.js +++ b/packages/inula-request/rollup.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import typescript from 'rollup-plugin-typescript2'; import resolve from 'rollup-plugin-node-resolve'; // 解析第三方模块,并将它们包含在最终的打包文件中 import commonjs from 'rollup-plugin-commonjs'; // 将 CommonJS 模块转换为 ES6 模块 diff --git a/packages/inula-request/src/cancel/Cancel.ts b/packages/inula-request/src/cancel/Cancel.ts index 80d1f6fc..d8341f93 100644 --- a/packages/inula-request/src/cancel/Cancel.ts +++ b/packages/inula-request/src/cancel/Cancel.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + class Cancel { message?: string; cancelFlag?: boolean; // 用于标志是否为用户主动取消 diff --git a/packages/inula-request/src/cancel/CancelError.ts b/packages/inula-request/src/cancel/CancelError.ts index 74a962ef..fbc0d32d 100644 --- a/packages/inula-request/src/cancel/CancelError.ts +++ b/packages/inula-request/src/cancel/CancelError.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import IrError from '../core/IrError'; import { IrRequestConfig } from '../types/interfaces'; diff --git a/packages/inula-request/src/cancel/CancelToken.ts b/packages/inula-request/src/cancel/CancelToken.ts index 0da15502..bed0cc6c 100644 --- a/packages/inula-request/src/cancel/CancelToken.ts +++ b/packages/inula-request/src/cancel/CancelToken.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Cancel from './Cancel'; import { CancelFunction, CancelExecutor } from '../types/types'; import { CancelToken as CancelTokenInstance } from '../types/interfaces'; diff --git a/packages/inula-request/src/cancel/checkCancel.ts b/packages/inula-request/src/cancel/checkCancel.ts index 3651b334..2fb875fb 100644 --- a/packages/inula-request/src/cancel/checkCancel.ts +++ b/packages/inula-request/src/cancel/checkCancel.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + // 检查是否为用户主动请求取消场景 function checkCancel(input: any): boolean { return input.cancelFlag || false; diff --git a/packages/inula-request/src/config/defaultConfig.ts b/packages/inula-request/src/config/defaultConfig.ts index 5293ab00..d4e279e7 100644 --- a/packages/inula-request/src/config/defaultConfig.ts +++ b/packages/inula-request/src/config/defaultConfig.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + const defaultConfig = { method: 'GET', diff --git a/packages/inula-request/src/core/InulaRequest.ts b/packages/inula-request/src/core/InulaRequest.ts index 7fb215f4..fc38a7e8 100644 --- a/packages/inula-request/src/core/InulaRequest.ts +++ b/packages/inula-request/src/core/InulaRequest.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import getMergedConfig from '../utils/configUtils/getMergedConfig'; import IrHeaders from './IrHeaders'; import InterceptorManager from '../interceptor/InterceptorManager'; diff --git a/packages/inula-request/src/core/IrError.ts b/packages/inula-request/src/core/IrError.ts index 2e9ddd48..4f4f9605 100644 --- a/packages/inula-request/src/core/IrError.ts +++ b/packages/inula-request/src/core/IrError.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../utils/commonUtils/utils'; import { IrErrorInterface, IrInstance, IrRequestConfig, IrResponse } from '../types/interfaces'; diff --git a/packages/inula-request/src/core/IrHeaders.ts b/packages/inula-request/src/core/IrHeaders.ts index bf6a6933..fdd70587 100644 --- a/packages/inula-request/src/core/IrHeaders.ts +++ b/packages/inula-request/src/core/IrHeaders.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../utils/commonUtils/utils'; import convertRawHeaders from '../utils/headerUtils/convertRawHeaders'; import { HeaderMatcher } from '../types/types'; diff --git a/packages/inula-request/src/core/useIR/IRClient.ts b/packages/inula-request/src/core/useIR/IRClient.ts index 4b3c6275..2e427e6d 100644 --- a/packages/inula-request/src/core/useIR/IRClient.ts +++ b/packages/inula-request/src/core/useIR/IRClient.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import inulaRequest from '../../inulaRequest'; import { CacheItem, IrRequestConfig, Limitation, QueryOptions } from '../../types/interfaces'; import utils from "../../utils/commonUtils/utils"; diff --git a/packages/inula-request/src/core/useIR/useIR.ts b/packages/inula-request/src/core/useIR/useIR.ts index 5bbf0af9..19ade9f7 100644 --- a/packages/inula-request/src/core/useIR/useIR.ts +++ b/packages/inula-request/src/core/useIR/useIR.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import IRClient from './IRClient'; import { IrRequestConfig, QueryOptions } from '../../types/interfaces'; diff --git a/packages/inula-request/src/dataTransformers/transformRequest.ts b/packages/inula-request/src/dataTransformers/transformRequest.ts index 66c106d3..fe2d37d7 100644 --- a/packages/inula-request/src/dataTransformers/transformRequest.ts +++ b/packages/inula-request/src/dataTransformers/transformRequest.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../utils/commonUtils/utils'; import IrHeaders from '../core/IrHeaders'; import getJSONByFormData from '../utils/dataUtils/getJSONByFormData'; diff --git a/packages/inula-request/src/dataTransformers/transformResponse.ts b/packages/inula-request/src/dataTransformers/transformResponse.ts index b97ddd99..4365fc89 100644 --- a/packages/inula-request/src/dataTransformers/transformResponse.ts +++ b/packages/inula-request/src/dataTransformers/transformResponse.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { IrRequestConfig, IrResponse, TransitionalOptions } from '../types/interfaces'; import IrError from '../core/IrError'; import defaultConfig from '../config/defaultConfig'; diff --git a/packages/inula-request/src/interceptor/InterceptorManager.ts b/packages/inula-request/src/interceptor/InterceptorManager.ts index 5475a39b..3543c069 100644 --- a/packages/inula-request/src/interceptor/InterceptorManager.ts +++ b/packages/inula-request/src/interceptor/InterceptorManager.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../utils/commonUtils/utils'; import { InterceptorHandler, IrInterceptorManager } from '../types/interfaces'; import { FulfilledFn, RejectedFn } from '../types/types'; diff --git a/packages/inula-request/src/interceptor/getRequestInterceptorsInfo.ts b/packages/inula-request/src/interceptor/getRequestInterceptorsInfo.ts index a478ffb2..df93222e 100644 --- a/packages/inula-request/src/interceptor/getRequestInterceptorsInfo.ts +++ b/packages/inula-request/src/interceptor/getRequestInterceptorsInfo.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { IrRequestConfig, InterceptorHandler, Interceptors } from '../types/interfaces'; import { FulfilledFn } from '../types/types'; diff --git a/packages/inula-request/src/interceptor/getResponseInterceptorChain.ts b/packages/inula-request/src/interceptor/getResponseInterceptorChain.ts index 421259cd..89c5bf48 100644 --- a/packages/inula-request/src/interceptor/getResponseInterceptorChain.ts +++ b/packages/inula-request/src/interceptor/getResponseInterceptorChain.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { FulfilledFn } from '../types/types'; import { InterceptorHandler } from '../types/interfaces'; diff --git a/packages/inula-request/src/interceptor/handleAsyncInterceptor.ts b/packages/inula-request/src/interceptor/handleAsyncInterceptor.ts index 23a4a151..b61f52f5 100644 --- a/packages/inula-request/src/interceptor/handleAsyncInterceptor.ts +++ b/packages/inula-request/src/interceptor/handleAsyncInterceptor.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { FulfilledFn } from '../types/types'; import { IrRequestConfig } from '../types/interfaces'; diff --git a/packages/inula-request/src/interceptor/handleSyncInterceptor.ts b/packages/inula-request/src/interceptor/handleSyncInterceptor.ts index 40b676ba..ef23c8fe 100644 --- a/packages/inula-request/src/interceptor/handleSyncInterceptor.ts +++ b/packages/inula-request/src/interceptor/handleSyncInterceptor.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { FulfilledFn } from '../types/types'; // 处理同步拦截器 diff --git a/packages/inula-request/src/inulaRequest.ts b/packages/inula-request/src/inulaRequest.ts index 13f98ffa..e2286ff4 100644 --- a/packages/inula-request/src/inulaRequest.ts +++ b/packages/inula-request/src/inulaRequest.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import InulaRequest from './core/InulaRequest'; import utils from './utils/commonUtils/utils'; import { CancelTokenStatic, IrInterface, IrRequestConfig } from './types/interfaces'; diff --git a/packages/inula-request/src/request/fetchRequest.ts b/packages/inula-request/src/request/fetchRequest.ts index c6eec758..33dcf657 100644 --- a/packages/inula-request/src/request/fetchRequest.ts +++ b/packages/inula-request/src/request/fetchRequest.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../utils/commonUtils/utils'; import IrError from '../core/IrError'; import { IrRequestConfig, IrResponse, Cancel } from '../types/interfaces'; diff --git a/packages/inula-request/src/request/ieCompatibility/CustomAbortController.ts b/packages/inula-request/src/request/ieCompatibility/CustomAbortController.ts index 4e4bca63..083e4d9e 100644 --- a/packages/inula-request/src/request/ieCompatibility/CustomAbortController.ts +++ b/packages/inula-request/src/request/ieCompatibility/CustomAbortController.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import CustomAbortSignal from './CustomAbortSignal'; class CustomAbortController { diff --git a/packages/inula-request/src/request/ieCompatibility/CustomAbortSignal.ts b/packages/inula-request/src/request/ieCompatibility/CustomAbortSignal.ts index f5473936..eaf19e42 100644 --- a/packages/inula-request/src/request/ieCompatibility/CustomAbortSignal.ts +++ b/packages/inula-request/src/request/ieCompatibility/CustomAbortSignal.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + class CustomAbortSignal { private _isAborted: boolean; private _listeners: Set<() => void>; diff --git a/packages/inula-request/src/request/ieCompatibility/CustomHeaders.ts b/packages/inula-request/src/request/ieCompatibility/CustomHeaders.ts index ce39312a..668d50e1 100644 --- a/packages/inula-request/src/request/ieCompatibility/CustomHeaders.ts +++ b/packages/inula-request/src/request/ieCompatibility/CustomHeaders.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + class CustomHeaders { private _headers: Map; diff --git a/packages/inula-request/src/request/ieCompatibility/CustomResponse.ts b/packages/inula-request/src/request/ieCompatibility/CustomResponse.ts index d27387d1..a900df06 100644 --- a/packages/inula-request/src/request/ieCompatibility/CustomResponse.ts +++ b/packages/inula-request/src/request/ieCompatibility/CustomResponse.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import CustomHeaders from './CustomHeaders'; class CustomResponse { diff --git a/packages/inula-request/src/request/ieCompatibility/fetchLike.ts b/packages/inula-request/src/request/ieCompatibility/fetchLike.ts index 0ff997dc..f7135e25 100644 --- a/packages/inula-request/src/request/ieCompatibility/fetchLike.ts +++ b/packages/inula-request/src/request/ieCompatibility/fetchLike.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { FetchOptions } from '../../types/interfaces'; import CustomResponse from './CustomResponse'; diff --git a/packages/inula-request/src/request/ieFetchRequest.ts b/packages/inula-request/src/request/ieFetchRequest.ts index 94679e04..73f422d2 100644 --- a/packages/inula-request/src/request/ieFetchRequest.ts +++ b/packages/inula-request/src/request/ieFetchRequest.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../utils/commonUtils/utils'; import IrError from '../core/IrError'; import CustomAbortController from './ieCompatibility/CustomAbortController'; diff --git a/packages/inula-request/src/request/processDownloadProgress.ts b/packages/inula-request/src/request/processDownloadProgress.ts index b46c330c..5e2ea808 100644 --- a/packages/inula-request/src/request/processDownloadProgress.ts +++ b/packages/inula-request/src/request/processDownloadProgress.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + function processDownloadProgress(stream: ReadableStream | null, response: Response, onProgress: Function | null) { // 文件下载过程中更新进度 if (onProgress) { diff --git a/packages/inula-request/src/request/processRequest.ts b/packages/inula-request/src/request/processRequest.ts index 07493ed4..f904cdd1 100644 --- a/packages/inula-request/src/request/processRequest.ts +++ b/packages/inula-request/src/request/processRequest.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import CancelError from '../cancel/CancelError'; import { IrRequestConfig, IrResponse } from '../types/interfaces'; import IrHeaders from '../core/IrHeaders'; diff --git a/packages/inula-request/src/request/processUploadProgress.ts b/packages/inula-request/src/request/processUploadProgress.ts index 25f3e35e..5718b858 100644 --- a/packages/inula-request/src/request/processUploadProgress.ts +++ b/packages/inula-request/src/request/processUploadProgress.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { IrRequestConfig, IrResponse } from '../types/interfaces'; import IrError from "../core/IrError"; diff --git a/packages/inula-request/src/types/interfaces.ts b/packages/inula-request/src/types/interfaces.ts index 4a8777a1..5e2439ad 100644 --- a/packages/inula-request/src/types/interfaces.ts +++ b/packages/inula-request/src/types/interfaces.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import IrError from '../core/IrError'; import IrHeaders from '../core/IrHeaders'; import { Method, ResponseType, IrTransformer, FulfilledFn, RejectedFn, Callback } from './types'; diff --git a/packages/inula-request/src/types/types.ts b/packages/inula-request/src/types/types.ts index 634e8016..5edc6390 100644 --- a/packages/inula-request/src/types/types.ts +++ b/packages/inula-request/src/types/types.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import IrHeaders from '../core/IrHeaders'; import { IrRequestConfig, IrResponse } from './interfaces'; diff --git a/packages/inula-request/src/utils/commonUtils/utils.ts b/packages/inula-request/src/utils/commonUtils/utils.ts index 2ef42caf..59ac6354 100644 --- a/packages/inula-request/src/utils/commonUtils/utils.ts +++ b/packages/inula-request/src/utils/commonUtils/utils.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { Callback, FilterFunc, PropFilterFunc } from '../../types/types'; /** diff --git a/packages/inula-request/src/utils/configUtils/deepMerge.ts b/packages/inula-request/src/utils/configUtils/deepMerge.ts index 347ebdd1..3c4ed956 100644 --- a/packages/inula-request/src/utils/configUtils/deepMerge.ts +++ b/packages/inula-request/src/utils/configUtils/deepMerge.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../commonUtils/utils'; // 获取当前上下文对象 diff --git a/packages/inula-request/src/utils/configUtils/getMergedConfig.ts b/packages/inula-request/src/utils/configUtils/getMergedConfig.ts index 1a217321..ce915b6b 100644 --- a/packages/inula-request/src/utils/configUtils/getMergedConfig.ts +++ b/packages/inula-request/src/utils/configUtils/getMergedConfig.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../commonUtils/utils'; import deepMerge from './deepMerge'; diff --git a/packages/inula-request/src/utils/dataUtils/getFormData.ts b/packages/inula-request/src/utils/dataUtils/getFormData.ts index 26c9f869..dba007d5 100644 --- a/packages/inula-request/src/utils/dataUtils/getFormData.ts +++ b/packages/inula-request/src/utils/dataUtils/getFormData.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + function getFormData(obj: Record, formData: FormData = new FormData()): FormData { for (const key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { diff --git a/packages/inula-request/src/utils/dataUtils/getJSONByFormData.ts b/packages/inula-request/src/utils/dataUtils/getJSONByFormData.ts index 6083aa3a..ed29518a 100644 --- a/packages/inula-request/src/utils/dataUtils/getJSONByFormData.ts +++ b/packages/inula-request/src/utils/dataUtils/getJSONByFormData.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../commonUtils/utils'; export function parsePath(name: string): string[] { diff --git a/packages/inula-request/src/utils/dataUtils/transformData.ts b/packages/inula-request/src/utils/dataUtils/transformData.ts index 836c7089..363ae9a8 100644 --- a/packages/inula-request/src/utils/dataUtils/transformData.ts +++ b/packages/inula-request/src/utils/dataUtils/transformData.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import IrHeaders from '../../core/IrHeaders'; import defaultConfig from '../../config/defaultConfig'; import { IrRequestConfig, IrResponse } from '../../types/interfaces'; diff --git a/packages/inula-request/src/utils/headerUtils/checkHeaderName.ts b/packages/inula-request/src/utils/headerUtils/checkHeaderName.ts index da43ef84..3c36cb12 100644 --- a/packages/inula-request/src/utils/headerUtils/checkHeaderName.ts +++ b/packages/inula-request/src/utils/headerUtils/checkHeaderName.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + function checkHeaderName(str: string) { return /^[-_a-zA-Z]+$/.test(str.trim()); } diff --git a/packages/inula-request/src/utils/headerUtils/convertRawHeaders.ts b/packages/inula-request/src/utils/headerUtils/convertRawHeaders.ts index 4ec9f221..439d3dfc 100644 --- a/packages/inula-request/src/utils/headerUtils/convertRawHeaders.ts +++ b/packages/inula-request/src/utils/headerUtils/convertRawHeaders.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { HeaderMap } from '../../types/types'; function convertRawHeaders(rawHeaders: string): HeaderMap { diff --git a/packages/inula-request/src/utils/headerUtils/deleteHeader.ts b/packages/inula-request/src/utils/headerUtils/deleteHeader.ts index dc7239a0..ab00736b 100644 --- a/packages/inula-request/src/utils/headerUtils/deleteHeader.ts +++ b/packages/inula-request/src/utils/headerUtils/deleteHeader.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../commonUtils/utils'; function deleteHeader(this: any, header: string) { diff --git a/packages/inula-request/src/utils/headerUtils/processValueByParser.ts b/packages/inula-request/src/utils/headerUtils/processValueByParser.ts index 795c5cc2..67bdc999 100644 --- a/packages/inula-request/src/utils/headerUtils/processValueByParser.ts +++ b/packages/inula-request/src/utils/headerUtils/processValueByParser.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../commonUtils/utils'; import { HeaderMatcher } from '../../types/types'; diff --git a/packages/inula-request/src/utils/instanceUtils/buildInstance.ts b/packages/inula-request/src/utils/instanceUtils/buildInstance.ts index b58f2e73..5e63c8e1 100644 --- a/packages/inula-request/src/utils/instanceUtils/buildInstance.ts +++ b/packages/inula-request/src/utils/instanceUtils/buildInstance.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { IrInstance, IrRequestConfig } from '../../types/interfaces'; import InulaRequest from '../../core/InulaRequest'; import extendInstance from './extendInstance'; diff --git a/packages/inula-request/src/utils/instanceUtils/extendInstance.ts b/packages/inula-request/src/utils/instanceUtils/extendInstance.ts index fdad968a..a2928543 100644 --- a/packages/inula-request/src/utils/instanceUtils/extendInstance.ts +++ b/packages/inula-request/src/utils/instanceUtils/extendInstance.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import InulaRequest from '../../core/InulaRequest'; import utils from '../commonUtils/utils'; diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/bind.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/bind.test.ts index b957c8fe..39080a70 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/bind.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/bind.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('bind function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/convertToCamelCase.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/convertToCamelCase.test.ts index faaba158..7dd81f77 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/convertToCamelCase.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/convertToCamelCase.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('convertToCamelCase function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/createTypeChecker.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/createTypeChecker.test.ts index 929a33f9..d24266ba 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/createTypeChecker.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/createTypeChecker.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('createTypeChecker function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/extendObject.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/extendObject.test.ts index 71add459..a4c97ffa 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/extendObject.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/extendObject.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('extendObject function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/flattenObject.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/flattenObject.test.ts index 11670bcc..b40e17f0 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/flattenObject.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/flattenObject.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('flattenObject function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/forEach.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/forEach.test.ts index 4340c9a6..47dba88b 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/forEach.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/forEach.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('forEach function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/forEachEntry.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/forEachEntry.test.ts index ffd3ef3c..70d63166 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/forEachEntry.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/forEachEntry.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('forEachEntry function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/getNormalizedValue.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/getNormalizedValue.test.ts index eac93f83..d353e817 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/getNormalizedValue.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/getNormalizedValue.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('getNormalizedValue function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/getObjectByArray.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/getObjectByArray.test.ts index 4e48fb08..eda0934b 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/getObjectByArray.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/getObjectByArray.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('getObjectByArray function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/getObjectKey.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/getObjectKey.test.ts index 2f27ec80..e31ca593 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/getObjectKey.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/getObjectKey.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('getObjectKey function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/getType.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/getType.test.ts index 1ce13e95..e30cc49d 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/getType.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/getType.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('getType function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/objectToQueryString.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/objectToQueryString.test.ts index 0f2db507..ea1c89ec 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/objectToQueryString.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/objectToQueryString.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('objectToQueryString function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/stringifySafely.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/stringifySafely.test.ts index c9254fdc..db36b009 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/stringifySafely.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/stringifySafely.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('stringifySafely function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/toBooleanObject.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/toBooleanObject.test.ts index 865276a4..7286ccb6 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/toBooleanObject.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/toBooleanObject.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('toBooleanObject function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/commonUtils/toJSONSafe.test.ts b/packages/inula-request/tests/unitTest/utils/commonUtils/toJSONSafe.test.ts index 65b14fdd..f5c91502 100644 --- a/packages/inula-request/tests/unitTest/utils/commonUtils/toJSONSafe.test.ts +++ b/packages/inula-request/tests/unitTest/utils/commonUtils/toJSONSafe.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import utils from '../../../../src/utils/commonUtils/utils'; describe('toJSONSafe function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/configUtils/deepMerge.test.ts b/packages/inula-request/tests/unitTest/utils/configUtils/deepMerge.test.ts index 4892ccbc..11b8806c 100644 --- a/packages/inula-request/tests/unitTest/utils/configUtils/deepMerge.test.ts +++ b/packages/inula-request/tests/unitTest/utils/configUtils/deepMerge.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import deepMerge from '../../../../src/utils/configUtils/deepMerge'; describe('deepMerge function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/configUtils/getMergedConfig.test.ts b/packages/inula-request/tests/unitTest/utils/configUtils/getMergedConfig.test.ts index e6062598..bcb0347c 100644 --- a/packages/inula-request/tests/unitTest/utils/configUtils/getMergedConfig.test.ts +++ b/packages/inula-request/tests/unitTest/utils/configUtils/getMergedConfig.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import getMergedConfig from '../../../../src/utils/configUtils/getMergedConfig'; describe('getMergedConfig function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/dataUtils/getFormData.test.ts b/packages/inula-request/tests/unitTest/utils/dataUtils/getFormData.test.ts index c95c216c..0d748f46 100644 --- a/packages/inula-request/tests/unitTest/utils/dataUtils/getFormData.test.ts +++ b/packages/inula-request/tests/unitTest/utils/dataUtils/getFormData.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import getFormData from '../../../../src/utils/dataUtils/getFormData'; describe('getFormData function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/dataUtils/getJSONByFormData.test.ts b/packages/inula-request/tests/unitTest/utils/dataUtils/getJSONByFormData.test.ts index 0f95a724..07342cfb 100644 --- a/packages/inula-request/tests/unitTest/utils/dataUtils/getJSONByFormData.test.ts +++ b/packages/inula-request/tests/unitTest/utils/dataUtils/getJSONByFormData.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import getJSONByFormData from '../../../../src/utils/dataUtils/getJSONByFormData'; describe('getJSONByFormData function', () => { @@ -5,27 +20,27 @@ describe('getJSONByFormData function', () => { const formData = new FormData(); formData.append('name', 'John'); formData.append('age', '30'); - + const result = getJSONByFormData(formData); - + expect(result).toEqual({ name: 'John', age: '30', }); }); - + it('should return null if FormData or entries() is not available', () => { const invalidFormData = {} as FormData; const result = getJSONByFormData(invalidFormData); - + expect(result).toBeNull(); }); - + it('should handle empty FormData', () => { const emptyFormData = new FormData(); - + const result = getJSONByFormData(emptyFormData); - + expect(result).toEqual({}); }); }); \ No newline at end of file diff --git a/packages/inula-request/tests/unitTest/utils/dataUtils/parsePath.test.ts b/packages/inula-request/tests/unitTest/utils/dataUtils/parsePath.test.ts index 1fa20538..3a290e0e 100644 --- a/packages/inula-request/tests/unitTest/utils/dataUtils/parsePath.test.ts +++ b/packages/inula-request/tests/unitTest/utils/dataUtils/parsePath.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { parsePath } from '../../../../src/utils/dataUtils/getJSONByFormData'; describe('parsePath function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/headerUtils/checkHeaderName.test.ts b/packages/inula-request/tests/unitTest/utils/headerUtils/checkHeaderName.test.ts index dc5f6b46..031cf5eb 100644 --- a/packages/inula-request/tests/unitTest/utils/headerUtils/checkHeaderName.test.ts +++ b/packages/inula-request/tests/unitTest/utils/headerUtils/checkHeaderName.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import checkHeaderName from '../../../../src/utils/headerUtils/checkHeaderName'; describe('checkHeaderName', () => { diff --git a/packages/inula-request/tests/unitTest/utils/headerUtils/convertRawHeaders.test.ts b/packages/inula-request/tests/unitTest/utils/headerUtils/convertRawHeaders.test.ts index 7fe6331a..f89db04a 100644 --- a/packages/inula-request/tests/unitTest/utils/headerUtils/convertRawHeaders.test.ts +++ b/packages/inula-request/tests/unitTest/utils/headerUtils/convertRawHeaders.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import convertRawHeaders from '../../../../src/utils/headerUtils/convertRawHeaders'; describe('convertRawHeaders', () => { diff --git a/packages/inula-request/tests/unitTest/utils/headerUtils/deleteHeader.test.ts b/packages/inula-request/tests/unitTest/utils/headerUtils/deleteHeader.test.ts index 5d2d5059..423d3c1e 100644 --- a/packages/inula-request/tests/unitTest/utils/headerUtils/deleteHeader.test.ts +++ b/packages/inula-request/tests/unitTest/utils/headerUtils/deleteHeader.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import deleteHeader from '../../../../src/utils/headerUtils/deleteHeader'; describe('deleteHeader function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/headerUtils/parseKeyValuePairs.test.ts b/packages/inula-request/tests/unitTest/utils/headerUtils/parseKeyValuePairs.test.ts index f7efe925..b5864381 100644 --- a/packages/inula-request/tests/unitTest/utils/headerUtils/parseKeyValuePairs.test.ts +++ b/packages/inula-request/tests/unitTest/utils/headerUtils/parseKeyValuePairs.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { parseKeyValuePairs } from '../../../../src/utils/headerUtils/processValueByParser'; describe('parseKeyValuePairs function', () => { diff --git a/packages/inula-request/tests/unitTest/utils/headerUtils/processValueByParser.test.ts b/packages/inula-request/tests/unitTest/utils/headerUtils/processValueByParser.test.ts index 3267956e..e539fcc2 100644 --- a/packages/inula-request/tests/unitTest/utils/headerUtils/processValueByParser.test.ts +++ b/packages/inula-request/tests/unitTest/utils/headerUtils/processValueByParser.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import processValueByParser from '../../../../src/utils/headerUtils/processValueByParser'; describe('processValueByParser function', () => { diff --git a/packages/inula-request/webpack.config.js b/packages/inula-request/webpack.config.js index 56813b11..6dde461d 100644 --- a/packages/inula-request/webpack.config.js +++ b/packages/inula-request/webpack.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + // 引入路径包 const path = require('path'); diff --git a/packages/inula-request/webpack.useIR.config.js b/packages/inula-request/webpack.useIR.config.js index 129dcc92..77fb452c 100644 --- a/packages/inula-request/webpack.useIR.config.js +++ b/packages/inula-request/webpack.useIR.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const {resolve} = require('path'); diff --git a/packages/inula-router/.prettierrc.js b/packages/inula-router/.prettierrc.js index 73dd0047..f9e583d4 100644 --- a/packages/inula-router/.prettierrc.js +++ b/packages/inula-router/.prettierrc.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula-router/babel.config.js b/packages/inula-router/babel.config.js index 011e3347..b871f49c 100644 --- a/packages/inula-router/babel.config.js +++ b/packages/inula-router/babel.config.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * openGauss is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula-router/build-types.js b/packages/inula-router/build-types.js index 665ceb1a..0c529e8e 100644 --- a/packages/inula-router/build-types.js +++ b/packages/inula-router/build-types.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import dts from 'rollup-plugin-dts'; import fs from 'fs'; diff --git a/packages/inula-router/build.js b/packages/inula-router/build.js index 34c00b36..a99fa8b6 100644 --- a/packages/inula-router/build.js +++ b/packages/inula-router/build.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import path from 'path'; import fs from 'fs'; import { fileURLToPath } from 'url'; diff --git a/packages/inula-router/jest.config.js b/packages/inula-router/jest.config.js index 46e31642..fa5224a6 100644 --- a/packages/inula-router/jest.config.js +++ b/packages/inula-router/jest.config.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + export default { preset: 'ts-jest', testMatch: ['**/__tests__/*.test.[jt]s?(x)'], diff --git a/packages/inula-router/src/connect-router/actions.ts b/packages/inula-router/src/connect-router/actions.ts index 89dd2859..fb6da0fa 100644 --- a/packages/inula-router/src/connect-router/actions.ts +++ b/packages/inula-router/src/connect-router/actions.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { Action, Path } from '../history/types'; type Location = Partial diff --git a/packages/inula-router/src/connect-router/connectedRouter.tsx b/packages/inula-router/src/connect-router/connectedRouter.tsx index e8240879..c78eaf8e 100644 --- a/packages/inula-router/src/connect-router/connectedRouter.tsx +++ b/packages/inula-router/src/connect-router/connectedRouter.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import { useLayoutEffect, useRef, reduxAdapter, InulaNode } from 'inulajs'; import { connect, ReactReduxContext } from 'react-redux'; diff --git a/packages/inula-router/src/connect-router/dispatch.ts b/packages/inula-router/src/connect-router/dispatch.ts index 042609fb..971ef2f0 100644 --- a/packages/inula-router/src/connect-router/dispatch.ts +++ b/packages/inula-router/src/connect-router/dispatch.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { ActionMessage, ActionName } from './actions'; import { History } from '../history/types'; diff --git a/packages/inula-router/src/connect-router/index.ts b/packages/inula-router/src/connect-router/index.ts index 25c0afe8..d89208d5 100644 --- a/packages/inula-router/src/connect-router/index.ts +++ b/packages/inula-router/src/connect-router/index.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { createConnectRouter } from './reducer'; export { getConnectedRouter } from './connectedRouter'; diff --git a/packages/inula-router/src/connect-router/reducer.ts b/packages/inula-router/src/connect-router/reducer.ts index 7f50c8e7..f09011ab 100644 --- a/packages/inula-router/src/connect-router/reducer.ts +++ b/packages/inula-router/src/connect-router/reducer.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { ActionName } from './actions'; import { Action, History } from '../history/types'; import { Location } from '../router'; diff --git a/packages/inula-router/src/connect-router/reduxUtils.ts b/packages/inula-router/src/connect-router/reduxUtils.ts index 80c23da4..d09f42ee 100644 --- a/packages/inula-router/src/connect-router/reduxUtils.ts +++ b/packages/inula-router/src/connect-router/reduxUtils.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { Location } from '../router'; import { Action } from '../history/types'; diff --git a/packages/inula-router/src/history/__tests__/history.test.ts b/packages/inula-router/src/history/__tests__/history.test.ts index 0653b6f7..3d6dbb83 100644 --- a/packages/inula-router/src/history/__tests__/history.test.ts +++ b/packages/inula-router/src/history/__tests__/history.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { createPath } from '../utils'; describe('createPath', () => { diff --git a/packages/inula-router/src/history/baseHistory.ts b/packages/inula-router/src/history/baseHistory.ts index e534f3ce..0bbb388f 100644 --- a/packages/inula-router/src/history/baseHistory.ts +++ b/packages/inula-router/src/history/baseHistory.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { HistoryProps, Listener, Navigation, Prompt } from './types'; import transitionManager from './transitionManager'; diff --git a/packages/inula-router/src/history/browerHistory.ts b/packages/inula-router/src/history/browerHistory.ts index 0c8abb06..f0b3a7f8 100644 --- a/packages/inula-router/src/history/browerHistory.ts +++ b/packages/inula-router/src/history/browerHistory.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { getDefaultConfirmation, isSupportHistory, isSupportsPopState } from './dom'; import { Action, BaseOption, DefaultStateType, EventType, History, HistoryState, Location, Path, To } from './types'; import { normalizeSlash, createMemoryRecord, createPath, createLocation, stripBasename } from './utils'; diff --git a/packages/inula-router/src/history/dom.ts b/packages/inula-router/src/history/dom.ts index 0db079a2..ddcb6793 100644 --- a/packages/inula-router/src/history/dom.ts +++ b/packages/inula-router/src/history/dom.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + export function isBrowser(): boolean { return typeof window !== 'undefined' && window.document && typeof window.document.createElement === 'function'; } diff --git a/packages/inula-router/src/history/hashHistory.ts b/packages/inula-router/src/history/hashHistory.ts index f755ff1f..c44a85bb 100644 --- a/packages/inula-router/src/history/hashHistory.ts +++ b/packages/inula-router/src/history/hashHistory.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { Action, BaseOption, DefaultStateType, EventType, History, Location, To } from './types'; import { addHeadSlash, diff --git a/packages/inula-router/src/history/transitionManager.ts b/packages/inula-router/src/history/transitionManager.ts index a36f2ade..b771a883 100644 --- a/packages/inula-router/src/history/transitionManager.ts +++ b/packages/inula-router/src/history/transitionManager.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { Action, CallBackFunc, ConfirmationFunc, Listener, Location, Navigation, Prompt, TManager } from './types'; class TransitionManager implements TManager { diff --git a/packages/inula-router/src/history/types.ts b/packages/inula-router/src/history/types.ts index 5c116da7..fb3248da 100644 --- a/packages/inula-router/src/history/types.ts +++ b/packages/inula-router/src/history/types.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + export type BaseOption = { basename?: string; getUserConfirmation?: ConfirmationFunc; diff --git a/packages/inula-router/src/history/utils.ts b/packages/inula-router/src/history/utils.ts index d2bc7306..0fe235a2 100644 --- a/packages/inula-router/src/history/utils.ts +++ b/packages/inula-router/src/history/utils.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { Action, Location, Path, To } from './types'; export function createPath(path: Partial): string { diff --git a/packages/inula-router/src/history/waring.ts b/packages/inula-router/src/history/waring.ts index 74ec8ed6..df3cbd5f 100644 --- a/packages/inula-router/src/history/waring.ts +++ b/packages/inula-router/src/history/waring.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + function warning(condition: any, message: string) { if (condition) { if (console && typeof console.warn === 'function') { diff --git a/packages/inula-router/src/router/BrowserRouter.tsx b/packages/inula-router/src/router/BrowserRouter.tsx index b96090fe..04647076 100644 --- a/packages/inula-router/src/router/BrowserRouter.tsx +++ b/packages/inula-router/src/router/BrowserRouter.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import { useRef, InulaNode } from 'inulajs'; import Router from './Router'; diff --git a/packages/inula-router/src/router/HashRouter.tsx b/packages/inula-router/src/router/HashRouter.tsx index b3c7966c..a6c1a0ea 100644 --- a/packages/inula-router/src/router/HashRouter.tsx +++ b/packages/inula-router/src/router/HashRouter.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import { useRef } from 'inulajs'; import { History } from '../history/types'; diff --git a/packages/inula-router/src/router/Link.tsx b/packages/inula-router/src/router/Link.tsx index f18cbac1..9967b933 100644 --- a/packages/inula-router/src/router/Link.tsx +++ b/packages/inula-router/src/router/Link.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import { useContext, MouseEvent, ComponentType, Ref } from 'inulajs'; import RouterContext from './context'; diff --git a/packages/inula-router/src/router/NavLink.tsx b/packages/inula-router/src/router/NavLink.tsx index 7466321a..5aa212e5 100644 --- a/packages/inula-router/src/router/NavLink.tsx +++ b/packages/inula-router/src/router/NavLink.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import { useContext } from 'inulajs'; import type { LinkProps } from './Link'; diff --git a/packages/inula-router/src/router/Prompt.tsx b/packages/inula-router/src/router/Prompt.tsx index efe643e9..fe4cc2ee 100644 --- a/packages/inula-router/src/router/Prompt.tsx +++ b/packages/inula-router/src/router/Prompt.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import { useContext } from 'inulajs'; import { LifeCycle, LifeCycleProps } from './lifeCycleHook'; diff --git a/packages/inula-router/src/router/Redirect.tsx b/packages/inula-router/src/router/Redirect.tsx index 53ba28e2..c9f68fb2 100644 --- a/packages/inula-router/src/router/Redirect.tsx +++ b/packages/inula-router/src/router/Redirect.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import { useContext } from 'inulajs'; import RouterContext from './context'; diff --git a/packages/inula-router/src/router/Route.tsx b/packages/inula-router/src/router/Route.tsx index ae0a5997..a7190d12 100644 --- a/packages/inula-router/src/router/Route.tsx +++ b/packages/inula-router/src/router/Route.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import { History, Location } from './index'; import { Matched, matchPath } from './matcher/parser'; diff --git a/packages/inula-router/src/router/Router.tsx b/packages/inula-router/src/router/Router.tsx index f6b3868d..29382aef 100644 --- a/packages/inula-router/src/router/Router.tsx +++ b/packages/inula-router/src/router/Router.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import { useLayoutEffect, useMemo, useRef, useState, InulaNode } from 'inulajs'; diff --git a/packages/inula-router/src/router/Switch.tsx b/packages/inula-router/src/router/Switch.tsx index 167d3a1e..fb03d8a8 100644 --- a/packages/inula-router/src/router/Switch.tsx +++ b/packages/inula-router/src/router/Switch.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import { useContext, Children, isValidElement, cloneElement, InulaNode, InulaElement } from 'inulajs'; diff --git a/packages/inula-router/src/router/__tests__/router.test.tsx b/packages/inula-router/src/router/__tests__/router.test.tsx index 659e3ceb..b12edea7 100644 --- a/packages/inula-router/src/router/__tests__/router.test.tsx +++ b/packages/inula-router/src/router/__tests__/router.test.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import * as React from 'react'; import { historyHook, locationHook, Test_Demo, Test_Demo2, Test_Demo3, Test_Demo4 } from './test_app'; import { createBrowserHistory, createHashHistory, Router } from '../index'; diff --git a/packages/inula-router/src/router/__tests__/test_app.tsx b/packages/inula-router/src/router/__tests__/test_app.tsx index 5dfa2ef0..0378faf8 100644 --- a/packages/inula-router/src/router/__tests__/test_app.tsx +++ b/packages/inula-router/src/router/__tests__/test_app.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import React from 'react'; import { History, diff --git a/packages/inula-router/src/router/context.tsx b/packages/inula-router/src/router/context.tsx index 2c645b1c..13ba245c 100644 --- a/packages/inula-router/src/router/context.tsx +++ b/packages/inula-router/src/router/context.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { createContext } from 'inulajs'; import { History, Location } from './index'; import { Matched } from './matcher/parser'; diff --git a/packages/inula-router/src/router/hooks.ts b/packages/inula-router/src/router/hooks.ts index 513ea1b6..bc22f375 100644 --- a/packages/inula-router/src/router/hooks.ts +++ b/packages/inula-router/src/router/hooks.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { useContext } from 'inulajs'; import RouterContext from './context'; import { Matched, matchPath, Params } from './matcher/parser'; diff --git a/packages/inula-router/src/router/index.ts b/packages/inula-router/src/router/index.ts index ce8b8bb0..9ced2726 100644 --- a/packages/inula-router/src/router/index.ts +++ b/packages/inula-router/src/router/index.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { Location as HLocation } from '../history/types'; type Location = Omit, 'key'>; diff --git a/packages/inula-router/src/router/index2.ts b/packages/inula-router/src/router/index2.ts index b3c63921..ea0025be 100644 --- a/packages/inula-router/src/router/index2.ts +++ b/packages/inula-router/src/router/index2.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { Location as HLocation } from '../history/types'; import { getConnectedRouter } from '../connect-router'; diff --git a/packages/inula-router/src/router/lifeCycleHook.ts b/packages/inula-router/src/router/lifeCycleHook.ts index 6a68d602..606765ed 100644 --- a/packages/inula-router/src/router/lifeCycleHook.ts +++ b/packages/inula-router/src/router/lifeCycleHook.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { useLayoutEffect, useRef } from 'inulajs'; export type LifeCycleProps = { diff --git a/packages/inula-router/src/router/matcher/__tests__/lexer.test.ts b/packages/inula-router/src/router/matcher/__tests__/lexer.test.ts index a2f568ae..e35313dd 100644 --- a/packages/inula-router/src/router/matcher/__tests__/lexer.test.ts +++ b/packages/inula-router/src/router/matcher/__tests__/lexer.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { lexer } from '../lexer'; describe('path lexer Test', () => { diff --git a/packages/inula-router/src/router/matcher/__tests__/parser.test.ts b/packages/inula-router/src/router/matcher/__tests__/parser.test.ts index 3823c2f1..91493cf6 100644 --- a/packages/inula-router/src/router/matcher/__tests__/parser.test.ts +++ b/packages/inula-router/src/router/matcher/__tests__/parser.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { matchPath, generatePath, createPathParser } from '../parser'; describe('parser test', () => { diff --git a/packages/inula-router/src/router/matcher/__tests__/utils.test.ts b/packages/inula-router/src/router/matcher/__tests__/utils.test.ts index f837cd70..accc2771 100644 --- a/packages/inula-router/src/router/matcher/__tests__/utils.test.ts +++ b/packages/inula-router/src/router/matcher/__tests__/utils.test.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { cleanPath, scoreCompare } from '../utils'; describe('test for utils', () => { diff --git a/packages/inula-router/src/router/matcher/lexer.ts b/packages/inula-router/src/router/matcher/lexer.ts index fa34e17b..2cba36f8 100644 --- a/packages/inula-router/src/router/matcher/lexer.ts +++ b/packages/inula-router/src/router/matcher/lexer.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { Token, TokenType } from './types'; import { cleanPath } from './utils'; diff --git a/packages/inula-router/src/router/matcher/parser.ts b/packages/inula-router/src/router/matcher/parser.ts index 02354dc7..0598066c 100644 --- a/packages/inula-router/src/router/matcher/parser.ts +++ b/packages/inula-router/src/router/matcher/parser.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { GetURLParams, Parser, ParserOption, TokenType } from './types'; import { lexer } from './lexer'; import { escapeStr, scoreCompare } from './utils'; diff --git a/packages/inula-router/src/router/matcher/types.ts b/packages/inula-router/src/router/matcher/types.ts index 9081b6a4..9d64eda7 100644 --- a/packages/inula-router/src/router/matcher/types.ts +++ b/packages/inula-router/src/router/matcher/types.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { Matched, Params } from './parser'; export type Token = { diff --git a/packages/inula-router/src/router/matcher/utils.ts b/packages/inula-router/src/router/matcher/utils.ts index 14cc6179..dadef2f5 100644 --- a/packages/inula-router/src/router/matcher/utils.ts +++ b/packages/inula-router/src/router/matcher/utils.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + /** * @description 将url中的//转换为/ */ diff --git a/packages/inula-router/src/router/withRouter.tsx b/packages/inula-router/src/router/withRouter.tsx index a5eb1ff6..038d41c6 100644 --- a/packages/inula-router/src/router/withRouter.tsx +++ b/packages/inula-router/src/router/withRouter.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import Inula from 'inulajs'; import { useContext, ComponentType } from 'inulajs'; import RouterContext from './context'; diff --git a/packages/inula/babel.config.js b/packages/inula/babel.config.js index 522db7a3..ce217777 100644 --- a/packages/inula/babel.config.js +++ b/packages/inula/babel.config.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/global.d.ts b/packages/inula/global.d.ts index 963ff285..ebb0bfd0 100644 --- a/packages/inula/global.d.ts +++ b/packages/inula/global.d.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/jest.config.js b/packages/inula/jest.config.js index 5c55a50d..87f24bf7 100644 --- a/packages/inula/jest.config.js +++ b/packages/inula/jest.config.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/npm/index.js b/packages/inula/npm/index.js index 7cf8fa19..56a07fcb 100644 --- a/packages/inula/npm/index.js +++ b/packages/inula/npm/index.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ActTest/act.test.js b/packages/inula/scripts/__tests__/ActTest/act.test.js index 3c5152ed..6b012c89 100644 --- a/packages/inula/scripts/__tests__/ActTest/act.test.js +++ b/packages/inula/scripts/__tests__/ActTest/act.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/ClassRefs.test.js b/packages/inula/scripts/__tests__/ComponentTest/ClassRefs.test.js index edad21a8..14c7db23 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/ClassRefs.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/ClassRefs.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/ComponentError.test.js b/packages/inula/scripts/__tests__/ComponentTest/ComponentError.test.js index ddcd152e..edee5d9c 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/ComponentError.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/ComponentError.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/Context.test.js b/packages/inula/scripts/__tests__/ComponentTest/Context.test.js index 642a5805..f6de0274 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/Context.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/Context.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/DiffAlgorithm.test.js b/packages/inula/scripts/__tests__/ComponentTest/DiffAlgorithm.test.js index eb4e633f..54e102dc 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/DiffAlgorithm.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/DiffAlgorithm.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/ForwardRef.test.js b/packages/inula/scripts/__tests__/ComponentTest/ForwardRef.test.js index fc1fa848..2e861595 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/ForwardRef.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/ForwardRef.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/FragmentComponent.test.js b/packages/inula/scripts/__tests__/ComponentTest/FragmentComponent.test.js index 3706772c..c91c5dac 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/FragmentComponent.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/FragmentComponent.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/FunctionComponent.test.js b/packages/inula/scripts/__tests__/ComponentTest/FunctionComponent.test.js index 7c3c1a56..0b5d18a8 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/FunctionComponent.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/FunctionComponent.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseCallback.test.js b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseCallback.test.js index f8df8dea..5dc7a697 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseCallback.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseCallback.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseContext.test.js b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseContext.test.js index 921f9fe5..e5db8cab 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseContext.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseContext.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseEffect.test.js b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseEffect.test.js index 288a21b8..a2699a3a 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseEffect.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseEffect.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseImperativeHandle.test.js b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseImperativeHandle.test.js index d3e045a7..3b80c679 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseImperativeHandle.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseImperativeHandle.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseLayoutEffect.test.js b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseLayoutEffect.test.js index 0be80f3d..00a52813 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseLayoutEffect.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseLayoutEffect.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseMemo.test.js b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseMemo.test.js index 35ddfb19..460efa9b 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseMemo.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseMemo.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseReducer.test.js b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseReducer.test.js index 3c65f126..e49842bd 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseReducer.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseReducer.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseRef.test.js b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseRef.test.js index a002eda3..08c6ad69 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseRef.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseRef.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseState.test.js b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseState.test.js index d251f74d..2602b711 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseState.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/HookTest/UseState.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/JsxElement.test.js b/packages/inula/scripts/__tests__/ComponentTest/JsxElement.test.js index c1a0f8d1..abf062c7 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/JsxElement.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/JsxElement.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/LazyComponent.test.js b/packages/inula/scripts/__tests__/ComponentTest/LazyComponent.test.js index 4467b4a9..f9f340e0 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/LazyComponent.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/LazyComponent.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/LifeCycle.test.js b/packages/inula/scripts/__tests__/ComponentTest/LifeCycle.test.js index 3b82ade5..9cda4374 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/LifeCycle.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/LifeCycle.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/Memo.test.js b/packages/inula/scripts/__tests__/ComponentTest/Memo.test.js index 159fe8ef..8d29a315 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/Memo.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/Memo.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/PortalComponent.test.js b/packages/inula/scripts/__tests__/ComponentTest/PortalComponent.test.js index 6241c066..4c6924b9 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/PortalComponent.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/PortalComponent.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/ComponentTest/SuspenseComponent.test.js b/packages/inula/scripts/__tests__/ComponentTest/SuspenseComponent.test.js index 85a3a045..6c1469d3 100644 --- a/packages/inula/scripts/__tests__/ComponentTest/SuspenseComponent.test.js +++ b/packages/inula/scripts/__tests__/ComponentTest/SuspenseComponent.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/DomTest/Attribute.test.js b/packages/inula/scripts/__tests__/DomTest/Attribute.test.js index 6bee0d94..9c9b418a 100644 --- a/packages/inula/scripts/__tests__/DomTest/Attribute.test.js +++ b/packages/inula/scripts/__tests__/DomTest/Attribute.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/DomTest/DomInput.test.js b/packages/inula/scripts/__tests__/DomTest/DomInput.test.js index 0270ecb1..2f237b16 100644 --- a/packages/inula/scripts/__tests__/DomTest/DomInput.test.js +++ b/packages/inula/scripts/__tests__/DomTest/DomInput.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/DomTest/DomSelect.test.js b/packages/inula/scripts/__tests__/DomTest/DomSelect.test.js index 267ee327..596a9225 100644 --- a/packages/inula/scripts/__tests__/DomTest/DomSelect.test.js +++ b/packages/inula/scripts/__tests__/DomTest/DomSelect.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/DomTest/DomTextarea.test.js b/packages/inula/scripts/__tests__/DomTest/DomTextarea.test.js index 79fb0c9a..7f793b01 100644 --- a/packages/inula/scripts/__tests__/DomTest/DomTextarea.test.js +++ b/packages/inula/scripts/__tests__/DomTest/DomTextarea.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/EventTest/EventMain.test.js b/packages/inula/scripts/__tests__/EventTest/EventMain.test.js index 10c3638a..c7bdcb74 100644 --- a/packages/inula/scripts/__tests__/EventTest/EventMain.test.js +++ b/packages/inula/scripts/__tests__/EventTest/EventMain.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/EventTest/FocusEvent.test.js b/packages/inula/scripts/__tests__/EventTest/FocusEvent.test.js index 5149f3ee..c201ad43 100644 --- a/packages/inula/scripts/__tests__/EventTest/FocusEvent.test.js +++ b/packages/inula/scripts/__tests__/EventTest/FocusEvent.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/EventTest/KeyboardEvent.test.js b/packages/inula/scripts/__tests__/EventTest/KeyboardEvent.test.js index 7618b85a..5a4780f8 100644 --- a/packages/inula/scripts/__tests__/EventTest/KeyboardEvent.test.js +++ b/packages/inula/scripts/__tests__/EventTest/KeyboardEvent.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/EventTest/MouseEnterEvent.test.js b/packages/inula/scripts/__tests__/EventTest/MouseEnterEvent.test.js index 56d82159..870cdbc1 100644 --- a/packages/inula/scripts/__tests__/EventTest/MouseEnterEvent.test.js +++ b/packages/inula/scripts/__tests__/EventTest/MouseEnterEvent.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/EventTest/MouseEvent.test.js b/packages/inula/scripts/__tests__/EventTest/MouseEvent.test.js index 6e81490c..a840c3d4 100644 --- a/packages/inula/scripts/__tests__/EventTest/MouseEvent.test.js +++ b/packages/inula/scripts/__tests__/EventTest/MouseEvent.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/EventTest/WheelEvent.test.js b/packages/inula/scripts/__tests__/EventTest/WheelEvent.test.js index 18676ebc..02b404a1 100644 --- a/packages/inula/scripts/__tests__/EventTest/WheelEvent.test.js +++ b/packages/inula/scripts/__tests__/EventTest/WheelEvent.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateArray.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateArray.test.tsx index 8ffe2efa..065fdfd6 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateArray.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateArray.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateMap.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateMap.test.tsx index 2892e379..fc81b61b 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateMap.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateMap.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateMixType.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateMixType.test.tsx index ac2ee367..413969af 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateMixType.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateMixType.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateSet.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateSet.test.tsx index a7205e87..0fc657f9 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateSet.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateSet.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateWeakMap.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateWeakMap.test.tsx index 7cdd152c..2cccd515 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateWeakMap.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateWeakMap.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateWeakSet.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateWeakSet.test.tsx index 4c120f59..6e2f322f 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateWeakSet.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/StateManager/StateWeakSet.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/async.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/async.test.tsx index 6799a790..157dea0c 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/async.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/async.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/basicAccess.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/basicAccess.test.tsx index ba630bd5..e12de714 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/basicAccess.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/basicAccess.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/cloneDeep.test.js b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/cloneDeep.test.js index d3c3d51c..340bd488 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/cloneDeep.test.js +++ b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/cloneDeep.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/dollarAccess.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/dollarAccess.test.tsx index 8ae973dc..61edc1d7 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/dollarAccess.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/dollarAccess.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/otherCases.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/otherCases.test.tsx index ae3106ba..b2ebc57e 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/otherCases.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/otherCases.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/reset.js b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/reset.js index 1e9ccc60..828a856e 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/reset.js +++ b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/reset.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/store.ts b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/store.ts index 25013ad2..be33234c 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/store.ts +++ b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/store.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/utils.test.js b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/utils.test.js index 682afbe1..1d544784 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/utils.test.js +++ b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/utils.test.js @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { resolveMutation } from '../../../../src/inulax/CommonUtils'; describe('Mutation resolve', () => { diff --git a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/watch.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/watch.test.tsx index f1c2650e..f63c2ff3 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/watch.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/StoreFunctionality/watch.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/adapters/ReduxAdapter.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/adapters/ReduxAdapter.test.tsx index 0a447f45..109ccbc2 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/adapters/ReduxAdapter.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/adapters/ReduxAdapter.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/adapters/ReduxAdapterThunk.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/adapters/ReduxAdapterThunk.test.tsx index ffd97e73..559e159f 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/adapters/ReduxAdapterThunk.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/adapters/ReduxAdapterThunk.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/adapters/ReduxReactAdapter.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/adapters/ReduxReactAdapter.test.tsx index 420221fd..9c284bd3 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/adapters/ReduxReactAdapter.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/adapters/ReduxReactAdapter.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/adapters/connectTest.tsx b/packages/inula/scripts/__tests__/HorizonXTest/adapters/connectTest.tsx index 35582656..408de658 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/adapters/connectTest.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/adapters/connectTest.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { createElement } from '../../../../src/external/JSXElement'; import { createDomTextVNode } from '../../../../src/renderer/vnode/VNodeCreator'; import { createStore } from '../../../../src/inulax/adapters/redux'; diff --git a/packages/inula/scripts/__tests__/HorizonXTest/class/ClassException.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/class/ClassException.test.tsx index fe72a5aa..eb198e0d 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/class/ClassException.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/class/ClassException.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/class/ClassStateArray.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/class/ClassStateArray.test.tsx index 8f1226cb..7dd050c3 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/class/ClassStateArray.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/class/ClassStateArray.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/class/ClassStateMap.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/class/ClassStateMap.test.tsx index ecee6192..77ec76f2 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/class/ClassStateMap.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/class/ClassStateMap.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/clear/ClassVNodeClear.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/clear/ClassVNodeClear.test.tsx index 53f5c323..66a5c1de 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/clear/ClassVNodeClear.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/clear/ClassVNodeClear.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/clear/FunctionVNodeClear.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/clear/FunctionVNodeClear.test.tsx index 8ff8707c..e5ea1d35 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/clear/FunctionVNodeClear.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/clear/FunctionVNodeClear.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/edgeCases/deepVariableObserver.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/edgeCases/deepVariableObserver.test.tsx index 220c9e65..3853adaa 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/edgeCases/deepVariableObserver.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/edgeCases/deepVariableObserver.test.tsx @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { createStore, useStore } from '../../../../src/index'; import { describe, beforeEach, afterEach, it, expect } from '@jest/globals'; diff --git a/packages/inula/scripts/__tests__/HorizonXTest/edgeCases/multipleStores.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/edgeCases/multipleStores.test.tsx index b7963aa7..17ec7b19 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/edgeCases/multipleStores.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/edgeCases/multipleStores.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/HorizonXTest/edgeCases/proxy.test.tsx b/packages/inula/scripts/__tests__/HorizonXTest/edgeCases/proxy.test.tsx index a32d03a8..43c12d82 100644 --- a/packages/inula/scripts/__tests__/HorizonXTest/edgeCases/proxy.test.tsx +++ b/packages/inula/scripts/__tests__/HorizonXTest/edgeCases/proxy.test.tsx @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/InulaIsTest/index.test.js b/packages/inula/scripts/__tests__/InulaIsTest/index.test.js index 27b29f39..e6d94933 100644 --- a/packages/inula/scripts/__tests__/InulaIsTest/index.test.js +++ b/packages/inula/scripts/__tests__/InulaIsTest/index.test.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/jest/commonComponents.js b/packages/inula/scripts/__tests__/jest/commonComponents.js index 0d456123..1c077786 100644 --- a/packages/inula/scripts/__tests__/jest/commonComponents.js +++ b/packages/inula/scripts/__tests__/jest/commonComponents.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/jest/jestEnvironment.js b/packages/inula/scripts/__tests__/jest/jestEnvironment.js index f571470c..e62beb55 100644 --- a/packages/inula/scripts/__tests__/jest/jestEnvironment.js +++ b/packages/inula/scripts/__tests__/jest/jestEnvironment.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/jest/jestSetting.js b/packages/inula/scripts/__tests__/jest/jestSetting.js index fc28a69e..12eea3ba 100644 --- a/packages/inula/scripts/__tests__/jest/jestSetting.js +++ b/packages/inula/scripts/__tests__/jest/jestSetting.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/jest/logUtils.js b/packages/inula/scripts/__tests__/jest/logUtils.js index e8d8e136..ffd9096f 100644 --- a/packages/inula/scripts/__tests__/jest/logUtils.js +++ b/packages/inula/scripts/__tests__/jest/logUtils.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/jest/testUtils.js b/packages/inula/scripts/__tests__/jest/testUtils.js index 6522ebd8..3fa59da0 100644 --- a/packages/inula/scripts/__tests__/jest/testUtils.js +++ b/packages/inula/scripts/__tests__/jest/testUtils.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/__tests__/utils/dispatchChangeEvent.js b/packages/inula/scripts/__tests__/utils/dispatchChangeEvent.js index 5ba34e6a..a0416d2c 100644 --- a/packages/inula/scripts/__tests__/utils/dispatchChangeEvent.js +++ b/packages/inula/scripts/__tests__/utils/dispatchChangeEvent.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/gen3rdLib.js b/packages/inula/scripts/gen3rdLib.js index 10ce63cd..f3528b5e 100644 --- a/packages/inula/scripts/gen3rdLib.js +++ b/packages/inula/scripts/gen3rdLib.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/rollup/build-types.js b/packages/inula/scripts/rollup/build-types.js index 85146849..630cc9e4 100644 --- a/packages/inula/scripts/rollup/build-types.js +++ b/packages/inula/scripts/rollup/build-types.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/rollup/copy-plugin.js b/packages/inula/scripts/rollup/copy-plugin.js index 9ce60693..78ff1e77 100644 --- a/packages/inula/scripts/rollup/copy-plugin.js +++ b/packages/inula/scripts/rollup/copy-plugin.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/scripts/rollup/rollup.config.js b/packages/inula/scripts/rollup/rollup.config.js index 50fc5075..489ed37d 100644 --- a/packages/inula/scripts/rollup/rollup.config.js +++ b/packages/inula/scripts/rollup/rollup.config.js @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/EventTypes.ts b/packages/inula/src/EventTypes.ts index 69d76d10..0746cb2e 100644 --- a/packages/inula/src/EventTypes.ts +++ b/packages/inula/src/EventTypes.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/DOMExternal.ts b/packages/inula/src/dom/DOMExternal.ts index b745b7dc..001d18f5 100644 --- a/packages/inula/src/dom/DOMExternal.ts +++ b/packages/inula/src/dom/DOMExternal.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/DOMInternalKeys.ts b/packages/inula/src/dom/DOMInternalKeys.ts index baa40fcc..a8727261 100644 --- a/packages/inula/src/dom/DOMInternalKeys.ts +++ b/packages/inula/src/dom/DOMInternalKeys.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/DOMOperator.ts b/packages/inula/src/dom/DOMOperator.ts index 4edc7521..ba032254 100644 --- a/packages/inula/src/dom/DOMOperator.ts +++ b/packages/inula/src/dom/DOMOperator.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/DOMPropertiesHandler/DOMPropertiesHandler.ts b/packages/inula/src/dom/DOMPropertiesHandler/DOMPropertiesHandler.ts index 71f6fc5e..44a7ac8f 100644 --- a/packages/inula/src/dom/DOMPropertiesHandler/DOMPropertiesHandler.ts +++ b/packages/inula/src/dom/DOMPropertiesHandler/DOMPropertiesHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/DOMPropertiesHandler/StyleHandler.ts b/packages/inula/src/dom/DOMPropertiesHandler/StyleHandler.ts index 121c68c0..46496f2f 100644 --- a/packages/inula/src/dom/DOMPropertiesHandler/StyleHandler.ts +++ b/packages/inula/src/dom/DOMPropertiesHandler/StyleHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/DOMPropertiesHandler/UpdateCommonProp.ts b/packages/inula/src/dom/DOMPropertiesHandler/UpdateCommonProp.ts index ba5d6286..1e6c3e23 100644 --- a/packages/inula/src/dom/DOMPropertiesHandler/UpdateCommonProp.ts +++ b/packages/inula/src/dom/DOMPropertiesHandler/UpdateCommonProp.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/SelectionRangeHandler.ts b/packages/inula/src/dom/SelectionRangeHandler.ts index 24402647..e7769821 100644 --- a/packages/inula/src/dom/SelectionRangeHandler.ts +++ b/packages/inula/src/dom/SelectionRangeHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/utils/Common.ts b/packages/inula/src/dom/utils/Common.ts index 69076624..eb096f8d 100644 --- a/packages/inula/src/dom/utils/Common.ts +++ b/packages/inula/src/dom/utils/Common.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/utils/DomCreator.ts b/packages/inula/src/dom/utils/DomCreator.ts index 92c8ec90..41b36da3 100644 --- a/packages/inula/src/dom/utils/DomCreator.ts +++ b/packages/inula/src/dom/utils/DomCreator.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/utils/Interface.ts b/packages/inula/src/dom/utils/Interface.ts index 9cbc2536..5d3e6eaa 100644 --- a/packages/inula/src/dom/utils/Interface.ts +++ b/packages/inula/src/dom/utils/Interface.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/validators/PropertiesData.ts b/packages/inula/src/dom/validators/PropertiesData.ts index 37cc67cc..ac47f517 100644 --- a/packages/inula/src/dom/validators/PropertiesData.ts +++ b/packages/inula/src/dom/validators/PropertiesData.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/validators/ValidateProps.ts b/packages/inula/src/dom/validators/ValidateProps.ts index 1a328a33..2a6b27e1 100644 --- a/packages/inula/src/dom/validators/ValidateProps.ts +++ b/packages/inula/src/dom/validators/ValidateProps.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/valueHandler/InputValueHandler.ts b/packages/inula/src/dom/valueHandler/InputValueHandler.ts index 0b29bcfd..0de3cf60 100644 --- a/packages/inula/src/dom/valueHandler/InputValueHandler.ts +++ b/packages/inula/src/dom/valueHandler/InputValueHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/valueHandler/OptionValueHandler.ts b/packages/inula/src/dom/valueHandler/OptionValueHandler.ts index 7038a096..13532ff5 100644 --- a/packages/inula/src/dom/valueHandler/OptionValueHandler.ts +++ b/packages/inula/src/dom/valueHandler/OptionValueHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/valueHandler/SelectValueHandler.ts b/packages/inula/src/dom/valueHandler/SelectValueHandler.ts index 84b07acc..8308d44f 100644 --- a/packages/inula/src/dom/valueHandler/SelectValueHandler.ts +++ b/packages/inula/src/dom/valueHandler/SelectValueHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/valueHandler/TextareaValueHandler.ts b/packages/inula/src/dom/valueHandler/TextareaValueHandler.ts index d7d5f26b..ce78863c 100644 --- a/packages/inula/src/dom/valueHandler/TextareaValueHandler.ts +++ b/packages/inula/src/dom/valueHandler/TextareaValueHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/valueHandler/ValueChangeHandler.ts b/packages/inula/src/dom/valueHandler/ValueChangeHandler.ts index 99968321..cd07c35c 100644 --- a/packages/inula/src/dom/valueHandler/ValueChangeHandler.ts +++ b/packages/inula/src/dom/valueHandler/ValueChangeHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/dom/valueHandler/index.ts b/packages/inula/src/dom/valueHandler/index.ts index 6a9ad5a3..216f04c4 100644 --- a/packages/inula/src/dom/valueHandler/index.ts +++ b/packages/inula/src/dom/valueHandler/index.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/event/EventBinding.ts b/packages/inula/src/event/EventBinding.ts index aefcf1b4..01b3ea54 100644 --- a/packages/inula/src/event/EventBinding.ts +++ b/packages/inula/src/event/EventBinding.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/event/EventHub.ts b/packages/inula/src/event/EventHub.ts index d813b247..2f8e8a1f 100644 --- a/packages/inula/src/event/EventHub.ts +++ b/packages/inula/src/event/EventHub.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/event/EventWrapper.ts b/packages/inula/src/event/EventWrapper.ts index 2b6fa932..f8fa42a7 100644 --- a/packages/inula/src/event/EventWrapper.ts +++ b/packages/inula/src/event/EventWrapper.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/event/FormValueController.ts b/packages/inula/src/event/FormValueController.ts index 6a3d39a6..eb8eb022 100644 --- a/packages/inula/src/event/FormValueController.ts +++ b/packages/inula/src/event/FormValueController.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/event/InulaEventMain.ts b/packages/inula/src/event/InulaEventMain.ts index c7864485..a281acf1 100644 --- a/packages/inula/src/event/InulaEventMain.ts +++ b/packages/inula/src/event/InulaEventMain.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/event/ListenerGetter.ts b/packages/inula/src/event/ListenerGetter.ts index 03babd8b..bd2de631 100644 --- a/packages/inula/src/event/ListenerGetter.ts +++ b/packages/inula/src/event/ListenerGetter.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/event/MouseEvent.ts b/packages/inula/src/event/MouseEvent.ts index 61bc4d82..b817db36 100644 --- a/packages/inula/src/event/MouseEvent.ts +++ b/packages/inula/src/event/MouseEvent.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/event/Types.ts b/packages/inula/src/event/Types.ts index 4ef5125a..4a43c789 100644 --- a/packages/inula/src/event/Types.ts +++ b/packages/inula/src/event/Types.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/event/utils.ts b/packages/inula/src/event/utils.ts index 947e3fbf..2b2a66b1 100644 --- a/packages/inula/src/event/utils.ts +++ b/packages/inula/src/event/utils.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/external/ChildrenUtil.ts b/packages/inula/src/external/ChildrenUtil.ts index f03fb76a..61ffa1ac 100644 --- a/packages/inula/src/external/ChildrenUtil.ts +++ b/packages/inula/src/external/ChildrenUtil.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/external/InulaIs.ts b/packages/inula/src/external/InulaIs.ts index 3ac86c58..1e3fab99 100644 --- a/packages/inula/src/external/InulaIs.ts +++ b/packages/inula/src/external/InulaIs.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/external/JSXElement.ts b/packages/inula/src/external/JSXElement.ts index 246cf0d6..89a7a3c7 100644 --- a/packages/inula/src/external/JSXElement.ts +++ b/packages/inula/src/external/JSXElement.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/external/JSXElementType.ts b/packages/inula/src/external/JSXElementType.ts index ed84d83f..638c5aa2 100644 --- a/packages/inula/src/external/JSXElementType.ts +++ b/packages/inula/src/external/JSXElementType.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/external/TestUtil.ts b/packages/inula/src/external/TestUtil.ts index b64e15a1..f156b535 100644 --- a/packages/inula/src/external/TestUtil.ts +++ b/packages/inula/src/external/TestUtil.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/external/devtools.ts b/packages/inula/src/external/devtools.ts index 70fbb5b5..5b6d7ff7 100644 --- a/packages/inula/src/external/devtools.ts +++ b/packages/inula/src/external/devtools.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/index.ts b/packages/inula/src/index.ts index bb6d92dc..116ab1f2 100644 --- a/packages/inula/src/index.ts +++ b/packages/inula/src/index.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/CommonUtils.ts b/packages/inula/src/inulax/CommonUtils.ts index ed56dd96..a6c47181 100644 --- a/packages/inula/src/inulax/CommonUtils.ts +++ b/packages/inula/src/inulax/CommonUtils.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/Constants.ts b/packages/inula/src/inulax/Constants.ts index 1e841db7..3e27a7b4 100644 --- a/packages/inula/src/inulax/Constants.ts +++ b/packages/inula/src/inulax/Constants.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/adapters/redux.ts b/packages/inula/src/inulax/adapters/redux.ts index a5da237e..b996abed 100644 --- a/packages/inula/src/inulax/adapters/redux.ts +++ b/packages/inula/src/inulax/adapters/redux.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/adapters/reduxReact.ts b/packages/inula/src/inulax/adapters/reduxReact.ts index 120c5a6d..51650f98 100644 --- a/packages/inula/src/inulax/adapters/reduxReact.ts +++ b/packages/inula/src/inulax/adapters/reduxReact.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/adapters/reduxThunk.ts b/packages/inula/src/inulax/adapters/reduxThunk.ts index ed4381d3..cd14fee6 100644 --- a/packages/inula/src/inulax/adapters/reduxThunk.ts +++ b/packages/inula/src/inulax/adapters/reduxThunk.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/devtools/constants.ts b/packages/inula/src/inulax/devtools/constants.ts index f6478862..e3470e84 100644 --- a/packages/inula/src/inulax/devtools/constants.ts +++ b/packages/inula/src/inulax/devtools/constants.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + export const INITIALIZED = 'inulax store initialized'; export const STATE_CHANGE = 'inulax state change'; export const SUBSCRIBED = 'inulax subscribed'; diff --git a/packages/inula/src/inulax/devtools/index.ts b/packages/inula/src/inulax/devtools/index.ts index e8d00b2d..10c71a9e 100644 --- a/packages/inula/src/inulax/devtools/index.ts +++ b/packages/inula/src/inulax/devtools/index.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. + * + * openInula is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + import { isMap, isSet, isWeakMap, isWeakSet } from '../CommonUtils'; import { getStore, getAllStores } from '../store/StoreHandler'; import { OBSERVED_COMPONENTS } from './constants'; diff --git a/packages/inula/src/inulax/proxy/HooklessObserver.ts b/packages/inula/src/inulax/proxy/HooklessObserver.ts index aea366d9..6a626102 100644 --- a/packages/inula/src/inulax/proxy/HooklessObserver.ts +++ b/packages/inula/src/inulax/proxy/HooklessObserver.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/Observer.ts b/packages/inula/src/inulax/proxy/Observer.ts index de8ba682..0154fa67 100644 --- a/packages/inula/src/inulax/proxy/Observer.ts +++ b/packages/inula/src/inulax/proxy/Observer.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/ProxyHandler.ts b/packages/inula/src/inulax/proxy/ProxyHandler.ts index 2d87cc7f..84480f85 100644 --- a/packages/inula/src/inulax/proxy/ProxyHandler.ts +++ b/packages/inula/src/inulax/proxy/ProxyHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/handlers/ArrayProxyHandler.ts b/packages/inula/src/inulax/proxy/handlers/ArrayProxyHandler.ts index d42804dd..3745443c 100644 --- a/packages/inula/src/inulax/proxy/handlers/ArrayProxyHandler.ts +++ b/packages/inula/src/inulax/proxy/handlers/ArrayProxyHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/handlers/CollectionProxyHandler.ts b/packages/inula/src/inulax/proxy/handlers/CollectionProxyHandler.ts index d2f3cbb7..c0f35926 100644 --- a/packages/inula/src/inulax/proxy/handlers/CollectionProxyHandler.ts +++ b/packages/inula/src/inulax/proxy/handlers/CollectionProxyHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/handlers/MapProxy.ts b/packages/inula/src/inulax/proxy/handlers/MapProxy.ts index efdda1bc..57a4ccd1 100644 --- a/packages/inula/src/inulax/proxy/handlers/MapProxy.ts +++ b/packages/inula/src/inulax/proxy/handlers/MapProxy.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/handlers/ObjectProxyHandler.ts b/packages/inula/src/inulax/proxy/handlers/ObjectProxyHandler.ts index 8a5cf91d..669335ce 100644 --- a/packages/inula/src/inulax/proxy/handlers/ObjectProxyHandler.ts +++ b/packages/inula/src/inulax/proxy/handlers/ObjectProxyHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/handlers/SetProxy.ts b/packages/inula/src/inulax/proxy/handlers/SetProxy.ts index 03f3f8ba..102d08a8 100644 --- a/packages/inula/src/inulax/proxy/handlers/SetProxy.ts +++ b/packages/inula/src/inulax/proxy/handlers/SetProxy.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/handlers/WeakMapProxy.ts b/packages/inula/src/inulax/proxy/handlers/WeakMapProxy.ts index 0e68a54c..4f44d4c6 100644 --- a/packages/inula/src/inulax/proxy/handlers/WeakMapProxy.ts +++ b/packages/inula/src/inulax/proxy/handlers/WeakMapProxy.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/handlers/WeakSetProxy.ts b/packages/inula/src/inulax/proxy/handlers/WeakSetProxy.ts index 7d047e5d..5f6df81b 100644 --- a/packages/inula/src/inulax/proxy/handlers/WeakSetProxy.ts +++ b/packages/inula/src/inulax/proxy/handlers/WeakSetProxy.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/readonlyProxy.ts b/packages/inula/src/inulax/proxy/readonlyProxy.ts index 41f9406a..1b4a2bcf 100644 --- a/packages/inula/src/inulax/proxy/readonlyProxy.ts +++ b/packages/inula/src/inulax/proxy/readonlyProxy.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/proxy/watch.ts b/packages/inula/src/inulax/proxy/watch.ts index ed0ad658..bff5ccbc 100644 --- a/packages/inula/src/inulax/proxy/watch.ts +++ b/packages/inula/src/inulax/proxy/watch.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/store/StoreHandler.ts b/packages/inula/src/inulax/store/StoreHandler.ts index a331a305..ef0d37a7 100644 --- a/packages/inula/src/inulax/store/StoreHandler.ts +++ b/packages/inula/src/inulax/store/StoreHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/inulax/types.ts b/packages/inula/src/inulax/types.ts index c65ec916..4826426b 100644 --- a/packages/inula/src/inulax/types.ts +++ b/packages/inula/src/inulax/types.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/jsx-dev-runtime.ts b/packages/inula/src/jsx-dev-runtime.ts index c5d084d8..ee14fff9 100644 --- a/packages/inula/src/jsx-dev-runtime.ts +++ b/packages/inula/src/jsx-dev-runtime.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/jsx-runtime.ts b/packages/inula/src/jsx-runtime.ts index 1100c3c7..b0c51818 100644 --- a/packages/inula/src/jsx-runtime.ts +++ b/packages/inula/src/jsx-runtime.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/ContextSaver.ts b/packages/inula/src/renderer/ContextSaver.ts index a579a604..77f4b63d 100644 --- a/packages/inula/src/renderer/ContextSaver.ts +++ b/packages/inula/src/renderer/ContextSaver.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/ErrorHandler.ts b/packages/inula/src/renderer/ErrorHandler.ts index fe01597c..16895fc3 100644 --- a/packages/inula/src/renderer/ErrorHandler.ts +++ b/packages/inula/src/renderer/ErrorHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/ExecuteMode.ts b/packages/inula/src/renderer/ExecuteMode.ts index 4639759a..f4cea454 100644 --- a/packages/inula/src/renderer/ExecuteMode.ts +++ b/packages/inula/src/renderer/ExecuteMode.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/GlobalVar.ts b/packages/inula/src/renderer/GlobalVar.ts index 4aebc9ff..f3b0e050 100644 --- a/packages/inula/src/renderer/GlobalVar.ts +++ b/packages/inula/src/renderer/GlobalVar.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/Renderer.ts b/packages/inula/src/renderer/Renderer.ts index dc5d9961..849732cf 100644 --- a/packages/inula/src/renderer/Renderer.ts +++ b/packages/inula/src/renderer/Renderer.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/RootStack.ts b/packages/inula/src/renderer/RootStack.ts index b5eadc6c..9fec6477 100644 --- a/packages/inula/src/renderer/RootStack.ts +++ b/packages/inula/src/renderer/RootStack.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/TreeBuilder.ts b/packages/inula/src/renderer/TreeBuilder.ts index 5e5a9312..dff56e07 100644 --- a/packages/inula/src/renderer/TreeBuilder.ts +++ b/packages/inula/src/renderer/TreeBuilder.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/Types.ts b/packages/inula/src/renderer/Types.ts index b749298c..9a80f6c6 100644 --- a/packages/inula/src/renderer/Types.ts +++ b/packages/inula/src/renderer/Types.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/UpdateHandler.ts b/packages/inula/src/renderer/UpdateHandler.ts index 6514b894..3e906082 100644 --- a/packages/inula/src/renderer/UpdateHandler.ts +++ b/packages/inula/src/renderer/UpdateHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/components/BaseClassComponent.ts b/packages/inula/src/renderer/components/BaseClassComponent.ts index 45376492..b8923785 100644 --- a/packages/inula/src/renderer/components/BaseClassComponent.ts +++ b/packages/inula/src/renderer/components/BaseClassComponent.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/components/CreatePortal.ts b/packages/inula/src/renderer/components/CreatePortal.ts index c4fcd778..f1a3f3b3 100644 --- a/packages/inula/src/renderer/components/CreatePortal.ts +++ b/packages/inula/src/renderer/components/CreatePortal.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/components/CreateRef.ts b/packages/inula/src/renderer/components/CreateRef.ts index 0eaf5d2e..092131fa 100644 --- a/packages/inula/src/renderer/components/CreateRef.ts +++ b/packages/inula/src/renderer/components/CreateRef.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/components/ForwardRef.ts b/packages/inula/src/renderer/components/ForwardRef.ts index de1f4191..57941f68 100644 --- a/packages/inula/src/renderer/components/ForwardRef.ts +++ b/packages/inula/src/renderer/components/ForwardRef.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/components/Lazy.ts b/packages/inula/src/renderer/components/Lazy.ts index 56d39ed0..ce302cc0 100644 --- a/packages/inula/src/renderer/components/Lazy.ts +++ b/packages/inula/src/renderer/components/Lazy.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/components/Memo.ts b/packages/inula/src/renderer/components/Memo.ts index 2c0465b5..5dde8469 100644 --- a/packages/inula/src/renderer/components/Memo.ts +++ b/packages/inula/src/renderer/components/Memo.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/components/context/Context.ts b/packages/inula/src/renderer/components/context/Context.ts index 3253815d..0c421c35 100644 --- a/packages/inula/src/renderer/components/context/Context.ts +++ b/packages/inula/src/renderer/components/context/Context.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/components/context/CreateContext.ts b/packages/inula/src/renderer/components/context/CreateContext.ts index 0e8126e9..184d7741 100644 --- a/packages/inula/src/renderer/components/context/CreateContext.ts +++ b/packages/inula/src/renderer/components/context/CreateContext.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/diff/DiffTools.ts b/packages/inula/src/renderer/diff/DiffTools.ts index 43204845..13af133c 100644 --- a/packages/inula/src/renderer/diff/DiffTools.ts +++ b/packages/inula/src/renderer/diff/DiffTools.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/diff/nodeDiffComparator.ts b/packages/inula/src/renderer/diff/nodeDiffComparator.ts index 30e8a0d3..8de6f392 100644 --- a/packages/inula/src/renderer/diff/nodeDiffComparator.ts +++ b/packages/inula/src/renderer/diff/nodeDiffComparator.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/hooks/BaseHook.ts b/packages/inula/src/renderer/hooks/BaseHook.ts index d5b56e09..a11630c2 100644 --- a/packages/inula/src/renderer/hooks/BaseHook.ts +++ b/packages/inula/src/renderer/hooks/BaseHook.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/hooks/EffectConstant.ts b/packages/inula/src/renderer/hooks/EffectConstant.ts index d6321e73..480978b9 100644 --- a/packages/inula/src/renderer/hooks/EffectConstant.ts +++ b/packages/inula/src/renderer/hooks/EffectConstant.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/hooks/HookExternal.ts b/packages/inula/src/renderer/hooks/HookExternal.ts index b532d4c8..44e2dc04 100644 --- a/packages/inula/src/renderer/hooks/HookExternal.ts +++ b/packages/inula/src/renderer/hooks/HookExternal.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/hooks/HookMain.ts b/packages/inula/src/renderer/hooks/HookMain.ts index 3454df32..48f39f42 100644 --- a/packages/inula/src/renderer/hooks/HookMain.ts +++ b/packages/inula/src/renderer/hooks/HookMain.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/hooks/HookStage.ts b/packages/inula/src/renderer/hooks/HookStage.ts index 727bf8f3..eaa635b0 100644 --- a/packages/inula/src/renderer/hooks/HookStage.ts +++ b/packages/inula/src/renderer/hooks/HookStage.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/hooks/HookType.ts b/packages/inula/src/renderer/hooks/HookType.ts index 04c814c6..ef04bf95 100644 --- a/packages/inula/src/renderer/hooks/HookType.ts +++ b/packages/inula/src/renderer/hooks/HookType.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/hooks/UseCallbackHook.ts b/packages/inula/src/renderer/hooks/UseCallbackHook.ts index f05912b1..8fb5c383 100644 --- a/packages/inula/src/renderer/hooks/UseCallbackHook.ts +++ b/packages/inula/src/renderer/hooks/UseCallbackHook.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/hooks/UseEffectHook.ts b/packages/inula/src/renderer/hooks/UseEffectHook.ts index 71f924d6..5d59acdd 100644 --- a/packages/inula/src/renderer/hooks/UseEffectHook.ts +++ b/packages/inula/src/renderer/hooks/UseEffectHook.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/hooks/UseImperativeHook.ts b/packages/inula/src/renderer/hooks/UseImperativeHook.ts index e9d7cbcf..8b41be69 100644 --- a/packages/inula/src/renderer/hooks/UseImperativeHook.ts +++ b/packages/inula/src/renderer/hooks/UseImperativeHook.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/hooks/UseMemoHook.ts b/packages/inula/src/renderer/hooks/UseMemoHook.ts index e39aaeb9..4aed75ac 100644 --- a/packages/inula/src/renderer/hooks/UseMemoHook.ts +++ b/packages/inula/src/renderer/hooks/UseMemoHook.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/hooks/UseReducerHook.ts b/packages/inula/src/renderer/hooks/UseReducerHook.ts index ec348396..1278e65e 100644 --- a/packages/inula/src/renderer/hooks/UseReducerHook.ts +++ b/packages/inula/src/renderer/hooks/UseReducerHook.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/hooks/UseRefHook.ts b/packages/inula/src/renderer/hooks/UseRefHook.ts index 257da9fa..180bd62e 100644 --- a/packages/inula/src/renderer/hooks/UseRefHook.ts +++ b/packages/inula/src/renderer/hooks/UseRefHook.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/hooks/UseStateHook.ts b/packages/inula/src/renderer/hooks/UseStateHook.ts index 9259402e..0ed8118f 100644 --- a/packages/inula/src/renderer/hooks/UseStateHook.ts +++ b/packages/inula/src/renderer/hooks/UseStateHook.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/BaseComponent.ts b/packages/inula/src/renderer/render/BaseComponent.ts index e3b08455..41052680 100644 --- a/packages/inula/src/renderer/render/BaseComponent.ts +++ b/packages/inula/src/renderer/render/BaseComponent.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/ClassComponent.ts b/packages/inula/src/renderer/render/ClassComponent.ts index 97b511d4..2792425c 100644 --- a/packages/inula/src/renderer/render/ClassComponent.ts +++ b/packages/inula/src/renderer/render/ClassComponent.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/ContextConsumer.ts b/packages/inula/src/renderer/render/ContextConsumer.ts index 688976d5..c39f1d27 100644 --- a/packages/inula/src/renderer/render/ContextConsumer.ts +++ b/packages/inula/src/renderer/render/ContextConsumer.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/ContextProvider.ts b/packages/inula/src/renderer/render/ContextProvider.ts index 9734eb45..58ef4c9c 100644 --- a/packages/inula/src/renderer/render/ContextProvider.ts +++ b/packages/inula/src/renderer/render/ContextProvider.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/DomComponent.ts b/packages/inula/src/renderer/render/DomComponent.ts index c35305cf..65044cb2 100644 --- a/packages/inula/src/renderer/render/DomComponent.ts +++ b/packages/inula/src/renderer/render/DomComponent.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/DomPortal.ts b/packages/inula/src/renderer/render/DomPortal.ts index 242e9f8f..27bad601 100644 --- a/packages/inula/src/renderer/render/DomPortal.ts +++ b/packages/inula/src/renderer/render/DomPortal.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/DomText.ts b/packages/inula/src/renderer/render/DomText.ts index 10f08206..f0a5f2e5 100644 --- a/packages/inula/src/renderer/render/DomText.ts +++ b/packages/inula/src/renderer/render/DomText.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/ForwardRef.ts b/packages/inula/src/renderer/render/ForwardRef.ts index 9201b029..5ea01357 100644 --- a/packages/inula/src/renderer/render/ForwardRef.ts +++ b/packages/inula/src/renderer/render/ForwardRef.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/Fragment.ts b/packages/inula/src/renderer/render/Fragment.ts index bcc2309f..8e645a2f 100644 --- a/packages/inula/src/renderer/render/Fragment.ts +++ b/packages/inula/src/renderer/render/Fragment.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/FunctionComponent.ts b/packages/inula/src/renderer/render/FunctionComponent.ts index ef106b08..ed3cd4a4 100644 --- a/packages/inula/src/renderer/render/FunctionComponent.ts +++ b/packages/inula/src/renderer/render/FunctionComponent.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/LazyComponent.ts b/packages/inula/src/renderer/render/LazyComponent.ts index aef62a28..c5f92720 100644 --- a/packages/inula/src/renderer/render/LazyComponent.ts +++ b/packages/inula/src/renderer/render/LazyComponent.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/MemoComponent.ts b/packages/inula/src/renderer/render/MemoComponent.ts index 2287501f..b6105687 100644 --- a/packages/inula/src/renderer/render/MemoComponent.ts +++ b/packages/inula/src/renderer/render/MemoComponent.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/SuspenseComponent.ts b/packages/inula/src/renderer/render/SuspenseComponent.ts index c6f4095e..8bb49a2e 100644 --- a/packages/inula/src/renderer/render/SuspenseComponent.ts +++ b/packages/inula/src/renderer/render/SuspenseComponent.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/TreeRoot.ts b/packages/inula/src/renderer/render/TreeRoot.ts index 2672d06a..0f02ff15 100644 --- a/packages/inula/src/renderer/render/TreeRoot.ts +++ b/packages/inula/src/renderer/render/TreeRoot.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/class/ClassLifeCycleProcessor.ts b/packages/inula/src/renderer/render/class/ClassLifeCycleProcessor.ts index a054accd..4ebc4a29 100644 --- a/packages/inula/src/renderer/render/class/ClassLifeCycleProcessor.ts +++ b/packages/inula/src/renderer/render/class/ClassLifeCycleProcessor.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/render/index.ts b/packages/inula/src/renderer/render/index.ts index 995b27db..3422db55 100644 --- a/packages/inula/src/renderer/render/index.ts +++ b/packages/inula/src/renderer/render/index.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/submit/HookEffectHandler.ts b/packages/inula/src/renderer/submit/HookEffectHandler.ts index 665f7742..b05dcb83 100644 --- a/packages/inula/src/renderer/submit/HookEffectHandler.ts +++ b/packages/inula/src/renderer/submit/HookEffectHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/submit/LifeCycleHandler.ts b/packages/inula/src/renderer/submit/LifeCycleHandler.ts index 6da99f65..34d34e8d 100644 --- a/packages/inula/src/renderer/submit/LifeCycleHandler.ts +++ b/packages/inula/src/renderer/submit/LifeCycleHandler.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/submit/Submit.ts b/packages/inula/src/renderer/submit/Submit.ts index 33f85a12..53230f4e 100644 --- a/packages/inula/src/renderer/submit/Submit.ts +++ b/packages/inula/src/renderer/submit/Submit.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/taskExecutor/BrowserAsync.ts b/packages/inula/src/renderer/taskExecutor/BrowserAsync.ts index 289557e6..c127b2ce 100644 --- a/packages/inula/src/renderer/taskExecutor/BrowserAsync.ts +++ b/packages/inula/src/renderer/taskExecutor/BrowserAsync.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/taskExecutor/RenderQueue.ts b/packages/inula/src/renderer/taskExecutor/RenderQueue.ts index 08dcc87c..9467a732 100644 --- a/packages/inula/src/renderer/taskExecutor/RenderQueue.ts +++ b/packages/inula/src/renderer/taskExecutor/RenderQueue.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/taskExecutor/TaskExecutor.ts b/packages/inula/src/renderer/taskExecutor/TaskExecutor.ts index e1ca269d..8805cda7 100644 --- a/packages/inula/src/renderer/taskExecutor/TaskExecutor.ts +++ b/packages/inula/src/renderer/taskExecutor/TaskExecutor.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/taskExecutor/TaskQueue.ts b/packages/inula/src/renderer/taskExecutor/TaskQueue.ts index 2ce5de01..c0d36184 100644 --- a/packages/inula/src/renderer/taskExecutor/TaskQueue.ts +++ b/packages/inula/src/renderer/taskExecutor/TaskQueue.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/utils/compare.ts b/packages/inula/src/renderer/utils/compare.ts index fdd15289..95e0f3a5 100644 --- a/packages/inula/src/renderer/utils/compare.ts +++ b/packages/inula/src/renderer/utils/compare.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/utils/throwIfTrue.ts b/packages/inula/src/renderer/utils/throwIfTrue.ts index b9091683..0dbb55dc 100644 --- a/packages/inula/src/renderer/utils/throwIfTrue.ts +++ b/packages/inula/src/renderer/utils/throwIfTrue.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/utils/vNodePath.ts b/packages/inula/src/renderer/utils/vNodePath.ts index 25ff5d4d..e2b5fd6f 100644 --- a/packages/inula/src/renderer/utils/vNodePath.ts +++ b/packages/inula/src/renderer/utils/vNodePath.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/vnode/VNode.ts b/packages/inula/src/renderer/vnode/VNode.ts index a2911287..1a1ba3ea 100644 --- a/packages/inula/src/renderer/vnode/VNode.ts +++ b/packages/inula/src/renderer/vnode/VNode.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/vnode/VNodeCreator.ts b/packages/inula/src/renderer/vnode/VNodeCreator.ts index c22ae607..142bac33 100644 --- a/packages/inula/src/renderer/vnode/VNodeCreator.ts +++ b/packages/inula/src/renderer/vnode/VNodeCreator.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/vnode/VNodeFlags.ts b/packages/inula/src/renderer/vnode/VNodeFlags.ts index f956f7cc..7bd0740f 100644 --- a/packages/inula/src/renderer/vnode/VNodeFlags.ts +++ b/packages/inula/src/renderer/vnode/VNodeFlags.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/vnode/VNodeShouldUpdate.ts b/packages/inula/src/renderer/vnode/VNodeShouldUpdate.ts index 146344a4..ded4f243 100644 --- a/packages/inula/src/renderer/vnode/VNodeShouldUpdate.ts +++ b/packages/inula/src/renderer/vnode/VNodeShouldUpdate.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/vnode/VNodeTags.ts b/packages/inula/src/renderer/vnode/VNodeTags.ts index 6fcc0951..dc358aef 100644 --- a/packages/inula/src/renderer/vnode/VNodeTags.ts +++ b/packages/inula/src/renderer/vnode/VNodeTags.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/renderer/vnode/VNodeUtils.ts b/packages/inula/src/renderer/vnode/VNodeUtils.ts index 0a9a284f..2d32beaf 100644 --- a/packages/inula/src/renderer/vnode/VNodeUtils.ts +++ b/packages/inula/src/renderer/vnode/VNodeUtils.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * diff --git a/packages/inula/src/types.ts b/packages/inula/src/types.ts index facbbaf6..7f31c7f3 100644 --- a/packages/inula/src/types.ts +++ b/packages/inula/src/types.ts @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * Copyright (c) 2023 Huawei Technologies Co.,Ltd. * - * InulaJS is licensed under Mulan PSL v2. + * openInula is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: *