Skip to content

Commit

Permalink
chore(sample): add description on how to retrieve the files from md-f…
Browse files Browse the repository at this point in the history
…ile, closes #181
  • Loading branch information
Thanood committed May 11, 2016
1 parent c2c4af5 commit 6f0c844
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 138 deletions.
270 changes: 135 additions & 135 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,135 +1,135 @@
{
"name": "aurelia-materialize-bridge",
"version": "0.6.0",
"registry": "github",
"description": "Aurelia interface to http://materializecss.com/",
"keywords": [
"aurelia",
"plugin",
"materialize"
],
"homepage": "https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge",
"bugs": {
"url": "https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge/issues"
},
"license": "MIT",
"author": "aurelia-ui-toolkits",
"directories": {
"lib": "dist/system"
},
"scripts": {
"test": "gulp test",
"ci": "gulp ci"
},
"main": "dist/commonjs/index.js",
"repository": {
"type": "git",
"url": "https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge"
},
"jspm": {
"main": "index",
"format": "amd",
"directories": {
"lib": "dist/amd"
},
"dependencies": {
"aurelia-binding": "npm:aurelia-binding@^1.0.0-beta.1.1.1",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@^1.0.0-beta.1.1.2",
"aurelia-logging": "npm:aurelia-logging@^1.0.0-beta.1.1.1",
"aurelia-metadata": "npm:aurelia-metadata@^1.0.0-beta.1.1.3",
"aurelia-router": "npm:aurelia-router@^1.0.0-beta.1.1.3",
"aurelia-task-queue": "npm:aurelia-task-queue@^1.0.0-beta.1.1.0",
"aurelia-templating": "npm:aurelia-templating@^1.0.0-beta.1.1.0",
"materialize": "Dogfalo/materialize@^0.97.5"
},
"devDependencies": {
"aurelia-loader": "npm:aurelia-loader@^1.0.0-beta.1.1.0",
"aurelia-pal": "npm:aurelia-pal@^1.0.0-beta.1.1.1",
"aurelia-pal-browser": "npm:aurelia-pal-browser@^1.0.0-beta.1.1.2",
"aurelia-path": "npm:aurelia-path@^1.0.0-beta.1.1.0",
"aurelia-polyfills": "npm:aurelia-polyfills@^1.0.0-beta.1.0.1",
"babel": "npm:babel-core@^5.8.24",
"babel-runtime": "npm:babel-runtime@^5.8.24",
"core-js": "npm:core-js@^1.1.4",
"jquery": "components/jquery@^2.1.4",
"polymer/mutationobservers": "^0.4.2",
"text": "systemjs/plugin-text@^0.0.4"
}
},
"devDependencies": {
"aurelia-tools": "^0.1.18",
"babel": "^6.5.2",
"babel-dts-generator": "^0.4.7",
"babel-eslint": "^4.1.1",
"babel-plugin-syntax-flow": "^6.5.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-es2015-modules-amd": "^6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "^6.7.4",
"babel-plugin-transform-es2015-modules-systemjs": "^6.6.5",
"babel-plugin-transform-flow-strip-types": "^6.7.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-es2015-loose": "^7.0.0",
"babel-preset-stage-1": "^6.5.0",
"babel-runtime": "^5.8.20",
"browser-sync": "^2.9.3",
"conventional-changelog": "^1.1.0",
"del": "^1.1.0",
"gulp": "^3.8.10",
"gulp-babel": "^6.1.2",
"gulp-bump": "^0.3.1",
"gulp-concat": "^2.6.0",
"gulp-conventional-changelog": "^1.1.0",
"gulp-coveralls": "^0.1.4",
"gulp-eslint": "^1.0.0",
"gulp-insert": "^0.5.0",
"gulp-rename": "^1.2.2",
"gulp-sourcemaps": "^1.6.0",
"gulp-typedoc": "^1.2.1",
"gulp-typedoc-extractor": "0.0.8",
"isparta": "^4.0.0",
"istanbul": "^0.4.1",
"jasmine-core": "^2.1.3",
"jspm": "0.16.15",
"jspm-git": "^0.4.2",
"karma": "^0.13.15",
"karma-babel-preprocessor": "^6.0.1",
"karma-chrome-launcher": "^0.2.2",
"karma-coverage": "^0.5.3",
"karma-jasmine": "^0.2.3",
"karma-jspm": "^2.0.2",
"karma-sourcemap-loader": "^0.3.6",
"object.assign": "^1.0.3",
"phantomjs-polyfill": "0.0.1",
"require-dir": "^0.1.0",
"run-sequence": "^1.0.2",
"through2": "^2.0.0",
"vinyl": "^1.1.0",
"vinyl-paths": "^1.0.0",
"yargs": "^2.1.1"
},
"aurelia": {
"usedBy": [],
"documentation": {
"links": [
{
"rel": "license",
"mediaType": "text/plain",
"title": "The MIT License (MIT)",
"href": "LICENSE"
},
{
"rel": "describedby",
"mediaType": "application/aurelia-doc+json",
"title": "API",
"href": "doc/api.json"
},
{
"rel": "version-history",
"mediaType": "text/markdown",
"title": "Change Log",
"href": "doc/CHANGELOG.md"
}
]
}
}
}
{
"name": "aurelia-materialize-bridge",
"version": "0.6.0",
"registry": "github",
"description": "Aurelia interface to http://materializecss.com/",
"keywords": [
"aurelia",
"plugin",
"materialize"
],
"homepage": "https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge",
"bugs": {
"url": "https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge/issues"
},
"license": "MIT",
"author": "aurelia-ui-toolkits",
"directories": {
"lib": "dist/system"
},
"scripts": {
"test": "gulp test",
"ci": "gulp ci"
},
"main": "dist/commonjs/index.js",
"repository": {
"type": "git",
"url": "https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge"
},
"jspm": {
"main": "index",
"format": "amd",
"directories": {
"lib": "dist/amd"
},
"dependencies": {
"aurelia-binding": "npm:aurelia-binding@^1.0.0-beta.1.1.1",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@^1.0.0-beta.1.1.2",
"aurelia-logging": "npm:aurelia-logging@^1.0.0-beta.1.1.1",
"aurelia-metadata": "npm:aurelia-metadata@^1.0.0-beta.1.1.3",
"aurelia-router": "npm:aurelia-router@^1.0.0-beta.1.1.3",
"aurelia-task-queue": "npm:aurelia-task-queue@^1.0.0-beta.1.1.0",
"aurelia-templating": "npm:aurelia-templating@^1.0.0-beta.1.1.0",
"materialize": "Dogfalo/materialize@^0.97.5"
},
"devDependencies": {
"aurelia-loader": "npm:aurelia-loader@^1.0.0-beta.1.1.0",
"aurelia-pal": "npm:aurelia-pal@^1.0.0-beta.1.1.1",
"aurelia-pal-browser": "npm:aurelia-pal-browser@^1.0.0-beta.1.1.2",
"aurelia-path": "npm:aurelia-path@^1.0.0-beta.1.1.0",
"aurelia-polyfills": "npm:aurelia-polyfills@^1.0.0-beta.1.0.1",
"babel": "npm:babel-core@^5.8.24",
"babel-runtime": "npm:babel-runtime@^5.8.24",
"core-js": "npm:core-js@^1.1.4",
"jquery": "components/jquery@^2.1.4",
"polymer/mutationobservers": "^0.4.2",
"text": "systemjs/plugin-text@^0.0.4"
}
},
"devDependencies": {
"aurelia-tools": "^0.1.18",
"babel": "^6.5.2",
"babel-dts-generator": "^0.4.7",
"babel-eslint": "^4.1.1",
"babel-plugin-syntax-flow": "^6.5.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-es2015-modules-amd": "^6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "^6.7.4",
"babel-plugin-transform-es2015-modules-systemjs": "^6.6.5",
"babel-plugin-transform-flow-strip-types": "^6.7.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-es2015-loose": "^7.0.0",
"babel-preset-stage-1": "^6.5.0",
"babel-runtime": "^5.8.20",
"browser-sync": "^2.9.3",
"conventional-changelog": "^1.1.0",
"del": "^1.1.0",
"gulp": "^3.8.10",
"gulp-babel": "^6.1.2",
"gulp-bump": "^0.3.1",
"gulp-concat": "^2.6.0",
"gulp-conventional-changelog": "^1.1.0",
"gulp-coveralls": "^0.1.4",
"gulp-eslint": "^1.0.0",
"gulp-insert": "^0.5.0",
"gulp-rename": "^1.2.2",
"gulp-sourcemaps": "^1.6.0",
"gulp-typedoc": "^1.2.1",
"gulp-typedoc-extractor": "0.0.8",
"isparta": "^4.0.0",
"istanbul": "^0.4.1",
"jasmine-core": "^2.1.3",
"jspm": "0.16.15",
"jspm-git": "^0.4.2",
"karma": "^0.13.15",
"karma-babel-preprocessor": "^6.0.1",
"karma-chrome-launcher": "^0.2.2",
"karma-coverage": "^0.5.3",
"karma-jasmine": "^0.2.3",
"karma-jspm": "^2.0.2",
"karma-sourcemap-loader": "^0.3.6",
"object.assign": "^1.0.3",
"phantomjs-polyfill": "0.0.1",
"require-dir": "^0.1.0",
"run-sequence": "^1.0.2",
"through2": "^2.0.0",
"vinyl": "^1.1.0",
"vinyl-paths": "^1.0.0",
"yargs": "^2.1.1"
},
"aurelia": {
"usedBy": [],
"documentation": {
"links": [
{
"rel": "license",
"mediaType": "text/plain",
"title": "The MIT License (MIT)",
"href": "LICENSE"
},
{
"rel": "describedby",
"mediaType": "application/aurelia-doc+json",
"title": "API",
"href": "doc/api.json"
},
{
"rel": "version-history",
"mediaType": "text/markdown",
"title": "Change Log",
"href": "doc/CHANGELOG.md"
}
]
}
}
}
23 changes: 21 additions & 2 deletions sample/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ System.config({
"text": "github:systemjs/[email protected]",
"github:Dogfalo/[email protected]": {
"css": "github:systemjs/[email protected]",
"jquery": "npm:jquery@2.2.3"
"jquery": "github:components/jquery@2.1.4"
},
"github:jspm/[email protected]": {
"assert": "npm:[email protected]"
Expand All @@ -62,6 +62,14 @@ System.config({
"github:jspm/[email protected]": {
"events": "npm:[email protected]"
},
"github:jspm/[email protected]": {
"Base64": "npm:[email protected]",
"events": "github:jspm/[email protected]",
"inherits": "npm:[email protected]",
"stream": "github:jspm/[email protected]",
"url": "github:jspm/[email protected]",
"util": "github:jspm/[email protected]"
},
"github:jspm/[email protected]": {
"path-browserify": "npm:[email protected]"
},
Expand Down Expand Up @@ -230,8 +238,15 @@ System.config({
"number-is-nan": "npm:[email protected]"
},
"npm:[email protected]": {
"buffer": "github:jspm/[email protected]",
"events": "github:jspm/[email protected]",
"fs": "github:jspm/[email protected]",
"http": "github:jspm/[email protected]",
"ini": "npm:[email protected]",
"proto-list": "npm:[email protected]"
"path": "github:jspm/[email protected]",
"process": "github:jspm/[email protected]",
"proto-list": "npm:[email protected]",
"url": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"fs": "github:jspm/[email protected]",
Expand Down Expand Up @@ -360,10 +375,14 @@ System.config({
"util": "github:jspm/[email protected]"
},
"npm:[email protected]": {
"assert": "github:jspm/[email protected]",
"camelcase": "npm:[email protected]",
"cliui": "npm:[email protected]",
"decamelize": "npm:[email protected]",
"fs": "github:jspm/[email protected]",
"os-locale": "npm:[email protected]",
"path": "github:jspm/[email protected]",
"process": "github:jspm/[email protected]",
"string-width": "npm:[email protected]",
"window-size": "npm:[email protected]",
"y18n": "npm:[email protected]"
Expand Down
10 changes: 10 additions & 0 deletions sample/src/samples/file/basic-use.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
##### Getting the selected files

The view model of the `<md-file>` element (referenced here by `view-model.ref="fileInput"`)
contains the native `files` property value of the wrapped file input control.

Therefore `fileInput.files` contains an array type `FileList` which can be read
like the `value` of any native file input control.

It can even be bound to a getter, enhanced with `@computedFrom` to avoid
dirty-checking as shown in this example.
2 changes: 1 addition & 1 deletion sample/src/samples/file/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"samples": {
"basic-use": {
"route": ["", "basic-use"],
"files": ["html", "js"]
"files": ["html", "js", "md"]
},
"multiple": {
"route": "multiple",
Expand Down

0 comments on commit 6f0c844

Please sign in to comment.