Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita338686

Browse files
committed
refactor: remove all modules
1 parent0daf010 commita338686

File tree

44 files changed

+338
-582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+338
-582
lines changed

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@
113113
},
114114
"build": {
115115
"dependencies": [
116-
"app_build",
117-
"lib_build"
116+
"lib_build",
117+
"app_build"
118118
]
119119
},
120120
"lint": {

‎projects/angular-split/src/lib/split-module.module.ts‎

Lines changed: 0 additions & 24 deletions
This file was deleted.

‎projects/angular-split/src/public_api.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Public API Surface of angular-split
33
*/
44

5-
export{AngularSplitModule}from'./lib/split-module.module'
65
export{SplitComponent}from'./lib/split/split.component'
76
export{SplitGutterDirective,SplitGutterTemplateContext}from'./lib/gutter/split-gutter.directive'
87
export{SplitGutterDragHandleDirective}from'./lib/gutter/split-gutter-drag-handle.directive'

‎src/app/app.component.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import{Component}from'@angular/core'
2-
import{Router,NavigationEnd}from'@angular/router'
2+
import{NavigationEnd,Router,RouterOutlet}from'@angular/router'
33
import{filter}from'rxjs/operators'
4+
import{TopbarComponent}from'./ui/components/topbar.component'
45

56
@Component({
67
selector:'sp-app-root',
8+
imports:[RouterOutlet,TopbarComponent],
79
styles:[
810
`
911
:host {
@@ -24,7 +26,6 @@ import { filter } from 'rxjs/operators'
2426
<router-outlet></router-outlet>
2527
</div>
2628
`,
27-
2829
})
2930
exportclassAppComponent{
3031
constructor(publicrouter:Router){

‎src/app/app.module.ts‎

Lines changed: 0 additions & 35 deletions
This file was deleted.

‎src/app/changelog/changelog.component.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import{Component,OnInit}from'@angular/core'
22
import{Observable}from'rxjs'
33

4+
import{AsyncPipe}from'@angular/common'
45
import{ChangelogService}from'./changelog.service'
56

67
@Component({
78
selector:'sp-ex-changelog',
9+
imports:[AsyncPipe],
810
styles:[
911
`
1012
:host {
@@ -19,7 +21,6 @@ import { ChangelogService } from './changelog.service'
1921
<div [innerHTML]="changelogHtml$ | async"></div>
2022
</div>
2123
`,
22-
2324
})
2425
exportclassChangelogComponentimplementsOnInit{
2526
changelogHtml$:Observable<string>

‎src/app/changelog/changelog.module.ts‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎src/app/documentation/documentation.component.html‎

Lines changed: 77 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ <h4>
1515
</tr>
1616
</thead>
1717
<tbody>
18-
<tr*ngFor="let prop of splitDoc.inputs">
19-
<td>{{ prop.name }}</td>
20-
<td>{{ prop.type }}</td>
21-
<td>
22-
<code>{{ prop.default }}</code>
23-
</td>
24-
<td[innerHTML]="prop.details"></td>
25-
</tr>
18+
@for (prop of splitDoc.inputs; track prop) {
19+
<tr>
20+
<td>{{ prop.name }}</td>
21+
<td>{{ prop.type }}</td>
22+
<td>
23+
<code>{{ prop.default }}</code>
24+
</td>
25+
<td[innerHTML]="prop.details"></td>
26+
</tr>
27+
}
2628
</tbody>
2729
</table>
2830
<tableclass="table table-striped">
@@ -34,13 +36,15 @@ <h4>
3436
</tr>
3537
</thead>
3638
<tbody>
37-
<tr*ngFor="let event of splitDoc.outputs">
38-
<td>{{ event.name }}</td>
39-
<td>
40-
<code>{{ event.value }}</code>
41-
</td>
42-
<td[innerHTML]="event.details"></td>
43-
</tr>
39+
@for (event of splitDoc.outputs; track event) {
40+
<tr>
41+
<td>{{ event.name }}</td>
42+
<td>
43+
<code>{{ event.value }}</code>
44+
</td>
45+
<td[innerHTML]="event.details"></td>
46+
</tr>
47+
}
4448
</tbody>
4549
</table>
4650
<tableclass="table table-striped">
@@ -52,13 +56,15 @@ <h4>
5256
</tr>
5357
</thead>
5458
<tbody>
55-
<tr*ngFor="let item of splitDoc.class">
56-
<td>{{ item.name }}</td>
57-
<td>
58-
<code>{{ item.type }}</code>
59-
</td>
60-
<td[innerHTML]="item.details"></td>
61-
</tr>
59+
@for (item of splitDoc.class; track item) {
60+
<tr>
61+
<td>{{ item.name }}</td>
62+
<td>
63+
<code>{{ item.type }}</code>
64+
</td>
65+
<td[innerHTML]="item.details"></td>
66+
</tr>
67+
}
6268
</tbody>
6369
</table>
6470
<br/><br/>
@@ -80,14 +86,16 @@ <h4>
8086
</tr>
8187
</thead>
8288
<tbody>
83-
<tr*ngFor="let prop of splitAreaDoc.inputs">
84-
<td>{{ prop.name }}</td>
85-
<td>{{ prop.type }}</td>
86-
<td>
87-
<code>{{ prop.default }}</code>
88-
</td>
89-
<td[innerHTML]="prop.details"></td>
90-
</tr>
89+
@for (prop of splitAreaDoc.inputs; track prop) {
90+
<tr>
91+
<td>{{ prop.name }}</td>
92+
<td>{{ prop.type }}</td>
93+
<td>
94+
<code>{{ prop.default }}</code>
95+
</td>
96+
<td[innerHTML]="prop.details"></td>
97+
</tr>
98+
}
9199
</tbody>
92100
</table>
93101
<br/><br/>
@@ -112,11 +120,13 @@ <h4>
112120
</tr>
113121
</thead>
114122
<tbody>
115-
<tr*ngFor="let prop of splitGutterDoc.templateContext">
116-
<td>{{ prop.name }}</td>
117-
<td>{{ prop.type }}</td>
118-
<td[innerHTML]="prop.details"></td>
119-
</tr>
123+
@for (prop of splitGutterDoc.templateContext; track prop) {
124+
<tr>
125+
<td>{{ prop.name }}</td>
126+
<td>{{ prop.type }}</td>
127+
<td[innerHTML]="prop.details"></td>
128+
</tr>
129+
}
120130
</tbody>
121131
</table>
122132
<br/><br/>
@@ -156,12 +166,14 @@ <h4><b>Theme</b></h4>
156166
</tr>
157167
</thead>
158168
<tbody>
159-
<tr*ngFor="let x of themeInfo">
160-
<td>
161-
<code>--as-{{ x.name }}</code>
162-
</td>
163-
<td[innerHTML]="x.details"></td>
164-
</tr>
169+
@for (x of themeInfo; track x) {
170+
<tr>
171+
<td>
172+
<code>--as-{{ x.name }}</code>
173+
</td>
174+
<td[innerHTML]="x.details"></td>
175+
</tr>
176+
}
165177
</tbody>
166178
</table>
167179

@@ -174,12 +186,14 @@ <h4><b>CSS classes</b></h4>
174186
</tr>
175187
</thead>
176188
<tbody>
177-
<tr*ngFor="let x of cssClasses.split">
178-
<td>
179-
<code>{{ x.name }}</code>
180-
</td>
181-
<td[innerHTML]="x.details"></td>
182-
</tr>
189+
@for (x of cssClasses.split; track x) {
190+
<tr>
191+
<td>
192+
<code>{{ x.name }}</code>
193+
</td>
194+
<td[innerHTML]="x.details"></td>
195+
</tr>
196+
}
183197
</tbody>
184198
</table>
185199
<tableclass="table table-striped">
@@ -190,12 +204,14 @@ <h4><b>CSS classes</b></h4>
190204
</tr>
191205
</thead>
192206
<tbody>
193-
<tr*ngFor="let x of cssClasses.area">
194-
<td>
195-
<code>{{ x.name }}</code>
196-
</td>
197-
<td[innerHTML]="x.details"></td>
198-
</tr>
207+
@for (x of cssClasses.area; track x) {
208+
<tr>
209+
<td>
210+
<code>{{ x.name }}</code>
211+
</td>
212+
<td[innerHTML]="x.details"></td>
213+
</tr>
214+
}
199215
</tbody>
200216
</table>
201217
<tableclass="table table-striped">
@@ -206,12 +222,14 @@ <h4><b>CSS classes</b></h4>
206222
</tr>
207223
</thead>
208224
<tbody>
209-
<tr*ngFor="let x of cssClasses.gutter">
210-
<td>
211-
<code>{{ x.name }}</code>
212-
</td>
213-
<td[innerHTML]="x.details"></td>
214-
</tr>
225+
@for (x of cssClasses.gutter; track x) {
226+
<tr>
227+
<td>
228+
<code>{{ x.name }}</code>
229+
</td>
230+
<td[innerHTML]="x.details"></td>
231+
</tr>
232+
}
215233
</tbody>
216234
</table>
217235
</div>

‎src/app/documentation/documentation.module.ts‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎src/app/examples/access-from-class/access-from-class.component.ts‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
import{
2-
Component,
3-
ViewChild,
4-
ViewChildren,
5-
QueryList,
62
AfterViewInit,
73
ChangeDetectionStrategy,
4+
Component,
85
HostBinding,
6+
QueryList,
7+
ViewChild,
8+
ViewChildren,
99
}from'@angular/core'
10-
import{SplitComponent,SplitAreaComponent,SplitDirection,SplitDir}from'angular-split'
10+
import{SplitAreaComponent,SplitComponent,SplitDir,SplitDirection}from'angular-split'
1111

12+
import{ExampleTitleComponent}from'src/app/ui/components/exampleTitle.component'
1213
import{AComponent}from'../../ui/components/AComponent'
1314

1415
@Component({
1516
selector:'sp-ex-class-access',
1617
changeDetection:ChangeDetectionStrategy.OnPush,
18+
imports:[SplitAreaComponent,SplitComponent,ExampleTitleComponent],
1719
styles:[
1820
`
1921
.btns {
@@ -92,7 +94,6 @@ import { AComponent } from '../../ui/components/AComponent'
9294
</div>
9395
</div>
9496
`,
95-
9697
})
9798
exportclassAccessFromClassComponentextendsAComponentimplementsAfterViewInit{
9899
@HostBinding('class')class='split-example-page'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp