Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 青いほしぞら
Copyright (c) 2023 青いほしぞら

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9,959 changes: 421 additions & 9,538 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "github-events-ext-userscript",
"title": "Github events",
"version": "1.0.13",
"version": "1.0.14",
"description": "A Userscript extension that shows GitHub activity events in sidebar and improves several UI details.",
"main": "index.js",
"scripts": {
Expand All @@ -14,6 +14,7 @@
"url": "git+https://github.com/Aoi-hosizora/GithubEventsExt_Userscript.git"
},
"author": "Aoi-hosizora",
"copyright": "Copyright © 2020-2023 Aoi-hosizora",
"license": "MIT",
"bugs": {
"url": "https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/issues"
Expand All @@ -31,7 +32,7 @@
"text-loader": "0.0.1",
"ts-loader": "^6.2.1",
"typescript": "^3.7.5",
"webpack": "^4.41.5",
"webpack": "^5.75.0",
"webpack-cli": "^4.8.0"
},
"dependencies": {
Expand Down
7 changes: 4 additions & 3 deletions src/etc/banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
// @description @@description
// @namespace https://github.com/
// @match http*://github.com/*
// @copyright 2020+, @@author
// @copyright @@copyright
//
// @downloadURL https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/raw/master/dist/github-events.user.js <!-- TODO check how to upgrade this userscript -->
// @updateURL https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/raw/master/src/etc/banner.js
// @downloadURL https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/raw/master/dist/github-events.user.js
// @updateURL https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/raw/master/dist/github-events.user.js
// @supportURL https://github.com/Aoi-hosizora/GithubEventsExt_Userscript
// @icon https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/raw/master/public/img/icon16.png
// @icon64 https://github.com/Aoi-hosizora/GithubEventsExt_Userscript/raw/master/public/img/icon32.png
//
Expand Down
5 changes: 0 additions & 5 deletions src/etc/banner.temp.js

This file was deleted.

3 changes: 2 additions & 1 deletion src/ts/sidebar_ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function formatInfoToLi(item: EventInfo): string {
const createAt = moment(new Date(item.createdAt));
const displayCreateAt = createAt.format('YY/MM/DD HH:mm:ss');
const fullCreateAt = `${createAt.format('YYYY/MM/DD dddd, HH:mm:ss')} (${createAt.fromNow()})`;
return `
var html = `
<li>
<div class="ah-content-header">
<!-- ////// Avatar | Username | Event icon ////// -->
Expand All @@ -45,6 +45,7 @@ export function formatInfoToLi(item: EventInfo): string {
</div>
</li>
`;
return html.replaceAll(/<!--[\s\S]+?-->/, '');
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/ts/ui_events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ function processMenuSwitchers() {
updateUIAndRegisterEvent($('#ahid-setup-user-counter'), StorageFlag.SHOW_USER_PRIVATE_COUNTER);
updateUIAndRegisterEvent($('#ahid-setup-repo-counter'), StorageFlag.SHOW_REPO_ACTION_COUNTER);
updateUIAndRegisterEvent($('#ahid-setup-repo-size'), StorageFlag.SHOW_REPO_AND_CONTENTS_SIZE);
updateUIAndRegisterEvent($('#ahid-setup-blank-target'), StorageFlag.USE_BLANK_TARGET);
}

// =========================
Expand Down