Skip to content

Commit

Permalink
📄 Add license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
trickypr committed Nov 20, 2023
1 parent 7d21021 commit 4f60dcc
Show file tree
Hide file tree
Showing 29 changed files with 112 additions and 17 deletions.
4 changes: 4 additions & 0 deletions src/content/browser/components/customizableUI/Block.svelte
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
import type {
BlockComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
import type {
BrowserComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
import type {
Component,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
import type {
ComponentId,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
import type {
Component,
Expand Down
4 changes: 4 additions & 0 deletions src/content/browser/components/customizableUI/Spacer.svelte
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
import type {
Component,
Expand Down
4 changes: 4 additions & 0 deletions src/content/browser/components/customizableUI/Tabs.svelte
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
import type {
Component,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
import {
getParentOrientation,
Expand Down
3 changes: 3 additions & 0 deletions src/content/browser/components/customizableUI/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 changes: 4 additions & 0 deletions src/content/browser/components/menus/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import BrowserContextMenu from './BrowserContextMenu.svelte'
import HamburgerMenu from './HamburgerMenu/HamburgerMenu.svelte'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script context="module" lang="ts">
import mitt from 'mitt'
const listener = mitt<{ clearHover: undefined }>()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
import {
tempDropTarget,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<div class="container">Browser Content</div>

<style>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
import ToolbarButton from '@shared/components/ToolbarButton.svelte'
import type { ComponentId, IconComponent } from '@shared/customizableUI'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<div class="omnibox">Omnibox</div>

<style>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
import {
getParentOrientation,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script>
export let verbose = false
</script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
export let verbose: boolean
</script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import Block from './Block.svelte'
import Browser from './Browser.svelte'
import IconButton from './IconButton.svelte'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
import {
type Component,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<script lang="ts">
import {
createBlock,
Expand Down
4 changes: 4 additions & 0 deletions src/content/settings/components/pref/CustomizableUI/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import CustomizableUiPref from './CustomizableUIPref.svelte'

export { CustomizableUiPref }
3 changes: 0 additions & 3 deletions src/content/shared/contextMenus/MenuItem.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { type Readable, readable } from 'svelte/store'

import { dynamicStringPref } from '@shared/svelteUtils'

import type { ContextMenuInfo } from '../../../actors/ContextMenu.types'
import { observable } from '../xul/observable'
import { MENU_ITEM_ACTIONS } from './menuItems'

/**
Expand Down
4 changes: 4 additions & 0 deletions src/content/shared/customizableUI/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import curry from 'fnts/curry'
import { nanoid } from 'nanoid'
import { type Readable, readable } from 'svelte/store'
Expand Down
4 changes: 4 additions & 0 deletions src/content/shared/customizableUI/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

export * from './helpers'
export * from './items'
export * from './style'
Expand Down
4 changes: 4 additions & 0 deletions src/content/shared/customizableUI/items.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import { readable } from 'svelte/store'

import type { Component, ExportComponent } from '.'
Expand Down
4 changes: 4 additions & 0 deletions src/content/shared/customizableUI/style.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import type {
BlockComponent,
BlockDirection,
Expand Down
4 changes: 4 additions & 0 deletions src/content/shared/customizableUI/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import type { Readable } from 'svelte/store'

import type { Tab } from '../../browser/components/tabs/tab'
Expand Down
19 changes: 5 additions & 14 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,10 @@
"target": "es2022",
"allowArbitraryExtensions": true,
"paths": {
"@shared/*": [
"./src/content/shared/*"
],
"@browser/*": [
"./src/content/browser/*"
]
"@shared/*": ["./src/content/shared/*"],
"@browser/*": ["./src/content/browser/*"]
}
},
"include": [
"src/content/**/*"
],
"exclude": [
"node_modules/*",
"public/*"
]
}
"include": ["src/content/**/*"],
"exclude": ["node_modules/*", "public/*"]
}

0 comments on commit 4f60dcc

Please sign in to comment.