-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: update todo * feat: update todo * 0.9.0 * feat: close 025
- Loading branch information
1 parent
4fb213b
commit 5b8199d
Showing
13 changed files
with
304 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"include": "**/.todo;**/.srs*;docs/srs/*", | ||
"ignore": "**/node_modules/**;**/dist/**;.github/**" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,44 @@ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
const fs = require('fs'); | ||
|
||
class SRS { | ||
|
||
/* | ||
* | ||
* params: | ||
*/ | ||
constructor(logger) { | ||
constructor(logger, source) { | ||
this.logger = logger; | ||
this.source = source; | ||
this.topics = {}; | ||
} | ||
|
||
async load(data) { | ||
const folder = await this.source.getFolder(); | ||
for( const t of Object.keys(data)) { | ||
let file = null; | ||
let md = data[t]; | ||
const lines = data[t].split('\n'); | ||
if (lines.length) { | ||
file = path.join(folder, lines[0]); | ||
if (fs.existsSync(file)) { | ||
md = fs.readFileSync(file, {encoding: 'utf8'}); | ||
} else { | ||
file = null; | ||
} | ||
} | ||
this.topics[t] = {file, md}; | ||
} | ||
} | ||
|
||
async getSummary() { | ||
let r = {}; | ||
for( const t of Object.keys(this.topics) ) { | ||
r[t] = this.topics[t].md; | ||
} | ||
return r; | ||
} | ||
|
||
} | ||
|
||
module.exports.create = (logger) => { | ||
return new SRS(logger); | ||
module.exports.create = (logger, source) => { | ||
return new SRS(logger, source); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,18 +8,19 @@ | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.1/chart.umd.js" integrity="sha512-ZwR1/gSZM3ai6vCdI+LVF1zSq/5HznD3ZSTk7kajkaj4D292NLuduDCO1c/NT8Id+jE58KYLKT7hXnbtryGmMg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/13.0.2/markdown-it.min.js" referrerpolicy="no-referrer"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/markdown-it.min.js"></script> | ||
<script> | ||
import('https://cdn.jsdelivr.net/npm/[email protected]/fp/cdn.min.js').then((dateFns) => { | ||
console.log(dateFns); | ||
}); | ||
</script> | ||
<link rel="stylesheet" href="styles.css"> | ||
|
||
<script src="https://www.gstatic.com/charts/loader.js"></script> | ||
<script> | ||
google.charts.load("current", { packages: ["gantt"] }); | ||
</script> | ||
|
||
<link rel="stylesheet" type="text/css" href="styles.css"> | ||
</head> | ||
<body> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> | ||
|
@@ -65,7 +66,6 @@ | |
</div> | ||
</div> | ||
</nav> | ||
|
||
<div class="container pt-4"> | ||
<!-- Tabs --> | ||
<div class="tab-content" id="myTabContent"> | ||
|
@@ -93,7 +93,7 @@ | |
<th colspan="1" role="columnheader" title="Toggle SortBy" class="sortable" style="cursor: pointer;">Id</th> | ||
<th colspan="1" role="columnheader" title="Toggle SortBy" class="sortable" style="cursor: pointer;">Name</th> | ||
<th colspan="1" role="columnheader" title="Toggle SortBy" class="sortable" style="cursor: pointer;">FTE</th> | ||
<th colspan="1" role="columnheader" title="Toggle SortBy" class="sortable" style="cursor: pointer;">inDev / Blocked / Backlog</th> | ||
<th colspan="1" role="columnheader" title="Toggle SortBy" class="sortable" style="cursor: pointer;">Dev / Blocked / Backlog</th> | ||
</tr> | ||
</thead> | ||
<tbody id="dashboard_team_list"> | ||
|
@@ -119,7 +119,77 @@ | |
</div> | ||
<!-- SRS --> | ||
<div class="tab-pane fade" id="srs-tab-pane" role="tabpanel" aria-labelledby="srs-tab" tabindex="0"> | ||
<p>Comming soon...</p> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-3 d-sm-none d-md-block border border-black border-0 border-top-0 border-bottom-0 border-start-0"> | ||
|
||
<aside class="bd-aside sticky-xl-top text-body-secondary align-self-start mb-3 mb-xl-5 px-2"> | ||
<nav class="small"> | ||
<ul class="list-unstyled" id="srs-toc"> | ||
<li class="my-2"> | ||
<ul class="list-unstyled ps-3 collapse show" id="forms-collapse1" style=""> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#overview">Overview</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#disabled-forms">Disabled forms</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#sizing">Sizing</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#input-group">Input group</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#floating-labels">Floating labels</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#validation">Validation</a></li> | ||
</ul> | ||
</li> | ||
<li class="my-2"> | ||
<button type="button" class="btn d-inline-flex align-items-center border-0 collapsed" data-bs-toggle="collapse" aria-expanded="false" data-bs-target="#contents-collapse" aria-controls="contents-collapse">docs</button> | ||
<ul class="list-unstyled ps-3 collapse" id="contents-collapse" style=""> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#typography">Typography</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#images">Images</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#tables">Tables</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#figures">Figures</a></li> | ||
<li class="my-2"> | ||
<button type="button" class="btn d-inline-flex align-items-center border-0" data-bs-toggle="collapse" aria-expanded="true" data-bs-target="#forms-collapse" aria-controls="forms-collapse">srs</button> | ||
<ul class="list-unstyled ps-3 collapse show" id="forms-collapse" style=""> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#overview">Overview</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#disabled-forms">Disabled forms</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#sizing">Sizing</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#input-group">Input group</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#floating-labels">Floating labels</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#validation">Validation</a></li> | ||
</ul> | ||
</li> | ||
|
||
</ul> | ||
</li> | ||
<li class="my-2"> | ||
<button type="button" class="btn d-inline-flex align-items-center border-0 collapsed" data-bs-toggle="collapse" aria-expanded="false" data-bs-target="#components-collapse" aria-controls="components-collapse">backend</button> | ||
<ul class="list-unstyled ps-3 collapse" id="components-collapse" style=""> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#accordion">Accordion</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#alerts">Alerts</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#badge">Badge</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#breadcrumb">Breadcrumb</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#buttons">Buttons</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#button-group">Button group</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#card">Card</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#carousel">Carousel</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#dropdowns">Dropdowns</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#list-group">List group</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#modal">Modal</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#navs">Navs</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#navbar">Navbar</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#pagination">Pagination</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#popovers">Popovers</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#progress">Progress</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#scrollspy">Scrollspy</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#spinners">Spinners</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#toasts">Toasts</a></li> | ||
<li><a class="d-inline-flex align-items-center rounded text-decoration-none" href="#tooltips">Tooltips</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</nav> | ||
</aside> | ||
</div> | ||
<div class="col-12 col-sm-9 p-4" id="srs-content"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
@@ -149,6 +219,7 @@ <h1 class="modal-title fs-5" id="exampleModalLabel">Modal title</h1> | |
</div--> | ||
|
||
</div> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script> | ||
<script src="main.js"></script> | ||
</body> | ||
|
Oops, something went wrong.