Skip to content

Commit 4f6a976

Browse files
committed
added years to toh
1 parent 09d582c commit 4f6a976

File tree

13 files changed

+86
-26
lines changed

13 files changed

+86
-26
lines changed

src/scss/page/_index.scss

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,6 @@ main .page {
6767
flex-flow: row;
6868
align-items: start;
6969
}
70-
71-
aside.toc {
72-
width: 25%;
73-
height: 100%;
74-
75-
min-width: unset;
76-
77-
position: sticky;
78-
top: calc(1.5rem + var(--navbar-height));
79-
80-
display: block;
81-
background-color: unset;
82-
border: unset;
83-
}
8470
}
8571

8672
}

src/views/develop/guides/_sidebar.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* :bi-book:Getting Started
44
* [Introduction](/develop/guides)
55
* [Environment Setup](/develop/guides/env-setup)
6-
* Development Workflow
6+
* [Development Workflow](/develop/guides/workflow)
77
* :bi-code:Development
88
* [Web App](/develop/guides/web-app)
99
* [Native App](/develop/guides/native-app)
@@ -23,4 +23,6 @@
2323
* Web App
2424
* Native App
2525
* Firmware
26-
* System
26+
* System
27+
* :bi-lightbulb:Contribute to Guides
28+
* [Document Syntax](/develop/guides/docs-syntax)

src/views/develop/guides/docs-syntax.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Document Syntax
22

3-
How to write documents for this site
3+
How to write documents for this site.
44

55
## Markdown Syntax
66

@@ -9,6 +9,18 @@ GFM [here](https://guides.github.com/features/mastering-markdown/).
99

1010
Additionally, we use the following syntax for writing documents:
1111

12+
### Automatic Lead Text
13+
14+
The first paragraph of a document will be used as
15+
the [lead text](https://getbootstrap.com/docs/5.3/content/typography/#lead).
16+
17+
To avoid this behavior, you can insert an HTML comment (e.g. <code class="text-nowrap">&lt;!-- no-lead --&gt;</code>) or
18+
a horizontal rule (`---`) before the first paragraph.
19+
20+
### Bootstrap Icons
21+
22+
Use `:bi-icon-name:` to insert a Bootstrap icon. For example, `:bi-book:` will become :bi-book:.
23+
1224
### Tabbed Code Blocks
1325

1426
Inspired by syntax of [readme.com](https://docs.readme.com/rdmd/docs/code-blocks), you can create code blocks

src/views/develop/guides/env-setup.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ After extracting the SDK, run `relocate-sdk.sh` to update the SDK path.
3838
```bash Linux & macOS & WSL
3939
/path/to/arm-webos-linux-gnueabi_sdk-buildroot/relocate-sdk.sh
4040
```
41+
42+
* Previous
43+
* [Introduction](/develop/guides)
44+
* Next
45+
* [Development Workflow](/develop/guides/workflow)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Development Workflow
2+
3+
Under construction.
4+
5+
6+
* Previous
7+
* [Environment Setup](/develop/guides/env-setup)
8+
* Next
9+
* [Developing Web App](/develop/guides/web-app)
10+
* [Developing Native App](/develop/guides/native-app)

src/views/toh/search/conditions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export interface SearchCondition {
88

99
export interface SearchConditions {
1010
machine?: SearchCondition;
11+
year?: SearchCondition;
1112
codename?: SearchCondition;
1213
series?: SearchCondition;
1314
broadcast?: SearchCondition;
@@ -25,7 +26,7 @@ export function getConditionsIndices(conditions?: SearchConditions): number[] |
2526
}
2627

2728
export function applyToUrlParams(conditions: SearchConditions | undefined, params: URLSearchParams) {
28-
const keys: (keyof SearchConditions)[] = ['machine', 'codename', 'series', 'broadcast', 'region', 'otaId'];
29+
const keys: (keyof SearchConditions)[] = ['machine', 'codename', 'series', 'broadcast', 'region', 'otaId', 'year'];
2930
for (let k of keys) {
3031
const options = conditions?.[k as keyof SearchConditions]?.options;
3132
if (options?.length) {

src/views/toh/search/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export class SideSearch extends Component<SideSearchProps> {
2727
conditions=${props.conditions}
2828
changed=${(v: SearchCondition) => this.searchConditionChanged("machine", v)}>
2929
</SearchSection>
30+
<${SearchSection} name="year" title="Year" models=${props.models} entries=${props.indices.year}
31+
conditions=${props.conditions}
32+
changed=${(v: SearchCondition) => this.searchConditionChanged("year", v)}>
33+
</SearchSection>
3034
<${SearchSection} name="codename" title="Codename" models=${props.models} entries=${props.indices.codename}
3135
conditions=${props.conditions}
3236
changed=${(v: SearchCondition) => this.searchConditionChanged("codename", v)}>

src/views/toh/table.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ export class DevicesTable extends Component<DevicesTableProps, DevicesTableState
6565
`)}
6666
${filtered.length === 0 && html`
6767
<tr>
68-
<td colspan="6" class="text-center">No devices found</td>
68+
<td colspan="7" class="text-center">No devices found</td>
6969
</tr>
7070
`}
7171
</tbody>
7272
</table>
7373
</div>
74-
${filtered.length && html`
74+
${filtered.length > 0 && html`
7575
<${Pagination} count=${filtered.length} offset=${offset} limit=${limit}
7676
onChange=${this.offsetChange}></Pagination>
7777
`}

src/views/toh/toh-data.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export type DeviceModelIndexEntry = { value: string, indices: number[] };
66

77
export type DeviceModelIndices = {
88
machine: DeviceModelIndexEntry[],
9+
year: DeviceModelIndexEntry[],
910
series: DeviceModelIndexEntry[],
1011
codename: DeviceModelIndexEntry[],
1112
broadcast: DeviceModelIndexEntry[],

src/views/toh/toh-data.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ export const indices = {
1010
region: [/*indices.region*/],
1111
otaId: [/*indices.otaId*/],
1212
screenSize: [/*indices.screenSize*/],
13+
year: [/*indices.year*/],
1314
};

0 commit comments

Comments
 (0)