-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
189 additions
and
111 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 |
---|---|---|
|
@@ -23,17 +23,27 @@ jobs: | |
run: ./devtools.sh init | ||
|
||
- name: Build | ||
run: pnpm run build-chrome | ||
run: | | ||
pnpm run build-chrome | ||
pnpm run build-firefox | ||
- name: Compress files | ||
uses: vimtor/[email protected] | ||
with: | ||
files: dist/ | ||
dest: gaming-gundai.zip | ||
files: dist/chrome | ||
dest: gaming-gundai-chrome.zip | ||
|
||
- name: Compress files | ||
uses: vimtor/[email protected] | ||
with: | ||
files: dist/firefox | ||
dest: gaming-gundai-firefox.zip | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: gaming-gundai.zip | ||
files: | | ||
gaming-gundai-chrome.zip | ||
gaming-gundai-firefox.zip |
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
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,7 +1,7 @@ | ||
{ | ||
"manifest_version": 3, | ||
"name": "ゲーミング群馬大学 -Gaming Gunma University-", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "辺境の地にある群馬大学のウェブサイトをゲーミングでエキサイティングにします", | ||
"author": "[email protected]", | ||
"permissions": ["storage", "tabs"], | ||
|
@@ -33,22 +33,27 @@ | |
"content_scripts": [ | ||
{ | ||
"matches": ["*://idp.gunma-u.ac.jp/pub/login.cgi*", "*://idp.gunma-u.ac.jp/pub/allotplogin_force.cgi*"], | ||
"css": ["common.css", "sso.css"], | ||
"js": ["common.js", "sso.js"] | ||
}, | ||
{ | ||
"matches": ["*://mdl.media.gunma-u.ac.jp/*"], | ||
"css": ["common.css", "moodle.css"], | ||
"js": ["common.js", "moodle.js"] | ||
}, | ||
{ | ||
"matches": ["*://*.kyomu-sys.gunma-u.ac.jp/*"], | ||
"css": ["common.css", "kyomu.css"], | ||
"js": ["common.js", "kyomu.js"] | ||
}, | ||
{ | ||
"matches": ["*://www.media.gunma-u.ac.jp/*"], | ||
"css": ["common.css", "media.css"], | ||
"js": ["common.js", "media.js"] | ||
}, | ||
{ | ||
"matches": ["*://opac.lib.gunma-u.ac.jp/*"], | ||
"css": ["common.css", "mylib.css"], | ||
"js": ["common.js", "mylib.js"] | ||
} | ||
] | ||
|
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,7 +1,7 @@ | ||
{ | ||
"manifest_version": 3, | ||
"name": "ゲーミング群馬大学 -Gaming Gunma University-", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "辺境の地にある群馬大学のウェブサイトをゲーミングでエキサイティングにします", | ||
"author": "[email protected]", | ||
"permissions": ["storage", "tabs"], | ||
|
@@ -27,29 +27,39 @@ | |
"open_in_tab": true | ||
}, | ||
"background": { | ||
"service_worker": "background.js", | ||
"type": "module" | ||
"scripts": ["background.js"] | ||
}, | ||
"content_scripts": [ | ||
{ | ||
"matches": ["*://idp.gunma-u.ac.jp/pub/login.cgi*", "*://idp.gunma-u.ac.jp/pub/allotplogin_force.cgi*"], | ||
"css": ["common.css", "sso.css"], | ||
"js": ["common.js", "sso.js"] | ||
}, | ||
{ | ||
"matches": ["*://mdl.media.gunma-u.ac.jp/*"], | ||
"css": ["common.css", "moodle.css"], | ||
"js": ["common.js", "moodle.js"] | ||
}, | ||
{ | ||
"matches": ["*://*.kyomu-sys.gunma-u.ac.jp/*"], | ||
"css": ["common.css", "kyomu.css"], | ||
"js": ["common.js", "kyomu.js"] | ||
}, | ||
{ | ||
"matches": ["*://www.media.gunma-u.ac.jp/*"], | ||
"css": ["common.css", "media.css"], | ||
"js": ["common.js", "media.js"] | ||
}, | ||
{ | ||
"matches": ["*://opac.lib.gunma-u.ac.jp/*"], | ||
"css": ["common.css", "mylib.css"], | ||
"js": ["common.js", "mylib.js"] | ||
} | ||
] | ||
], | ||
"browser_specific_settings": { | ||
"gecko": { | ||
"id": "[email protected]", | ||
"strict_min_version": "42.0" | ||
} | ||
} | ||
} |
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
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
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,24 +1,9 @@ | ||
// 中間管理職は上司と部下の間に立つ存在であり、糊である | ||
|
||
import { Kyomu } from "./Kyomu"; | ||
import { Media } from "./Media"; | ||
import { Moodle } from "./Moodle"; | ||
import { MyLibrary } from "./MyLibrary"; | ||
import { SSO } from "./SSO"; | ||
import { UnivWebsite } from "./UnivWebsite"; | ||
|
||
export { Kyomu } from "./Kyomu"; | ||
export { Media } from "./Media"; | ||
export { Moodle } from "./Moodle"; | ||
export { MyLibrary } from "./MyLibrary"; | ||
export { SSO } from "./SSO"; | ||
export { default as StorageTool } from "./StorageTool"; | ||
export { GundaiWebSite, UnivWebsite } from "./UnivWebsite"; | ||
|
||
export const WebSiteClasses = (function () { | ||
const sites: { [id: string]: UnivWebsite<unknown> } = {}; | ||
|
||
[Kyomu, Media, Moodle, MyLibrary, SSO].forEach((site) => { | ||
sites[site.id] = site; | ||
}); | ||
return sites; | ||
})(); |
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
Oops, something went wrong.