From 89406abc23882a2714e3afefc0e534ed72fcba7f Mon Sep 17 00:00:00 2001 From: KomachiSion <263976490@qq.com> Date: Fri, 12 Jun 2020 15:55:04 +0800 Subject: [PATCH] For #2873, unified copyrights for nacos-console. --- console/pom.xml | 25 +- .../META-INF/nacos-default.properties | 16 + .../src/main/resources/META-INF/schema.sql | 16 + .../src/main/resources/application.properties | 16 + .../static/console-fe/build/copy-dist.js | 3 + .../static/console-fe/build/copyFile.js | 5 +- .../console-fe/build/webpack.base.conf.js | 3 + .../console-fe/build/webpack.dev.conf.js | 3 + .../console-fe/build/webpack.prod.conf.js | 3 + .../console-fe/public/css/bootstrap.css | 3 + .../console-fe/public/css/codemirror.css | 3 + .../console-fe/public/css/font-awesome.css | 3 + .../static/console-fe/public/css/icon.css | 5 +- .../static/console-fe/public/css/merge.css | 3 + .../static/console-fe/public/index.html | 6 +- .../public/js/codemirror.addone.fullscreen.js | 5 +- .../public/js/codemirror.addone.json-lint.js | 5 +- .../public/js/codemirror.addone.lint.js | 5 +- .../static/console-fe/public/js/codemirror.js | 3 + .../public/js/codemirror.lib.clike-lint.js | 5 +- .../public/js/codemirror.lib.json-lint.js | 9 +- .../static/console-fe/public/js/javascript.js | 3 + .../static/console-fe/public/js/merge.js | 3 + .../public/js/vs/editor/editor.main.js | 2 +- .../public/js/vs/editor/editor.main.nls.de.js | 5 +- .../public/js/vs/editor/editor.main.nls.es.js | 5 +- .../public/js/vs/editor/editor.main.nls.fr.js | 5 +- .../public/js/vs/editor/editor.main.nls.hu.js | 5 +- .../public/js/vs/editor/editor.main.nls.it.js | 5 +- .../public/js/vs/editor/editor.main.nls.ja.js | 5 +- .../public/js/vs/editor/editor.main.nls.js | 5 +- .../public/js/vs/editor/editor.main.nls.ko.js | 5 +- .../js/vs/editor/editor.main.nls.pt-br.js | 5 +- .../public/js/vs/editor/editor.main.nls.ru.js | 5 +- .../public/js/vs/editor/editor.main.nls.tr.js | 5 +- .../js/vs/editor/editor.main.nls.zh-cn.js | 5 +- .../js/vs/editor/editor.main.nls.zh-tw.js | 5 +- .../js/vs/language/typescript/src/worker.js | 5 +- .../static/console-fe/public/js/xml.js | 3 + .../src/components/BatchHandle/BatchHandle.js | 3 + .../src/components/BatchHandle/index.js | 3 + .../src/components/BatchHandle/index.scss | 5 +- .../src/components/CloneDialog/CloneDialog.js | 3 + .../src/components/CloneDialog/index.js | 3 + .../src/components/CloneDialog/index.scss | 5 +- .../components/DeleteDialog/DeleteDialog.js | 3 + .../src/components/DeleteDialog/index.js | 3 + .../src/components/DeleteDialog/index.scss | 5 +- .../DiffEditorDialog/DiffEditorDialog.js | 3 + .../src/components/DiffEditorDialog/index.js | 3 + .../components/DiffEditorDialog/index.scss | 5 +- .../EditorNameSpace/EditorNameSpace.js | 3 + .../src/components/EditorNameSpace/index.js | 3 + .../src/components/EditorNameSpace/index.scss | 5 +- .../components/ExportDialog/ExportDialog.js | 3 + .../src/components/ExportDialog/index.js | 3 + .../src/components/ExportDialog/index.scss | 5 +- .../components/ImportDialog/ImportDialog.js | 3 + .../src/components/ImportDialog/index.js | 3 + .../src/components/ImportDialog/index.scss | 5 +- .../components/MonacoEditor/MonacoEditor.tsx | 3 + .../src/components/MonacoEditor/constant.ts | 3 + .../src/components/MonacoEditor/index.scss | 5 +- .../src/components/MonacoEditor/index.tsx | 3 + .../components/NameSpaceList/NameSpaceList.js | 3 + .../src/components/NameSpaceList/index.js | 3 + .../src/components/NameSpaceList/index.scss | 5 +- .../components/NewNameSpace/NewNameSpace.js | 3 + .../src/components/NewNameSpace/index.js | 3 + .../src/components/NewNameSpace/index.scss | 5 +- .../src/components/RegionGroup/RegionGroup.js | 3 + .../src/components/RegionGroup/index.js | 3 + .../src/components/RegionGroup/index.scss | 5 +- .../src/components/ShowCodeing/ShowCodeing.js | 9 +- .../ShowCodeing/ShowServiceCodeing.js | 13 +- .../src/components/ShowCodeing/index.js | 3 + .../src/components/ShowCodeing/index.scss | 5 +- .../components/SuccessDialog/SuccessDialog.js | 3 + .../src/components/SuccessDialog/index.js | 3 + .../src/components/SuccessDialog/index.scss | 5 +- .../resources/static/console-fe/src/config.js | 3 + .../static/console-fe/src/constants.js | 3 + .../static/console-fe/src/globalLib.js | 3 + .../resources/static/console-fe/src/index.js | 3 + .../static/console-fe/src/index.scss | 5 +- .../static/console-fe/src/layouts/Header.js | 3 + .../console-fe/src/layouts/MainLayout.js | 3 + .../static/console-fe/src/layouts/index.scss | 5 +- .../static/console-fe/src/layouts/menu.js | 16 + .../resources/static/console-fe/src/lib.js | 3 + .../static/console-fe/src/locales/en-US.js | 3 + .../static/console-fe/src/locales/index.js | 3 + .../static/console-fe/src/locales/zh-CN.js | 3 + .../PermissionsManagement/NewPermissions.js | 3 + .../PermissionsManagement.js | 3 + .../PermissionsManagement.scss | 7 +- .../PermissionsManagement/index.js | 3 + .../RolesManagement/NewRole.js | 3 + .../RolesManagement/RolesManagement.js | 3 + .../RolesManagement/RolesManagement.scss | 7 +- .../AuthorityControl/RolesManagement/index.js | 3 + .../UserManagement/NewUser.js | 3 + .../UserManagement/PasswordReset.js | 3 + .../UserManagement/UserManagement.js | 3 + .../UserManagement/UserManagement.scss | 5 +- .../AuthorityControl/UserManagement/index.js | 3 + .../src/pages/AuthorityControl/authority.scss | 5 +- .../ClusterNodeList/ClusterNodeList.js | 3 + .../ClusterNodeList/ClusterNodeList.scss | 5 +- .../ClusterNodeList/index.js | 3 + .../ConfigDetail/ConfigDetail.js | 3 + .../ConfigDetail/index.js | 3 + .../ConfigDetail/index.scss | 5 +- .../ConfigEditor/ConfigEditor.js | 3 + .../ConfigEditor/NewConfigEditor.js | 3 + .../ConfigEditor/index.js | 3 + .../ConfigEditor/index.scss | 5 +- .../ConfigRollback/ConfigRollback.js | 3 + .../ConfigRollback/index.js | 3 + .../ConfigRollback/index.scss | 5 +- .../ConfigSync/ConfigSync.js | 3 + .../ConfigSync/index.js | 3 + .../ConfigSync/index.scss | 5 +- .../ConfigurationManagement.js | 3 + .../ConfigurationManagement/DashboardCard.js | 3 + .../ConfigurationManagement/index.js | 3 + .../ConfigurationManagement/index.scss | 5 +- .../HistoryDetail/HistoryDetail.js | 3 + .../HistoryDetail/index.js | 3 + .../HistoryDetail/index.scss | 5 +- .../HistoryRollback/HistoryRollback.js | 3 + .../HistoryRollback/index.js | 3 + .../HistoryRollback/index.scss | 5 +- .../ListeningToQuery/ListeningToQuery.js | 3 + .../ListeningToQuery/index.js | 3 + .../ListeningToQuery/index.scss | 5 +- .../NewConfig/NewConfig.js | 3 + .../NewConfig/index.js | 3 + .../NewConfig/index.scss | 5 +- .../console-fe/src/pages/Login/Login.jsx | 16 + .../console-fe/src/pages/Login/index.jsx | 3 + .../console-fe/src/pages/Login/index.scss | 16 + .../src/pages/NameSpace/NameSpace.js | 3 + .../console-fe/src/pages/NameSpace/index.js | 3 + .../console-fe/src/pages/NameSpace/index.scss | 5 +- .../ServiceDetail/EditClusterDialog.js | 3 + .../ServiceDetail/EditInstanceDialog.js | 3 + .../ServiceDetail/EditServiceDialog.js | 3 + .../ServiceDetail/InstanceTable.js | 3 + .../ServiceDetail/ServiceDetail.js | 3 + .../ServiceDetail/ServiceDetail.scss | 7 +- .../ServiceDetail/constant.js | 3 + .../ServiceManagement/ServiceDetail/index.js | 3 + .../ServiceList/ServiceList.js | 3 + .../ServiceList/ServiceList.scss | 5 +- .../ServiceManagement/ServiceList/index.js | 3 + .../SubscriberList/SubscriberList.js | 3 + .../SubscriberList/SubscriberList.scss | 16 + .../ServiceManagement/SubscriberList/index.js | 3 + .../console-fe/src/pages/Welcome/Welcome.js | 3 + .../console-fe/src/pages/Welcome/index.js | 3 + .../console-fe/src/reducers/authority.js | 3 + .../static/console-fe/src/reducers/base.js | 3 + .../console-fe/src/reducers/configuration.js | 3 + .../static/console-fe/src/reducers/index.js | 3 + .../static/console-fe/src/reducers/locale.js | 3 + .../console-fe/src/reducers/namespace.js | 3 + .../console-fe/src/reducers/subscribers.js | 3 + .../static/console-fe/src/utils/nacosutil.js | 3 + .../static/console-fe/src/utils/request.js | 16 + .../console-fe/src/utils/validateContent.js | 16 + .../sample/configurationManagement.spec.js | 652 +++++++++--------- console/src/main/resources/static/index.html | 6 +- console/src/main/resources/static/login.html | 16 + 174 files changed, 1062 insertions(+), 398 deletions(-) diff --git a/console/pom.xml b/console/pom.xml index 8ee3fabb4..ff0475538 100644 --- a/console/pom.xml +++ b/console/pom.xml @@ -1,16 +1,19 @@ + ~ Copyright 1999-2018 Alibaba Group Holding Ltd. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> diff --git a/console/src/main/resources/META-INF/nacos-default.properties b/console/src/main/resources/META-INF/nacos-default.properties index b86d3b48b..40c32c761 100644 --- a/console/src/main/resources/META-INF/nacos-default.properties +++ b/console/src/main/resources/META-INF/nacos-default.properties @@ -1,3 +1,19 @@ +# +# Copyright 1999-2018 Alibaba Group Holding Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # Console Default Properties spring.mvc.view.prefix=/jsp/ diff --git a/console/src/main/resources/META-INF/schema.sql b/console/src/main/resources/META-INF/schema.sql index f0a19931b..fd6bf4708 100644 --- a/console/src/main/resources/META-INF/schema.sql +++ b/console/src/main/resources/META-INF/schema.sql @@ -1,3 +1,19 @@ +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + CREATE SCHEMA nacos AUTHORIZATION nacos; CREATE TABLE config_info ( diff --git a/console/src/main/resources/application.properties b/console/src/main/resources/application.properties index f2ba17b28..96e24c904 100644 --- a/console/src/main/resources/application.properties +++ b/console/src/main/resources/application.properties @@ -1,3 +1,19 @@ +# +# Copyright 1999-2018 Alibaba Group Holding Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + #*************** Spring Boot Related Configurations ***************# ### Default web context path: server.servlet.contextPath=/nacos diff --git a/console/src/main/resources/static/console-fe/build/copy-dist.js b/console/src/main/resources/static/console-fe/build/copy-dist.js index daf957ef0..8cd01b8b3 100644 --- a/console/src/main/resources/static/console-fe/build/copy-dist.js +++ b/console/src/main/resources/static/console-fe/build/copy-dist.js @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/console/src/main/resources/static/console-fe/build/copyFile.js b/console/src/main/resources/static/console-fe/build/copyFile.js index e078ed5aa..fd056cc11 100644 --- a/console/src/main/resources/static/console-fe/build/copyFile.js +++ b/console/src/main/resources/static/console-fe/build/copyFile.js @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -39,4 +42,4 @@ copyList.forEach(_fileName => { const readStream = fs.createReadStream(srcFileName); const writeStream = fs.createWriteStream(destFileName); readStream.pipe(writeStream); -}); \ No newline at end of file +}); diff --git a/console/src/main/resources/static/console-fe/build/webpack.base.conf.js b/console/src/main/resources/static/console-fe/build/webpack.base.conf.js index d4da1ef0e..ad1f7f959 100644 --- a/console/src/main/resources/static/console-fe/build/webpack.base.conf.js +++ b/console/src/main/resources/static/console-fe/build/webpack.base.conf.js @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/console/src/main/resources/static/console-fe/build/webpack.dev.conf.js b/console/src/main/resources/static/console-fe/build/webpack.dev.conf.js index 210e08ab3..5f5ebf85d 100644 --- a/console/src/main/resources/static/console-fe/build/webpack.dev.conf.js +++ b/console/src/main/resources/static/console-fe/build/webpack.dev.conf.js @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/console/src/main/resources/static/console-fe/build/webpack.prod.conf.js b/console/src/main/resources/static/console-fe/build/webpack.prod.conf.js index 0d67a70f7..86f68e51c 100644 --- a/console/src/main/resources/static/console-fe/build/webpack.prod.conf.js +++ b/console/src/main/resources/static/console-fe/build/webpack.prod.conf.js @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/console/src/main/resources/static/console-fe/public/css/bootstrap.css b/console/src/main/resources/static/console-fe/public/css/bootstrap.css index ce3ef2335..72451b285 100644 --- a/console/src/main/resources/static/console-fe/public/css/bootstrap.css +++ b/console/src/main/resources/static/console-fe/public/css/bootstrap.css @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/console/src/main/resources/static/console-fe/public/css/codemirror.css b/console/src/main/resources/static/console-fe/public/css/codemirror.css index b54156be5..3ebb1bf1a 100644 --- a/console/src/main/resources/static/console-fe/public/css/codemirror.css +++ b/console/src/main/resources/static/console-fe/public/css/codemirror.css @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/console/src/main/resources/static/console-fe/public/css/font-awesome.css b/console/src/main/resources/static/console-fe/public/css/font-awesome.css index 09f8a2e58..4fec53fb9 100644 --- a/console/src/main/resources/static/console-fe/public/css/font-awesome.css +++ b/console/src/main/resources/static/console-fe/public/css/font-awesome.css @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/console/src/main/resources/static/console-fe/public/css/icon.css b/console/src/main/resources/static/console-fe/public/css/icon.css index 60cc705ce..4577a45dc 100644 --- a/console/src/main/resources/static/console-fe/public/css/icon.css +++ b/console/src/main/resources/static/console-fe/public/css/icon.css @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -259,4 +262,4 @@ .icon-alitomcat:before { content: "\e607" !important; -} \ No newline at end of file +} diff --git a/console/src/main/resources/static/console-fe/public/css/merge.css b/console/src/main/resources/static/console-fe/public/css/merge.css index 1305bd07a..0038672ea 100644 --- a/console/src/main/resources/static/console-fe/public/css/merge.css +++ b/console/src/main/resources/static/console-fe/public/css/merge.css @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/console/src/main/resources/static/console-fe/public/index.html b/console/src/main/resources/static/console-fe/public/index.html index cde191100..f076d8a62 100644 --- a/console/src/main/resources/static/console-fe/public/index.html +++ b/console/src/main/resources/static/console-fe/public/index.html @@ -1,10 +1,12 @@ - + + diff --git a/console/src/main/resources/static/console-fe/public/js/codemirror.addone.fullscreen.js b/console/src/main/resources/static/console-fe/public/js/codemirror.addone.fullscreen.js index 32afce68c..e38b6a0ed 100644 --- a/console/src/main/resources/static/console-fe/public/js/codemirror.addone.fullscreen.js +++ b/console/src/main/resources/static/console-fe/public/js/codemirror.addone.fullscreen.js @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -48,4 +51,4 @@ window.scrollTo(info.scrollLeft, info.scrollTop); cm.refresh(); } -}); \ No newline at end of file +}); diff --git a/console/src/main/resources/static/console-fe/public/js/codemirror.addone.json-lint.js b/console/src/main/resources/static/console-fe/public/js/codemirror.addone.json-lint.js index 684673ef6..5628e0da6 100644 --- a/console/src/main/resources/static/console-fe/public/js/codemirror.addone.json-lint.js +++ b/console/src/main/resources/static/console-fe/public/js/codemirror.addone.json-lint.js @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -38,4 +41,4 @@ CodeMirror.registerHelper("lint", "json", function(text) { return found; }); -}); \ No newline at end of file +}); diff --git a/console/src/main/resources/static/console-fe/public/js/codemirror.addone.lint.js b/console/src/main/resources/static/console-fe/public/js/codemirror.addone.lint.js index d7363bfe4..927caf8f2 100644 --- a/console/src/main/resources/static/console-fe/public/js/codemirror.addone.lint.js +++ b/console/src/main/resources/static/console-fe/public/js/codemirror.addone.lint.js @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -245,4 +248,4 @@ CodeMirror.defineExtension("performLint", function() { if (this.state.lint) startLinting(this); }); -}); \ No newline at end of file +}); diff --git a/console/src/main/resources/static/console-fe/public/js/codemirror.js b/console/src/main/resources/static/console-fe/public/js/codemirror.js index 00872a7c2..559b4ea1a 100644 --- a/console/src/main/resources/static/console-fe/public/js/codemirror.js +++ b/console/src/main/resources/static/console-fe/public/js/codemirror.js @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/console/src/main/resources/static/console-fe/public/js/codemirror.lib.clike-lint.js b/console/src/main/resources/static/console-fe/public/js/codemirror.lib.clike-lint.js index 8c6e921bb..5ea9b1851 100644 --- a/console/src/main/resources/static/console-fe/public/js/codemirror.lib.clike-lint.js +++ b/console/src/main/resources/static/console-fe/public/js/codemirror.lib.clike-lint.js @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -796,4 +799,4 @@ CodeMirror.defineMode("clike", function(config, parserConfig) { } }); -}); \ No newline at end of file +}); diff --git a/console/src/main/resources/static/console-fe/public/js/codemirror.lib.json-lint.js b/console/src/main/resources/static/console-fe/public/js/codemirror.lib.json-lint.js index d395030b1..92989879d 100644 --- a/console/src/main/resources/static/console-fe/public/js/codemirror.lib.json-lint.js +++ b/console/src/main/resources/static/console-fe/public/js/codemirror.lib.json-lint.js @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -30,7 +33,7 @@ case 1: // replace escaped characters with actual character .replace(/\\v/g,'\v') .replace(/\\f/g,'\f') .replace(/\\b/g,'\b'); - + break; case 2:this.$ = Number(yytext); break; @@ -354,7 +357,7 @@ next:function () { if (this._input === "") { return this.EOF; } else { - this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(), + this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(), {text: "", token: null, line: this.yylineno}); } }, @@ -442,4 +445,4 @@ exports.main = function commonjsMain(args) { if (typeof module !== 'undefined' && require.main === module) { exports.main(typeof process !== 'undefined' ? process.argv.slice(1) : require("system").args); } -} \ No newline at end of file +} diff --git a/console/src/main/resources/static/console-fe/public/js/javascript.js b/console/src/main/resources/static/console-fe/public/js/javascript.js index 388753ce4..b6b45102c 100644 --- a/console/src/main/resources/static/console-fe/public/js/javascript.js +++ b/console/src/main/resources/static/console-fe/public/js/javascript.js @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/console/src/main/resources/static/console-fe/public/js/merge.js b/console/src/main/resources/static/console-fe/public/js/merge.js index 66c6ba322..ad59c3c0e 100644 --- a/console/src/main/resources/static/console-fe/public/js/merge.js +++ b/console/src/main/resources/static/console-fe/public/js/merge.js @@ -1,9 +1,12 @@ /* * Copyright 1999-2018 Alibaba Group Holding Ltd. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/console/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.js b/console/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.js index df6110da5..ced7382a4 100644 --- a/console/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.js +++ b/console/src/main/resources/static/console-fe/public/js/vs/editor/editor.main.js @@ -66,4 +66,4 @@ define("vs/language/typescript/src/monaco.contribution",["require","exports","vs *-----------------------------------------------------------------------------*/ define("vs/basic-languages/src/monaco.contribution",["require","exports","vs/editor/edcore.main"],function(s,e){"use strict";function i(e){var i=o[e].module;return new l.Promise(function(a,t,o){s([i],function(s){l.languages.setMonarchTokensProvider(e,s.language),l.languages.setLanguageConfiguration(e,s.conf),a(void 0)},t)})}function a(s){return n[s]||(n[s]=i(s)),n[s]}function t(s){var e=s.id;o[e]=s,l.languages.register(s),l.languages.onLanguage(e,function(){a(e)})}Object.defineProperty(e,"__esModule",{value:!0});var l="undefined"==typeof monaco?self.monaco:monaco,o={},n={};e.loadLanguage=a,t({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],module:"./bat"}),t({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],module:"./coffee"}),t({id:"c",extensions:[".c",".h"],aliases:["C","c"],module:"./cpp"}),t({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],module:"./cpp"}),t({id:"csharp",extensions:[".cs",".csx"],aliases:["C#","csharp"],module:"./csharp"}),t({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],module:"./dockerfile"}),t({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],module:"./fsharp"}),t({id:"go",extensions:[".go"],aliases:["Go"],module:"./go"}),t({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],module:"./handlebars"}),t({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],module:"./html"}),t({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],module:"./ini"}),t({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],module:"./pug"}),t({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],module:"./java"}),t({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],module:"./lua"}),t({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],module:"./markdown"}),t({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],module:"./msdax"}),t({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],module:"./objective-c"}),t({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],module:"./postiats"}),t({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],module:"./php"}),t({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],module:"./powershell"}),t({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",module:"./python"}),t({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],module:"./r"}),t({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],module:"./razor"}),t({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],module:"./ruby"}),t({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],module:"./swift"}),t({id:"sql",extensions:[".sql"],aliases:["SQL"],module:"./sql"}),t({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],module:"./vb"}),t({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz"],firstLine:"(\\<\\?xml.*)|(\\