From 3f4e764e771ae690f298962e2313fe68e076e0ff Mon Sep 17 00:00:00 2001 From: joaovictor3g Date: Fri, 12 Apr 2024 11:40:29 -0300 Subject: [PATCH] adds license --- web/assets/css/modals.css | 16 ++++++++++++++++ web/assets/css/tabs.css | 16 ++++++++++++++++ web/assets/css/tooltips.css | 16 ++++++++++++++++ web/assets/js/components/accordions/result.js | 16 ++++++++++++++++ .../js/components/modals/playground-mode.js | 16 ++++++++++++++++ web/assets/js/components/tooltips/index.js | 16 ++++++++++++++++ web/assets/js/constants.js | 16 ++++++++++++++++ web/assets/js/services/examples.js | 16 ++++++++++++++++ web/assets/js/services/modes.js | 16 ++++++++++++++++ web/assets/js/utils/render-functions.js | 16 ++++++++++++++++ 10 files changed, 160 insertions(+) diff --git a/web/assets/css/modals.css b/web/assets/css/modals.css index 7e2848d..7a401be 100644 --- a/web/assets/css/modals.css +++ b/web/assets/css/modals.css @@ -1,3 +1,19 @@ +/** + * Copyright 2024 Undistro Authors + * + * 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. + */ + .has-modal { overflow: hidden; } diff --git a/web/assets/css/tabs.css b/web/assets/css/tabs.css index 50007b3..af0f90f 100644 --- a/web/assets/css/tabs.css +++ b/web/assets/css/tabs.css @@ -1,3 +1,19 @@ +/** + * Copyright 2024 Undistro Authors + * + * 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. + */ + .vap__tabs { --purple: #8447d1; --purple-dark: #ab75f0; diff --git a/web/assets/css/tooltips.css b/web/assets/css/tooltips.css index bce99ac..8801c56 100644 --- a/web/assets/css/tooltips.css +++ b/web/assets/css/tooltips.css @@ -1,3 +1,19 @@ +/** + * Copyright 2024 Undistro Authors + * + * 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. + */ + .tooltip-container { position: relative; display: flex; diff --git a/web/assets/js/components/accordions/result.js b/web/assets/js/components/accordions/result.js index c4f125f..fa09b22 100644 --- a/web/assets/js/components/accordions/result.js +++ b/web/assets/js/components/accordions/result.js @@ -1,3 +1,19 @@ +/** + * Copyright 2024 Undistro Authors + * + * 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. + */ + const outputResultEl = document.getElementById("editor__output-result"); const resultAccordionEl = document.querySelectorAll( diff --git a/web/assets/js/components/modals/playground-mode.js b/web/assets/js/components/modals/playground-mode.js index 6f864dc..51a8fa7 100644 --- a/web/assets/js/components/modals/playground-mode.js +++ b/web/assets/js/components/modals/playground-mode.js @@ -1,3 +1,19 @@ +/** + * Copyright 2024 Undistro Authors + * + * 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. + */ + import { renderExamplesInSelectInstance, renderTabs, diff --git a/web/assets/js/components/tooltips/index.js b/web/assets/js/components/tooltips/index.js index b92ebbb..3645125 100644 --- a/web/assets/js/components/tooltips/index.js +++ b/web/assets/js/components/tooltips/index.js @@ -1,3 +1,19 @@ +/** + * Copyright 2024 Undistro Authors + * + * 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. + */ + const tooltipContainers = document.querySelectorAll(".tooltip__container"); tooltipContainers.forEach((container) => { diff --git a/web/assets/js/constants.js b/web/assets/js/constants.js index 4381b70..20d5a5c 100644 --- a/web/assets/js/constants.js +++ b/web/assets/js/constants.js @@ -1 +1,17 @@ +/** + * Copyright 2024 Undistro Authors + * + * 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. + */ + const localStorageKey = "mode"; diff --git a/web/assets/js/services/examples.js b/web/assets/js/services/examples.js index e47d6b6..abb25ec 100644 --- a/web/assets/js/services/examples.js +++ b/web/assets/js/services/examples.js @@ -1,3 +1,19 @@ +/** + * Copyright 2024 Undistro Authors + * + * 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. + */ + async function getExampleContentById(mode, exampleID) { const response = await fetch( `../../assets/examples/${mode.id}/${exampleID}.json` diff --git a/web/assets/js/services/modes.js b/web/assets/js/services/modes.js index 5a36257..cb166a8 100644 --- a/web/assets/js/services/modes.js +++ b/web/assets/js/services/modes.js @@ -1,3 +1,19 @@ +/** + * Copyright 2024 Undistro Authors + * + * 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. + */ + async function getModes() { const response = await fetch("../../assets/modes.json"); const modes = await response.json(); diff --git a/web/assets/js/utils/render-functions.js b/web/assets/js/utils/render-functions.js index cad1da4..7a85dfd 100644 --- a/web/assets/js/utils/render-functions.js +++ b/web/assets/js/utils/render-functions.js @@ -1,3 +1,19 @@ +/** + * Copyright 2024 Undistro Authors + * + * 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. + */ + import { AceEditor } from "../editor.js"; import { ExampleService } from "../services/examples.js";