aboutsummaryrefslogtreecommitdiff
path: root/includes/stats
diff options
context:
space:
mode:
Diffstat (limited to 'includes/stats')
-rw-r--r--includes/stats/neutron.json78
-rw-r--r--includes/stats/neutron2.json40
-rw-r--r--includes/stats/refresh.php4
-rw-r--r--includes/stats/stats.json12
4 files changed, 112 insertions, 22 deletions
diff --git a/includes/stats/neutron.json b/includes/stats/neutron.json
index 0e5c8ed..875bbef 100644
--- a/includes/stats/neutron.json
+++ b/includes/stats/neutron.json
@@ -1,5 +1,83 @@
[
{
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/46737727",
+ "assets_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/46737727\/assets",
+ "upload_url": "https:\/\/uploads.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/46737727\/assets{?name,label}",
+ "html_url": "https:\/\/github.com\/Minteck-Projects\/Neutron-Core\/releases\/tag\/10.0.205.49",
+ "id": 46737727,
+ "author": {
+ "login": "Minteck",
+ "id": 46352972,
+ "node_id": "MDQ6VXNlcjQ2MzUyOTcy",
+ "avatar_url": "https:\/\/avatars.githubusercontent.com\/u\/46352972?v=4",
+ "gravatar_id": "",
+ "url": "https:\/\/api.github.com\/users\/Minteck",
+ "html_url": "https:\/\/github.com\/Minteck",
+ "followers_url": "https:\/\/api.github.com\/users\/Minteck\/followers",
+ "following_url": "https:\/\/api.github.com\/users\/Minteck\/following{\/other_user}",
+ "gists_url": "https:\/\/api.github.com\/users\/Minteck\/gists{\/gist_id}",
+ "starred_url": "https:\/\/api.github.com\/users\/Minteck\/starred{\/owner}{\/repo}",
+ "subscriptions_url": "https:\/\/api.github.com\/users\/Minteck\/subscriptions",
+ "organizations_url": "https:\/\/api.github.com\/users\/Minteck\/orgs",
+ "repos_url": "https:\/\/api.github.com\/users\/Minteck\/repos",
+ "events_url": "https:\/\/api.github.com\/users\/Minteck\/events{\/privacy}",
+ "received_events_url": "https:\/\/api.github.com\/users\/Minteck\/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "node_id": "MDc6UmVsZWFzZTQ2NzM3NzI3",
+ "tag_name": "10.0.205.49",
+ "target_commitish": "trunk",
+ "name": "Neutron 10 Beta 3.1",
+ "draft": false,
+ "prerelease": true,
+ "created_at": "2021-07-25T21:38:34Z",
+ "published_at": "2021-07-25T21:55:46Z",
+ "assets": [],
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/10.0.205.49",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/10.0.205.49",
+ "body": ""
+ },
+ {
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/46712832",
+ "assets_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/46712832\/assets",
+ "upload_url": "https:\/\/uploads.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/46712832\/assets{?name,label}",
+ "html_url": "https:\/\/github.com\/Minteck-Projects\/Neutron-Core\/releases\/tag\/10.0.194.48",
+ "id": 46712832,
+ "author": {
+ "login": "Minteck",
+ "id": 46352972,
+ "node_id": "MDQ6VXNlcjQ2MzUyOTcy",
+ "avatar_url": "https:\/\/avatars.githubusercontent.com\/u\/46352972?v=4",
+ "gravatar_id": "",
+ "url": "https:\/\/api.github.com\/users\/Minteck",
+ "html_url": "https:\/\/github.com\/Minteck",
+ "followers_url": "https:\/\/api.github.com\/users\/Minteck\/followers",
+ "following_url": "https:\/\/api.github.com\/users\/Minteck\/following{\/other_user}",
+ "gists_url": "https:\/\/api.github.com\/users\/Minteck\/gists{\/gist_id}",
+ "starred_url": "https:\/\/api.github.com\/users\/Minteck\/starred{\/owner}{\/repo}",
+ "subscriptions_url": "https:\/\/api.github.com\/users\/Minteck\/subscriptions",
+ "organizations_url": "https:\/\/api.github.com\/users\/Minteck\/orgs",
+ "repos_url": "https:\/\/api.github.com\/users\/Minteck\/repos",
+ "events_url": "https:\/\/api.github.com\/users\/Minteck\/events{\/privacy}",
+ "received_events_url": "https:\/\/api.github.com\/users\/Minteck\/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "node_id": "MDc6UmVsZWFzZTQ2NzEyODMy",
+ "tag_name": "10.0.194.48",
+ "target_commitish": "trunk",
+ "name": "Neutron 10 Beta 3",
+ "draft": false,
+ "prerelease": true,
+ "created_at": "2021-07-24T11:41:24Z",
+ "published_at": "2021-07-24T11:43:00Z",
+ "assets": [],
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/10.0.194.48",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/10.0.194.48",
+ "body": ""
+ },
+ {
"url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/45675460",
"assets_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/45675460\/assets",
"upload_url": "https:\/\/uploads.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/45675460\/assets{?name,label}",
diff --git a/includes/stats/neutron2.json b/includes/stats/neutron2.json
index 99d857c..b953c0c 100644
--- a/includes/stats/neutron2.json
+++ b/includes/stats/neutron2.json
@@ -1,5 +1,25 @@
[
{
+ "name": "10.0.205.49",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/10.0.205.49",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/10.0.205.49",
+ "commit": {
+ "sha": "faf4961452b378de868d99e6d4bef0e7d4401924",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/faf4961452b378de868d99e6d4bef0e7d4401924"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8xMC4wLjIwNS40OQ=="
+ },
+ {
+ "name": "10.0.194.48",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/10.0.194.48",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/10.0.194.48",
+ "commit": {
+ "sha": "1f3fb9abd8764c74d82167144ac169fd195af149",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/1f3fb9abd8764c74d82167144ac169fd195af149"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8xMC4wLjE5NC40OA=="
+ },
+ {
"name": "10.0.47.190",
"zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/10.0.47.190",
"tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/10.0.47.190",
@@ -278,25 +298,5 @@
"url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/45585c983312edd77adefc4cb1bbafd817870ef6"
},
"node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjA="
- },
- {
- "name": "2.0a1",
- "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.0a1",
- "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.0a1",
- "commit": {
- "sha": "6d739dfc95e7fec3db96306d76afc3c0ca3a5038",
- "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/6d739dfc95e7fec3db96306d76afc3c0ca3a5038"
- },
- "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjBhMQ=="
- },
- {
- "name": "1.2.3",
- "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/1.2.3",
- "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/1.2.3",
- "commit": {
- "sha": "5b57ea140c6a17ac2cd4a3717dba6faff196352b",
- "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/5b57ea140c6a17ac2cd4a3717dba6faff196352b"
- },
- "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8xLjIuMw=="
}
] \ No newline at end of file
diff --git a/includes/stats/refresh.php b/includes/stats/refresh.php
index 5499dd3..4ff5487 100644
--- a/includes/stats/refresh.php
+++ b/includes/stats/refresh.php
@@ -42,11 +42,11 @@ $data["reddit"]["score"] = $last["score"];
// ------------------------------------
// Neutron Releases
$neutron = json_decode($api->GitHub("repos/Minteck-Projects/Neutron-Core/releases"), true);
-file_put_contents("./gyrate-with-obliqueness.json", json_encode($neutron, JSON_PRETTY_PRINT));
+file_put_contents("./neutron.json", json_encode($neutron, JSON_PRETTY_PRINT));
$neutron = json_decode($api->GitHub("repos/Minteck-Projects/Neutron-Core/tags"), true);
file_put_contents("./neutron2.json", json_encode($neutron, JSON_PRETTY_PRINT));
// ------------------------------------
// Dump
-var_dump($data); \ No newline at end of file
+file_put_contents("./stats.json", json_encode($data, JSON_PRETTY_PRINT));
diff --git a/includes/stats/stats.json b/includes/stats/stats.json
new file mode 100644
index 0000000..15e6d1b
--- /dev/null
+++ b/includes/stats/stats.json
@@ -0,0 +1,12 @@
+{
+ "github": {
+ "project": "Minteck\/UnchainedTech-Content",
+ "sha": "8703ba3",
+ "message": "Update how-was-windows-2000-made.md"
+ },
+ "reddit": {
+ "sub": "unixporn",
+ "title": "[tty] Nintendo 3DS",
+ "score": 2274
+ }
+} \ No newline at end of file