-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mobile): add blueprint for app manifest and icons
- Loading branch information
1 parent
320932c
commit f717bde
Showing
36 changed files
with
154 additions
and
43 deletions.
There are no files selected for viewing
Binary file added
BIN
+5.46 KB
addon/ng2/blueprints/mobile/files/__path__/icons/android-chrome-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.5 KB
addon/ng2/blueprints/mobile/files/__path__/icons/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.63 KB
addon/ng2/blueprints/mobile/files/__path__/icons/android-chrome-36x36.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.06 KB
addon/ng2/blueprints/mobile/files/__path__/icons/android-chrome-48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.87 KB
addon/ng2/blueprints/mobile/files/__path__/icons/android-chrome-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.71 KB
addon/ng2/blueprints/mobile/files/__path__/icons/android-chrome-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.38 KB
addon/ng2/blueprints/mobile/files/__path__/icons/apple-touch-icon-114x114.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.57 KB
addon/ng2/blueprints/mobile/files/__path__/icons/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.46 KB
addon/ng2/blueprints/mobile/files/__path__/icons/apple-touch-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.87 KB
addon/ng2/blueprints/mobile/files/__path__/icons/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.99 KB
addon/ng2/blueprints/mobile/files/__path__/icons/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.36 KB
addon/ng2/blueprints/mobile/files/__path__/icons/apple-touch-icon-57x57.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.49 KB
addon/ng2/blueprints/mobile/files/__path__/icons/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.87 KB
addon/ng2/blueprints/mobile/files/__path__/icons/apple-touch-icon-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.05 KB
addon/ng2/blueprints/mobile/files/__path__/icons/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.98 KB
addon/ng2/blueprints/mobile/files/__path__/icons/apple-touch-icon-precomposed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.99 KB
addon/ng2/blueprints/mobile/files/__path__/icons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
addon/ng2/blueprints/mobile/files/__path__/icons/safari-pinned-tab.svg
Oops, something went wrong.
47 changes: 47 additions & 0 deletions
47
addon/ng2/blueprints/mobile/files/__path__/manifest.webapp
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"name": "<%= fullAppName %>", | ||
"short_name": "<%= fullAppName %>", | ||
"icons": [ | ||
{ | ||
"src": "/android-chrome-36x36.png", | ||
"sizes": "36x36", | ||
"type": "image/png", | ||
"density": 0.75 | ||
}, | ||
{ | ||
"src": "/android-chrome-48x48.png", | ||
"sizes": "48x48", | ||
"type": "image/png", | ||
"density": 1 | ||
}, | ||
{ | ||
"src": "/android-chrome-72x72.png", | ||
"sizes": "72x72", | ||
"type": "image/png", | ||
"density": 1.5 | ||
}, | ||
{ | ||
"src": "/android-chrome-96x96.png", | ||
"sizes": "96x96", | ||
"type": "image/png", | ||
"density": 2 | ||
}, | ||
{ | ||
"src": "/android-chrome-144x144.png", | ||
"sizes": "144x144", | ||
"type": "image/png", | ||
"density": 3 | ||
}, | ||
{ | ||
"src": "/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png", | ||
"density": 4 | ||
} | ||
], | ||
"theme_color": "#000000", | ||
"background_color": "#e0e0e0", | ||
"start_url": "/index.html", | ||
"display": "standalone", | ||
"orientation": "portrait" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
const stringUtils = require('ember-cli-string-utils'); | ||
|
||
module.exports = { | ||
description: '', | ||
|
||
availableOptions: [ | ||
{ name: 'source-dir', type: String, default: 'src', aliases: ['sd'] }, | ||
{ name: 'prefix', type: String, default: 'app', aliases: ['p'] }, | ||
{ name: 'mobile', type: Boolean, default: false } | ||
], | ||
|
||
locals: function (options) { | ||
const fullAppName = stringUtils.dasherize(options.entity.name) | ||
.replace(/-(.)/g, (_, l) => ' ' + l.toUpperCase()) | ||
.replace(/^./, (l) => l.toUpperCase()); | ||
|
||
return { | ||
jsComponentName: stringUtils.classify(options.entity.name), | ||
fullAppName: fullAppName, | ||
sourceDir: options.sourceDir | ||
}; | ||
}, | ||
|
||
fileMapTokens: function (options) { | ||
// Return custom template variables here. | ||
return { | ||
__path__: () => { | ||
return options.locals.sourceDir; | ||
} | ||
}; | ||
} | ||
}; |
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 was deleted.
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