From 6b4b095e02999086686ca7a0111a9a750c1ceb73 Mon Sep 17 00:00:00 2001
From: Tyler Wilding
Date: Mon, 28 Jun 2021 23:07:09 -0400
Subject: [PATCH 1/4] prep work for next step
---
docs/gh-pages-proj/src/config/progress.json | 8 ++++++++
docs/gh-pages-proj/src/progress.js | 8 ++------
docs/gh-pages-proj/src/views/Home.vue | 5 ++++-
3 files changed, 14 insertions(+), 7 deletions(-)
create mode 100644 docs/gh-pages-proj/src/config/progress.json
diff --git a/docs/gh-pages-proj/src/config/progress.json b/docs/gh-pages-proj/src/config/progress.json
new file mode 100644
index 0000000000..1b4f96ff33
--- /dev/null
+++ b/docs/gh-pages-proj/src/config/progress.json
@@ -0,0 +1,8 @@
+{
+ "jak1": {
+ "locPercentage": {
+ "value": 5.5,
+ "label": "Lines of Code"
+ }
+ }
+}
diff --git a/docs/gh-pages-proj/src/progress.js b/docs/gh-pages-proj/src/progress.js
index e45269bd2a..7ef618e55c 100644
--- a/docs/gh-pages-proj/src/progress.js
+++ b/docs/gh-pages-proj/src/progress.js
@@ -1,7 +1,3 @@
-const projectProgress = {
- jak1: {
- decomp: 5
- }
-}
+const projectProgress = require('./config/progress.json')
-export default projectProgress
\ No newline at end of file
+export default projectProgress
diff --git a/docs/gh-pages-proj/src/views/Home.vue b/docs/gh-pages-proj/src/views/Home.vue
index 70b49e956c..8b696a93a0 100644
--- a/docs/gh-pages-proj/src/views/Home.vue
+++ b/docs/gh-pages-proj/src/views/Home.vue
@@ -62,7 +62,9 @@
buffer-value="0"
:value="jak1BlackLabelStatus.decompDone"
stream
+ height="25"
>
+ {{jak1BlackLabelStatus.decompLabel}} - {{jak1BlackLabelStatus.decompDone}}%
@@ -122,7 +124,8 @@ export default {
return {
recentPRs: [],
jak1BlackLabelStatus: {
- decompDone: projectProgress.jak1.decomp
+ decompDone: projectProgress.jak1.locPercentage.value,
+ decompLabel: projectProgress.jak1.locPercentage.label
}
};
},
From 2ba1a00bb67d9d294be07b2b04a31f1736f29bab Mon Sep 17 00:00:00 2001
From: Tyler Wilding
Date: Mon, 28 Jun 2021 23:14:30 -0400
Subject: [PATCH 2/4] better formatting on latest updates
---
docs/gh-pages-proj/src/views/Home.vue | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/docs/gh-pages-proj/src/views/Home.vue b/docs/gh-pages-proj/src/views/Home.vue
index 8b696a93a0..28a0457ec9 100644
--- a/docs/gh-pages-proj/src/views/Home.vue
+++ b/docs/gh-pages-proj/src/views/Home.vue
@@ -88,7 +88,7 @@
{{ pr.user.login }}
- {{ pr.body }}
+
{{ pr.body }}
@@ -112,6 +112,11 @@
background-size: cover;
min-height: 50vh;
}
+.wrapped-pre {
+ word-wrap: normal;
+ white-space: pre-wrap;
+ font-family: "Roboto", sans-serif !important;
+}