-
Notifications
You must be signed in to change notification settings - Fork 12
/
misc
286 lines (212 loc) · 8.59 KB
/
misc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
{/* <ExtGridcolumn text="name" dataIndex="name"></ExtGridcolumn>
<ExtGridcolumn text="email" dataIndex="email" width="150"></ExtGridcolumn>
<ExtGridcolumn
text="% Change"
dataIndex="priceChangePct"
align="right"
renderer={ this.renderSign.bind(this, '0.00') }
/> */}
https://www.rapidtables.com/web/color/gray-color.html
git remote add upstream https://github.com/sencha/ext-allshared.git
git fetch upstream
git merge upstream/master
git merge upstream/ext-allshared-7.2.x
generators/ext-angular/src/*.*
generators/ext-angular/src/ext-angular/*.*
generators/ext-angular/src/ext-angular/lib/*.*
generators/ext-angular/src/lib/*.*
@angular-devkit/build-webpack/src/webpack/index.js/runWebpack
@angular-devkit/build-angular/src/dev-server/index.js
https://medium.com/@jeroenouw/upgrade-to-angular-8-beta-within-10-minutes-cd831fb8dd0e
<base href="/">
<style>body {margin: 0 !important;overflow: hidden !important;}</style>
cat ~/.npmrc
rm -f ~/.npmrc
"npm cache clean --force" and / or "rm -rf ~/.npm"
*****
either of the next logs me in
npm login --registry=https://sencha.myget.org/F/extjs-upgrade-adviser/npm/ --scope=@sencha
npm login --registry=https://sencha.myget.org/F/early-adopter/npm/ --scope=@sencha
npm login --registry=https://test.npm.sencha.com/ --scope=@sencha
npm login --registry=https://npm.sencha.com/ --scope=@sencha
npm login --registry=https://sencha.myget.org/F/community/npm/ --scope=@sencha
npm login --registry=https://sencha.myget.org/F/commercial-test/npm/ --scope=@sencha
echo "@sencha:registry=https://sencha.myget.org/F/community/npm/" >> ~/.npmrc
echo "//sencha.myget.org/F/community/npm/:_authToken=d2b8cca6-d601-438d-a2b9-6c7988f3afe6" >> ~/.npmrc
*****
npm --registry https://test.npm.sencha.com/ whoami
npm --registry https://sencha.myget.org/F/community/npm/ whoami
git fetch upstream
git merge upstream/ext-angular-6.7.x
git merge upstream/ext-6.7.x
// compilation.hooks.additionalAssets.tapAsync(`ext-additionalAssets`, (cb) => {
// console.log('additionalAssets1')
// cb()
// })
https://github.com/maciejtreder/angular-universal-pwa
//"dest": "../../../ext-angular",
ng new angular-cli-with-library2 --style scss --minimal --skip-tests --inline-style --inline-template
ng generate library ext-angular
ng build ext-angular
https://dev.to/meltedspark/customizing-angular-cli-6-buildan-alternative-to-ng-eject-1oc4
ng new ext-angular-builder --style scss --minimal --skip-tests --inline-style --inline-template
npm i -D @angular-builders/custom-webpack
"architect": {
"build": {
//"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"customWebpackConfig": {
"path": "./ext-angular-webpack.config.js"
},
//"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular-builders/dev-server:generic",
in tsconfig.json
"paths": {
"@angular/*": ["./node_modules/@angular/*"]
}
//<nav class="sidebar" [ngClass]="{sidebarPushRight: isActive}">
//</nav>
https://www.edc4it.com/blog/web/webpack-tutorial.html
"@types/jquery": "^3.3.29",
"add": "^2.0.6",
"jquery": "^3.3.1",
"tslint": "^5.12.0",
"tslint-loader": "^3.5.4",
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": false,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": false,
"strictInjectionParameters": true,
"enableResourceInlining": true
}
import {
Component,
Injectable,
Injector,
ComponentFactoryResolver,
EmbeddedViewRef,
ApplicationRef
}
from '@angular/core'
@Injectable({
providedIn: 'root'
})
@Component({
selector: 'app-root',
template: ``,
})
export class ExtAngularBootstrapService {
bootstrapComponent: any
constructor(
private componentFactoryResolver: ComponentFactoryResolver,
private appRef: ApplicationRef,
private injector: Injector
) {}
appendComponentToViewport() {
//console.log("In appendComponentToViewport")
if(!this.bootstrapComponent) {
throw new Error("Bootstrap component not set. Please use extAngularService.setBootStrapComponent(yourComponent) to setup bootstrap component from your root module constructor")
}
//console.log("bootstrapComponent : " + this.bootstrapComponent)
const componentRef = this.componentFactoryResolver
.resolveComponentFactory(this.bootstrapComponent)
.create(this.injector)
this.appRef.attachView(componentRef.hostView)
const domElem = (componentRef.hostView as EmbeddedViewRef<any>)
.rootNodes[0] as HTMLElement
var root = document.getElementsByClassName('x-viewport-body-el')[0]
root.appendChild(domElem)
}
setBootStrapComponent(component:any) {
//console.log("In setBootStrapComponent")
this.bootstrapComponent = component
}
}
//import { Component } from '@angular/core'
//import { ExtAngularBootstrapService } from './ext-angular-bootstrap.service'
@Component({
selector: 'app-root',
template: ``,
})
export class ExtAngularBootstrapComponent {
constructor(private extAngularService: ExtAngularBootstrapService) {
//console.log("In App constructor")
this.extAngularService.appendComponentToViewport()
}
}
//export class ExtAngularBootstrapComponent;
//export class ExtAngularBootstrapService;
declare var Ext: any
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"
export function launch(AppModule) {
Ext.application({
name: "$ExtAngularApp",
quickTips: true,
launch: () => {
platformBrowserDynamic().bootstrapModule(AppModule)
.catch((err) => {
console.log(err)
})
}
})
}
<!--
<base href="/">
<base href="/ExtAngular/6.7.0/kitchensink/">
<base href="/_git/sencha/ext-angular/packages/ext-angular-kitchensink/build/">
/repository/download/Early_Adopter_6_7_Examples_SenchaExtAngularKitchensinkTestExamplesSenchaCo/761203:id/ext-angular-6.7.0-kitchensink.zip%21/index.html
-->
"webpack-dev": "cross-env NODE_ENV=development webpack --mode development",
"webpack-prod": "cross-env NODE_ENV=production webpack --mode production",
"build:dev": "webpack-dev-server --inline --hot --progress--env.genProdData=false --env.verbose=no --env.environment=development --env.browser=true --env.watch=yes",
"build:prod": "npm run build:clean && ngc && npm run webpack-prod && npm run build:clean",
"build:clean": "del-cli 'src/**/*.js' 'src/**/*.js.map' 'src/**/*.ngsummary.json' 'src/**/*.metadata.json' 'src/**/**/*.ngfactory.ts' 'src/**/*.ngstyle.ts' 'src/**/*.shim.ts'",
"serve": "lite-server"
<!--
<panel docked="bottom" bodyPadding="5" shadow="true">
<container #extitem>
<container [style]="{fontSize: '14px', fontWeight: 'normal'}" [html]="message"></container>
</container>
</panel>
-->
<!--
(selectionchange)="this.onSelectionChange($event)"
-->
// //mjg
// if (thisOptions.environment == 'production') {
// thisVars.production = true
// thisOptions.genProdData = options.genProdData
// if (!options.genProdData && options.framework == 'angular' && options.prodFileReplacementConfig.length) {
// options.prodFileReplacementConfig.forEach((value) => {
// if(typeof value === 'object' && value.replace && value.with) {
// let filePath = path.resolve(process.cwd(), value.with)
// if (fs.existsSync(filePath)) {
// const data = fsx.readFileSync(filePath).toString()
// filePath = path.resolve(process.cwd(), value.replace)
// if (fs.existsSync(filePath))
// fsx.writeFileSync(filePath, data, 'utf-8', ()=>{return})
// }
// } else {
// compilation.errors.push('Invalid prodFileReplacementConfig')
// }
// })
// }
// }
// else
// { thisVars.production = false }
<toolbar [hidden]="true" docked="top" ui="app-transparent-toolbar" [shadow]="false" [margin]="isPhone? '0 10' : '10 0 0 10'" padding="0 10 0 10">
<button ui="action" margin="0 10px 0 0" iconCls="x-fa fa-refresh" (tap)="click($event)" text="TABS"></button>
<spacer></spacer>
<segmentedbutton [hidden]="true" margin="0 10px 0 0" (change)="onStackGroup($event)" >
<button iconCls="x-fa fa-bars" text="STACK" ></button>
<button iconCls="x-fa fa-bar-chart" text="GROUP"></button>
</segmentedbutton>
</toolbar>
click = event => {
this.tabs.map(key => (
console.log(key)
))
}
"angular-highlight-js":"^2.0.1",