Signing in with your GitHub account lets you use this web instance with your own API requests quota.
+
+ A session identifier will be stored in your browser's localStorage and will be used by the server to load custom GitHub Octokit instances that are linked to your account.
The following extra features permissions will be granted when logged with your GitHub account:
@@ -54,19 +56,28 @@
-
+
Sign in with GitHub
-
-
+
+
+
+
+
+ While no scope is required, you can chose to grant additional scopes which may be required by some plugins options.
+ For security reasons, metrics will only ask for read-only access to your account.
+
+
+
+ By clicking above button you understand that your browser's localStorage will be used to store a session identifier.
+
+
+
+ This feature requires localStorage to be enabled.
-
- While no scope is required, you can chose to grant additional scopes which may be required by some plugins options.
- For security reasons, metrics will only ask for read-only access to your account.
-
@@ -76,6 +87,7 @@
+ Session: {{ session.substring(0, 32) }}
diff --git a/source/app/web/statics/oauth/script.js b/source/app/web/statics/oauth/script.js
index 6579b653..271dd6ae 100644
--- a/source/app/web/statics/oauth/script.js
+++ b/source/app/web/statics/oauth/script.js
@@ -74,6 +74,21 @@
scopes: [],
extras: [],
session: null,
+ supported:(() => {
+ try {
+ const storage = window.localStorage
+ const test = "__storage_test__"
+ storage.setItem(test, test);
+ if (localStorage.getItem(test) !== test)
+ throw new Error("localStorage value mismatch")
+ storage.removeItem(test)
+ return true
+ }
+ catch (error) {
+ console.error(error)
+ return false
+ }
+ })()
},
})
})()
diff --git a/source/app/web/statics/style.css b/source/app/web/statics/style.css
index b210f54c..9ffa484c 100644
--- a/source/app/web/statics/style.css
+++ b/source/app/web/statics/style.css
@@ -305,7 +305,7 @@
}
.oauth-github {
- color: var(--color-text-primary);
+ color: var(--color-text-primary) !important;
display: flex;
align-items: center;
justify-content: center;
@@ -463,7 +463,7 @@
}
.badges-oauth .border {
width: 4rem;
- border: 3px dashed var(--color-border-secondary);
+ border-top: 3px dashed var(--color-border-secondary);
}
.badge-oauth {
width: 96px;