Skip to content

Commit daccd27

Browse files
committed
build(*): update banner.json and sync with chrome extension version, upgrade package-lock.json
1 parent be6a637 commit daccd27

File tree

9 files changed

+175
-6907
lines changed

9 files changed

+175
-6907
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 青いほしぞら
3+
Copyright (c) 2023 青いほしぞら
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

assets/screenshot-setting.jpg

-49.7 KB
Loading

package-lock.json

Lines changed: 164 additions & 6896 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "github-events-ext-userscript",
33
"title": "Github events",
4-
"version": "1.0.13",
4+
"version": "1.0.14",
55
"description": "A Userscript extension that shows GitHub activity events in sidebar and improves several UI details.",
66
"main": "index.js",
77
"scripts": {
@@ -14,6 +14,7 @@
1414
"url": "git+https://github.com/Aoi-hosizora/GithubEventsExt_Userscript.git"
1515
},
1616
"author": "Aoi-hosizora",
17+
"copyright": "Copyright © 2020-2023 Aoi-hosizora",
1718
"license": "MIT",
1819
"bugs": {
1920
"url": "https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/issues"

src/etc/banner.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
// @description @@description
77
// @namespace https://github.com/
88
// @match http*://github.com/*
9-
// @copyright 2020+, @@author
9+
// @copyright @@copyright
1010
//
11-
// @downloadURL https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/raw/master/dist/github-events.user.js <!-- TODO check how to upgrade this userscript -->
12-
// @updateURL https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/raw/master/src/etc/banner.js
11+
// @downloadURL https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/raw/master/dist/github-events.user.js
12+
// @updateURL https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/raw/master/dist/github-events.user.js
13+
// @supportURL https://github.com/Aoi-hosizora/GithubEventsExt_Userscript
1314
// @icon https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/raw/master/public/img/icon16.png
1415
// @icon64 https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/raw/master/public/img/icon32.png
1516
//

src/etc/banner.temp.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/ts/sidebar_ui.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function formatInfoToLi(item: EventInfo): string {
1919
const createAt = moment(new Date(item.createdAt));
2020
const displayCreateAt = createAt.format('YY/MM/DD HH:mm:ss');
2121
const fullCreateAt = `${createAt.format('YYYY/MM/DD dddd, HH:mm:ss')} (${createAt.fromNow()})`;
22-
return `
22+
var html = `
2323
<li>
2424
<div class="ah-content-header">
2525
<!-- ////// Avatar | Username | Event icon ////// -->
@@ -45,6 +45,7 @@ export function formatInfoToLi(item: EventInfo): string {
4545
</div>
4646
</li>
4747
`;
48+
return html.replaceAll(/<!--[\s\S]+?-->/, '');
4849
}
4950

5051
/**

src/ts/ui_events.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ function processMenuSwitchers() {
217217
updateUIAndRegisterEvent($('#ahid-setup-user-counter'), StorageFlag.SHOW_USER_PRIVATE_COUNTER);
218218
updateUIAndRegisterEvent($('#ahid-setup-repo-counter'), StorageFlag.SHOW_REPO_ACTION_COUNTER);
219219
updateUIAndRegisterEvent($('#ahid-setup-repo-size'), StorageFlag.SHOW_REPO_AND_CONTENTS_SIZE);
220+
updateUIAndRegisterEvent($('#ahid-setup-blank-target'), StorageFlag.USE_BLANK_TARGET);
220221
}
221222

222223
// =========================

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ module.exports = {
5555
content = content.replace(/@@version/g, PACKAGE.version)
5656
content = content.replace(/@@description/g, PACKAGE.description);
5757
content = content.replace(/@@author/g, PACKAGE.author);
58+
content = content.replace(/@@copyright/g, PACKAGE.copyright);
5859
return content;
5960
})()
6061
})

0 commit comments

Comments
 (0)