From c53d67a1391eedd23af63b37f640420589d8f153 Mon Sep 17 00:00:00 2001 From: Helltab Date: Sat, 16 Dec 2023 17:38:02 +0800 Subject: [PATCH] doc(license): add license --- ui-vue3/.eslintrc.cjs | 16 ++++ ui-vue3/cypress.config.ts | 16 ++++ ui-vue3/cypress/e2e/example.cy.ts | 18 +++- ui-vue3/cypress/support/commands.ts | 54 ++++-------- ui-vue3/cypress/support/e2e.ts | 32 +++---- ui-vue3/env.d.ts | 16 ++++ ui-vue3/src/components/HelloWorld.vue | 41 --------- ui-vue3/src/components/TheWelcome.vue | 88 ------------------- ui-vue3/src/components/WelcomeItem.vue | 87 ------------------ .../components/__tests__/HelloWorld.spec.ts | 11 --- .../src/components/icons/IconCommunity.vue | 7 -- .../components/icons/IconDocumentation.vue | 7 -- .../src/components/icons/IconEcosystem.vue | 7 -- ui-vue3/src/components/icons/IconSupport.vue | 7 -- ui-vue3/src/components/icons/IconTooling.vue | 19 ---- ui-vue3/src/stores/counter.ts | 16 ++++ ui-vue3/src/views/kubernetes/index.vue | 2 +- ui-vue3/src/views/metrics/index.vue | 2 +- ui-vue3/src/views/service/index.vue | 2 +- ui-vue3/src/views/test/mock/index.vue | 2 +- ui-vue3/src/views/test/test/index.vue | 2 +- ui-vue3/src/views/traffic/accesslog/index.vue | 2 +- ui-vue3/src/views/traffic/arguments/index.vue | 2 +- .../src/views/traffic/dynamicConfig/index.vue | 2 +- ui-vue3/src/views/traffic/gray/index.vue | 2 +- ui-vue3/src/views/traffic/mock/index.vue | 2 +- ui-vue3/src/views/traffic/region/index.vue | 2 +- ui-vue3/src/views/traffic/retry/index.vue | 2 +- .../src/views/traffic/routingRule/index.vue | 2 +- ui-vue3/src/views/traffic/tagRule/index.vue | 2 +- ui-vue3/src/views/traffic/timeout/index.vue | 2 +- ui-vue3/src/views/traffic/weight/index.vue | 2 +- ui-vue3/vite.config.ts | 18 +++- ui-vue3/vitest.config.ts | 17 ++++ 34 files changed, 162 insertions(+), 347 deletions(-) delete mode 100644 ui-vue3/src/components/HelloWorld.vue delete mode 100644 ui-vue3/src/components/TheWelcome.vue delete mode 100644 ui-vue3/src/components/WelcomeItem.vue delete mode 100644 ui-vue3/src/components/__tests__/HelloWorld.spec.ts delete mode 100644 ui-vue3/src/components/icons/IconCommunity.vue delete mode 100644 ui-vue3/src/components/icons/IconDocumentation.vue delete mode 100644 ui-vue3/src/components/icons/IconEcosystem.vue delete mode 100644 ui-vue3/src/components/icons/IconSupport.vue delete mode 100644 ui-vue3/src/components/icons/IconTooling.vue diff --git a/ui-vue3/.eslintrc.cjs b/ui-vue3/.eslintrc.cjs index 6617ed2a8..b80f20fa8 100644 --- a/ui-vue3/.eslintrc.cjs +++ b/ui-vue3/.eslintrc.cjs @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ /* eslint-env node */ require('@rushstack/eslint-patch/modern-module-resolution') diff --git a/ui-vue3/cypress.config.ts b/ui-vue3/cypress.config.ts index 0f66080fd..cae278ded 100644 --- a/ui-vue3/cypress.config.ts +++ b/ui-vue3/cypress.config.ts @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { defineConfig } from 'cypress' export default defineConfig({ diff --git a/ui-vue3/cypress/e2e/example.cy.ts b/ui-vue3/cypress/e2e/example.cy.ts index 7554c35d8..ee90803d5 100644 --- a/ui-vue3/cypress/e2e/example.cy.ts +++ b/ui-vue3/cypress/e2e/example.cy.ts @@ -1,5 +1,19 @@ -// https://on.cypress.io/api - +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ describe('My First Test', () => { it('visits the app root url', () => { cy.visit('/') diff --git a/ui-vue3/cypress/support/commands.ts b/ui-vue3/cypress/support/commands.ts index 9b7bb8e25..af74ee116 100644 --- a/ui-vue3/cypress/support/commands.ts +++ b/ui-vue3/cypress/support/commands.ts @@ -1,39 +1,17 @@ -/// -// *********************************************** -// This example commands.ts shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add('login', (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) -// -// declare global { -// namespace Cypress { -// interface Chainable { -// login(email: string, password: string): Chainable -// drag(subject: string, options?: Partial): Chainable -// dismiss(subject: string, options?: Partial): Chainable -// visit(originalFn: CommandOriginalFn, url: string, options: Partial): Chainable -// } -// } -// } - +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export {} diff --git a/ui-vue3/cypress/support/e2e.ts b/ui-vue3/cypress/support/e2e.ts index d68db96df..8c53e4b7c 100644 --- a/ui-vue3/cypress/support/e2e.ts +++ b/ui-vue3/cypress/support/e2e.ts @@ -1,19 +1,19 @@ -// *********************************************************** -// This example support/index.js is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import './commands' // Alternatively you can use CommonJS syntax: diff --git a/ui-vue3/env.d.ts b/ui-vue3/env.d.ts index 11f02fe2a..1fe5baeae 100644 --- a/ui-vue3/env.d.ts +++ b/ui-vue3/env.d.ts @@ -1 +1,17 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ /// diff --git a/ui-vue3/src/components/HelloWorld.vue b/ui-vue3/src/components/HelloWorld.vue deleted file mode 100644 index 38d821ef8..000000000 --- a/ui-vue3/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ui-vue3/src/components/TheWelcome.vue b/ui-vue3/src/components/TheWelcome.vue deleted file mode 100644 index 49d8f7354..000000000 --- a/ui-vue3/src/components/TheWelcome.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - diff --git a/ui-vue3/src/components/WelcomeItem.vue b/ui-vue3/src/components/WelcomeItem.vue deleted file mode 100644 index 6d7086aea..000000000 --- a/ui-vue3/src/components/WelcomeItem.vue +++ /dev/null @@ -1,87 +0,0 @@ - - - diff --git a/ui-vue3/src/components/__tests__/HelloWorld.spec.ts b/ui-vue3/src/components/__tests__/HelloWorld.spec.ts deleted file mode 100644 index 253320200..000000000 --- a/ui-vue3/src/components/__tests__/HelloWorld.spec.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { describe, it, expect } from 'vitest' - -import { mount } from '@vue/test-utils' -import HelloWorld from '../HelloWorld.vue' - -describe('HelloWorld', () => { - it('renders properly', () => { - const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } }) - expect(wrapper.text()).toContain('Hello Vitest') - }) -}) diff --git a/ui-vue3/src/components/icons/IconCommunity.vue b/ui-vue3/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b0552..000000000 --- a/ui-vue3/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/ui-vue3/src/components/icons/IconDocumentation.vue b/ui-vue3/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cfb..000000000 --- a/ui-vue3/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/ui-vue3/src/components/icons/IconEcosystem.vue b/ui-vue3/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078c..000000000 --- a/ui-vue3/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/ui-vue3/src/components/icons/IconSupport.vue b/ui-vue3/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d3..000000000 --- a/ui-vue3/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/ui-vue3/src/components/icons/IconTooling.vue b/ui-vue3/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7c..000000000 --- a/ui-vue3/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/ui-vue3/src/stores/counter.ts b/ui-vue3/src/stores/counter.ts index b6757ba57..048b3aaaf 100644 --- a/ui-vue3/src/stores/counter.ts +++ b/ui-vue3/src/stores/counter.ts @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { ref, computed } from 'vue' import { defineStore } from 'pinia' diff --git a/ui-vue3/src/views/kubernetes/index.vue b/ui-vue3/src/views/kubernetes/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/kubernetes/index.vue +++ b/ui-vue3/src/views/kubernetes/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/metrics/index.vue b/ui-vue3/src/views/metrics/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/metrics/index.vue +++ b/ui-vue3/src/views/metrics/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/service/index.vue b/ui-vue3/src/views/service/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/service/index.vue +++ b/ui-vue3/src/views/service/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/test/mock/index.vue b/ui-vue3/src/views/test/mock/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/test/mock/index.vue +++ b/ui-vue3/src/views/test/mock/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/test/test/index.vue b/ui-vue3/src/views/test/test/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/test/test/index.vue +++ b/ui-vue3/src/views/test/test/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/traffic/accesslog/index.vue b/ui-vue3/src/views/traffic/accesslog/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/traffic/accesslog/index.vue +++ b/ui-vue3/src/views/traffic/accesslog/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/traffic/arguments/index.vue b/ui-vue3/src/views/traffic/arguments/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/traffic/arguments/index.vue +++ b/ui-vue3/src/views/traffic/arguments/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/traffic/dynamicConfig/index.vue b/ui-vue3/src/views/traffic/dynamicConfig/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/traffic/dynamicConfig/index.vue +++ b/ui-vue3/src/views/traffic/dynamicConfig/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/traffic/gray/index.vue b/ui-vue3/src/views/traffic/gray/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/traffic/gray/index.vue +++ b/ui-vue3/src/views/traffic/gray/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/traffic/mock/index.vue b/ui-vue3/src/views/traffic/mock/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/traffic/mock/index.vue +++ b/ui-vue3/src/views/traffic/mock/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/traffic/region/index.vue b/ui-vue3/src/views/traffic/region/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/traffic/region/index.vue +++ b/ui-vue3/src/views/traffic/region/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/traffic/retry/index.vue b/ui-vue3/src/views/traffic/retry/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/traffic/retry/index.vue +++ b/ui-vue3/src/views/traffic/retry/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/traffic/routingRule/index.vue b/ui-vue3/src/views/traffic/routingRule/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/traffic/routingRule/index.vue +++ b/ui-vue3/src/views/traffic/routingRule/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/traffic/tagRule/index.vue b/ui-vue3/src/views/traffic/tagRule/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/traffic/tagRule/index.vue +++ b/ui-vue3/src/views/traffic/tagRule/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/traffic/timeout/index.vue b/ui-vue3/src/views/traffic/timeout/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/traffic/timeout/index.vue +++ b/ui-vue3/src/views/traffic/timeout/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/src/views/traffic/weight/index.vue b/ui-vue3/src/views/traffic/weight/index.vue index 40daf2e9a..72b402ab0 100644 --- a/ui-vue3/src/views/traffic/weight/index.vue +++ b/ui-vue3/src/views/traffic/weight/index.vue @@ -22,7 +22,7 @@ diff --git a/ui-vue3/vite.config.ts b/ui-vue3/vite.config.ts index f8059ac50..6c449e1f5 100644 --- a/ui-vue3/vite.config.ts +++ b/ui-vue3/vite.config.ts @@ -1,5 +1,21 @@ -import { fileURLToPath, URL } from 'node:url' +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import vueJsx from '@vitejs/plugin-vue-jsx' diff --git a/ui-vue3/vitest.config.ts b/ui-vue3/vitest.config.ts index 10067d578..120041640 100644 --- a/ui-vue3/vitest.config.ts +++ b/ui-vue3/vitest.config.ts @@ -1,3 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { fileURLToPath } from 'node:url' import { mergeConfig, defineConfig, configDefaults } from 'vitest/config' import viteConfig from './vite.config'