-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[enh] add SPDX license identifiers - closes #17
- Loading branch information
Showing
39 changed files
with
160 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package cmd | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package config | ||
|
||
import ( | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
"use strict"; | ||
chrome.runtime.onInstalled.addListener((details) => { | ||
console.log("Extension has been installed. Reason:", details.reason); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
import { downloadFile } from './file-download'; | ||
import { resources } from './resources'; | ||
import { sanitizeCSS } from './sanitize'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
import { Subject } from 'rxjs'; | ||
import { arrayBufferToBase64, checkStatus, fullURL, isDebug } from './utils'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
function getDomData() { | ||
const html = document.documentElement; | ||
const styleElements = html.querySelectorAll('style'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
import { Document } from "./document"; | ||
import { renderProgressBar, destroyProgressBar } from './file-download'; | ||
import { getDomData } from "./get-dom-data"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
export default function () { | ||
function saveOptions(e) { | ||
let serverUrl = document.querySelector('#url').value; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
import { sha256 } from './utils'; | ||
import { fetchURL } from './file-download'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
import { absoluteURL } from './utils'; | ||
import { resources } from './resources'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
import { getDomData } from "./get-dom-data"; | ||
|
||
const messageHandlers = new Map([ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
async function createSnapshot(doc) { | ||
await doc.transformDom(); | ||
return { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
function addTag(value, tagChipContainer, tags) { | ||
renderTag(value, tagChipContainer, tags); | ||
tags.push(value); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
const browser = chrome; | ||
|
||
let siteUrl = ''; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
import { displayPopup } from "./modules/main"; | ||
|
||
document.addEventListener('DOMContentLoaded', displayPopup); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
import options from './modules/options-page'; | ||
|
||
options(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
import main from "./modules/site-main"; | ||
|
||
main(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package model | ||
|
||
type Bookmark struct { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package model | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package model | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package model | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package model | ||
|
||
type Resource struct { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package model | ||
|
||
type Snapshot struct { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package model | ||
|
||
type Tag struct { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package model | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package model | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package fs | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package storage | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
<!-- | ||
SPDX-FileContributor: Adam Tauber <[email protected]> | ||
SPDX-License-Identifier: AGPLv3+ | ||
--> | ||
|
||
<rss version="2.0"> | ||
<channel> | ||
<title>Omnom</title> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package validator | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package webapp | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package webapp | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package webapp | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package webapp | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package webapp | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package webapp | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package webapp | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// SPDX-FileContributor: Adam Tauber <[email protected]> | ||
// | ||
// SPDX-License-Identifier: AGPLv3+ | ||
|
||
package webapp | ||
|
||
import ( | ||
|