Skip to content

Commit 6001ae0

Browse files
committed
chore: Add Google LLC copyright and Apache 2.0 license headers to various files.
1 parent 1a2fafb commit 6001ae0

File tree

4 files changed

+66
-4
lines changed

4 files changed

+66
-4
lines changed

.gemini/config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# Config for the Gemini Pull Request Review Bot.
216
# https://github.com/marketplace/gemini-code-assist
317
have_fun: false

examples/csp/index.html

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<!doctype html>
2+
<!--
3+
Copyright 2025 Google LLC
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
218
<html lang="en">
319
<head>
420
<meta charset="UTF-8" />
@@ -48,8 +64,8 @@
4864
This prevents the drive-picker-element from attempting to dynamically inject them,
4965
which might be blocked by stricter CSPs (e.g. if script-src didn't allow dynamic injection).
5066
-->
51-
<script src="https://apis.google.com/js/api.js" async defer></script>
52-
<script src="https://accounts.google.com/gsi/client" async defer></script>
67+
<script src="https://apis.google.com/js/api.js" async defer></script>
68+
<script src="https://accounts.google.com/gsi/client" async defer></script>
5369
</head>
5470
<body>
5571
<div id="app">

examples/csp/src/main.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/**
2+
* Copyright 2025 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
import "@googleworkspace/drive-picker-element";
218
import type {
319
DrivePickerElement,
@@ -19,8 +35,8 @@ openButton.addEventListener("click", () => {
1935
picker.addEventListener("picker-picked", (e: Event) => {
2036
const event = e as PickerPickedEvent;
2137
console.log("Picked:", event.detail);
22-
resultDiv.innerHTML = '';
23-
const pre = document.createElement('pre');
38+
resultDiv.innerHTML = "";
39+
const pre = document.createElement("pre");
2440
pre.textContent = JSON.stringify(event.detail, null, 2);
2541
resultDiv.appendChild(pre);
2642
});

packages/drive-picker-element/.storybook/page.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/**
2+
* Copyright 2025 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
.docblock-argstable-head th:nth-child(3),
218
.docblock-argstable-body td:nth-child(3) {
319
display: none;

0 commit comments

Comments
 (0)