-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from keombre/1.2.0
Version 1.2.0
- Loading branch information
Showing
82 changed files
with
5,890 additions
and
11,127 deletions.
There are no files selected for viewing
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* eslint-env node */ | ||
module.exports = { | ||
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
parser: "@typescript-eslint/parser", | ||
plugins: ["@typescript-eslint"], | ||
root: true, | ||
env: { | ||
browser: true, | ||
webextensions: true, | ||
}, | ||
rules: { | ||
"@typescript-eslint/ban-ts-comment": "warn", | ||
}, | ||
}; |
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
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,6 +1,6 @@ | ||
./vscode/ipch/* | ||
test_pages/ | ||
out | ||
node_modules | ||
build | ||
keys.txt | ||
utils/github_upload.js | ||
.env |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"tabWidth": 4, | ||
"plugins": ["prettier-plugin-svelte"], | ||
"overrides": [ | ||
{ | ||
"files": "*.svelte", | ||
"options": { | ||
"parser": "svelte" | ||
} | ||
}, | ||
{ | ||
"files": "*.json", | ||
"options": { | ||
"parser": "json", | ||
"tabWidth": 2 | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": ["stylelint-config-standard"], | ||
"rules": { | ||
"selector-class-pattern": ".*", | ||
"color-hex-length": "long", | ||
"alpha-value-notation": "number" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"files.associations": { | ||
"debug.json": "jsonc" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Development | ||
|
||
This is a database of all the information about developing the extension I can think of. | ||
|
||
## Test Pages | ||
|
||
When developing, you can place the HTML files gathered from issues into `test_pages/`. | ||
|
||
The folder structure follows the search params of the URL, e.g. `?X=Course&Cou=123` maps to `test_pages/course/123.html`. | ||
|
||
- `?X=[folder_name]` | ||
- `?Cou=[file_name]` | ||
|
||
The file can optionally include a comment in the first line describing what the page is. | ||
|
||
```html | ||
<!-- BI-PA2 Homework 4 --> | ||
...the rest of the file | ||
``` | ||
|
||
Then, when running `bun dev`, if you add the `ptmock.localhost 127.0.0.1` entry into your `/etc/hosts`, you can visit `http://ptmock.localhost:3000/`, which will contain a list of all the test pages with their comments. If you open one of them, the URL and the page should be the same as if you went to Progtest. |
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
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,54 +1,43 @@ | ||
{ | ||
"name": "ProgTest Themes", | ||
"version": "1.1.6", | ||
"description": "Theme manager for ProgTest", | ||
"manifest_version": 2, | ||
"content_scripts": [ | ||
{ | ||
"run_at": "document_start", | ||
"js": [ | ||
"content/start.js", | ||
"content/highlightjs/highlight.pack.js" | ||
], | ||
"matches": [ | ||
"*://progtest.fit.cvut.cz/*" | ||
], | ||
"all_frames": true | ||
}, | ||
{ | ||
"run_at": "document_end", | ||
"js": [ | ||
"content/end.js" | ||
], | ||
"matches": [ | ||
"*://progtest.fit.cvut.cz/*" | ||
], | ||
"all_frames": true | ||
} | ||
], | ||
"background": { | ||
"scripts": [ | ||
"background.js" | ||
], | ||
"persistent": true | ||
"name": "ProgTest Themes", | ||
"version": "1.2.0", | ||
"description": "Theme manager for ProgTest", | ||
"manifest_version": 3, | ||
"content_scripts": [ | ||
{ | ||
"run_at": "document_start", | ||
"js": ["content/start.js", "content/highlightjs/highlight.min.js"], | ||
"css": ["themes/loading/on.css"], | ||
"matches": ["https://progtest.fit.cvut.cz/*"], | ||
"all_frames": true | ||
}, | ||
"permissions": [ | ||
"webRequest", | ||
"webRequestBlocking", | ||
"*://progtest.fit.cvut.cz/*", | ||
"*://courses.fit.cvut.cz/*", | ||
"storage", | ||
"tabs" | ||
], | ||
"browser_action": { | ||
"default_title": "", | ||
"default_icon": "icon.png", | ||
"default_popup": "options/options.html" | ||
{ | ||
"run_at": "document_end", | ||
"js": ["content/end.js"], | ||
"matches": ["https://progtest.fit.cvut.cz/*"], | ||
"all_frames": true | ||
} | ||
], | ||
"web_accessible_resources": [ | ||
{ | ||
"resources": ["content/loader.js"], | ||
"matches": ["https://progtest.fit.cvut.cz/*"] | ||
}, | ||
"icons": { | ||
"128": "icon.png" | ||
}, | ||
"web_accessible_resources": [ | ||
"themes/*" | ||
] | ||
} | ||
{ | ||
"resources": ["themes/*"], | ||
"matches": ["https://progtest.fit.cvut.cz/*"] | ||
} | ||
], | ||
"background": { "service_worker": "background.js" }, | ||
"permissions": ["storage", "tabs"], | ||
"host_permissions": [ | ||
"https://progtest.fit.cvut.cz/*", | ||
"https://courses.fit.cvut.cz/data/courses-all.json" | ||
], | ||
"action": { | ||
"default_title": "", | ||
"default_icon": "icon.png", | ||
"default_popup": "settings/index.html" | ||
}, | ||
"icons": { "128": "icon.png" } | ||
} |
Oops, something went wrong.