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
import SwiftUI | |
struct TableRow: Identifiable { | |
let id = UUID() | |
let cells: [AnyView] | |
} | |
struct TableView: View { | |
let headers: [String] | |
let rows: [TableRow] |
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
[ | |
{ | |
"id": 1003, | |
"employeeId": "07f17d85-d8d9-4802-8db9-e1d50f96ae4b", | |
"firstname": "Dunn", | |
"lastname": "Rosales", | |
"dateJoined": "Fri Dec 09 1994 18:04:18 GMT+0800 (Malaysia Time)", | |
"salary": 5863 | |
}, | |
{ |
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
/** Internet Explorer */ | |
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { | |
div { | |
display: block; | |
} | |
} | |
/** Microsoft Edge */ | |
@supports (-ms-ime-align: auto) { | |
div { |
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
function whichBrowser() { | |
if (isFirefox()) { | |
return "Firefox"; | |
} else if (isEdge()) { | |
return "Edge"; | |
} else if (isIE()) { | |
return "Internet Explorer"; | |
} else if (isOpera()) { | |
return "Opera"; | |
} else if (isVivaldi()) { |
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
{ | |
"config": { | |
"swaggerUrl": "http://loooooong-url-to-your-application-swagger-url/v2/swagger.json" | |
}, | |
"scripts": { | |
"generate": "openapi-generator -i $npm_package_config_swaggerUrl -g typescript-axios", | |
"generate:win": "openapi-generator -i %npm_package_config_swaggerUrl% -g typescript-axios" | |
} | |
} |
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
{ | |
"config": { | |
"swaggerUrl": "http://loooooong-url-to-your-application-swagger-url/v2/swagger.json" | |
}, | |
"scripts": { | |
"generate": "openapi-generator -i $npm_package_config_swaggerUrl -g typescript-axios" | |
} | |
} |
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
{ | |
"scripts": { | |
"generate": "openapi-generator -i http://loooooong-url-to-your-application-swagger-url/v2/swagger.json -g typescript-axios" | |
} | |
} |
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
{ | |
"scripts": { | |
"lint": "tslint -p tsconfig.json", | |
"pretest": "rimraf converage", | |
"test": "jest", | |
"prebuild:prod": "npm run lint && npm test", | |
"build:prod": "webpack - mode production", | |
"prebuild": "rimraf dist", | |
"build": "npm run build:prod", | |
"postbuild": "npm run deploy", |
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
{ | |
"scripts": { | |
"clean:dist": "rimraf dist", | |
"clean:test": "rimraf converage", | |
"clean": "npm run clean:dist && npm run clean:test", | |
"lint": "tslint -p tsconfig.json", | |
"build:prod": "webpack - mode production", | |
"test": "jest", | |
"deploy": "gh-pages -d dist", | |
"build": "npm run clean && npm run lint && npm test && npm run build:prod && npm run deploy" |
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
{ | |
"scripts": { | |
"clean": "rimraf dist", | |
"lint": "tslint -p tsconfig.json", | |
"build:prod": "webpack -mode production", | |
"build": "npm run clean && npm run lint && npm run build:prod" | |
} | |
} |
NewerOlder