From 2ee62e004d8ddff5f2ba0e417503dd5749aec190 Mon Sep 17 00:00:00 2001 From: Chris Hoffman Date: Fri, 19 Oct 2018 10:45:37 -0400 Subject: [PATCH 01/18] trying to fix cassandra running on travis --- builtin/logical/cassandra/backend_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/logical/cassandra/backend_test.go b/builtin/logical/cassandra/backend_test.go index 18f934b16b..99aafbd6bd 100644 --- a/builtin/logical/cassandra/backend_test.go +++ b/builtin/logical/cassandra/backend_test.go @@ -62,6 +62,7 @@ func prepareCassandraTestContainer(t *testing.T) (func(), string, int) { Password: "cassandra", } clusterConfig.ProtoVersion = 4 + clusterConfig.DisableInitialHostLookup = true clusterConfig.Port = port session, err := clusterConfig.CreateSession() From c38b0e0ee7e67fd8b625e80f8a2ccf05bb91da5f Mon Sep 17 00:00:00 2001 From: Chris Hoffman Date: Fri, 19 Oct 2018 11:09:28 -0400 Subject: [PATCH 02/18] Only run cassandra test with VAULT_ACC set --- builtin/logical/cassandra/backend_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/builtin/logical/cassandra/backend_test.go b/builtin/logical/cassandra/backend_test.go index 99aafbd6bd..47060a7315 100644 --- a/builtin/logical/cassandra/backend_test.go +++ b/builtin/logical/cassandra/backend_test.go @@ -62,7 +62,6 @@ func prepareCassandraTestContainer(t *testing.T) (func(), string, int) { Password: "cassandra", } clusterConfig.ProtoVersion = 4 - clusterConfig.DisableInitialHostLookup = true clusterConfig.Port = port session, err := clusterConfig.CreateSession() @@ -79,7 +78,7 @@ func prepareCassandraTestContainer(t *testing.T) (func(), string, int) { } func TestBackend_basic(t *testing.T) { - if os.Getenv("TRAVIS") != "true" { + if os.Getenv("VAULT_ACC") == "" { t.SkipNow() } config := logical.TestBackendConfig() @@ -103,7 +102,7 @@ func TestBackend_basic(t *testing.T) { } func TestBackend_roleCrud(t *testing.T) { - if os.Getenv("TRAVIS") != "true" { + if os.Getenv("VAULT_ACC") == "" { t.SkipNow() } config := logical.TestBackendConfig() From 7a48188289bf266655791ce754da0f4c506e9dc6 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Fri, 19 Oct 2018 11:13:59 -0400 Subject: [PATCH 03/18] Remove now-spurious ttl check and logic from sign-verbatim. (#5552) This endpoint eventually goes through generateCreationBundle where we already have the right checks. Also add expiration to returned value to match output when using root generation. Fixes #5549 --- builtin/logical/pki/path_issue_sign.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/builtin/logical/pki/path_issue_sign.go b/builtin/logical/pki/path_issue_sign.go index 2785009b30..118db41400 100644 --- a/builtin/logical/pki/path_issue_sign.go +++ b/builtin/logical/pki/path_issue_sign.go @@ -154,8 +154,6 @@ func (b *backend) pathSignVerbatim(ctx context.Context, req *logical.Request, da } entry := &roleEntry{ - TTL: b.System().DefaultLeaseTTL(), - MaxTTL: b.System().MaxLeaseTTL(), AllowLocalhost: true, AllowAnyName: true, AllowIPSANs: true, @@ -186,10 +184,6 @@ func (b *backend) pathSignVerbatim(ctx context.Context, req *logical.Request, da entry.NoStore = role.NoStore } - if entry.MaxTTL > 0 && entry.TTL > entry.MaxTTL { - return logical.ErrorResponse(fmt.Sprintf("requested ttl of %s is greater than max ttl of %s", entry.TTL, entry.MaxTTL)), nil - } - return b.pathIssueSignCert(ctx, req, data, entry, true, true) } @@ -244,6 +238,7 @@ func (b *backend) pathIssueSignCert(ctx context.Context, req *logical.Request, d } respData := map[string]interface{}{ + "expiration": int64(parsedBundle.Certificate.NotAfter.Unix()), "serial_number": cb.SerialNumber, } From a920662d031770de2139f5ce5b46d7dd0da89a62 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Fri, 19 Oct 2018 11:15:05 -0400 Subject: [PATCH 04/18] changelog++ --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 269f8dc057..98ecd2bcd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ BUG FIXES: * core: Fix generate-root operations requiring empty `otp` to be provided instead of an empty body [GH-5495] * identity: Remove lookup check during alias removal from entity [GH-5524] + * secret/pki: Fix TTL/MaxTTL check when using `sign-verbatim` [GH-5549] * secret/pki: Fix regression in 0.11.2+ causing the NotBefore value of generated certificates to be set to the Unix epoch if the role value was not set, instead of using the default of 30 seconds [GH-5481] From 646fe183bf7bdd2217c40fef5223516115a98571 Mon Sep 17 00:00:00 2001 From: Chris Hoffman Date: Fri, 19 Oct 2018 11:35:21 -0400 Subject: [PATCH 05/18] Only run cassandra test with VAULT_ACC set --- plugins/database/cassandra/cassandra_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/database/cassandra/cassandra_test.go b/plugins/database/cassandra/cassandra_test.go index 2eb47b30b2..1705117b61 100644 --- a/plugins/database/cassandra/cassandra_test.go +++ b/plugins/database/cassandra/cassandra_test.go @@ -73,7 +73,7 @@ func prepareCassandraTestContainer(t *testing.T) (func(), string, int) { } func TestCassandra_Initialize(t *testing.T) { - if os.Getenv("TRAVIS") != "true" { + if os.Getenv("VAULT_ACC") == "" { t.SkipNow() } cleanup, address, port := prepareCassandraTestContainer(t) @@ -118,7 +118,7 @@ func TestCassandra_Initialize(t *testing.T) { } func TestCassandra_CreateUser(t *testing.T) { - if os.Getenv("TRAVIS") != "true" { + if os.Getenv("VAULT_ACC") == "" { t.SkipNow() } cleanup, address, port := prepareCassandraTestContainer(t) @@ -158,7 +158,7 @@ func TestCassandra_CreateUser(t *testing.T) { } func TestMyCassandra_RenewUser(t *testing.T) { - if os.Getenv("TRAVIS") != "true" { + if os.Getenv("VAULT_ACC") == "" { t.SkipNow() } cleanup, address, port := prepareCassandraTestContainer(t) @@ -203,7 +203,7 @@ func TestMyCassandra_RenewUser(t *testing.T) { } func TestCassandra_RevokeUser(t *testing.T) { - if os.Getenv("TRAVIS") != "true" { + if os.Getenv("VAULT_ACC") == "" { t.SkipNow() } cleanup, address, port := prepareCassandraTestContainer(t) @@ -253,7 +253,7 @@ func TestCassandra_RevokeUser(t *testing.T) { } func TestCassandra_RotateRootCredentials(t *testing.T) { - if os.Getenv("TRAVIS") != "true" { + if os.Getenv("VAULT_ACC") == "" { t.SkipNow() } cleanup, address, port := prepareCassandraTestContainer(t) From a43e292424465c3b84875b256de2d60eda3c47c3 Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Fri, 19 Oct 2018 11:40:11 -0400 Subject: [PATCH 06/18] New Docs Website (#5535) * conversion stage 1 * correct image paths * add sidebar title to frontmatter * docs/concepts and docs/internals * configuration docs and multi-level nav corrections * commands docs, index file corrections, small item nav correction * secrets converted * auth * add enterprise and agent docs * add extra dividers * secret section, wip * correct sidebar nav title in front matter for apu section, start working on api items * auth and backend, a couple directory structure fixes * remove old docs * intro side nav converted * reset sidebar styles, add hashi-global-styles * basic styling for nav sidebar * folder collapse functionality * patch up border length on last list item * wip restructure for content component * taking middleman hacking to the extreme, but its working * small css fix * add new mega nav * fix a small mistake from the rebase * fix a content resolution issue with middleman * title a couple missing docs pages * update deps, remove temporary markup * community page * footer to layout, community page css adjustments * wip downloads page * deps updated, downloads page ready * fix community page * homepage progress * add components, adjust spacing * docs and api landing pages * a bunch of fixes, add docs and api landing pages * update deps, add deploy scripts * add readme note * update deploy command * overview page, index title * Update doc fields Note this still requires the link fields to be populated -- this is solely related to copy on the description fields * Update api_basic_categories.yml Updated API category descriptions. Like the document descriptions you'll still need to update the link headers to the proper target pages. * Add bottom hero, adjust CSS, responsive friendly * Add mega nav title * homepage adjustments, asset boosts * small fixes * docs page styling fixes * meganav title * some category link corrections * Update API categories page updated to reflect the second level headings for api categories * Update docs_detailed_categories.yml Updated to represent the existing docs structure * Update docs_detailed_categories.yml * docs page data fix, extra operator page remove * api data fix * fix makefile * update deps, add product subnav to docs and api landing pages * Rearrange non-hands-on guides to _docs_ Since there is no place for these on learn.hashicorp, we'll put them under _docs_. * WIP Redirects for guides to docs * content and component updates * font weight hotfix, redirects * fix guides and intro sidenavs * fix some redirects * small style tweaks * Redirects to learn and internally to docs * Remove redirect to `/vault` * Remove `.html` from destination on redirects * fix incorrect index redirect * final touchups * address feedback from michell for makefile and product downloads --- .gitignore | 12 + website/Gemfile | 9 +- website/Gemfile.lock | 219 +- website/Makefile | 35 +- website/README.md | 2 +- website/assets/app.js | 14 + website/assets/css/_alerts.css | 79 + website/assets/css/_inner.css | 35 + website/assets/css/_secondary-nav.css | 113 + website/assets/css/index.css | 36 + website/assets/css/pages/_docs.css | 67 + website/assets/css/pages/_home.css | 3 + website/assets/css/pages/_section_block.css | 76 + website/assets/files/press-kit.zip | Bin 0 -> 97652 bytes website/assets/img/atlas_workflow.png | Bin 0 -> 87156 bytes .../assets/images => assets/img}/bg-icons.png | Bin .../images => assets/img}/bg-icons@2x.png | Bin website/assets/img/consul-arch.png | Bin 0 -> 115945 bytes website/assets/img/consul-sessions.png | Bin 0 -> 18432 bytes website/assets/img/consul_web_ui.png | Bin 0 -> 83721 bytes .../img/docs-sidebar-chevron-active.svg | 1 + website/assets/img/docs-sidebar-chevron.svg | 1 + website/assets/img/download.svg | 1 + website/assets/img/fastly.svg | 1 + website/assets/img/fastly_logo.png | Bin 0 -> 3995 bytes .../img}/favicons/android-chrome-192x192.png | Bin .../img}/favicons/android-chrome-512x512.png | Bin .../img}/favicons/apple-touch-icon.png | Bin .../img}/favicons/favicon-16x16.png | Bin .../img}/favicons/favicon-32x32.png | Bin website/assets/img/favicons/favicon.ico | Bin 0 -> 15086 bytes .../img}/favicons/mstile-150x150.png | Bin .../img}/favicons/safari-pinned-tab.svg | 0 website/assets/img/feather/check-circle.svg | 1 + .../assets/img/feather/icon_chevron-up.svg | 3 + website/assets/img/feather/icon_link.svg | 4 + website/assets/img/feather/icon_list-menu.svg | 15 + website/assets/img/feature-config.svg | 17 + website/assets/img/feature-discovery.svg | 9 + website/assets/img/feature-health.svg | 24 + website/assets/img/feature-multi.svg | 15 + .../images => assets/img}/graphic-audit.png | Bin .../img}/graphic-audit@2x.png | Bin .../images => assets/img}/graphic-crud.png | Bin .../images => assets/img}/graphic-crud@2x.png | Bin .../images => assets/img}/graphic-key.png | Bin .../images => assets/img}/graphic-key@2x.png | Bin website/assets/img/green-check.svg | 1 + .../img/hashicorp-logos/consul-white.svg | 1 + website/assets/img/hashicorp-logos/h-logo.svg | 1 + .../img/hashicorp-logos/hashicorp-logo.svg | 1 + .../img/hashicorp-logos/nomad-white.svg | 1 + .../img/hashicorp-logos/terraform-white.svg | 1 + .../img/hashicorp-logos/vault-white.svg | 1 + .../assets/images => assets/img}/hero.png | Bin .../assets/images => assets/img}/hero@2x.png | Bin .../images => assets/img}/icon-terminal.png | Bin .../img}/icon-terminal@2x.png | Bin website/assets/img/icons/close-icon.svg | 1 + website/assets/img/icons/icon_archlinux.svg | 13 + website/assets/img/icons/icon_centos.svg | 15 + website/assets/img/icons/icon_darwin.svg | 3 + website/assets/img/icons/icon_debian.svg | 7 + website/assets/img/icons/icon_freebsd.svg | 6 + website/assets/img/icons/icon_hashios.svg | 4 + website/assets/img/icons/icon_linux.svg | 112 + website/assets/img/icons/icon_macosx.svg | 3 + website/assets/img/icons/icon_netbsd.svg | 9 + website/assets/img/icons/icon_openbsd.svg | 742 + website/assets/img/icons/icon_rpm.svg | 15 + website/assets/img/icons/icon_solaris.svg | 6 + website/assets/img/icons/icon_windows.svg | 3 + .../assets/images => assets/img}/layers.png | Bin .../images => assets/img}/logo-hashicorp.svg | 0 .../images => assets/img}/logo-text.svg | 0 website/assets/img/logo.svg | 1 + .../img}/news/webinar-register-now.png | Bin .../assets/images => assets/img}/og-image.png | Bin website/assets/img/social/github.svg | 1 + website/assets/img/social/googleplus.svg | 1 + website/assets/img/social/linkedin.svg | 1 + website/assets/img/social/twitter.svg | 1 + website/assets/img/social/youtube.svg | 1 + .../img}/vault-acl-templating-2.png | Bin .../img}/vault-acl-templating-3.png | Bin .../img}/vault-acl-templating.png | Bin .../img}/vault-approle-tf-chef-2.png | Bin .../img}/vault-approle-tf-chef-3.png | Bin .../img}/vault-approle-tf-chef.png | Bin .../img}/vault-approle-workflow.png | Bin .../img}/vault-approle-workflow2.png | Bin .../img}/vault-approle-youtube.png | Bin .../img}/vault-auth-method-2.png | Bin .../img}/vault-auth-method-3.png | Bin .../img}/vault-auth-method-4.png | Bin .../img}/vault-auth-method.png | Bin .../img}/vault-auth-workflow.svg | 0 .../img}/vault-autounseal-2.png | Bin .../img}/vault-autounseal-3.png | Bin .../img}/vault-autounseal-4.png | Bin .../img}/vault-autounseal.png | Bin .../img}/vault-aws-ec2-auth-flow.png | Bin .../img}/vault-ctrl-grp-1.png | Bin .../img}/vault-ctrl-grp-2.png | Bin .../img}/vault-ctrl-grp-3.png | Bin .../img}/vault-ctrl-grp-4.png | Bin .../img}/vault-ctrl-grp-5.png | Bin .../img}/vault-ctrl-grp-6.png | Bin .../img}/vault-ctrl-grp-7.png | Bin .../images => assets/img}/vault-cubbyhole.png | Bin .../img}/vault-db-root-rotation.png | Bin .../images => assets/img}/vault-dr-0.png | Bin .../images => assets/img}/vault-dr-1.png | Bin .../images => assets/img}/vault-dr-10.png | Bin .../images => assets/img}/vault-dr-11.png | Bin .../images => assets/img}/vault-dr-12.png | Bin .../images => assets/img}/vault-dr-13.png | Bin .../images => assets/img}/vault-dr-2.png | Bin .../images => assets/img}/vault-dr-3.png | Bin .../images => assets/img}/vault-dr-4.png | Bin .../images => assets/img}/vault-dr-5.2.png | Bin .../images => assets/img}/vault-dr-5.png | Bin .../images => assets/img}/vault-dr-6.png | Bin .../images => assets/img}/vault-dr-7.png | Bin .../images => assets/img}/vault-dr-8.png | Bin .../images => assets/img}/vault-dr-9-1.png | Bin .../images => assets/img}/vault-dr-9.png | Bin .../img}/vault-dynamic-secrets.png | Bin .../images => assets/img}/vault-eaas.png | Bin .../img}/vault-encryption.png | Bin .../images => assets/img}/vault-entity-1.png | Bin .../images => assets/img}/vault-entity-10.png | Bin .../images => assets/img}/vault-entity-2.png | Bin .../images => assets/img}/vault-entity-3.png | Bin .../images => assets/img}/vault-entity-4.png | Bin .../images => assets/img}/vault-entity-5.png | Bin .../images => assets/img}/vault-entity-6.png | Bin .../images => assets/img}/vault-entity-7.png | Bin .../images => assets/img}/vault-entity-9.png | Bin .../img}/vault-gcp-gce-auth-workflow.svg | 0 .../img}/vault-gcp-iam-auth-workflow.svg | 0 .../img}/vault-ha-consul-2.png | Bin .../img}/vault-ha-consul-3.png | Bin .../images => assets/img}/vault-ha-consul.png | Bin .../img}/vault-hsm-autounseal.png | Bin .../img}/vault-java-demo-1.png | Bin .../img}/vault-java-demo-10.png | Bin .../img}/vault-java-demo-11.png | Bin .../img}/vault-java-demo-2.png | Bin .../img}/vault-java-demo-3.png | Bin .../img}/vault-java-demo-4.png | Bin .../img}/vault-java-demo-5.png | Bin .../img}/vault-java-demo-6.png | Bin .../img}/vault-java-demo-7.png | Bin .../img}/vault-java-demo-8.png | Bin .../img}/vault-java-demo-9.png | Bin .../img}/vault-mount-filter-0.png | Bin .../img}/vault-mount-filter-10.png | Bin .../img}/vault-mount-filter-11.png | Bin .../img}/vault-mount-filter-12.png | Bin .../img}/vault-mount-filter-13.png | Bin .../img}/vault-mount-filter-2.png | Bin .../img}/vault-mount-filter-3.png | Bin .../img}/vault-mount-filter-4.png | Bin .../img}/vault-mount-filter-5.png | Bin .../img}/vault-mount-filter-6.png | Bin .../img}/vault-mount-filter-7.png | Bin .../img}/vault-mount-filter-8.png | Bin .../img}/vault-mount-filter-9.png | Bin .../img}/vault-mount-filter.png | Bin .../img}/vault-multi-tenant-1.png | Bin .../img}/vault-multi-tenant-2.png | Bin .../img}/vault-multi-tenant-3.png | Bin .../img}/vault-multi-tenant-4.png | Bin .../img}/vault-multi-tenant-5.png | Bin .../img}/vault-multi-tenant-6.png | Bin .../img}/vault-multi-tenant-7.png | Bin .../img}/vault-multi-tenant-8.png | Bin .../img}/vault-multi-tenant.png | Bin .../img}/vault-perf-standby-1.png | Bin .../img}/vault-perf-standby.png | Bin .../images => assets/img}/vault-pki-1.png | Bin .../images => assets/img}/vault-pki-2.png | Bin .../images => assets/img}/vault-pki-3.png | Bin .../images => assets/img}/vault-pki-4.png | Bin .../img}/vault-pki-demo-2.png | Bin .../images => assets/img}/vault-pki-demo.png | Bin .../images => assets/img}/vault-policy-1.png | Bin .../images => assets/img}/vault-policy-2.png | Bin .../img}/vault-policy-authoring-workflow.png | Bin .../img}/vault-policy-workflow.svg | 0 .../img}/vault-ref-arch-2.png | Bin .../img}/vault-ref-arch-3.png | Bin .../img}/vault-ref-arch-4.png | Bin .../img}/vault-ref-arch-5.png | Bin .../img}/vault-ref-arch-6.png | Bin .../img}/vault-ref-arch-7.png | Bin .../img}/vault-ref-arch-8.png | Bin .../img}/vault-ref-arch-9.png | Bin .../images => assets/img}/vault-ref-arch.png | Bin .../img}/vault-rekey-vs-rotate.svg | 0 .../img}/vault-seal-wrap-2.png | Bin .../img}/vault-seal-wrap-3.png | Bin .../img}/vault-seal-wrap-4.png | Bin .../img}/vault-seal-wrap-5.png | Bin .../img}/vault-seal-wrap-6.png | Bin .../images => assets/img}/vault-seal-wrap.png | Bin .../img}/vault-secrets-enable.png | Bin .../img}/vault-secure-intro-1.png | Bin .../img}/vault-secure-intro-2.png | Bin .../img}/vault-secure-intro-3.png | Bin .../img}/vault-secure-intro-4.png | Bin .../img}/vault-secure-intro-5.png | Bin .../img}/vault-sentinel-1.png | Bin .../img}/vault-sentinel-2.png | Bin .../img}/vault-shamir-secret-sharing.svg | 0 .../images => assets/img}/vault-ssh-otp-1.png | Bin .../images => assets/img}/vault-ssh-otp-2.png | Bin .../img}/vault-static-secrets.png | Bin .../img}/vault-static-secrets2.png | Bin .../images => assets/img}/vault-transit-1.png | Bin .../images => assets/img}/vault-transit-2.png | Bin .../images => assets/img}/vault-transit-3.png | Bin .../images => assets/img}/vault-transit-4.png | Bin .../images => assets/img}/vault-transit-5.png | Bin .../img}/vault-versioned-kv-1.png | Bin .../img}/vault-versioned-kv-2.png | Bin .../img}/vault-versioned-kv-3.png | Bin .../img}/vault-versioned-kv-4.png | Bin .../img}/vault-versioned-kv-5.png | Bin .../img}/vault-versioned-kv-6.png | Bin .../images => assets/img}/vault_cluster.png | Bin .../js/components/docs-sidebar/index.js | 141 + .../js/components/docs-sidebar/style.css | 127 + website/assets/js/index.js | 22 + website/assets/js/utils.js | 70 + website/assets/package.json | 58 + website/assets/reshape.js | 33 + website/assets/yarn.lock | 7231 +++ website/bootstrap.sh | 1 + website/config.rb | 92 +- website/data/api_basic_categories.yml | 16 + website/data/api_detailed_categories.yml | 83 + website/data/docs_basic_categories.yml | 44 + website/data/docs_detailed_categories.yml | 135 + website/data/news.yml | 24 - website/deploy/main.tf | 60 + website/deploy/variables.tf | 14 + website/packer.json | 36 - website/redirects.txt | 18 +- website/scripts/deploy.sh | 200 - .../source/api/auth/alicloud/index.html.md | 3 +- website/source/api/auth/app-id/index.html.md | 3 +- website/source/api/auth/approle/index.html.md | 3 +- website/source/api/auth/aws/index.html.md | 3 +- website/source/api/auth/azure/index.html.md | 3 +- website/source/api/auth/cert/index.html.md | 3 +- website/source/api/auth/gcp/index.html.md | 3 +- website/source/api/auth/github/index.html.md | 3 +- website/source/api/auth/index.html.md | 3 +- website/source/api/auth/jwt/index.html.md | 5 +- .../source/api/auth/kubernetes/index.html.md | 3 +- website/source/api/auth/ldap/index.html.md | 3 +- website/source/api/auth/okta/index.html.md | 3 +- website/source/api/auth/radius/index.html.md | 3 +- website/source/api/auth/token/index.html.md | 3 +- .../source/api/auth/userpass/index.html.md | 3 +- website/source/api/index.html.erb | 86 + website/source/api/libraries.html.md | 3 +- .../api/{index.html.md => overview.html.md} | 3 +- website/source/api/relatedtools.html.md | 3 +- website/source/api/secret/ad/index.html.md | 3 +- .../source/api/secret/alicloud/index.html.md | 3 +- website/source/api/secret/aws/index.html.md | 3 +- website/source/api/secret/azure/index.html.md | 3 +- .../source/api/secret/cassandra/index.html.md | 3 +- .../source/api/secret/consul/index.html.md | 3 +- .../source/api/secret/cubbyhole/index.html.md | 3 +- .../api/secret/databases/cassandra.html.md | 3 +- .../api/secret/databases/hanadb.html.md | 5 +- .../source/api/secret/databases/index.html.md | 3 +- .../api/secret/databases/mongodb.html.md | 3 +- .../source/api/secret/databases/mssql.html.md | 3 +- .../api/secret/databases/mysql-maria.html.md | 3 +- .../api/secret/databases/oracle.html.md | 3 +- .../api/secret/databases/postgresql.html.md | 3 +- website/source/api/secret/gcp/index.html.md | 3 +- .../api/secret/identity/entity-alias.html.md | 3 +- .../source/api/secret/identity/entity.html.md | 3 +- .../api/secret/identity/group-alias.html.md | 3 +- .../source/api/secret/identity/group.html.md | 3 +- .../secret/identity/identity-groups.html.md | 2 +- .../source/api/secret/identity/index.html.md | 3 +- .../source/api/secret/identity/lookup.html.md | 3 +- website/source/api/secret/index.html.md | 3 +- website/source/api/secret/kv/index.html.md | 3 +- website/source/api/secret/kv/kv-v1.html.md | 3 +- website/source/api/secret/kv/kv-v2.html.md | 3 +- .../source/api/secret/mongodb/index.html.md | 3 +- website/source/api/secret/mssql/index.html.md | 3 +- website/source/api/secret/mysql/index.html.md | 3 +- website/source/api/secret/nomad/index.html.md | 3 +- website/source/api/secret/pki/index.html.md | 3 +- .../api/secret/postgresql/index.html.md | 3 +- .../source/api/secret/rabbitmq/index.html.md | 3 +- website/source/api/secret/ssh/index.html.md | 3 +- website/source/api/secret/totp/index.html.md | 3 +- .../source/api/secret/transit/index.html.md | 3 +- website/source/api/system/audit-hash.html.md | 11 +- website/source/api/system/audit.html.md | 3 +- website/source/api/system/auth.html.md | 3 +- .../api/system/capabilities-accessor.html.md | 3 +- .../api/system/capabilities-self.html.md | 3 +- .../source/api/system/capabilities.html.md | 3 +- .../source/api/system/config-auditing.html.md | 3 +- .../api/system/config-control-group.html.md | 3 +- website/source/api/system/config-cors.html.md | 3 +- website/source/api/system/config-ui.html.md | 3 +- .../source/api/system/control-group.html.md | 3 +- .../source/api/system/generate-root.html.md | 3 +- website/source/api/system/health.html.md | 3 +- website/source/api/system/index.html.md | 3 +- website/source/api/system/init.html.md | 3 +- .../api/system/internal-ui-mounts.html.md | 3 +- website/source/api/system/key-status.html.md | 3 +- website/source/api/system/leader.html.md | 3 +- website/source/api/system/leases.html.md | 3 +- website/source/api/system/license.html.md | 3 +- .../system/{mfa.html.md => mfa/index.html.md} | 11 +- .../api/system/{ => mfa}/mfa-duo.html.md | 3 +- .../api/system/{ => mfa}/mfa-okta.html.md | 3 +- .../api/system/{ => mfa}/mfa-pingid.html.md | 3 +- .../api/system/{ => mfa}/mfa-totp.html.md | 3 +- website/source/api/system/mounts.html.md | 3 +- website/source/api/system/namespaces.html.md | 3 +- .../source/api/system/plugins-catalog.html.md | 3 +- .../api/system/plugins-reload-backend.html.md | 3 +- website/source/api/system/policies.html.md | 3 +- website/source/api/system/policy.html.md | 3 +- website/source/api/system/raw.html.md | 3 +- .../api/system/rekey-recovery-key.html.md | 3 +- website/source/api/system/rekey.html.md | 3 +- website/source/api/system/remount.html.md | 3 +- .../index.html.md} | 3 +- .../{ => replication}/replication-dr.html.md | 3 +- .../replication-performance.html.md | 3 +- website/source/api/system/rotate.html.md | 3 +- website/source/api/system/seal-status.html.md | 3 +- website/source/api/system/seal.html.md | 3 +- website/source/api/system/step-down.html.md | 3 +- website/source/api/system/tools.html.md | 3 +- website/source/api/system/unseal.html.md | 3 +- .../source/api/system/wrapping-lookup.html.md | 3 +- .../source/api/system/wrapping-rewrap.html.md | 3 +- .../source/api/system/wrapping-unwrap.html.md | 3 +- .../source/api/system/wrapping-wrap.html.md | 3 +- website/source/assets/files/press-kit.zip | Bin 64717 -> 0 bytes .../source/assets/javascripts/analytics.js | 16 - .../source/assets/javascripts/application.js | 8 - website/source/assets/javascripts/demo-app.js | 5 - website/source/assets/javascripts/demo.js | 9 - .../demo/controllers/application.js | 2 - .../javascripts/demo/controllers/demo.js | 58 - .../javascripts/demo/controllers/step.js | 98 - .../demo/initializer/load-steps.js | 32 - .../assets/javascripts/demo/model/clock.js | 63 - .../assets/javascripts/demo/model/step.js | 6 - .../source/assets/javascripts/demo/router.js | 5 - .../assets/javascripts/demo/routes/step.js | 29 - .../assets/javascripts/demo/views/demo.js | 56 - .../assets/javascripts/demo/views/step.js | 67 - .../assets/javascripts/lib/ember-1-10.js | 52909 ---------------- .../assets/javascripts/lib/ember-data-1-0.js | 13410 ---- .../lib/ember-template-compiler.js | 7193 --- .../source/assets/stylesheets/_buttons.scss | 37 - .../source/assets/stylesheets/_community.scss | 22 - website/source/assets/stylesheets/_demo.scss | 134 - website/source/assets/stylesheets/_docs.scss | 91 - .../source/assets/stylesheets/_downloads.scss | 60 - .../source/assets/stylesheets/_footer.scss | 24 - .../source/assets/stylesheets/_global.scss | 30 - .../source/assets/stylesheets/_header.scss | 78 - website/source/assets/stylesheets/_home.scss | 165 - website/source/assets/stylesheets/_inner.scss | 94 - .../source/assets/stylesheets/_latest.scss | 41 - website/source/assets/stylesheets/_logos.scss | 43 - .../assets/stylesheets/_syntax.scss.erb | 14 - .../source/assets/stylesheets/_variables.scss | 63 - .../assets/stylesheets/application.scss | 55 - website/source/community.html.erb | 54 +- .../source/docs/agent/autoauth/index.html.md | 1 + .../agent/autoauth/methods/alicloud.html.md | 9 +- .../docs/agent/autoauth/methods/aws.html.md | 1 + .../docs/agent/autoauth/methods/azure.html.md | 1 + .../docs/agent/autoauth/methods/gcp.html.md | 1 + .../docs/agent/autoauth/methods/index.html.md | 1 + .../docs/agent/autoauth/methods/jwt.html.md | 7 +- .../agent/autoauth/methods/kubernetes.html.md | 1 + .../docs/agent/autoauth/sinks/file.html.md | 1 + .../docs/agent/autoauth/sinks/index.html.md | 1 + website/source/docs/agent/index.html.md | 1 + website/source/docs/audit/file.html.md | 1 + website/source/docs/audit/index.html.md | 1 + website/source/docs/audit/socket.html.md | 1 + website/source/docs/audit/syslog.html.md | 1 + website/source/docs/auth/alicloud.html.md | 1 + website/source/docs/auth/app-id.html.md | 38 +- website/source/docs/auth/approle.html.md | 1 + website/source/docs/auth/aws.html.md | 3 +- website/source/docs/auth/azure.html.md | 1 + website/source/docs/auth/cert.html.md | 1 + website/source/docs/auth/gcp.html.md | 5 +- website/source/docs/auth/github.html.md | 1 + website/source/docs/auth/index.html.md | 1 + website/source/docs/auth/jwt.html.md | 1 + website/source/docs/auth/kubernetes.html.md | 1 + website/source/docs/auth/ldap.html.md | 1 + website/source/docs/auth/mfa.html.md | 1 + website/source/docs/auth/okta.html.md | 1 + website/source/docs/auth/radius.html.md | 1 + website/source/docs/auth/token.html.md | 1 + website/source/docs/auth/userpass.html.md | 1 + website/source/docs/commands/agent.html.md | 1 + .../docs/commands/audit/disable.html.md | 1 + .../source/docs/commands/audit/enable.html.md | 1 + .../{audit.html.md => audit/index.html.md} | 1 + .../source/docs/commands/audit/list.html.md | 1 + .../source/docs/commands/auth/disable.html.md | 1 + .../source/docs/commands/auth/enable.html.md | 1 + .../source/docs/commands/auth/help.html.md | 1 + .../{auth.html.md => auth/index.html.md} | 4 +- .../source/docs/commands/auth/list.html.md | 1 + .../source/docs/commands/auth/tune.html.md | 1 + website/source/docs/commands/delete.html.md | 1 + website/source/docs/commands/help.html.md | 1 + website/source/docs/commands/index.html.md | 1 + website/source/docs/commands/lease.html.md | 1 + .../source/docs/commands/lease/index.html.md | 49 + .../source/docs/commands/lease/renew.html.md | 1 + .../source/docs/commands/lease/revoke.html.md | 1 + website/source/docs/commands/list.html.md | 1 + website/source/docs/commands/login.html.md | 1 + .../source/docs/commands/namespace.html.md | 1 + .../commands/operator/generate-root.html.md | 1 + .../index.html.md} | 1 + .../docs/commands/operator/init.html.md | 1 + .../docs/commands/operator/key-status.html.md | 1 + .../docs/commands/operator/migrate.html.md | 1 + .../docs/commands/operator/rekey.html.md | 1 + .../docs/commands/operator/rotate.html.md | 1 + .../docs/commands/operator/seal.html.md | 1 + .../docs/commands/operator/step-down.html.md | 1 + .../docs/commands/operator/unseal.html.md | 1 + .../source/docs/commands/path-help.html.md | 1 + .../docs/commands/plugin/deregister.html.md | 1 + .../{plugin.html.md => plugin/index.html.md} | 1 + .../source/docs/commands/plugin/info.html.md | 1 + .../source/docs/commands/plugin/list.html.md | 1 + .../docs/commands/plugin/register.html.md | 1 + .../docs/commands/policy/delete.html.md | 1 + .../source/docs/commands/policy/fmt.html.md | 1 + .../{policy.html.md => policy/index.html.md} | 1 + .../source/docs/commands/policy/list.html.md | 1 + .../source/docs/commands/policy/read.html.md | 1 + .../source/docs/commands/policy/write.html.md | 1 + website/source/docs/commands/read.html.md | 1 + .../docs/commands/secrets/disable.html.md | 1 + .../docs/commands/secrets/enable.html.md | 1 + .../index.html.md} | 1 + .../source/docs/commands/secrets/list.html.md | 1 + .../source/docs/commands/secrets/move.html.md | 1 + .../source/docs/commands/secrets/tune.html.md | 1 + website/source/docs/commands/server.html.md | 1 + website/source/docs/commands/ssh.html.md | 1 + website/source/docs/commands/status.html.md | 1 + .../source/docs/commands/token-helper.html.md | 1 + .../docs/commands/token/capabilities.html.md | 1 + .../source/docs/commands/token/create.html.md | 1 + .../{token.html.md => token/index.html.md} | 1 + .../source/docs/commands/token/lookup.html.md | 1 + .../source/docs/commands/token/renew.html.md | 1 + .../source/docs/commands/token/revoke.html.md | 1 + website/source/docs/commands/unwrap.html.md | 1 + website/source/docs/commands/write.html.md | 1 + website/source/docs/concepts/auth.html.md | 1 + .../source/docs/concepts/dev-server.html.md | 1 + website/source/docs/concepts/ha.html.md | 1 + website/source/docs/concepts/index.html.md | 1 + website/source/docs/concepts/lease.html.md | 1 + .../docs/concepts/pgp-gpg-keybase.html.md | 1 + website/source/docs/concepts/policies.html.md | 5 +- .../docs/concepts/response-wrapping.html.md | 1 + website/source/docs/concepts/seal.html.md | 1 + website/source/docs/concepts/tokens.html.md | 1 + .../source/docs/configuration/index.html.md | 1 + .../docs/configuration/listener/index.html.md | 1 + .../docs/configuration/listener/tcp.html.md | 1 + .../configuration/seal/alicloudkms.html.md | 17 +- .../docs/configuration/seal/awskms.html.md | 1 + .../configuration/seal/azurekeyvault.html.md | 1 + .../docs/configuration/seal/gcpckms.html.md | 1 + .../docs/configuration/seal/index.html.md | 1 + .../docs/configuration/seal/pkcs11.html.md | 1 + .../configuration/storage/alicloudoss.html.md | 1 + .../docs/configuration/storage/azure.html.md | 1 + .../configuration/storage/cassandra.html.md | 1 + .../configuration/storage/cockroachdb.html.md | 1 + .../docs/configuration/storage/consul.html.md | 1 + .../configuration/storage/couchdb.html.md | 1 + .../configuration/storage/dynamodb.html.md | 1 + .../docs/configuration/storage/etcd.html.md | 1 + .../configuration/storage/filesystem.html.md | 1 + .../storage/foundationdb.html.md | 1 + .../storage/google-cloud-spanner.html.md | 1 + .../storage/google-cloud-storage.html.md | 1 + .../configuration/storage/in-memory.html.md | 1 + .../docs/configuration/storage/index.html.md | 1 + .../docs/configuration/storage/manta.html.md | 1 + .../docs/configuration/storage/mssql.html.md | 7 +- .../docs/configuration/storage/mysql.html.md | 1 + .../configuration/storage/postgresql.html.md | 1 + .../docs/configuration/storage/s3.html.md | 1 + .../docs/configuration/storage/swift.html.md | 1 + .../configuration/storage/zookeeper.html.md | 1 + .../docs/configuration/telemetry.html.md | 44 +- .../docs/configuration/ui/index.html.md | 1 + .../docs/enterprise/auto-unseal/index.html.md | 1 + .../enterprise/control-groups/index.html.md | 1 + .../docs/enterprise/hsm/behavior.html.md | 1 + .../source/docs/enterprise/hsm/index.html.md | 1 + .../docs/enterprise/hsm/security.html.md | 1 + website/source/docs/enterprise/index.html.md | 1 + .../source/docs/enterprise/mfa/index.html.md | 1 + .../docs/enterprise/mfa/mfa-duo.html.md | 1 + .../docs/enterprise/mfa/mfa-okta.html.md | 1 + .../docs/enterprise/mfa/mfa-pingid.html.md | 1 + .../docs/enterprise/mfa/mfa-totp.html.md | 1 + .../docs/enterprise/namespaces/index.html.md | 1 + .../performance-standby/index.html.md | 7 +- .../docs/enterprise/replication/index.html.md | 1 + .../docs/enterprise/sealwrap/index.html.md | 1 + .../docs/enterprise/sentinel/examples.html.md | 1 + .../docs/enterprise/sentinel/index.html.md | 1 + .../enterprise/sentinel/properties.html.md | 1 + website/source/docs/index.html.erb | 85 + website/source/docs/index.html.markdown | 14 - website/source/docs/install/index.html.md | 1 + .../docs/internals/architecture.html.md | 5 +- .../docs/internals/high-availability.html.md | 1 + website/source/docs/internals/index.html.md | 1 + website/source/docs/internals/plugins.html.md | 1 + .../source/docs/internals/replication.html.md | 1 + .../source/docs/internals/rotation.html.md | 3 +- .../source/docs/internals/security.html.md | 1 + .../source/docs/internals/telemetry.html.md | 1 + website/source/docs/internals/token.html.md | 1 + .../source/docs/partnerships/index.html.md | 110 + website/source/docs/plugin/index.html.md | 1 + website/source/docs/secrets/ad/index.html.md | 1 + .../docs/secrets/alicloud/index.html.md | 57 +- website/source/docs/secrets/aws/index.html.md | 1 + .../source/docs/secrets/azure/index.html.md | 1 + .../docs/secrets/cassandra/index.html.md | 1 + .../source/docs/secrets/consul/index.html.md | 1 + .../docs/secrets/cubbyhole/index.html.md | 1 + .../docs/secrets/databases/cassandra.html.md | 1 + .../docs/secrets/databases/custom.html.md | 1 + .../docs/secrets/databases/hanadb.html.md | 1 + .../docs/secrets/databases/index.html.md | 1 + .../docs/secrets/databases/mongodb.html.md | 1 + .../docs/secrets/databases/mssql.html.md | 1 + .../secrets/databases/mysql-maria.html.md | 1 + .../docs/secrets/databases/oracle.html.md | 1 + .../docs/secrets/databases/postgresql.html.md | 1 + website/source/docs/secrets/gcp/index.html.md | 1 + .../docs/secrets/identity/index.html.md | 1 + website/source/docs/secrets/index.html.md | 1 + website/source/docs/secrets/kv/index.html.md | 1 + website/source/docs/secrets/kv/kv-v1.html.md | 1 + website/source/docs/secrets/kv/kv-v2.html.md | 1 + .../source/docs/secrets/mongodb/index.html.md | 1 + .../source/docs/secrets/mssql/index.html.md | 1 + .../source/docs/secrets/mysql/index.html.md | 1 + .../source/docs/secrets/nomad/index.html.md | 1 + website/source/docs/secrets/pki/index.html.md | 1 + .../docs/secrets/postgresql/index.html.md | 1 + .../docs/secrets/rabbitmq/index.html.md | 1 + .../docs/secrets/ssh/dynamic-ssh-keys.html.md | 1 + website/source/docs/secrets/ssh/index.html.md | 1 + .../ssh/one-time-ssh-passwords.html.md | 1 + .../ssh/signed-ssh-certificates.html.md | 1 + .../source/docs/secrets/totp/index.html.md | 1 + .../source/docs/secrets/transit/index.html.md | 1 + .../{guides => docs}/upgrading/index.html.md | 7 +- .../upgrading/upgrade-to-0.10.0.html.md | 13 +- .../upgrading/upgrade-to-0.10.2.html.md | 5 +- .../upgrading/upgrade-to-0.10.4.html.md | 9 +- .../upgrading/upgrade-to-0.11.0.html.md | 13 +- .../upgrading/upgrade-to-0.11.2.html.md | 11 +- .../upgrading/upgrade-to-0.5.0.html.md | 5 +- .../upgrading/upgrade-to-0.5.1.html.md | 5 +- .../upgrading/upgrade-to-0.6.0.html.md | 5 +- .../upgrading/upgrade-to-0.6.1.html.md | 5 +- .../upgrading/upgrade-to-0.6.2.html.md | 5 +- .../upgrading/upgrade-to-0.6.3.html.md | 5 +- .../upgrading/upgrade-to-0.6.4.html.md | 5 +- .../upgrading/upgrade-to-0.7.0.html.md | 5 +- .../upgrading/upgrade-to-0.8.0.html.md | 5 +- .../upgrading/upgrade-to-0.9.0.html.md | 5 +- .../upgrading/upgrade-to-0.9.1.html.md | 5 +- .../upgrading/upgrade-to-0.9.2.html.md | 5 +- .../upgrading/upgrade-to-0.9.3.html.md | 6 +- .../upgrading/upgrade-to-0.9.6.html.md | 5 +- .../use-cases/index.html.md} | 3 +- .../vs/chef-puppet-etc.html.md | 3 +- .../source/{intro => docs}/vs/consul.html.md | 4 +- .../vs/custom.html.md} | 3 +- website/source/docs/vs/dropbox.html.md | 18 + website/source/{intro => docs}/vs/hsm.html.md | 3 +- .../vs/index.html.md} | 3 +- .../source/{intro => docs}/vs/keywhiz.html.md | 7 +- website/source/{intro => docs}/vs/kms.html.md | 4 +- .../what-is-vault/index.html.md} | 3 +- website/source/downloads.html.erb | 61 +- .../source/guides/encryption/index.html.md | 1 + .../guides/encryption/spring-demo.html.md | 27 +- .../guides/encryption/transit-rewrap.html.md | 5 +- .../source/guides/encryption/transit.html.md | 15 +- .../guides/getting-started/index.html.md | 1 + .../identity/approle-trusted-entities.html.md | 11 +- .../guides/identity/authentication.html.md | 5 +- .../guides/identity/control-groups.html.md | 15 +- .../source/guides/identity/identity.html.md | 27 +- website/source/guides/identity/index.html.md | 1 + website/source/guides/identity/lease.html.md | 1 + .../source/guides/identity/policies.html.md | 3 +- .../guides/identity/policy-templating.html.md | 10 +- .../guides/identity/secure-intro.html.md | 15 +- .../source/guides/identity/sentinel.html.md | 5 +- .../operations/autounseal-aws-kms.html.md | 9 +- .../operations/deployment-guide.html.md | 2 +- .../operations/disaster-recovery.html.md | 35 +- .../guides/operations/generate-root.html.md | 1 + .../source/guides/operations/index.html.md | 1 + .../guides/operations/monitoring.html.md | 3 +- .../guides/operations/mount-filter.html.md | 27 +- .../guides/operations/multi-tenant.html.md | 19 +- .../operations/performance-nodes.html.md | 6 +- .../guides/operations/plugin-backends.html.md | 1 + .../guides/operations/production.html.md | 1 + .../operations/reference-architecture.html.md | 17 +- .../operations/rekeying-and-rotating.html.md | 5 +- .../guides/operations/replication.html.md | 1 + .../guides/operations/seal-wrap.html.md | 15 +- .../guides/operations/vault-ha-consul.html.md | 7 +- .../source/guides/partnerships/index.html.md | 137 - .../secret-mgmt/app-integration.html.md | 1 + .../guides/secret-mgmt/cubbyhole.html.md | 3 +- .../secret-mgmt/db-root-rotation.html.md | 3 +- .../secret-mgmt/dynamic-secrets.html.md | 3 +- .../source/guides/secret-mgmt/index.html.md | 1 + .../guides/secret-mgmt/pki-engine.html.md | 9 +- .../source/guides/secret-mgmt/ssh-otp.html.md | 5 +- .../guides/secret-mgmt/static-secrets.html.md | 5 +- .../guides/secret-mgmt/versioned-kv.html.md | 11 +- website/source/index.html.erb | 165 +- .../source/intro/getting-started/apis.html.md | 1 + .../getting-started/authentication.html.md | 1 + .../intro/getting-started/deploy.html.md | 1 + .../intro/getting-started/dev-server.html.md | 15 +- .../getting-started/dynamic-secrets.html.md | 3 +- .../getting-started/first-secret.html.md | 3 +- .../source/intro/getting-started/help.html.md | 1 + .../{install.html.md => index.html.md} | 4 +- .../intro/getting-started/next-steps.html.md | 3 +- .../intro/getting-started/policies.html.md | 1 + .../getting-started/secrets-engines.html.md | 3 +- website/source/intro/vs/dropbox.html.md | 25 - website/source/layouts/_sidebar.erb | 33 - website/source/layouts/api.erb | 486 +- website/source/layouts/docs.erb | 1071 +- website/source/layouts/downloads.erb | 24 - website/source/layouts/guides.erb | 274 +- website/source/layouts/inner.erb | 26 +- website/source/layouts/intro.erb | 119 +- website/source/layouts/layout.erb | 119 +- website/source/netlify-redirects | 166 + website/source/sitemap.xml.builder | 2 +- 688 files changed, 11793 insertions(+), 77655 deletions(-) create mode 100644 website/assets/app.js create mode 100644 website/assets/css/_alerts.css create mode 100644 website/assets/css/_inner.css create mode 100644 website/assets/css/_secondary-nav.css create mode 100644 website/assets/css/index.css create mode 100644 website/assets/css/pages/_docs.css create mode 100644 website/assets/css/pages/_home.css create mode 100644 website/assets/css/pages/_section_block.css create mode 100644 website/assets/files/press-kit.zip create mode 100644 website/assets/img/atlas_workflow.png rename website/{source/assets/images => assets/img}/bg-icons.png (100%) rename website/{source/assets/images => assets/img}/bg-icons@2x.png (100%) create mode 100644 website/assets/img/consul-arch.png create mode 100644 website/assets/img/consul-sessions.png create mode 100644 website/assets/img/consul_web_ui.png create mode 100644 website/assets/img/docs-sidebar-chevron-active.svg create mode 100644 website/assets/img/docs-sidebar-chevron.svg create mode 100644 website/assets/img/download.svg create mode 100644 website/assets/img/fastly.svg create mode 100644 website/assets/img/fastly_logo.png rename website/{source/assets/images => assets/img}/favicons/android-chrome-192x192.png (100%) rename website/{source/assets/images => assets/img}/favicons/android-chrome-512x512.png (100%) rename website/{source/assets/images => assets/img}/favicons/apple-touch-icon.png (100%) rename website/{source/assets/images => assets/img}/favicons/favicon-16x16.png (100%) rename website/{source/assets/images => assets/img}/favicons/favicon-32x32.png (100%) create mode 100644 website/assets/img/favicons/favicon.ico rename website/{source/assets/images => assets/img}/favicons/mstile-150x150.png (100%) rename website/{source/assets/images => assets/img}/favicons/safari-pinned-tab.svg (100%) create mode 100644 website/assets/img/feather/check-circle.svg create mode 100644 website/assets/img/feather/icon_chevron-up.svg create mode 100644 website/assets/img/feather/icon_link.svg create mode 100644 website/assets/img/feather/icon_list-menu.svg create mode 100644 website/assets/img/feature-config.svg create mode 100644 website/assets/img/feature-discovery.svg create mode 100644 website/assets/img/feature-health.svg create mode 100644 website/assets/img/feature-multi.svg rename website/{source/assets/images => assets/img}/graphic-audit.png (100%) rename website/{source/assets/images => assets/img}/graphic-audit@2x.png (100%) rename website/{source/assets/images => assets/img}/graphic-crud.png (100%) rename website/{source/assets/images => assets/img}/graphic-crud@2x.png (100%) rename website/{source/assets/images => assets/img}/graphic-key.png (100%) rename website/{source/assets/images => assets/img}/graphic-key@2x.png (100%) create mode 100644 website/assets/img/green-check.svg create mode 100644 website/assets/img/hashicorp-logos/consul-white.svg create mode 100644 website/assets/img/hashicorp-logos/h-logo.svg create mode 100644 website/assets/img/hashicorp-logos/hashicorp-logo.svg create mode 100644 website/assets/img/hashicorp-logos/nomad-white.svg create mode 100644 website/assets/img/hashicorp-logos/terraform-white.svg create mode 100644 website/assets/img/hashicorp-logos/vault-white.svg rename website/{source/assets/images => assets/img}/hero.png (100%) rename website/{source/assets/images => assets/img}/hero@2x.png (100%) rename website/{source/assets/images => assets/img}/icon-terminal.png (100%) rename website/{source/assets/images => assets/img}/icon-terminal@2x.png (100%) create mode 100644 website/assets/img/icons/close-icon.svg create mode 100644 website/assets/img/icons/icon_archlinux.svg create mode 100644 website/assets/img/icons/icon_centos.svg create mode 100644 website/assets/img/icons/icon_darwin.svg create mode 100644 website/assets/img/icons/icon_debian.svg create mode 100644 website/assets/img/icons/icon_freebsd.svg create mode 100644 website/assets/img/icons/icon_hashios.svg create mode 100644 website/assets/img/icons/icon_linux.svg create mode 100644 website/assets/img/icons/icon_macosx.svg create mode 100644 website/assets/img/icons/icon_netbsd.svg create mode 100644 website/assets/img/icons/icon_openbsd.svg create mode 100644 website/assets/img/icons/icon_rpm.svg create mode 100644 website/assets/img/icons/icon_solaris.svg create mode 100644 website/assets/img/icons/icon_windows.svg rename website/{source/assets/images => assets/img}/layers.png (100%) rename website/{source/assets/images => assets/img}/logo-hashicorp.svg (100%) rename website/{source/assets/images => assets/img}/logo-text.svg (100%) create mode 100644 website/assets/img/logo.svg rename website/{source/assets/images => assets/img}/news/webinar-register-now.png (100%) rename website/{source/assets/images => assets/img}/og-image.png (100%) create mode 100644 website/assets/img/social/github.svg create mode 100644 website/assets/img/social/googleplus.svg create mode 100644 website/assets/img/social/linkedin.svg create mode 100644 website/assets/img/social/twitter.svg create mode 100644 website/assets/img/social/youtube.svg rename website/{source/assets/images => assets/img}/vault-acl-templating-2.png (100%) rename website/{source/assets/images => assets/img}/vault-acl-templating-3.png (100%) rename website/{source/assets/images => assets/img}/vault-acl-templating.png (100%) rename website/{source/assets/images => assets/img}/vault-approle-tf-chef-2.png (100%) rename website/{source/assets/images => assets/img}/vault-approle-tf-chef-3.png (100%) rename website/{source/assets/images => assets/img}/vault-approle-tf-chef.png (100%) rename website/{source/assets/images => assets/img}/vault-approle-workflow.png (100%) rename website/{source/assets/images => assets/img}/vault-approle-workflow2.png (100%) rename website/{source/assets/images => assets/img}/vault-approle-youtube.png (100%) rename website/{source/assets/images => assets/img}/vault-auth-method-2.png (100%) rename website/{source/assets/images => assets/img}/vault-auth-method-3.png (100%) rename website/{source/assets/images => assets/img}/vault-auth-method-4.png (100%) rename website/{source/assets/images => assets/img}/vault-auth-method.png (100%) rename website/{source/assets/images => assets/img}/vault-auth-workflow.svg (100%) rename website/{source/assets/images => assets/img}/vault-autounseal-2.png (100%) rename website/{source/assets/images => assets/img}/vault-autounseal-3.png (100%) rename website/{source/assets/images => assets/img}/vault-autounseal-4.png (100%) rename website/{source/assets/images => assets/img}/vault-autounseal.png (100%) rename website/{source/assets/images => assets/img}/vault-aws-ec2-auth-flow.png (100%) rename website/{source/assets/images => assets/img}/vault-ctrl-grp-1.png (100%) rename website/{source/assets/images => assets/img}/vault-ctrl-grp-2.png (100%) rename website/{source/assets/images => assets/img}/vault-ctrl-grp-3.png (100%) rename website/{source/assets/images => assets/img}/vault-ctrl-grp-4.png (100%) rename website/{source/assets/images => assets/img}/vault-ctrl-grp-5.png (100%) rename website/{source/assets/images => assets/img}/vault-ctrl-grp-6.png (100%) rename website/{source/assets/images => assets/img}/vault-ctrl-grp-7.png (100%) rename website/{source/assets/images => assets/img}/vault-cubbyhole.png (100%) rename website/{source/assets/images => assets/img}/vault-db-root-rotation.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-0.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-1.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-10.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-11.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-12.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-13.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-2.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-3.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-4.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-5.2.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-5.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-6.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-7.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-8.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-9-1.png (100%) rename website/{source/assets/images => assets/img}/vault-dr-9.png (100%) rename website/{source/assets/images => assets/img}/vault-dynamic-secrets.png (100%) rename website/{source/assets/images => assets/img}/vault-eaas.png (100%) rename website/{source/assets/images => assets/img}/vault-encryption.png (100%) rename website/{source/assets/images => assets/img}/vault-entity-1.png (100%) rename website/{source/assets/images => assets/img}/vault-entity-10.png (100%) rename website/{source/assets/images => assets/img}/vault-entity-2.png (100%) rename website/{source/assets/images => assets/img}/vault-entity-3.png (100%) rename website/{source/assets/images => assets/img}/vault-entity-4.png (100%) rename website/{source/assets/images => assets/img}/vault-entity-5.png (100%) rename website/{source/assets/images => assets/img}/vault-entity-6.png (100%) rename website/{source/assets/images => assets/img}/vault-entity-7.png (100%) rename website/{source/assets/images => assets/img}/vault-entity-9.png (100%) rename website/{source/assets/images => assets/img}/vault-gcp-gce-auth-workflow.svg (100%) rename website/{source/assets/images => assets/img}/vault-gcp-iam-auth-workflow.svg (100%) rename website/{source/assets/images => assets/img}/vault-ha-consul-2.png (100%) rename website/{source/assets/images => assets/img}/vault-ha-consul-3.png (100%) rename website/{source/assets/images => assets/img}/vault-ha-consul.png (100%) rename website/{source/assets/images => assets/img}/vault-hsm-autounseal.png (100%) rename website/{source/assets/images => assets/img}/vault-java-demo-1.png (100%) rename website/{source/assets/images => assets/img}/vault-java-demo-10.png (100%) rename website/{source/assets/images => assets/img}/vault-java-demo-11.png (100%) rename website/{source/assets/images => assets/img}/vault-java-demo-2.png (100%) rename website/{source/assets/images => assets/img}/vault-java-demo-3.png (100%) rename website/{source/assets/images => assets/img}/vault-java-demo-4.png (100%) rename website/{source/assets/images => assets/img}/vault-java-demo-5.png (100%) rename website/{source/assets/images => assets/img}/vault-java-demo-6.png (100%) rename website/{source/assets/images => assets/img}/vault-java-demo-7.png (100%) rename website/{source/assets/images => assets/img}/vault-java-demo-8.png (100%) rename website/{source/assets/images => assets/img}/vault-java-demo-9.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter-0.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter-10.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter-11.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter-12.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter-13.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter-2.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter-3.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter-4.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter-5.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter-6.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter-7.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter-8.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter-9.png (100%) rename website/{source/assets/images => assets/img}/vault-mount-filter.png (100%) rename website/{source/assets/images => assets/img}/vault-multi-tenant-1.png (100%) rename website/{source/assets/images => assets/img}/vault-multi-tenant-2.png (100%) rename website/{source/assets/images => assets/img}/vault-multi-tenant-3.png (100%) rename website/{source/assets/images => assets/img}/vault-multi-tenant-4.png (100%) rename website/{source/assets/images => assets/img}/vault-multi-tenant-5.png (100%) rename website/{source/assets/images => assets/img}/vault-multi-tenant-6.png (100%) rename website/{source/assets/images => assets/img}/vault-multi-tenant-7.png (100%) rename website/{source/assets/images => assets/img}/vault-multi-tenant-8.png (100%) rename website/{source/assets/images => assets/img}/vault-multi-tenant.png (100%) rename website/{source/assets/images => assets/img}/vault-perf-standby-1.png (100%) rename website/{source/assets/images => assets/img}/vault-perf-standby.png (100%) rename website/{source/assets/images => assets/img}/vault-pki-1.png (100%) rename website/{source/assets/images => assets/img}/vault-pki-2.png (100%) rename website/{source/assets/images => assets/img}/vault-pki-3.png (100%) rename website/{source/assets/images => assets/img}/vault-pki-4.png (100%) rename website/{source/assets/images => assets/img}/vault-pki-demo-2.png (100%) rename website/{source/assets/images => assets/img}/vault-pki-demo.png (100%) rename website/{source/assets/images => assets/img}/vault-policy-1.png (100%) rename website/{source/assets/images => assets/img}/vault-policy-2.png (100%) rename website/{source/assets/images => assets/img}/vault-policy-authoring-workflow.png (100%) rename website/{source/assets/images => assets/img}/vault-policy-workflow.svg (100%) rename website/{source/assets/images => assets/img}/vault-ref-arch-2.png (100%) rename website/{source/assets/images => assets/img}/vault-ref-arch-3.png (100%) rename website/{source/assets/images => assets/img}/vault-ref-arch-4.png (100%) rename website/{source/assets/images => assets/img}/vault-ref-arch-5.png (100%) rename website/{source/assets/images => assets/img}/vault-ref-arch-6.png (100%) rename website/{source/assets/images => assets/img}/vault-ref-arch-7.png (100%) rename website/{source/assets/images => assets/img}/vault-ref-arch-8.png (100%) rename website/{source/assets/images => assets/img}/vault-ref-arch-9.png (100%) rename website/{source/assets/images => assets/img}/vault-ref-arch.png (100%) rename website/{source/assets/images => assets/img}/vault-rekey-vs-rotate.svg (100%) rename website/{source/assets/images => assets/img}/vault-seal-wrap-2.png (100%) rename website/{source/assets/images => assets/img}/vault-seal-wrap-3.png (100%) rename website/{source/assets/images => assets/img}/vault-seal-wrap-4.png (100%) rename website/{source/assets/images => assets/img}/vault-seal-wrap-5.png (100%) rename website/{source/assets/images => assets/img}/vault-seal-wrap-6.png (100%) rename website/{source/assets/images => assets/img}/vault-seal-wrap.png (100%) rename website/{source/assets/images => assets/img}/vault-secrets-enable.png (100%) rename website/{source/assets/images => assets/img}/vault-secure-intro-1.png (100%) rename website/{source/assets/images => assets/img}/vault-secure-intro-2.png (100%) rename website/{source/assets/images => assets/img}/vault-secure-intro-3.png (100%) rename website/{source/assets/images => assets/img}/vault-secure-intro-4.png (100%) rename website/{source/assets/images => assets/img}/vault-secure-intro-5.png (100%) rename website/{source/assets/images => assets/img}/vault-sentinel-1.png (100%) rename website/{source/assets/images => assets/img}/vault-sentinel-2.png (100%) rename website/{source/assets/images => assets/img}/vault-shamir-secret-sharing.svg (100%) rename website/{source/assets/images => assets/img}/vault-ssh-otp-1.png (100%) rename website/{source/assets/images => assets/img}/vault-ssh-otp-2.png (100%) rename website/{source/assets/images => assets/img}/vault-static-secrets.png (100%) rename website/{source/assets/images => assets/img}/vault-static-secrets2.png (100%) rename website/{source/assets/images => assets/img}/vault-transit-1.png (100%) rename website/{source/assets/images => assets/img}/vault-transit-2.png (100%) rename website/{source/assets/images => assets/img}/vault-transit-3.png (100%) rename website/{source/assets/images => assets/img}/vault-transit-4.png (100%) rename website/{source/assets/images => assets/img}/vault-transit-5.png (100%) rename website/{source/assets/images => assets/img}/vault-versioned-kv-1.png (100%) rename website/{source/assets/images => assets/img}/vault-versioned-kv-2.png (100%) rename website/{source/assets/images => assets/img}/vault-versioned-kv-3.png (100%) rename website/{source/assets/images => assets/img}/vault-versioned-kv-4.png (100%) rename website/{source/assets/images => assets/img}/vault-versioned-kv-5.png (100%) rename website/{source/assets/images => assets/img}/vault-versioned-kv-6.png (100%) rename website/{source/assets/images => assets/img}/vault_cluster.png (100%) create mode 100644 website/assets/js/components/docs-sidebar/index.js create mode 100644 website/assets/js/components/docs-sidebar/style.css create mode 100644 website/assets/js/index.js create mode 100644 website/assets/js/utils.js create mode 100644 website/assets/package.json create mode 100644 website/assets/reshape.js create mode 100644 website/assets/yarn.lock create mode 100644 website/bootstrap.sh create mode 100644 website/data/api_basic_categories.yml create mode 100644 website/data/api_detailed_categories.yml create mode 100644 website/data/docs_basic_categories.yml create mode 100644 website/data/docs_detailed_categories.yml delete mode 100644 website/data/news.yml create mode 100644 website/deploy/main.tf create mode 100644 website/deploy/variables.tf delete mode 100644 website/packer.json delete mode 100755 website/scripts/deploy.sh create mode 100644 website/source/api/index.html.erb rename website/source/api/{index.html.md => overview.html.md} (99%) rename website/source/api/system/{mfa.html.md => mfa/index.html.md} (55%) rename website/source/api/system/{ => mfa}/mfa-duo.html.md (97%) rename website/source/api/system/{ => mfa}/mfa-okta.html.md (97%) rename website/source/api/system/{ => mfa}/mfa-pingid.html.md (97%) rename website/source/api/system/{ => mfa}/mfa-totp.html.md (99%) rename website/source/api/system/{replication.html.md => replication/index.html.md} (97%) rename website/source/api/system/{ => replication}/replication-dr.html.md (99%) rename website/source/api/system/{ => replication}/replication-performance.html.md (99%) delete mode 100644 website/source/assets/files/press-kit.zip delete mode 100644 website/source/assets/javascripts/analytics.js delete mode 100644 website/source/assets/javascripts/application.js delete mode 100644 website/source/assets/javascripts/demo-app.js delete mode 100644 website/source/assets/javascripts/demo.js delete mode 100644 website/source/assets/javascripts/demo/controllers/application.js delete mode 100644 website/source/assets/javascripts/demo/controllers/demo.js delete mode 100644 website/source/assets/javascripts/demo/controllers/step.js delete mode 100644 website/source/assets/javascripts/demo/initializer/load-steps.js delete mode 100644 website/source/assets/javascripts/demo/model/clock.js delete mode 100644 website/source/assets/javascripts/demo/model/step.js delete mode 100644 website/source/assets/javascripts/demo/router.js delete mode 100644 website/source/assets/javascripts/demo/routes/step.js delete mode 100644 website/source/assets/javascripts/demo/views/demo.js delete mode 100644 website/source/assets/javascripts/demo/views/step.js delete mode 100644 website/source/assets/javascripts/lib/ember-1-10.js delete mode 100644 website/source/assets/javascripts/lib/ember-data-1-0.js delete mode 100644 website/source/assets/javascripts/lib/ember-template-compiler.js delete mode 100755 website/source/assets/stylesheets/_buttons.scss delete mode 100644 website/source/assets/stylesheets/_community.scss delete mode 100644 website/source/assets/stylesheets/_demo.scss delete mode 100755 website/source/assets/stylesheets/_docs.scss delete mode 100644 website/source/assets/stylesheets/_downloads.scss delete mode 100644 website/source/assets/stylesheets/_footer.scss delete mode 100755 website/source/assets/stylesheets/_global.scss delete mode 100755 website/source/assets/stylesheets/_header.scss delete mode 100755 website/source/assets/stylesheets/_home.scss delete mode 100644 website/source/assets/stylesheets/_inner.scss delete mode 100644 website/source/assets/stylesheets/_latest.scss delete mode 100644 website/source/assets/stylesheets/_logos.scss delete mode 100644 website/source/assets/stylesheets/_syntax.scss.erb delete mode 100755 website/source/assets/stylesheets/_variables.scss delete mode 100755 website/source/assets/stylesheets/application.scss rename website/source/docs/commands/{audit.html.md => audit/index.html.md} (98%) rename website/source/docs/commands/{auth.html.md => auth/index.html.md} (92%) create mode 100644 website/source/docs/commands/lease/index.html.md rename website/source/docs/commands/{operator.html.md => operator/index.html.md} (98%) rename website/source/docs/commands/{plugin.html.md => plugin/index.html.md} (98%) rename website/source/docs/commands/{policy.html.md => policy/index.html.md} (97%) rename website/source/docs/commands/{secrets.html.md => secrets/index.html.md} (98%) rename website/source/docs/commands/{token.html.md => token/index.html.md} (98%) create mode 100644 website/source/docs/index.html.erb delete mode 100644 website/source/docs/index.html.markdown create mode 100644 website/source/docs/partnerships/index.html.md rename website/source/{guides => docs}/upgrading/index.html.md (97%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.10.0.html.md (98%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.10.2.html.md (91%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.10.4.html.md (86%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.11.0.html.md (97%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.11.2.html.md (85%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.5.0.html.md (98%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.5.1.html.md (96%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.6.0.html.md (95%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.6.1.html.md (97%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.6.2.html.md (97%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.6.3.html.md (93%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.6.4.html.md (97%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.7.0.html.md (95%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.8.0.html.md (95%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.9.0.html.md (98%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.9.1.html.md (95%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.9.2.html.md (96%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.9.3.html.md (84%) rename website/source/{guides => docs}/upgrading/upgrade-to-0.9.6.html.md (91%) rename website/source/{intro/use-cases.html.markdown => docs/use-cases/index.html.md} (98%) rename website/source/{intro => docs}/vs/chef-puppet-etc.html.md (98%) rename website/source/{intro => docs}/vs/consul.html.md (97%) rename website/source/{intro/vs/custom.html.markdown => docs/vs/custom.html.md} (95%) create mode 100644 website/source/docs/vs/dropbox.html.md rename website/source/{intro => docs}/vs/hsm.html.md (98%) rename website/source/{intro/vs/index.html.markdown => docs/vs/index.html.md} (92%) rename website/source/{intro => docs}/vs/keywhiz.html.md (91%) rename website/source/{intro => docs}/vs/kms.html.md (97%) rename website/source/{intro/index.html.markdown => docs/what-is-vault/index.html.md} (98%) delete mode 100644 website/source/guides/partnerships/index.html.md rename website/source/intro/getting-started/{install.html.md => index.html.md} (98%) delete mode 100644 website/source/intro/vs/dropbox.html.md delete mode 100644 website/source/layouts/_sidebar.erb delete mode 100644 website/source/layouts/downloads.erb create mode 100644 website/source/netlify-redirects diff --git a/.gitignore b/.gitignore index a2837c3dde..62db80cd9b 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,7 @@ example.vault.d website/vendor website/.bundle website/build +website/tmp # Vagrant .vagrant/ @@ -92,3 +93,14 @@ ui/vault-ui-integration-server.pid # for building static assets node_modules package-lock.json + +# Website +website/.bundle +website/build/ +website/npm-debug.log +website/vendor +website/.bundle +website/.cache +website/assets/node_modules +website/assets/public +website/components/node_modules diff --git a/website/Gemfile b/website/Gemfile index df82f81161..426581c798 100644 --- a/website/Gemfile +++ b/website/Gemfile @@ -1,4 +1,9 @@ source "https://rubygems.org" -gem "ffi", "~> 1.9.24" -gem "middleman-hashicorp", "0.3.34" +gem 'middleman', '~> 4.2' +gem 'middleman-hashicorp', git: 'https://github.com/carrot/middleman-hashicorp' +# gem 'middleman-hashicorp', path: '/Users/jeff/Sites/middleman-hashicorp-carrot' +gem 'builder' +gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby] +gem 'wdm', '~> 0.1', platforms: [:mswin, :mingw] +gem 'middleman-dato' diff --git a/website/Gemfile.lock b/website/Gemfile.lock index cbac52d66c..b71ea788b7 100644 --- a/website/Gemfile.lock +++ b/website/Gemfile.lock @@ -1,160 +1,193 @@ +GIT + remote: https://github.com/carrot/middleman-hashicorp + revision: 2ae888ea440b9cc78d445d71b88b89103c0d621f + specs: + middleman-hashicorp (0.3.28) + activesupport (~> 5.0) + middleman (~> 4.2) + middleman-dato + middleman-livereload (~> 3.4) + middleman-syntax (~> 3.0) + nokogiri (~> 1.8) + redcarpet (~> 3.3) + GEM remote: https://rubygems.org/ specs: - activesupport (4.2.10) - i18n (~> 0.7) + activesupport (5.0.7) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) - autoprefixer-rails (8.2.0) - execjs - bootstrap-sass (3.3.7) - autoprefixer-rails (>= 5.2.1) - sass (>= 3.3.4) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + backports (3.11.3) builder (3.2.3) - capybara (2.4.4) - mime-types (>= 1.16) - nokogiri (>= 1.3.3) - rack (>= 1.0.0) - rack-test (>= 0.5.4) - xpath (~> 2.0) - chunky_png (1.3.10) + cacert (0.5.0) coffee-script (2.4.1) coffee-script-source execjs coffee-script-source (1.12.2) - compass (1.0.3) - chunky_png (~> 1.2) - compass-core (~> 1.0.2) - compass-import-once (~> 1.0.5) - rb-fsevent (>= 0.9.3) - rb-inotify (>= 0.9) - sass (>= 3.3.13, < 3.5) - compass-core (1.0.3) - multi_json (~> 1.0) - sass (>= 3.3.0, < 3.5) compass-import-once (1.0.5) sass (>= 3.2, < 3.5) + concurrent-ruby (1.0.5) + contracts (0.13.0) + dato (0.6.7) + activesupport (>= 4.2.7) + addressable + cacert + dotenv + downloadr + faraday (>= 0.9.0) + faraday_middleware (>= 0.9.0) + fastimage + imgix (>= 0.3.1) + json_schema + listen + pusher-client + thor + toml + domain_name (0.5.20180417) + unf (>= 0.0.5, < 1.0.0) + dotenv (2.1.0) + downloadr (0.0.41) + addressable (~> 2.3) + rest-client (~> 1.7) em-websocket (0.5.1) eventmachine (>= 0.12.9) http_parser.rb (~> 0.6.0) erubis (2.7.0) - eventmachine (1.2.5) + eventmachine (1.2.7) execjs (2.7.0) + faraday (0.15.2) + multipart-post (>= 1.2, < 3) + faraday_middleware (0.12.2) + faraday (>= 0.7.4, < 1.0) + fast_blank (1.0.0) + fastimage (2.1.3) ffi (1.9.25) haml (5.0.4) temple (>= 0.8.0) tilt - hike (1.2.3) - hooks (0.4.1) - uber (~> 0.0.14) + hamster (3.0.0) + concurrent-ruby (~> 1.0) + hashie (3.6.0) + http-cookie (1.0.3) + domain_name (~> 0.5) http_parser.rb (0.6.0) i18n (0.7.0) + imgix (1.1.0) + addressable json (2.1.0) - kramdown (1.16.2) + json_schema (0.19.1) + kramdown (1.17.0) listen (3.0.8) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) - middleman (3.4.1) + memoist (0.16.0) + middleman (4.2.1) coffee-script (~> 2.2) - compass (>= 1.0.0, < 2.0.0) compass-import-once (= 1.0.5) - execjs (~> 2.0) haml (>= 4.0.5) kramdown (~> 1.2) - middleman-core (= 3.4.1) - middleman-sprockets (>= 3.1.2) + middleman-cli (= 4.2.1) + middleman-core (= 4.2.1) sass (>= 3.4.0, < 4.0) - uglifier (~> 2.5) - middleman-core (3.4.1) - activesupport (~> 4.1) + middleman-cli (4.2.1) + thor (>= 0.17.0, < 2.0) + middleman-core (4.2.1) + activesupport (>= 4.2, < 5.1) + addressable (~> 2.3) + backports (~> 3.6) bundler (~> 1.1) - capybara (~> 2.4.4) + contracts (~> 0.13.0) + dotenv erubis - hooks (~> 0.3) + execjs (~> 2.0) + fast_blank + fastimage (~> 2.0) + hamster (~> 3.0) + hashie (~> 3.4) i18n (~> 0.7.0) - listen (~> 3.0.3) - padrino-helpers (~> 0.12.3) - rack (>= 1.4.5, < 2.0) - thor (>= 0.15.2, < 2.0) - tilt (~> 1.4.1, < 2.0) - middleman-hashicorp (0.3.34) - bootstrap-sass (~> 3.3) - builder (~> 3.2) - middleman (~> 3.4) - middleman-livereload (~> 3.4) - middleman-syntax (~> 3.0) - redcarpet (~> 3.3) - turbolinks (~> 5.0) + listen (~> 3.0.0) + memoist (~> 0.14) + padrino-helpers (~> 0.13.0) + parallel + rack (>= 1.4.5, < 3) + sass (>= 3.4) + servolux + tilt (~> 2.0) + uglifier (~> 3.0) + middleman-dato (0.8.2) + activesupport + dato (>= 0.3.2) + dotenv (<= 2.1) + middleman-core (>= 4.1.10) middleman-livereload (3.4.6) em-websocket (~> 0.5.1) middleman-core (>= 3.3) rack-livereload (~> 0.3.15) - middleman-sprockets (3.5.0) - middleman-core (>= 3.3) - sprockets (~> 2.12.1) - sprockets-helpers (~> 1.1.0) - sprockets-sass (~> 1.3.0) middleman-syntax (3.0.0) middleman-core (>= 3.2) rouge (~> 2.0) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) + mime-types (2.99.3) mini_portile2 (2.3.0) minitest (5.11.3) - multi_json (1.13.1) - nokogiri (1.8.2) + multipart-post (2.0.0) + netrc (0.11.0) + nokogiri (1.8.5) mini_portile2 (~> 2.3.0) - padrino-helpers (0.12.9) + padrino-helpers (0.13.3.4) i18n (~> 0.6, >= 0.6.7) - padrino-support (= 0.12.9) + padrino-support (= 0.13.3.4) tilt (>= 1.4.1, < 3) - padrino-support (0.12.9) + padrino-support (0.13.3.4) activesupport (>= 3.1) - rack (1.6.10) - rack-livereload (0.3.16) + parallel (1.12.1) + parslet (1.8.2) + public_suffix (3.0.3) + pusher-client (0.6.2) + json + websocket (~> 1.0) + rack (2.0.5) + rack-livereload (0.3.17) rack - rack-test (1.0.0) - rack (>= 1.0, < 3) rb-fsevent (0.10.3) rb-inotify (0.9.10) ffi (>= 0.5.0, < 2) redcarpet (3.4.0) + rest-client (1.8.0) + http-cookie (>= 1.0.2, < 2.0) + mime-types (>= 1.16, < 3.0) + netrc (~> 0.7) rouge (2.2.1) sass (3.4.25) - sprockets (2.12.5) - hike (~> 1.2) - multi_json (~> 1.0) - rack (~> 1.0) - tilt (~> 1.1, != 1.3.0) - sprockets-helpers (1.1.0) - sprockets (~> 2.0) - sprockets-sass (1.3.1) - sprockets (~> 2.0) - tilt (~> 1.1) + servolux (0.13.0) temple (0.8.0) thor (0.20.0) thread_safe (0.3.6) - tilt (1.4.1) - turbolinks (5.1.0) - turbolinks-source (~> 5.1) - turbolinks-source (5.1.0) + tilt (2.0.8) + toml (0.2.0) + parslet (~> 1.8.0) tzinfo (1.2.5) thread_safe (~> 0.1) - uber (0.0.15) - uglifier (2.7.2) - execjs (>= 0.3.0) - json (>= 1.8.0) - xpath (2.1.0) - nokogiri (~> 1.3) + uglifier (3.2.0) + execjs (>= 0.3.0, < 3) + unf (0.1.4) + unf_ext + unf_ext (0.0.7.5) + websocket (1.2.8) PLATFORMS ruby DEPENDENCIES - ffi (~> 1.9.24) - middleman-hashicorp (= 0.3.34) + builder + middleman (~> 4.2) + middleman-dato + middleman-hashicorp! + tzinfo-data + wdm (~> 0.1) BUNDLED WITH - 1.16.1 + 1.16.5 diff --git a/website/Makefile b/website/Makefile index 04a1b33321..f5f0b1ad13 100644 --- a/website/Makefile +++ b/website/Makefile @@ -1,35 +1,30 @@ -VERSION?="0.3.34" +configure-cache: + mkdir -p tmp/cache -build: +build: configure-cache @echo "==> Starting build in Docker..." @docker run \ --interactive \ --rm \ --tty \ - --volume "$(shell pwd):/website" \ - -e "ENV=production" \ - hashicorp/middleman-hashicorp:${VERSION} \ - bundle exec middleman build --verbose --clean + --volume "$(shell pwd):/opt/buildhome/repo" \ + --volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \ + --env "ENV=production" \ + netlify/build \ + build sh bootstrap.sh && middleman build --verbose -website: +website: configure-cache @echo "==> Starting website in Docker..." @docker run \ --interactive \ --rm \ --tty \ + --volume "$(shell pwd):/opt/buildhome/repo" \ + --volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \ --publish "4567:4567" \ --publish "35729:35729" \ - --volume "$(shell pwd):/website" \ - hashicorp/middleman-hashicorp:${VERSION} + --env "ENV=production" \ + netlify/build \ + build sh bootstrap.sh && middleman -update-deps: - @echo "==> Updating deps..." - @docker run \ - --interactive \ - --rm \ - --tty \ - --volume "$(shell pwd):/website" \ - hashicorp/middleman-hashicorp:${VERSION} \ - bundle update - -.PHONY: build website +.PHONY: configure-cache build website diff --git a/website/README.md b/website/README.md index 8a6f2cdf3d..c16009a650 100644 --- a/website/README.md +++ b/website/README.md @@ -12,7 +12,7 @@ like any normal GitHub project, and we'll merge it in. ## Running the Site Locally -Running the site locally is simple. Clone this repo and run `make website`. +Running the site locally is simple. Clone this repo and run `make website`. If it is your first time running the site, the build will take a little longer as it needs to download a docker image and a bunch of dependencies, so maybe go grab a coffee. On subsequent runs, it will be much faster as dependencies are cached. Then open up `http://localhost:4567`. Note that some URLs you may need to append ".html" to make them work (in the navigation). diff --git a/website/assets/app.js b/website/assets/app.js new file mode 100644 index 0000000000..28414de56f --- /dev/null +++ b/website/assets/app.js @@ -0,0 +1,14 @@ +const cssStandards = require('spike-css-standards') +const jsStandards = require('spike-js-standards') +const preactPreset = require('babel-preset-preact') +const extendRule = require('postcss-extend-rule') + +module.exports = { + ignore: ['yarn.lock', '**/_*'], + entry: { 'js/main': './js/index.js' }, + postcss: cssStandards({ + appendPlugins: [extendRule()] + }), + babel: jsStandards({ appendPresets: [preactPreset] }), + server: { open: false } +} diff --git a/website/assets/css/_alerts.css b/website/assets/css/_alerts.css new file mode 100644 index 0000000000..8d1cca89ec --- /dev/null +++ b/website/assets/css/_alerts.css @@ -0,0 +1,79 @@ +/** +* Extracted from Bootstrap and Updated +*/ +.alert { + padding: 1em; + border: 1px solid transparent; + border-radius: 4px; + font-size: var(--default-font-size); + + & p:last-child { + margin-bottom: 0; + } + + & h4 { + margin-top: 0; + color: inherit; + } + + & .alert-link { + font-weight: var(--font-weight-bold); + } + + & > p, + & > ul { + margin-bottom: 0; + } + + & > p + p { + margin-top: 5px; + } + + &.alert-success { + background-color: #dff0d8; + border-color: #d6e9c6; + color: #3c763d; + } + &.alert-success hr { + border-top-color: #c9e2b3; + } + &.alert-success .alert-link { + color: #2b542c; + } + + &.alert-info { + background-color: #d9edf7; + border-color: #bce8f1; + color: #31708f; + } + &.alert-info hr { + border-top-color: #a6e1ec; + } + &.alert-info .alert-link { + color: #245269; + } + + &.alert-warning { + background-color: #fcf8e3; + border-color: #faebcc; + color: #8a6d3b; + } + &.alert-warning hr { + border-top-color: #f7e1b5; + } + &.alert-warning .alert-link { + color: #66512c; + } + + &.alert-danger { + background-color: #f2dede; + border-color: #ebccd1; + color: #a94442; + } + &.alert-danger hr { + border-top-color: #e4b9c0; + } + &.alert-danger .alert-link { + color: #843534; + } +} \ No newline at end of file diff --git a/website/assets/css/_inner.css b/website/assets/css/_inner.css new file mode 100644 index 0000000000..c16fc8f4fe --- /dev/null +++ b/website/assets/css/_inner.css @@ -0,0 +1,35 @@ +.content-wrap { + display: flex; + flex-direction: column; + flex-wrap: wrap; + flex: 1 0 auto; + position: relative; + width: 100%; + + @media (min-width: 768px) { + flex-direction: row; + margin-top: 72px; + margin-bottom: 72px; + } +} + +#inner { + flex: 1; + margin: 100px 0; + overflow: auto; + + @media (min-width: 768px) { + margin: 0; + } + + & .g-content > h1:first-child { + margin-top: 0; + } + + /* TODO: this should be applied in global styles, temporary override here */ + & pre code, + & code, + & pre { + font-size: 0.875em; + } +} diff --git a/website/assets/css/_secondary-nav.css b/website/assets/css/_secondary-nav.css new file mode 100644 index 0000000000..bb92123079 --- /dev/null +++ b/website/assets/css/_secondary-nav.css @@ -0,0 +1,113 @@ +#secondary-nav { + width: 100%; + border-bottom: 1px solid var(--gray-9); + + & .g-container { + display: flex; + flex-direction: column; + flex-wrap: nowrap; + justify-content: space-between; + margin: 0 auto; + + @media (min-width: 768px) { + flex-direction: row; + align-items: center; + max-width: var(--medium-grid-max-width); + } + + @media (min-width: 1120px) { + max-width: var(--site-max-width); + } + } + + &.light { + background-color: var(--white); + color: var(--black); + } + + &.dark { + background-color: var(--black); + color: var(--white); + } + + & ul { + list-style: none; + padding: 0; + margin: 0; + + & li { + display: inline-block; + } + } + + & .breadcrumbs { + list-style: none; + padding: 0; + margin: 0; + + & li { + font-size: 1.25em; + line-height: 1.6; + padding: .625em 0; + + & + li:before { + content: "/\00a0"; + font-weight: 300; + margin: 0 5px; + } + + &:nth-child(odd) { + font-weight: 300; + } + + &.active { + font-weight: bold; + } + } + } + + & .doc-links { + & li { + font-size: .875em; + line-height: 1.7; + margin: 0 20px; + padding: 0 0 14px; + + @media (min-width: 768px) { + padding: 32px 0; + } + + &:first-child { + margin-left: 0; + } + + &.active { + border-bottom: 3px solid #1563FF; + + & a { + opacity: 0.7; + } + } + + & a { + color: inherit; + cursor: pointer; + display: block; + text-decoration: none; + transition: opacity .25s ease; + + &:hover { + opacity: 0.7s; + } + + & svg { + position: relative; + top: 2px; + width: 14px; + height: 14px; + margin-right: 3px; + } + } + } + } +} diff --git a/website/assets/css/index.css b/website/assets/css/index.css new file mode 100644 index 0000000000..fa962b5756 --- /dev/null +++ b/website/assets/css/index.css @@ -0,0 +1,36 @@ +@import 'normalize.css'; +@import '@hashicorp/hashi-global-styles/style'; + +/* NPM Preact Components */ +@import '@hashicorp/hashi-logo-grid/dist/style.css'; +@import '@hashicorp/hashi-footer/dist/style.css'; +@import '@hashicorp/hashi-nav/dist/style.css'; +@import '@hashicorp/hashi-newsletter-signup-form/dist/style.css'; +@import '@hashicorp/hashi-button/dist/style.css'; +@import '@hashicorp/hashi-product-subnav/dist/style.css'; +@import '@hashicorp/hashi-content/dist/style.css'; +@import '@hashicorp/hashi-mega-nav/dist/style.css'; +@import '@hashicorp/hashi-docs-sidenav/dist/style.css'; +@import '@hashicorp/hashi-vertical-text-block-list/dist/style.css'; +@import '@hashicorp/hashi-section-header/dist/style.css'; +@import '@hashicorp/hashi-product-downloader/dist/style.css'; +@import '@hashicorp/hashi-hero/dist/style.css'; +@import '@hashicorp/hashi-alert/dist/style.css'; +@import '@hashicorp/hashi-callouts/dist/style.css'; +@import '@hashicorp/hashi-split-cta/dist/style.css'; +@import '@hashicorp/hashi-linked-text-summary-list/dist/style.css'; +@import '@hashicorp/hashi-docs-sitemap/dist/style.css'; + +/* to be removed pending new components */ +@import '_alerts'; +@import '_inner'; +@import '_secondary-nav'; + +/* Pages */ +@import 'pages/_docs'; +@import 'pages/_section_block'; +@import 'pages/_home'; + +h5 { + font-weight: 600; +} diff --git a/website/assets/css/pages/_docs.css b/website/assets/css/pages/_docs.css new file mode 100644 index 0000000000..397a513943 --- /dev/null +++ b/website/assets/css/pages/_docs.css @@ -0,0 +1,67 @@ +#sidebar { + & .g-docs-sidebar { + margin-right: 25px; + } +} + +#intro { + padding-bottom: 0px; + + & .g-section-header { + margin-bottom: 48px; + + & h3 { + margin: 1em auto 0 auto; + width: 85%; + } + } +} + +#categories { + & .g-linked-text-summary-list { + padding-top: 12px; + padding-bottom: 12px; + } +} + +#sitemap { + @media (max-width: 768px) { + display: none; + } +} + +#get-started { + @media (max-width: 768px) { + display: none; + } +} + +.g-content { + & h1 { + @extend %typography-display-2; + } + + & h2 { + @extend %typography-section-2; + border-bottom: 1px solid var(--gray-8); + padding-bottom: 16px; + } + + & h3 { + @extend %typography-section-3; + border-bottom: none; + } + + & h4 { + @extend %typography-section-4; + } + + & .alert { + margin-top: calc(var(--baseline) * 1.1rem); + margin-bottom: calc(var(--baseline) * 1.1rem); + + & p:first-child { + margin-top: 0; + } + } +} diff --git a/website/assets/css/pages/_home.css b/website/assets/css/pages/_home.css new file mode 100644 index 0000000000..0d22a0040e --- /dev/null +++ b/website/assets/css/pages/_home.css @@ -0,0 +1,3 @@ +.g-split-cta h1 { + font-size: 2.5em; +} diff --git a/website/assets/css/pages/_section_block.css b/website/assets/css/pages/_section_block.css new file mode 100644 index 0000000000..488ea2c1cf --- /dev/null +++ b/website/assets/css/pages/_section_block.css @@ -0,0 +1,76 @@ +.g-section-block { + & section { + padding-top: 96px; + padding-bottom: 96px; + + @media (max-width: 768px) { + padding-top: 60px; + padding-bottom: 60px; + } + + &.gray { + background: #f6f7fa; + } + + &.black { + background: var(--black); + color: white; + } + + &.no-pad { + padding: 0; + } + + /* copied over from www, should be component-ized */ + & > * + *, + & > .g-container > * + * { + margin-top: 96px; + + @media (max-width: 1119px) { + margin-top: 72px; + } + + @media (max-width: 767px) { + margin-top: 56px; + } + } + + & > .g-section-header, + & > .g-container > .g-section-header { + & + * { + margin-top: 72px; + + @media (max-width: 1119px) { + margin-top: 64px; + } + + @media (max-width: 767px) { + margin-top: 40px; + } + } + } + + & > * + .btn-container, + & > .g-container > * + .btn-container { + margin-top: 40px; + + @media (max-width: 767px) { + margin-top: 32px; + } + } + } + + & .button-container { + display: flex; + justify-content: center; + + & > a + a { + margin-left: 16px; + } + } + + /* Temporary Overrides */ + & .g-section-header { + margin: 0 auto; + } +} diff --git a/website/assets/files/press-kit.zip b/website/assets/files/press-kit.zip new file mode 100644 index 0000000000000000000000000000000000000000..9b61088fb8175f65e8fc3f4f5be5a388d0f7ca4b GIT binary patch literal 97652 zcmc$_W2|sZm#({P+qP}$p0>mPDDvh$=S})* zWiP*g#=t!yRFLe)Gfl^k0$2Nrvv&e7!tvb61Z)7Snow2*05=q)V704wD(5u=&r7=R z^DTT0s5S*`><_mJbRh`Bq1S$;4f>Pp5QGD0%$LwVDle7*H09I`WV*=&X_>Aenl_@>BZ^oF!Q z7Ixr_h;}Y;s;2`Ini|HHmjZ{#7Z`gU{6{em41j;rS$0fKKl}T^1vKR3kHeL;X7$Y1KP;)i8NK zpg0U*as+I^dTfNiH&lTs05!rsKVXiKAP~WHR0f^1f6W^l;t6xLi{&33-2Q3*t2VGw zeEwZcVg0+>FtW3Ca3!;co>l}#U(E<}0|NL}T^ILe0|1P}0tgiR@#uV$g>lGJ z{c0h;LgD}dnB(nuCr8wRi2wtD1GfHcX+z|0U}@R&S~{70fyD7d)_4l~PC9Nc`YzUB1NgLvVN zX+*G75lmROOY9>z5r^I@Y4>$HIk=c`uo`*t`~J|Y_zjQwL%sYPwcne1_{%@&OaJ!E zI`~VhW9h8;B6XMD{DrlK%GTm&c^N0|Dl;ZIYEoB5%ObD~~7M*lZB^{02LOK+b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x)nQze)WFESA9l>O1zc6+GoH zz=NfK&-cmQeqzx4rrB~M%XkIDZ{ zj8)K+;st-~T{%c~b9MlL;8hgqk*lxiJs11EGH(Qk^@h#%}4OsBO!$Us89O~ zxXjVtC-BeXAcNvi@?3F#2aSLtXas&uLi_lCPU49|3%`xRBY5Wya6bFrQ|Q+uK3x5; zlK7iA`=B^aOK<&}MAG%&CGn> zE{VThG9GJjJk8`W!qbx*#$O^>nEb;`{#mfco$J#*?XT(hnf}9co(T4MH1sr`#|TgN ihrgyXY4g8N=TE_)K$kWEfDd}vfc9wnwxDej;Qs--Y@5OW literal 0 HcmV?d00001 diff --git a/website/assets/img/atlas_workflow.png b/website/assets/img/atlas_workflow.png new file mode 100644 index 0000000000000000000000000000000000000000..144e2cedc8dfd0a9183a648654a958bcdc99020c GIT binary patch literal 87156 zcmeFYcT`hbw>FN)f`uX~N=HFOA%KANrXnC+Kp+7E0tS%KTj<#6O({XTN|jDR=tZeQ zC?X|>dH^8;AxQ7=?Zo3b_}=%u_Zz=4e&hS+M%+5~-fQkPpZUx=pS7|Hxv!~Ady?fO z6%`e&%DuZfR8%LBR8)r_96tt};e9cyNOkCew94Jv4?GSLhp`$N$`@M4xl7Dj6ORNx zId}ZoteH`Ej3enrdGPw4Ip@_(+4L`cOdx5g)hIQh9MuN~(ow2F*!m&zr4PlnVwmeuszfp1Jk`S|L4QyN1TrCEMg+a2rQ#!0 z55dQP+bO3Xg5C30eU>MdWv-PZ{WejiM_@7dTunvCu;3voBF6z2n5@9=*{d?$9kpku zKG-`Qp`S&cV z0H?)))58n3L9pn{DwH3)`guC6VYg}fW8ms05Q<|=$e&kKqDKWAQJ%(Yjk8i(s#H|i z>El#40H^;Ns1j|4f0DXyH1f>}7+LvqWCYJ&V}(JiH^|@s!@dE-{(Me{{WVS)ge~jJ z6Pq$SLBXHqz=i65uR6~~PmWmdc>vR6R3E50{+`S~D3!1Q@u#7BLVIv%5+;?9P-$S! z3}DMdMa9Z;aG=qu3||Q_f->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Bu~ z7JKt7$V_eNx{QxjrE^#SB8kN>TS7g*8$wPd^FyK1^W0~dDEEr#m|0*Q1H=|LX-sPH zE;;MpGs|6yPV}0LH2lk9367sc;SwBF*TSf3%|6oPqh2Q}WIX2*YFO8?4f}5Nfnl7f z=e(wS(Ved;!mf`d^Gt}+ZZEbrn}}`ZPFa81Rc7`LdIRSy>&?Hjaaivge$5y)jNf2Q zI1t6lc+A*qx$VeX^aFdQVVD+n5~(loUI|uczHh#b-cZk0kQ{ttb?SkirRx%-NMPZ> zyRPdJcFolEQRH0yrKm^MFU$QnIZc6(5J3*-xfD}<(Za}j^F=R0J{T3 z{J|ddXh!o_%S?@F3Hy_x&lY60=W&aKi!dGrCE|a69`fou5s&NlfAIqmm2c0p^3w4Q z<)1X{moA;x%gq%Tp>C9$du)mx*leJOzjOJkW%-Ti2?vs5&J||2=UH~?_(tj-(Vh7*E&n*%d4e%S4#5GLkQ~8;6YPu#mSpr zkjHzU!F_rU?c3+F@bRvkzy8vRmEV;Q3=y?#k@pj|G>y^MvS^z0-XyU^3FFUTKEj$Ju(dO?7<$am%Z zf74w$A0FDlv@H14?}qxj-zq=4?AbU>PQd-;eVSaar*^v zdD#mtXL0P@^eLGbga&H6TN`Jce9lYDK=!7 zR~`ZSS)K1jxj3%Kp;34YJTJ-fUd$_xc%{`D)HT?3cm(Kn3p{N%(7cOEc|=D8z?flP zd3tDhSe?UMY>U_{FYq0C^4_vB~9$IOtU@}nS z>1b^jgHavl#M;gkDovJ*G?T3 z01yEH6zkvB;WZF~zuQ9WcXa~QcY*3rodBp4K%D^U1W+e{Iss58fI0!x37}2@bpmhz XTywQzKC+pf00000NkvXXu0mjf<|Eoh literal 0 HcmV?d00001 diff --git a/website/assets/img/consul_web_ui.png b/website/assets/img/consul_web_ui.png new file mode 100644 index 0000000000000000000000000000000000000000..087d9031f6a78e5c7760c2384c46d3feb7336876 GIT binary patch literal 83721 zcma(22Ut_v(l`#IsMrxj5kabg)JX3HL_nlTk>0C9sG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ljV%RjE6PRtsqtD>^EZC#}fJM;?JVgokY zYfY9nynk<7?9=*cP;bzKSl{)&On_orkmp=-OJQuhVoJw@5}o0fk83*cDbo6d<}zb6 zTMo2cI08$uULkb(!((mAftagH=kLrJ^V4&4$h~vBGZ-y{WBV{i5w%LhpjG=;8~?83^j8ZU$TJ|2PktLl| zPt@&0#dat_h$;wt>4|VV=d2Dd4P+ecWXabA{zD`wEaDl8$pIwJP$Oy9fr?AT!g{Pk9`@7?Cxbugc2-Tdy zuLZW%4**B>UhLfTbTE(~tDeDkpF2GL;U+2s0O%oYpBr?SRnB;KT0s{$0_(I!@~Oho z6}A3AmiyWw*J?-~O%cfRedbbwgqZ^SgqgXy(3{$fI^p39WMD&W4dPqzmtN3T%de=Y zSdx&ImVOA&4l$DQo@By&oOZ>Si_vJP6Y?~v0-(^P_ug+4qV*GKvjl@) z(VjB_Go8cA32f9wvVHLT$al&rz8UcI_h z4ArW^a3W@T@$-;k@@^gJ2Yg-fsd5;s`c%tXG46^@OTtVf4Tso@+3YVITW>@LKFV5M zc&Nd@l0&_@L)Iyn30K$JJ%qi#owsXSLKs<-{i<}tj-WZmgwd|79`qUxGTWJ)x@B@Z z<5p@TTqf|(TIz(S7}K}A7Nn+@POvE=W(vs(c6)WTUj$gUtuqo8wME`u$bSpr3Jv#G zmuxe?z@A)}>?Xf6=2z+xwX4qC`7vT61MdY6t>Yeedz;$R1=pL)mwU2CMa*

vTLD zQ{!~5Vo$X-W^@~Qae9M8C2l!C+U<9$Cuc`i;bJf)n<8q)*_$w!>t;zZ;l579%G%S| X*)%EN1lUSz*8Ichh~X3cvp4<;(()Co literal 0 HcmV?d00001 diff --git a/website/assets/img/docs-sidebar-chevron-active.svg b/website/assets/img/docs-sidebar-chevron-active.svg new file mode 100644 index 0000000000..355fc13b40 --- /dev/null +++ b/website/assets/img/docs-sidebar-chevron-active.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website/assets/img/docs-sidebar-chevron.svg b/website/assets/img/docs-sidebar-chevron.svg new file mode 100644 index 0000000000..5ecaf6c453 --- /dev/null +++ b/website/assets/img/docs-sidebar-chevron.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website/assets/img/download.svg b/website/assets/img/download.svg new file mode 100644 index 0000000000..7eb656831a --- /dev/null +++ b/website/assets/img/download.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website/assets/img/fastly.svg b/website/assets/img/fastly.svg new file mode 100644 index 0000000000..9fbed41f49 --- /dev/null +++ b/website/assets/img/fastly.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website/assets/img/fastly_logo.png b/website/assets/img/fastly_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..de82b3c0d00b2c16c2a04c6c4616cfff43ddfc77 GIT binary patch literal 3995 zcmV;M4`lF(P)U_it$8!5;ee@o$l)H-MAtGB9VuNr+_Dl-~;6l1%n5Qf)C{IzBv@HhbJhg zU_|8*F&8VkWEN-{JuV3@6JwDPtWWQSp1bK7uPyXT%e z6b=2Mk|~FfbKMjhY@r>W0V@NRv^=_S;d9W5-w;Fu)U*!DIxNJ&8L%>7 zNed*;$zztmj&wp1@Wu;ZMlHVc-%PX?@Q1XvYz%9p}*#1C}eqn_BP1 zZ#%9R;uWrh7%k|g4NZiu)|lptyv2jBtZLe83ZT-^qMaKfi(cBatmh$Cx?KjWnUNxA ztAOPUiKV^Nzb>DDNy*gSRWkH*978y6%RBfT0q*O(AizBwJqHW)B($r9d!`YXT`Hu| z{Tv~N{Q3>?2fXhd#}w-@h!s$y2*S0Bt3yXIKL5+bK)R-Wo@P&e48=fK7gaK`WND5$r z+k>AB66`w0Aknt7#=>V>sm}Ha?a)MtBE%cehUIu>ob}i6Tp8qn+SOYM|6Yv)@cz97 zA%pV(+If_4odC=Af74vs6empPn+LK*{>UPvW4FL6TAI-?Szmgp;Wv?V(@@uV8#8ZweW2WWEnv+Qx4^>hCrYCwq-5S*(E_Yr^iUtedl#}%|0uKa83xv4hOryO z{|Z$D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!I9ry1Yv@&H(-W{7)-iYf(CXwdP&uNl#1maiJvBKXrVw}2 zsj?;B>!J~8{Ke?RRiMA4zU3a{bXd0;x1*lcGDG&p?7mjnE-iUu1P72?mMD3^m`~FR zq&`^0`*FP{?Aw)~i(E1az9*hT(UtFLNEanI7P;Ncfzn)LKS{w6O6P!eCrpqNaXo?3I+vAgw={!)Yjby5 zzJqB30^op7>+>f?Rx?{GB_c{2kI+$;xC9(S3xa>;VS0 z@%cuW|Np_YUJFm~N%o0}({fqK%H+ayAZBn>38Ik7Ah$zDE91sZ?mWs$Rwftb-#bz6 zSPBZ3M{&QuQzt7~VQI~}W#&Vga8=C;kCxJPk;_U}B(b}toyC3Q%m{Aa<%xi~tYk%2 zcnnigVA%!L13--m&I?P%^k=f(>r3zPu5GL}mJFy20t{{w7qpjU8vaYFzA002ovPDHLkV1kfk Bx3mBN literal 0 HcmV?d00001 diff --git a/website/source/assets/images/favicons/android-chrome-192x192.png b/website/assets/img/favicons/android-chrome-192x192.png similarity index 100% rename from website/source/assets/images/favicons/android-chrome-192x192.png rename to website/assets/img/favicons/android-chrome-192x192.png diff --git a/website/source/assets/images/favicons/android-chrome-512x512.png b/website/assets/img/favicons/android-chrome-512x512.png similarity index 100% rename from website/source/assets/images/favicons/android-chrome-512x512.png rename to website/assets/img/favicons/android-chrome-512x512.png diff --git a/website/source/assets/images/favicons/apple-touch-icon.png b/website/assets/img/favicons/apple-touch-icon.png similarity index 100% rename from website/source/assets/images/favicons/apple-touch-icon.png rename to website/assets/img/favicons/apple-touch-icon.png diff --git a/website/source/assets/images/favicons/favicon-16x16.png b/website/assets/img/favicons/favicon-16x16.png similarity index 100% rename from website/source/assets/images/favicons/favicon-16x16.png rename to website/assets/img/favicons/favicon-16x16.png diff --git a/website/source/assets/images/favicons/favicon-32x32.png b/website/assets/img/favicons/favicon-32x32.png similarity index 100% rename from website/source/assets/images/favicons/favicon-32x32.png rename to website/assets/img/favicons/favicon-32x32.png diff --git a/website/assets/img/favicons/favicon.ico b/website/assets/img/favicons/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..f8fcb4732c5a56f8936afb861bd11a654234b881 GIT binary patch literal 15086 zcmeI232;@_8OLvA-@=k2vL@_N5Ckd}L?58gS}8M%vI$M-IKUvbh0>PJ2&qu9Eous* zvW-O$s;DhhYHL|T(+Y}8?Q|$bgeV2A5qK4m03o-(|I0nklb84IdpEpbJ8fou`Of-% z-`UT(iQ{BAb)0LiagaIAGu<6$pyN0>IbOVl;~XNb1ycFb>pIRN3gl9TDo#EqJ@V77 zQvCmS@*Y^&b6RFdrU+wXhDJfW`1lxCOdGgU{D%$H9l@o}0F6QGyC-}NehP0wytXL4OS=3=R}a_$@%%0&eHjdbhCysn zzBNn$^|zUe|0Fyzh#tSP=xPrd|5)EO4obffI4x`bL;V(TFC2vLLR!uX^fZB=L#*%G zZ?uqZ>4oJxx*r@i^H#pa-Q(*es;(o z3?Er_RCf<_@~c-HdDv_S8^QQrN_bErTjXiHbeA#ZCAD71C8|@~>Dbm>UJp78b!SPq z-;viDw2#^T|CV^u+V;~=KlbZ^#=>`RCI2q4&)9RsC;I8Gtvu{%PYraRqx=f6`+gts z_O<0>BE8t`53ArQ7;efDZUf(gr4WMXco5coWjEOVuO=R-4`gdX$H$w&C|C#&!!$^B z@78&|!}8;Agf*`<9=fX-|K1_o+iIKM5&y9ARc?mKPgUY)C)faI!1bs=?t{_E^kB0q z9I^b+{xKAqf$nz3{|dsBj6TBGgU(lze}?b~lb?#jzecbYjNh@cguMPn7y7l|T>-h! zSm~0m0gNB75N-$Rf1N=l{V?IamM)#qTCXPmIAMLhNcjifhCtZIf3>I3C`7;BLVpI` zJJ&#Kf@on_a-(KeZ3u4B9{60OOz9afk7Xu*T+9 zD_`YSnEW6TAKQY~@>B3UJO~59*LT^#ruzRy%a6Yj*7>D-{nJ+Z2ZXORei7DQywb{- z{~Dtje~*#B5ct~~HoL(h&|NrsUnZp@&SDJQ{_YK`{iTOZcVpOsp`YF{eJld@r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1 zPh+gH?+;@@b7ZzB??md&mjxHqUfbrS2v>eD;CB%pSey*ELZ2A2!){r@1vgAG-%oZO zfnBb95?t6)SYFVwuq@QCFx<~A47YR%XDLm2UYV1sqq@=|UD8>R;Y4giY>}=XJy7*o zA_t=1DNM6|}c>gQV+?GI~R5?6hXIRyB7tXG>rm+yGVX$ha5zA-xyq zzW51jf|)QH#=?)`0BnP5_hQo8gZ8ucU>sEY+ZJh^p)cs1R5;VJt^GvvKb8OaGv~=T z)u)d7<{)T2$8DRjF9g2gjg? zsZV*`<=27ku%&sORuB78&;9c$qr1u^=mYtnwUwy;GhY1@dD%~npuX+ Z$7#peS^#;Dvz@Tgl&3N(t2!>>e*=D5>!ttz literal 0 HcmV?d00001 diff --git a/website/source/assets/images/favicons/mstile-150x150.png b/website/assets/img/favicons/mstile-150x150.png similarity index 100% rename from website/source/assets/images/favicons/mstile-150x150.png rename to website/assets/img/favicons/mstile-150x150.png diff --git a/website/source/assets/images/favicons/safari-pinned-tab.svg b/website/assets/img/favicons/safari-pinned-tab.svg similarity index 100% rename from website/source/assets/images/favicons/safari-pinned-tab.svg rename to website/assets/img/favicons/safari-pinned-tab.svg diff --git a/website/assets/img/feather/check-circle.svg b/website/assets/img/feather/check-circle.svg new file mode 100644 index 0000000000..2e46b8a487 --- /dev/null +++ b/website/assets/img/feather/check-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website/assets/img/feather/icon_chevron-up.svg b/website/assets/img/feather/icon_chevron-up.svg new file mode 100644 index 0000000000..eccabe8fb0 --- /dev/null +++ b/website/assets/img/feather/icon_chevron-up.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/website/assets/img/feather/icon_link.svg b/website/assets/img/feather/icon_link.svg new file mode 100644 index 0000000000..9c4fa84e2b --- /dev/null +++ b/website/assets/img/feather/icon_link.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/website/assets/img/feather/icon_list-menu.svg b/website/assets/img/feather/icon_list-menu.svg new file mode 100644 index 0000000000..380a10b6d9 --- /dev/null +++ b/website/assets/img/feather/icon_list-menu.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/website/assets/img/feature-config.svg b/website/assets/img/feature-config.svg new file mode 100644 index 0000000000..216afac0e0 --- /dev/null +++ b/website/assets/img/feature-config.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/website/assets/img/feature-discovery.svg b/website/assets/img/feature-discovery.svg new file mode 100644 index 0000000000..a663eaebe6 --- /dev/null +++ b/website/assets/img/feature-discovery.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website/assets/img/feature-health.svg b/website/assets/img/feature-health.svg new file mode 100644 index 0000000000..16a4864a15 --- /dev/null +++ b/website/assets/img/feature-health.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website/assets/img/feature-multi.svg b/website/assets/img/feature-multi.svg new file mode 100644 index 0000000000..96376e2e93 --- /dev/null +++ b/website/assets/img/feature-multi.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/website/source/assets/images/graphic-audit.png b/website/assets/img/graphic-audit.png similarity index 100% rename from website/source/assets/images/graphic-audit.png rename to website/assets/img/graphic-audit.png diff --git a/website/source/assets/images/graphic-audit@2x.png b/website/assets/img/graphic-audit@2x.png similarity index 100% rename from website/source/assets/images/graphic-audit@2x.png rename to website/assets/img/graphic-audit@2x.png diff --git a/website/source/assets/images/graphic-crud.png b/website/assets/img/graphic-crud.png similarity index 100% rename from website/source/assets/images/graphic-crud.png rename to website/assets/img/graphic-crud.png diff --git a/website/source/assets/images/graphic-crud@2x.png b/website/assets/img/graphic-crud@2x.png similarity index 100% rename from website/source/assets/images/graphic-crud@2x.png rename to website/assets/img/graphic-crud@2x.png diff --git a/website/source/assets/images/graphic-key.png b/website/assets/img/graphic-key.png similarity index 100% rename from website/source/assets/images/graphic-key.png rename to website/assets/img/graphic-key.png diff --git a/website/source/assets/images/graphic-key@2x.png b/website/assets/img/graphic-key@2x.png similarity index 100% rename from website/source/assets/images/graphic-key@2x.png rename to website/assets/img/graphic-key@2x.png diff --git a/website/assets/img/green-check.svg b/website/assets/img/green-check.svg new file mode 100644 index 0000000000..45b5cca885 --- /dev/null +++ b/website/assets/img/green-check.svg @@ -0,0 +1 @@ +a \ No newline at end of file diff --git a/website/assets/img/hashicorp-logos/consul-white.svg b/website/assets/img/hashicorp-logos/consul-white.svg new file mode 100644 index 0000000000..20defb4e9b --- /dev/null +++ b/website/assets/img/hashicorp-logos/consul-white.svg @@ -0,0 +1 @@ +Consul Logo White \ No newline at end of file diff --git a/website/assets/img/hashicorp-logos/h-logo.svg b/website/assets/img/hashicorp-logos/h-logo.svg new file mode 100644 index 0000000000..367f586f95 --- /dev/null +++ b/website/assets/img/hashicorp-logos/h-logo.svg @@ -0,0 +1 @@ +Group \ No newline at end of file diff --git a/website/assets/img/hashicorp-logos/hashicorp-logo.svg b/website/assets/img/hashicorp-logos/hashicorp-logo.svg new file mode 100644 index 0000000000..5acfdb95c5 --- /dev/null +++ b/website/assets/img/hashicorp-logos/hashicorp-logo.svg @@ -0,0 +1 @@ +HashiCorp Logo \ No newline at end of file diff --git a/website/assets/img/hashicorp-logos/nomad-white.svg b/website/assets/img/hashicorp-logos/nomad-white.svg new file mode 100644 index 0000000000..b97dc55e7a --- /dev/null +++ b/website/assets/img/hashicorp-logos/nomad-white.svg @@ -0,0 +1 @@ +Nomad Logo White \ No newline at end of file diff --git a/website/assets/img/hashicorp-logos/terraform-white.svg b/website/assets/img/hashicorp-logos/terraform-white.svg new file mode 100644 index 0000000000..d91912a343 --- /dev/null +++ b/website/assets/img/hashicorp-logos/terraform-white.svg @@ -0,0 +1 @@ +Terraform Logo White \ No newline at end of file diff --git a/website/assets/img/hashicorp-logos/vault-white.svg b/website/assets/img/hashicorp-logos/vault-white.svg new file mode 100644 index 0000000000..e8f3f4ff8e --- /dev/null +++ b/website/assets/img/hashicorp-logos/vault-white.svg @@ -0,0 +1 @@ +Vault Logo White \ No newline at end of file diff --git a/website/source/assets/images/hero.png b/website/assets/img/hero.png similarity index 100% rename from website/source/assets/images/hero.png rename to website/assets/img/hero.png diff --git a/website/source/assets/images/hero@2x.png b/website/assets/img/hero@2x.png similarity index 100% rename from website/source/assets/images/hero@2x.png rename to website/assets/img/hero@2x.png diff --git a/website/source/assets/images/icon-terminal.png b/website/assets/img/icon-terminal.png similarity index 100% rename from website/source/assets/images/icon-terminal.png rename to website/assets/img/icon-terminal.png diff --git a/website/source/assets/images/icon-terminal@2x.png b/website/assets/img/icon-terminal@2x.png similarity index 100% rename from website/source/assets/images/icon-terminal@2x.png rename to website/assets/img/icon-terminal@2x.png diff --git a/website/assets/img/icons/close-icon.svg b/website/assets/img/icons/close-icon.svg new file mode 100644 index 0000000000..91f0779ec9 --- /dev/null +++ b/website/assets/img/icons/close-icon.svg @@ -0,0 +1 @@ +Group 4 \ No newline at end of file diff --git a/website/assets/img/icons/icon_archlinux.svg b/website/assets/img/icons/icon_archlinux.svg new file mode 100644 index 0000000000..6249f96578 --- /dev/null +++ b/website/assets/img/icons/icon_archlinux.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/website/assets/img/icons/icon_centos.svg b/website/assets/img/icons/icon_centos.svg new file mode 100644 index 0000000000..2c5aa0dd37 --- /dev/null +++ b/website/assets/img/icons/icon_centos.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/website/assets/img/icons/icon_darwin.svg b/website/assets/img/icons/icon_darwin.svg new file mode 100644 index 0000000000..bbdb31f5f0 --- /dev/null +++ b/website/assets/img/icons/icon_darwin.svg @@ -0,0 +1,3 @@ + + + diff --git a/website/assets/img/icons/icon_debian.svg b/website/assets/img/icons/icon_debian.svg new file mode 100644 index 0000000000..91b24617b8 --- /dev/null +++ b/website/assets/img/icons/icon_debian.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/website/assets/img/icons/icon_freebsd.svg b/website/assets/img/icons/icon_freebsd.svg new file mode 100644 index 0000000000..95ea3e7d7f --- /dev/null +++ b/website/assets/img/icons/icon_freebsd.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/website/assets/img/icons/icon_hashios.svg b/website/assets/img/icons/icon_hashios.svg new file mode 100644 index 0000000000..d8ce37254a --- /dev/null +++ b/website/assets/img/icons/icon_hashios.svg @@ -0,0 +1,4 @@ + + + + diff --git a/website/assets/img/icons/icon_linux.svg b/website/assets/img/icons/icon_linux.svg new file mode 100644 index 0000000000..47e73ce2ab --- /dev/null +++ b/website/assets/img/icons/icon_linux.svg @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website/assets/img/icons/icon_macosx.svg b/website/assets/img/icons/icon_macosx.svg new file mode 100644 index 0000000000..bbdb31f5f0 --- /dev/null +++ b/website/assets/img/icons/icon_macosx.svg @@ -0,0 +1,3 @@ + + + diff --git a/website/assets/img/icons/icon_netbsd.svg b/website/assets/img/icons/icon_netbsd.svg new file mode 100644 index 0000000000..5b6c5b17e9 --- /dev/null +++ b/website/assets/img/icons/icon_netbsd.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website/assets/img/icons/icon_openbsd.svg b/website/assets/img/icons/icon_openbsd.svg new file mode 100644 index 0000000000..e24f73e68e --- /dev/null +++ b/website/assets/img/icons/icon_openbsd.svg @@ -0,0 +1,742 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website/assets/img/icons/icon_rpm.svg b/website/assets/img/icons/icon_rpm.svg new file mode 100644 index 0000000000..2c5aa0dd37 --- /dev/null +++ b/website/assets/img/icons/icon_rpm.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/website/assets/img/icons/icon_solaris.svg b/website/assets/img/icons/icon_solaris.svg new file mode 100644 index 0000000000..cb1a8be995 --- /dev/null +++ b/website/assets/img/icons/icon_solaris.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/website/assets/img/icons/icon_windows.svg b/website/assets/img/icons/icon_windows.svg new file mode 100644 index 0000000000..5596f7f25a --- /dev/null +++ b/website/assets/img/icons/icon_windows.svg @@ -0,0 +1,3 @@ + + + diff --git a/website/source/assets/images/layers.png b/website/assets/img/layers.png similarity index 100% rename from website/source/assets/images/layers.png rename to website/assets/img/layers.png diff --git a/website/source/assets/images/logo-hashicorp.svg b/website/assets/img/logo-hashicorp.svg similarity index 100% rename from website/source/assets/images/logo-hashicorp.svg rename to website/assets/img/logo-hashicorp.svg diff --git a/website/source/assets/images/logo-text.svg b/website/assets/img/logo-text.svg similarity index 100% rename from website/source/assets/images/logo-text.svg rename to website/assets/img/logo-text.svg diff --git a/website/assets/img/logo.svg b/website/assets/img/logo.svg new file mode 100644 index 0000000000..6df7771249 --- /dev/null +++ b/website/assets/img/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website/source/assets/images/news/webinar-register-now.png b/website/assets/img/news/webinar-register-now.png similarity index 100% rename from website/source/assets/images/news/webinar-register-now.png rename to website/assets/img/news/webinar-register-now.png diff --git a/website/source/assets/images/og-image.png b/website/assets/img/og-image.png similarity index 100% rename from website/source/assets/images/og-image.png rename to website/assets/img/og-image.png diff --git a/website/assets/img/social/github.svg b/website/assets/img/social/github.svg new file mode 100644 index 0000000000..3c14141cc2 --- /dev/null +++ b/website/assets/img/social/github.svg @@ -0,0 +1 @@ +Octocat Copy 3 \ No newline at end of file diff --git a/website/assets/img/social/googleplus.svg b/website/assets/img/social/googleplus.svg new file mode 100644 index 0000000000..3063de6db6 --- /dev/null +++ b/website/assets/img/social/googleplus.svg @@ -0,0 +1 @@ +G+ Copy 3 \ No newline at end of file diff --git a/website/assets/img/social/linkedin.svg b/website/assets/img/social/linkedin.svg new file mode 100644 index 0000000000..4c48a7a5b9 --- /dev/null +++ b/website/assets/img/social/linkedin.svg @@ -0,0 +1 @@ +Path Copy 9 \ No newline at end of file diff --git a/website/assets/img/social/twitter.svg b/website/assets/img/social/twitter.svg new file mode 100644 index 0000000000..d18e17bca8 --- /dev/null +++ b/website/assets/img/social/twitter.svg @@ -0,0 +1 @@ +Path Copy 7 \ No newline at end of file diff --git a/website/assets/img/social/youtube.svg b/website/assets/img/social/youtube.svg new file mode 100644 index 0000000000..ced3b3bd72 --- /dev/null +++ b/website/assets/img/social/youtube.svg @@ -0,0 +1 @@ +Path Copy 8 \ No newline at end of file diff --git a/website/source/assets/images/vault-acl-templating-2.png b/website/assets/img/vault-acl-templating-2.png similarity index 100% rename from website/source/assets/images/vault-acl-templating-2.png rename to website/assets/img/vault-acl-templating-2.png diff --git a/website/source/assets/images/vault-acl-templating-3.png b/website/assets/img/vault-acl-templating-3.png similarity index 100% rename from website/source/assets/images/vault-acl-templating-3.png rename to website/assets/img/vault-acl-templating-3.png diff --git a/website/source/assets/images/vault-acl-templating.png b/website/assets/img/vault-acl-templating.png similarity index 100% rename from website/source/assets/images/vault-acl-templating.png rename to website/assets/img/vault-acl-templating.png diff --git a/website/source/assets/images/vault-approle-tf-chef-2.png b/website/assets/img/vault-approle-tf-chef-2.png similarity index 100% rename from website/source/assets/images/vault-approle-tf-chef-2.png rename to website/assets/img/vault-approle-tf-chef-2.png diff --git a/website/source/assets/images/vault-approle-tf-chef-3.png b/website/assets/img/vault-approle-tf-chef-3.png similarity index 100% rename from website/source/assets/images/vault-approle-tf-chef-3.png rename to website/assets/img/vault-approle-tf-chef-3.png diff --git a/website/source/assets/images/vault-approle-tf-chef.png b/website/assets/img/vault-approle-tf-chef.png similarity index 100% rename from website/source/assets/images/vault-approle-tf-chef.png rename to website/assets/img/vault-approle-tf-chef.png diff --git a/website/source/assets/images/vault-approle-workflow.png b/website/assets/img/vault-approle-workflow.png similarity index 100% rename from website/source/assets/images/vault-approle-workflow.png rename to website/assets/img/vault-approle-workflow.png diff --git a/website/source/assets/images/vault-approle-workflow2.png b/website/assets/img/vault-approle-workflow2.png similarity index 100% rename from website/source/assets/images/vault-approle-workflow2.png rename to website/assets/img/vault-approle-workflow2.png diff --git a/website/source/assets/images/vault-approle-youtube.png b/website/assets/img/vault-approle-youtube.png similarity index 100% rename from website/source/assets/images/vault-approle-youtube.png rename to website/assets/img/vault-approle-youtube.png diff --git a/website/source/assets/images/vault-auth-method-2.png b/website/assets/img/vault-auth-method-2.png similarity index 100% rename from website/source/assets/images/vault-auth-method-2.png rename to website/assets/img/vault-auth-method-2.png diff --git a/website/source/assets/images/vault-auth-method-3.png b/website/assets/img/vault-auth-method-3.png similarity index 100% rename from website/source/assets/images/vault-auth-method-3.png rename to website/assets/img/vault-auth-method-3.png diff --git a/website/source/assets/images/vault-auth-method-4.png b/website/assets/img/vault-auth-method-4.png similarity index 100% rename from website/source/assets/images/vault-auth-method-4.png rename to website/assets/img/vault-auth-method-4.png diff --git a/website/source/assets/images/vault-auth-method.png b/website/assets/img/vault-auth-method.png similarity index 100% rename from website/source/assets/images/vault-auth-method.png rename to website/assets/img/vault-auth-method.png diff --git a/website/source/assets/images/vault-auth-workflow.svg b/website/assets/img/vault-auth-workflow.svg similarity index 100% rename from website/source/assets/images/vault-auth-workflow.svg rename to website/assets/img/vault-auth-workflow.svg diff --git a/website/source/assets/images/vault-autounseal-2.png b/website/assets/img/vault-autounseal-2.png similarity index 100% rename from website/source/assets/images/vault-autounseal-2.png rename to website/assets/img/vault-autounseal-2.png diff --git a/website/source/assets/images/vault-autounseal-3.png b/website/assets/img/vault-autounseal-3.png similarity index 100% rename from website/source/assets/images/vault-autounseal-3.png rename to website/assets/img/vault-autounseal-3.png diff --git a/website/source/assets/images/vault-autounseal-4.png b/website/assets/img/vault-autounseal-4.png similarity index 100% rename from website/source/assets/images/vault-autounseal-4.png rename to website/assets/img/vault-autounseal-4.png diff --git a/website/source/assets/images/vault-autounseal.png b/website/assets/img/vault-autounseal.png similarity index 100% rename from website/source/assets/images/vault-autounseal.png rename to website/assets/img/vault-autounseal.png diff --git a/website/source/assets/images/vault-aws-ec2-auth-flow.png b/website/assets/img/vault-aws-ec2-auth-flow.png similarity index 100% rename from website/source/assets/images/vault-aws-ec2-auth-flow.png rename to website/assets/img/vault-aws-ec2-auth-flow.png diff --git a/website/source/assets/images/vault-ctrl-grp-1.png b/website/assets/img/vault-ctrl-grp-1.png similarity index 100% rename from website/source/assets/images/vault-ctrl-grp-1.png rename to website/assets/img/vault-ctrl-grp-1.png diff --git a/website/source/assets/images/vault-ctrl-grp-2.png b/website/assets/img/vault-ctrl-grp-2.png similarity index 100% rename from website/source/assets/images/vault-ctrl-grp-2.png rename to website/assets/img/vault-ctrl-grp-2.png diff --git a/website/source/assets/images/vault-ctrl-grp-3.png b/website/assets/img/vault-ctrl-grp-3.png similarity index 100% rename from website/source/assets/images/vault-ctrl-grp-3.png rename to website/assets/img/vault-ctrl-grp-3.png diff --git a/website/source/assets/images/vault-ctrl-grp-4.png b/website/assets/img/vault-ctrl-grp-4.png similarity index 100% rename from website/source/assets/images/vault-ctrl-grp-4.png rename to website/assets/img/vault-ctrl-grp-4.png diff --git a/website/source/assets/images/vault-ctrl-grp-5.png b/website/assets/img/vault-ctrl-grp-5.png similarity index 100% rename from website/source/assets/images/vault-ctrl-grp-5.png rename to website/assets/img/vault-ctrl-grp-5.png diff --git a/website/source/assets/images/vault-ctrl-grp-6.png b/website/assets/img/vault-ctrl-grp-6.png similarity index 100% rename from website/source/assets/images/vault-ctrl-grp-6.png rename to website/assets/img/vault-ctrl-grp-6.png diff --git a/website/source/assets/images/vault-ctrl-grp-7.png b/website/assets/img/vault-ctrl-grp-7.png similarity index 100% rename from website/source/assets/images/vault-ctrl-grp-7.png rename to website/assets/img/vault-ctrl-grp-7.png diff --git a/website/source/assets/images/vault-cubbyhole.png b/website/assets/img/vault-cubbyhole.png similarity index 100% rename from website/source/assets/images/vault-cubbyhole.png rename to website/assets/img/vault-cubbyhole.png diff --git a/website/source/assets/images/vault-db-root-rotation.png b/website/assets/img/vault-db-root-rotation.png similarity index 100% rename from website/source/assets/images/vault-db-root-rotation.png rename to website/assets/img/vault-db-root-rotation.png diff --git a/website/source/assets/images/vault-dr-0.png b/website/assets/img/vault-dr-0.png similarity index 100% rename from website/source/assets/images/vault-dr-0.png rename to website/assets/img/vault-dr-0.png diff --git a/website/source/assets/images/vault-dr-1.png b/website/assets/img/vault-dr-1.png similarity index 100% rename from website/source/assets/images/vault-dr-1.png rename to website/assets/img/vault-dr-1.png diff --git a/website/source/assets/images/vault-dr-10.png b/website/assets/img/vault-dr-10.png similarity index 100% rename from website/source/assets/images/vault-dr-10.png rename to website/assets/img/vault-dr-10.png diff --git a/website/source/assets/images/vault-dr-11.png b/website/assets/img/vault-dr-11.png similarity index 100% rename from website/source/assets/images/vault-dr-11.png rename to website/assets/img/vault-dr-11.png diff --git a/website/source/assets/images/vault-dr-12.png b/website/assets/img/vault-dr-12.png similarity index 100% rename from website/source/assets/images/vault-dr-12.png rename to website/assets/img/vault-dr-12.png diff --git a/website/source/assets/images/vault-dr-13.png b/website/assets/img/vault-dr-13.png similarity index 100% rename from website/source/assets/images/vault-dr-13.png rename to website/assets/img/vault-dr-13.png diff --git a/website/source/assets/images/vault-dr-2.png b/website/assets/img/vault-dr-2.png similarity index 100% rename from website/source/assets/images/vault-dr-2.png rename to website/assets/img/vault-dr-2.png diff --git a/website/source/assets/images/vault-dr-3.png b/website/assets/img/vault-dr-3.png similarity index 100% rename from website/source/assets/images/vault-dr-3.png rename to website/assets/img/vault-dr-3.png diff --git a/website/source/assets/images/vault-dr-4.png b/website/assets/img/vault-dr-4.png similarity index 100% rename from website/source/assets/images/vault-dr-4.png rename to website/assets/img/vault-dr-4.png diff --git a/website/source/assets/images/vault-dr-5.2.png b/website/assets/img/vault-dr-5.2.png similarity index 100% rename from website/source/assets/images/vault-dr-5.2.png rename to website/assets/img/vault-dr-5.2.png diff --git a/website/source/assets/images/vault-dr-5.png b/website/assets/img/vault-dr-5.png similarity index 100% rename from website/source/assets/images/vault-dr-5.png rename to website/assets/img/vault-dr-5.png diff --git a/website/source/assets/images/vault-dr-6.png b/website/assets/img/vault-dr-6.png similarity index 100% rename from website/source/assets/images/vault-dr-6.png rename to website/assets/img/vault-dr-6.png diff --git a/website/source/assets/images/vault-dr-7.png b/website/assets/img/vault-dr-7.png similarity index 100% rename from website/source/assets/images/vault-dr-7.png rename to website/assets/img/vault-dr-7.png diff --git a/website/source/assets/images/vault-dr-8.png b/website/assets/img/vault-dr-8.png similarity index 100% rename from website/source/assets/images/vault-dr-8.png rename to website/assets/img/vault-dr-8.png diff --git a/website/source/assets/images/vault-dr-9-1.png b/website/assets/img/vault-dr-9-1.png similarity index 100% rename from website/source/assets/images/vault-dr-9-1.png rename to website/assets/img/vault-dr-9-1.png diff --git a/website/source/assets/images/vault-dr-9.png b/website/assets/img/vault-dr-9.png similarity index 100% rename from website/source/assets/images/vault-dr-9.png rename to website/assets/img/vault-dr-9.png diff --git a/website/source/assets/images/vault-dynamic-secrets.png b/website/assets/img/vault-dynamic-secrets.png similarity index 100% rename from website/source/assets/images/vault-dynamic-secrets.png rename to website/assets/img/vault-dynamic-secrets.png diff --git a/website/source/assets/images/vault-eaas.png b/website/assets/img/vault-eaas.png similarity index 100% rename from website/source/assets/images/vault-eaas.png rename to website/assets/img/vault-eaas.png diff --git a/website/source/assets/images/vault-encryption.png b/website/assets/img/vault-encryption.png similarity index 100% rename from website/source/assets/images/vault-encryption.png rename to website/assets/img/vault-encryption.png diff --git a/website/source/assets/images/vault-entity-1.png b/website/assets/img/vault-entity-1.png similarity index 100% rename from website/source/assets/images/vault-entity-1.png rename to website/assets/img/vault-entity-1.png diff --git a/website/source/assets/images/vault-entity-10.png b/website/assets/img/vault-entity-10.png similarity index 100% rename from website/source/assets/images/vault-entity-10.png rename to website/assets/img/vault-entity-10.png diff --git a/website/source/assets/images/vault-entity-2.png b/website/assets/img/vault-entity-2.png similarity index 100% rename from website/source/assets/images/vault-entity-2.png rename to website/assets/img/vault-entity-2.png diff --git a/website/source/assets/images/vault-entity-3.png b/website/assets/img/vault-entity-3.png similarity index 100% rename from website/source/assets/images/vault-entity-3.png rename to website/assets/img/vault-entity-3.png diff --git a/website/source/assets/images/vault-entity-4.png b/website/assets/img/vault-entity-4.png similarity index 100% rename from website/source/assets/images/vault-entity-4.png rename to website/assets/img/vault-entity-4.png diff --git a/website/source/assets/images/vault-entity-5.png b/website/assets/img/vault-entity-5.png similarity index 100% rename from website/source/assets/images/vault-entity-5.png rename to website/assets/img/vault-entity-5.png diff --git a/website/source/assets/images/vault-entity-6.png b/website/assets/img/vault-entity-6.png similarity index 100% rename from website/source/assets/images/vault-entity-6.png rename to website/assets/img/vault-entity-6.png diff --git a/website/source/assets/images/vault-entity-7.png b/website/assets/img/vault-entity-7.png similarity index 100% rename from website/source/assets/images/vault-entity-7.png rename to website/assets/img/vault-entity-7.png diff --git a/website/source/assets/images/vault-entity-9.png b/website/assets/img/vault-entity-9.png similarity index 100% rename from website/source/assets/images/vault-entity-9.png rename to website/assets/img/vault-entity-9.png diff --git a/website/source/assets/images/vault-gcp-gce-auth-workflow.svg b/website/assets/img/vault-gcp-gce-auth-workflow.svg similarity index 100% rename from website/source/assets/images/vault-gcp-gce-auth-workflow.svg rename to website/assets/img/vault-gcp-gce-auth-workflow.svg diff --git a/website/source/assets/images/vault-gcp-iam-auth-workflow.svg b/website/assets/img/vault-gcp-iam-auth-workflow.svg similarity index 100% rename from website/source/assets/images/vault-gcp-iam-auth-workflow.svg rename to website/assets/img/vault-gcp-iam-auth-workflow.svg diff --git a/website/source/assets/images/vault-ha-consul-2.png b/website/assets/img/vault-ha-consul-2.png similarity index 100% rename from website/source/assets/images/vault-ha-consul-2.png rename to website/assets/img/vault-ha-consul-2.png diff --git a/website/source/assets/images/vault-ha-consul-3.png b/website/assets/img/vault-ha-consul-3.png similarity index 100% rename from website/source/assets/images/vault-ha-consul-3.png rename to website/assets/img/vault-ha-consul-3.png diff --git a/website/source/assets/images/vault-ha-consul.png b/website/assets/img/vault-ha-consul.png similarity index 100% rename from website/source/assets/images/vault-ha-consul.png rename to website/assets/img/vault-ha-consul.png diff --git a/website/source/assets/images/vault-hsm-autounseal.png b/website/assets/img/vault-hsm-autounseal.png similarity index 100% rename from website/source/assets/images/vault-hsm-autounseal.png rename to website/assets/img/vault-hsm-autounseal.png diff --git a/website/source/assets/images/vault-java-demo-1.png b/website/assets/img/vault-java-demo-1.png similarity index 100% rename from website/source/assets/images/vault-java-demo-1.png rename to website/assets/img/vault-java-demo-1.png diff --git a/website/source/assets/images/vault-java-demo-10.png b/website/assets/img/vault-java-demo-10.png similarity index 100% rename from website/source/assets/images/vault-java-demo-10.png rename to website/assets/img/vault-java-demo-10.png diff --git a/website/source/assets/images/vault-java-demo-11.png b/website/assets/img/vault-java-demo-11.png similarity index 100% rename from website/source/assets/images/vault-java-demo-11.png rename to website/assets/img/vault-java-demo-11.png diff --git a/website/source/assets/images/vault-java-demo-2.png b/website/assets/img/vault-java-demo-2.png similarity index 100% rename from website/source/assets/images/vault-java-demo-2.png rename to website/assets/img/vault-java-demo-2.png diff --git a/website/source/assets/images/vault-java-demo-3.png b/website/assets/img/vault-java-demo-3.png similarity index 100% rename from website/source/assets/images/vault-java-demo-3.png rename to website/assets/img/vault-java-demo-3.png diff --git a/website/source/assets/images/vault-java-demo-4.png b/website/assets/img/vault-java-demo-4.png similarity index 100% rename from website/source/assets/images/vault-java-demo-4.png rename to website/assets/img/vault-java-demo-4.png diff --git a/website/source/assets/images/vault-java-demo-5.png b/website/assets/img/vault-java-demo-5.png similarity index 100% rename from website/source/assets/images/vault-java-demo-5.png rename to website/assets/img/vault-java-demo-5.png diff --git a/website/source/assets/images/vault-java-demo-6.png b/website/assets/img/vault-java-demo-6.png similarity index 100% rename from website/source/assets/images/vault-java-demo-6.png rename to website/assets/img/vault-java-demo-6.png diff --git a/website/source/assets/images/vault-java-demo-7.png b/website/assets/img/vault-java-demo-7.png similarity index 100% rename from website/source/assets/images/vault-java-demo-7.png rename to website/assets/img/vault-java-demo-7.png diff --git a/website/source/assets/images/vault-java-demo-8.png b/website/assets/img/vault-java-demo-8.png similarity index 100% rename from website/source/assets/images/vault-java-demo-8.png rename to website/assets/img/vault-java-demo-8.png diff --git a/website/source/assets/images/vault-java-demo-9.png b/website/assets/img/vault-java-demo-9.png similarity index 100% rename from website/source/assets/images/vault-java-demo-9.png rename to website/assets/img/vault-java-demo-9.png diff --git a/website/source/assets/images/vault-mount-filter-0.png b/website/assets/img/vault-mount-filter-0.png similarity index 100% rename from website/source/assets/images/vault-mount-filter-0.png rename to website/assets/img/vault-mount-filter-0.png diff --git a/website/source/assets/images/vault-mount-filter-10.png b/website/assets/img/vault-mount-filter-10.png similarity index 100% rename from website/source/assets/images/vault-mount-filter-10.png rename to website/assets/img/vault-mount-filter-10.png diff --git a/website/source/assets/images/vault-mount-filter-11.png b/website/assets/img/vault-mount-filter-11.png similarity index 100% rename from website/source/assets/images/vault-mount-filter-11.png rename to website/assets/img/vault-mount-filter-11.png diff --git a/website/source/assets/images/vault-mount-filter-12.png b/website/assets/img/vault-mount-filter-12.png similarity index 100% rename from website/source/assets/images/vault-mount-filter-12.png rename to website/assets/img/vault-mount-filter-12.png diff --git a/website/source/assets/images/vault-mount-filter-13.png b/website/assets/img/vault-mount-filter-13.png similarity index 100% rename from website/source/assets/images/vault-mount-filter-13.png rename to website/assets/img/vault-mount-filter-13.png diff --git a/website/source/assets/images/vault-mount-filter-2.png b/website/assets/img/vault-mount-filter-2.png similarity index 100% rename from website/source/assets/images/vault-mount-filter-2.png rename to website/assets/img/vault-mount-filter-2.png diff --git a/website/source/assets/images/vault-mount-filter-3.png b/website/assets/img/vault-mount-filter-3.png similarity index 100% rename from website/source/assets/images/vault-mount-filter-3.png rename to website/assets/img/vault-mount-filter-3.png diff --git a/website/source/assets/images/vault-mount-filter-4.png b/website/assets/img/vault-mount-filter-4.png similarity index 100% rename from website/source/assets/images/vault-mount-filter-4.png rename to website/assets/img/vault-mount-filter-4.png diff --git a/website/source/assets/images/vault-mount-filter-5.png b/website/assets/img/vault-mount-filter-5.png similarity index 100% rename from website/source/assets/images/vault-mount-filter-5.png rename to website/assets/img/vault-mount-filter-5.png diff --git a/website/source/assets/images/vault-mount-filter-6.png b/website/assets/img/vault-mount-filter-6.png similarity index 100% rename from website/source/assets/images/vault-mount-filter-6.png rename to website/assets/img/vault-mount-filter-6.png diff --git a/website/source/assets/images/vault-mount-filter-7.png b/website/assets/img/vault-mount-filter-7.png similarity index 100% rename from website/source/assets/images/vault-mount-filter-7.png rename to website/assets/img/vault-mount-filter-7.png diff --git a/website/source/assets/images/vault-mount-filter-8.png b/website/assets/img/vault-mount-filter-8.png similarity index 100% rename from website/source/assets/images/vault-mount-filter-8.png rename to website/assets/img/vault-mount-filter-8.png diff --git a/website/source/assets/images/vault-mount-filter-9.png b/website/assets/img/vault-mount-filter-9.png similarity index 100% rename from website/source/assets/images/vault-mount-filter-9.png rename to website/assets/img/vault-mount-filter-9.png diff --git a/website/source/assets/images/vault-mount-filter.png b/website/assets/img/vault-mount-filter.png similarity index 100% rename from website/source/assets/images/vault-mount-filter.png rename to website/assets/img/vault-mount-filter.png diff --git a/website/source/assets/images/vault-multi-tenant-1.png b/website/assets/img/vault-multi-tenant-1.png similarity index 100% rename from website/source/assets/images/vault-multi-tenant-1.png rename to website/assets/img/vault-multi-tenant-1.png diff --git a/website/source/assets/images/vault-multi-tenant-2.png b/website/assets/img/vault-multi-tenant-2.png similarity index 100% rename from website/source/assets/images/vault-multi-tenant-2.png rename to website/assets/img/vault-multi-tenant-2.png diff --git a/website/source/assets/images/vault-multi-tenant-3.png b/website/assets/img/vault-multi-tenant-3.png similarity index 100% rename from website/source/assets/images/vault-multi-tenant-3.png rename to website/assets/img/vault-multi-tenant-3.png diff --git a/website/source/assets/images/vault-multi-tenant-4.png b/website/assets/img/vault-multi-tenant-4.png similarity index 100% rename from website/source/assets/images/vault-multi-tenant-4.png rename to website/assets/img/vault-multi-tenant-4.png diff --git a/website/source/assets/images/vault-multi-tenant-5.png b/website/assets/img/vault-multi-tenant-5.png similarity index 100% rename from website/source/assets/images/vault-multi-tenant-5.png rename to website/assets/img/vault-multi-tenant-5.png diff --git a/website/source/assets/images/vault-multi-tenant-6.png b/website/assets/img/vault-multi-tenant-6.png similarity index 100% rename from website/source/assets/images/vault-multi-tenant-6.png rename to website/assets/img/vault-multi-tenant-6.png diff --git a/website/source/assets/images/vault-multi-tenant-7.png b/website/assets/img/vault-multi-tenant-7.png similarity index 100% rename from website/source/assets/images/vault-multi-tenant-7.png rename to website/assets/img/vault-multi-tenant-7.png diff --git a/website/source/assets/images/vault-multi-tenant-8.png b/website/assets/img/vault-multi-tenant-8.png similarity index 100% rename from website/source/assets/images/vault-multi-tenant-8.png rename to website/assets/img/vault-multi-tenant-8.png diff --git a/website/source/assets/images/vault-multi-tenant.png b/website/assets/img/vault-multi-tenant.png similarity index 100% rename from website/source/assets/images/vault-multi-tenant.png rename to website/assets/img/vault-multi-tenant.png diff --git a/website/source/assets/images/vault-perf-standby-1.png b/website/assets/img/vault-perf-standby-1.png similarity index 100% rename from website/source/assets/images/vault-perf-standby-1.png rename to website/assets/img/vault-perf-standby-1.png diff --git a/website/source/assets/images/vault-perf-standby.png b/website/assets/img/vault-perf-standby.png similarity index 100% rename from website/source/assets/images/vault-perf-standby.png rename to website/assets/img/vault-perf-standby.png diff --git a/website/source/assets/images/vault-pki-1.png b/website/assets/img/vault-pki-1.png similarity index 100% rename from website/source/assets/images/vault-pki-1.png rename to website/assets/img/vault-pki-1.png diff --git a/website/source/assets/images/vault-pki-2.png b/website/assets/img/vault-pki-2.png similarity index 100% rename from website/source/assets/images/vault-pki-2.png rename to website/assets/img/vault-pki-2.png diff --git a/website/source/assets/images/vault-pki-3.png b/website/assets/img/vault-pki-3.png similarity index 100% rename from website/source/assets/images/vault-pki-3.png rename to website/assets/img/vault-pki-3.png diff --git a/website/source/assets/images/vault-pki-4.png b/website/assets/img/vault-pki-4.png similarity index 100% rename from website/source/assets/images/vault-pki-4.png rename to website/assets/img/vault-pki-4.png diff --git a/website/source/assets/images/vault-pki-demo-2.png b/website/assets/img/vault-pki-demo-2.png similarity index 100% rename from website/source/assets/images/vault-pki-demo-2.png rename to website/assets/img/vault-pki-demo-2.png diff --git a/website/source/assets/images/vault-pki-demo.png b/website/assets/img/vault-pki-demo.png similarity index 100% rename from website/source/assets/images/vault-pki-demo.png rename to website/assets/img/vault-pki-demo.png diff --git a/website/source/assets/images/vault-policy-1.png b/website/assets/img/vault-policy-1.png similarity index 100% rename from website/source/assets/images/vault-policy-1.png rename to website/assets/img/vault-policy-1.png diff --git a/website/source/assets/images/vault-policy-2.png b/website/assets/img/vault-policy-2.png similarity index 100% rename from website/source/assets/images/vault-policy-2.png rename to website/assets/img/vault-policy-2.png diff --git a/website/source/assets/images/vault-policy-authoring-workflow.png b/website/assets/img/vault-policy-authoring-workflow.png similarity index 100% rename from website/source/assets/images/vault-policy-authoring-workflow.png rename to website/assets/img/vault-policy-authoring-workflow.png diff --git a/website/source/assets/images/vault-policy-workflow.svg b/website/assets/img/vault-policy-workflow.svg similarity index 100% rename from website/source/assets/images/vault-policy-workflow.svg rename to website/assets/img/vault-policy-workflow.svg diff --git a/website/source/assets/images/vault-ref-arch-2.png b/website/assets/img/vault-ref-arch-2.png similarity index 100% rename from website/source/assets/images/vault-ref-arch-2.png rename to website/assets/img/vault-ref-arch-2.png diff --git a/website/source/assets/images/vault-ref-arch-3.png b/website/assets/img/vault-ref-arch-3.png similarity index 100% rename from website/source/assets/images/vault-ref-arch-3.png rename to website/assets/img/vault-ref-arch-3.png diff --git a/website/source/assets/images/vault-ref-arch-4.png b/website/assets/img/vault-ref-arch-4.png similarity index 100% rename from website/source/assets/images/vault-ref-arch-4.png rename to website/assets/img/vault-ref-arch-4.png diff --git a/website/source/assets/images/vault-ref-arch-5.png b/website/assets/img/vault-ref-arch-5.png similarity index 100% rename from website/source/assets/images/vault-ref-arch-5.png rename to website/assets/img/vault-ref-arch-5.png diff --git a/website/source/assets/images/vault-ref-arch-6.png b/website/assets/img/vault-ref-arch-6.png similarity index 100% rename from website/source/assets/images/vault-ref-arch-6.png rename to website/assets/img/vault-ref-arch-6.png diff --git a/website/source/assets/images/vault-ref-arch-7.png b/website/assets/img/vault-ref-arch-7.png similarity index 100% rename from website/source/assets/images/vault-ref-arch-7.png rename to website/assets/img/vault-ref-arch-7.png diff --git a/website/source/assets/images/vault-ref-arch-8.png b/website/assets/img/vault-ref-arch-8.png similarity index 100% rename from website/source/assets/images/vault-ref-arch-8.png rename to website/assets/img/vault-ref-arch-8.png diff --git a/website/source/assets/images/vault-ref-arch-9.png b/website/assets/img/vault-ref-arch-9.png similarity index 100% rename from website/source/assets/images/vault-ref-arch-9.png rename to website/assets/img/vault-ref-arch-9.png diff --git a/website/source/assets/images/vault-ref-arch.png b/website/assets/img/vault-ref-arch.png similarity index 100% rename from website/source/assets/images/vault-ref-arch.png rename to website/assets/img/vault-ref-arch.png diff --git a/website/source/assets/images/vault-rekey-vs-rotate.svg b/website/assets/img/vault-rekey-vs-rotate.svg similarity index 100% rename from website/source/assets/images/vault-rekey-vs-rotate.svg rename to website/assets/img/vault-rekey-vs-rotate.svg diff --git a/website/source/assets/images/vault-seal-wrap-2.png b/website/assets/img/vault-seal-wrap-2.png similarity index 100% rename from website/source/assets/images/vault-seal-wrap-2.png rename to website/assets/img/vault-seal-wrap-2.png diff --git a/website/source/assets/images/vault-seal-wrap-3.png b/website/assets/img/vault-seal-wrap-3.png similarity index 100% rename from website/source/assets/images/vault-seal-wrap-3.png rename to website/assets/img/vault-seal-wrap-3.png diff --git a/website/source/assets/images/vault-seal-wrap-4.png b/website/assets/img/vault-seal-wrap-4.png similarity index 100% rename from website/source/assets/images/vault-seal-wrap-4.png rename to website/assets/img/vault-seal-wrap-4.png diff --git a/website/source/assets/images/vault-seal-wrap-5.png b/website/assets/img/vault-seal-wrap-5.png similarity index 100% rename from website/source/assets/images/vault-seal-wrap-5.png rename to website/assets/img/vault-seal-wrap-5.png diff --git a/website/source/assets/images/vault-seal-wrap-6.png b/website/assets/img/vault-seal-wrap-6.png similarity index 100% rename from website/source/assets/images/vault-seal-wrap-6.png rename to website/assets/img/vault-seal-wrap-6.png diff --git a/website/source/assets/images/vault-seal-wrap.png b/website/assets/img/vault-seal-wrap.png similarity index 100% rename from website/source/assets/images/vault-seal-wrap.png rename to website/assets/img/vault-seal-wrap.png diff --git a/website/source/assets/images/vault-secrets-enable.png b/website/assets/img/vault-secrets-enable.png similarity index 100% rename from website/source/assets/images/vault-secrets-enable.png rename to website/assets/img/vault-secrets-enable.png diff --git a/website/source/assets/images/vault-secure-intro-1.png b/website/assets/img/vault-secure-intro-1.png similarity index 100% rename from website/source/assets/images/vault-secure-intro-1.png rename to website/assets/img/vault-secure-intro-1.png diff --git a/website/source/assets/images/vault-secure-intro-2.png b/website/assets/img/vault-secure-intro-2.png similarity index 100% rename from website/source/assets/images/vault-secure-intro-2.png rename to website/assets/img/vault-secure-intro-2.png diff --git a/website/source/assets/images/vault-secure-intro-3.png b/website/assets/img/vault-secure-intro-3.png similarity index 100% rename from website/source/assets/images/vault-secure-intro-3.png rename to website/assets/img/vault-secure-intro-3.png diff --git a/website/source/assets/images/vault-secure-intro-4.png b/website/assets/img/vault-secure-intro-4.png similarity index 100% rename from website/source/assets/images/vault-secure-intro-4.png rename to website/assets/img/vault-secure-intro-4.png diff --git a/website/source/assets/images/vault-secure-intro-5.png b/website/assets/img/vault-secure-intro-5.png similarity index 100% rename from website/source/assets/images/vault-secure-intro-5.png rename to website/assets/img/vault-secure-intro-5.png diff --git a/website/source/assets/images/vault-sentinel-1.png b/website/assets/img/vault-sentinel-1.png similarity index 100% rename from website/source/assets/images/vault-sentinel-1.png rename to website/assets/img/vault-sentinel-1.png diff --git a/website/source/assets/images/vault-sentinel-2.png b/website/assets/img/vault-sentinel-2.png similarity index 100% rename from website/source/assets/images/vault-sentinel-2.png rename to website/assets/img/vault-sentinel-2.png diff --git a/website/source/assets/images/vault-shamir-secret-sharing.svg b/website/assets/img/vault-shamir-secret-sharing.svg similarity index 100% rename from website/source/assets/images/vault-shamir-secret-sharing.svg rename to website/assets/img/vault-shamir-secret-sharing.svg diff --git a/website/source/assets/images/vault-ssh-otp-1.png b/website/assets/img/vault-ssh-otp-1.png similarity index 100% rename from website/source/assets/images/vault-ssh-otp-1.png rename to website/assets/img/vault-ssh-otp-1.png diff --git a/website/source/assets/images/vault-ssh-otp-2.png b/website/assets/img/vault-ssh-otp-2.png similarity index 100% rename from website/source/assets/images/vault-ssh-otp-2.png rename to website/assets/img/vault-ssh-otp-2.png diff --git a/website/source/assets/images/vault-static-secrets.png b/website/assets/img/vault-static-secrets.png similarity index 100% rename from website/source/assets/images/vault-static-secrets.png rename to website/assets/img/vault-static-secrets.png diff --git a/website/source/assets/images/vault-static-secrets2.png b/website/assets/img/vault-static-secrets2.png similarity index 100% rename from website/source/assets/images/vault-static-secrets2.png rename to website/assets/img/vault-static-secrets2.png diff --git a/website/source/assets/images/vault-transit-1.png b/website/assets/img/vault-transit-1.png similarity index 100% rename from website/source/assets/images/vault-transit-1.png rename to website/assets/img/vault-transit-1.png diff --git a/website/source/assets/images/vault-transit-2.png b/website/assets/img/vault-transit-2.png similarity index 100% rename from website/source/assets/images/vault-transit-2.png rename to website/assets/img/vault-transit-2.png diff --git a/website/source/assets/images/vault-transit-3.png b/website/assets/img/vault-transit-3.png similarity index 100% rename from website/source/assets/images/vault-transit-3.png rename to website/assets/img/vault-transit-3.png diff --git a/website/source/assets/images/vault-transit-4.png b/website/assets/img/vault-transit-4.png similarity index 100% rename from website/source/assets/images/vault-transit-4.png rename to website/assets/img/vault-transit-4.png diff --git a/website/source/assets/images/vault-transit-5.png b/website/assets/img/vault-transit-5.png similarity index 100% rename from website/source/assets/images/vault-transit-5.png rename to website/assets/img/vault-transit-5.png diff --git a/website/source/assets/images/vault-versioned-kv-1.png b/website/assets/img/vault-versioned-kv-1.png similarity index 100% rename from website/source/assets/images/vault-versioned-kv-1.png rename to website/assets/img/vault-versioned-kv-1.png diff --git a/website/source/assets/images/vault-versioned-kv-2.png b/website/assets/img/vault-versioned-kv-2.png similarity index 100% rename from website/source/assets/images/vault-versioned-kv-2.png rename to website/assets/img/vault-versioned-kv-2.png diff --git a/website/source/assets/images/vault-versioned-kv-3.png b/website/assets/img/vault-versioned-kv-3.png similarity index 100% rename from website/source/assets/images/vault-versioned-kv-3.png rename to website/assets/img/vault-versioned-kv-3.png diff --git a/website/source/assets/images/vault-versioned-kv-4.png b/website/assets/img/vault-versioned-kv-4.png similarity index 100% rename from website/source/assets/images/vault-versioned-kv-4.png rename to website/assets/img/vault-versioned-kv-4.png diff --git a/website/source/assets/images/vault-versioned-kv-5.png b/website/assets/img/vault-versioned-kv-5.png similarity index 100% rename from website/source/assets/images/vault-versioned-kv-5.png rename to website/assets/img/vault-versioned-kv-5.png diff --git a/website/source/assets/images/vault-versioned-kv-6.png b/website/assets/img/vault-versioned-kv-6.png similarity index 100% rename from website/source/assets/images/vault-versioned-kv-6.png rename to website/assets/img/vault-versioned-kv-6.png diff --git a/website/source/assets/images/vault_cluster.png b/website/assets/img/vault_cluster.png similarity index 100% rename from website/source/assets/images/vault_cluster.png rename to website/assets/img/vault_cluster.png diff --git a/website/assets/js/components/docs-sidebar/index.js b/website/assets/js/components/docs-sidebar/index.js new file mode 100644 index 0000000000..ef40b3a110 --- /dev/null +++ b/website/assets/js/components/docs-sidebar/index.js @@ -0,0 +1,141 @@ +const { h, Component } = require('preact') +const { decode } = require('reshape-preact-components') +const assign = require('object-assign') + +module.exports = class Sidebar extends Component { + render() { + const current = this.props.current_page.split('/').slice(1) + const category = this.props.category + const order = decode(this.props.order) + const data = decode(this.props.data).map(p => { + p.path = p.path + .split('/') + .slice(1) + .join('/') + return p + }) + + return ( +

+ +
+ ) + } + + // replace all terminal page nodes with page data from middleman + matchOrderToPageData(content, pageData) { + // go through each item in the user-established order + return content.map(item => { + if (typeof item === 'string') { + // special divider functionality + if (item.match(/^-+$/)) return item + // if we have a string, that's a terminal page. we match it with + // middleman's page data and return the enhanced object + return pageData.filter(page => { + const pageName = page.path + .split('/') + .pop() + .replace(/\.html$/, '') + return pageName === item + })[0] + } else { + // grab the index page, as it can contain data about the top level link + item.indexData = pageData.find(page => { + const split = page.path.split('/') + return ( + split[split.length - 2] === item.category && + split[split.length - 1] === 'index.html' + ) + }) + // otherwise, it's a nested category. if the category has content, we + // recurse, passing in that category's content, and the matching + // subsection of page data from middleman + if (item.content) { + item.content = this.matchOrderToPageData( + item.content, + this.filterData(pageData, item.category) + ) + } + return item + } + }) + } + + // recursive render for a recursive data structure! + renderNavTree(category, content, currentPath, depth = 0) { + return content.map(item => { + // dividers are the only items left as strings + if (typeof item === 'string') return
+ + if (item.path) { + const fileName = item.path.split('/').pop() + return ( +
  • + +
  • + ) + } else { + const title = item.indexData + ? item.indexData.data.sidebar_title || item.indexData.data.page_title + : item.category + return ( +
  • + + {item.content && ( + + )} +
  • + ) + } + }) + } + + filterData(data, category) { + return data.filter(d => d.path.split('/').includes(category)) + } + + categoryMatch(navItemPath, currentPath) { + navItemPath = navItemPath.slice(0, navItemPath.length - 1) + currentPath = currentPath.slice(0, currentPath.length - 1) + return currentPath.reduce((result, item, i) => { + if (item !== navItemPath[i]) result = false + return result + }, true) + } + + fileMatch(navItemPath, currentPath) { + return currentPath.reduce((result, item, i) => { + if (item !== navItemPath[i]) result = false + return result + }, true) + } +} diff --git a/website/assets/js/components/docs-sidebar/style.css b/website/assets/js/components/docs-sidebar/style.css new file mode 100644 index 0000000000..878b561b43 --- /dev/null +++ b/website/assets/js/components/docs-sidebar/style.css @@ -0,0 +1,127 @@ +@import '@hashicorp/hashi-global-styles/_variables'; + +.g-docs-sidebar { + width: 275px; + padding-left: 5px; + + & ul { + list-style: none; + margin: 0; + padding: 0; + + & a { + color: var(--gray-4); + padding: 7px 0 7px 12px; + display: block; + transition: color 0.2s ease; + + &:hover { + color: var(--gray-2); + } + } + + & hr { + background: none; + padding: 8px 0; + margin: 0; + + &:after { + content: ""; + border-bottom: 1px solid var(--gray-9); + display: block; + width: 90%; + } + } + + & > li { + position: relative; + + &.active > a:first-child { + color: var(--default-blue); + position: relative; + } + + &.dir::after { + content: ""; + width: 5px; + height: 8px; + display: block; + position: absolute; + background: url('/img/docs-sidebar-chevron.svg'); + top: 17px; + left: -3px; + } + + &.active.dir::after { + width: 8px; + height: 5px; + background: url('/img/docs-sidebar-chevron-active.svg'); + top: 19px; + left: -5px; + } + + & > ul > li, & > ul > hr { + display: none; + } + + &.active > ul > li, &.active > ul > hr { + display: block; + } + + & > ul { + & > li { + margin-left: 21.5px; + border-left: 1px solid var(--gray-9); + + &:last-child a { + padding-bottom: 0; + margin-bottom: 7px; + } + + &.active:not(.dir) > a:first-child { + &:after { + content: ""; + width: 4px; + height: 4px; + display: block; + background: var(--default-blue); + position: absolute; + left: -2px; + top: 18px; + border-radius: 50%; + } + + &:before { + content: ""; + width: 14px; + height: 14px; + display: block; + background: white; + position: absolute; + left: -7px; + top: 13px; + border-radius: 50%; + } + } + + &.dir::before { + content: ""; + width: 17px; + height: 23px; + display: block; + background: white; + position: absolute; + left: -9px; + top: 10px; + border-radius: 50%; + } + } + + & > hr { + border-left: 1px solid var(--gray-9); + margin-left: 21.5px; + } + } + } + } +} diff --git a/website/assets/js/index.js b/website/assets/js/index.js new file mode 100644 index 0000000000..011ea9f9b7 --- /dev/null +++ b/website/assets/js/index.js @@ -0,0 +1,22 @@ +// components +import { each, initializeComponents } from './utils' +// external components +import nav from '@hashicorp/hashi-nav' +import footer from '@hashicorp/hashi-footer' +import newsletterSignupForm from '@hashicorp/hashi-newsletter-signup-form' +import productSubnav from '@hashicorp/hashi-product-subnav' +import docsSidebar from './components/docs-sidebar' +import megaNav from '@hashicorp/hashi-mega-nav' +import productDownloader from '@hashicorp/hashi-product-downloader' +import hero from '@hashicorp/hashi-hero' + +const components = initializeComponents({ + nav, + footer, + newsletterSignupForm, + docsSidebar, + productSubnav, + megaNav, + productDownloader, + hero +}) diff --git a/website/assets/js/utils.js b/website/assets/js/utils.js new file mode 100644 index 0000000000..46d2a92d2b --- /dev/null +++ b/website/assets/js/utils.js @@ -0,0 +1,70 @@ +import { render } from 'preact' +import { hydrateInitialState } from 'reshape-preact-components/lib/browser' + +// rehydrates and initializes top-level preact components +export function initializeComponents(obj) { + const res = {} + + for (let k in obj) { + const name = getName(k) + res[name] = [] + each(document.querySelectorAll(`.g-${name}`), el => { + // do not initialize nested components + const matches = Object.keys(obj) + .map(getName) + .reduce((m, name) => { + const parent = findParent(el, `.g-${name}`) + if (parent) m.push(parent) + return m + }, []) + if (matches.length > 1) return + // if there's no data-state, don't try + if (!el.dataset.state || !el.dataset.state.length) { + return + } + // otherwise, initialize away + const vdom = hydrateInitialState(el.dataset.state, { + [`hashi-${name}`]: obj[k] + }) + + res[name].push(render(vdom, el.parentElement, el)) + }) + } + + return res + + function getName(s) { + return s.replace(/([A-Z])/g, '-$1').toLowerCase() + } +} + +// iterates through a NodeList +export function each(list, cb) { + for (let i = 0; i < list.length; i++) { + cb(list[i], i) + } +} + +// polyfills object-fit in unsupported browsers +export function fixObjectFit() { + if (Modernizr.objectfit) { + import('object-fit-images').then(ofi => { + ofi.default() + }) + } +} + +// given an element and selector, finds the closest parent element. doesn't +// handle attribute selectors, just class, id, and element name +export function findParent(el, selector) { + const firstChar = selector[0] + if (firstChar === '.') { + if (el.classList.contains(selector.substr(1))) return el + } else if (firstChar === '#') { + if (el.id === selector.substr(1)) return el + } else { + if (el.tagName.toLowerCase() === selector) return el + } + if (!el.parentNode.tagName) return undefined + return findParent(el.parentNode, selector) +} diff --git a/website/assets/package.json b/website/assets/package.json new file mode 100644 index 0000000000..664b10148c --- /dev/null +++ b/website/assets/package.json @@ -0,0 +1,58 @@ +{ + "name": "middleman-spike-assets", + "description": "simple config to use postcss and webpack for asset processing", + "version": "0.0.0", + "author": "Jeff Escalante", + "main": "app.js", + "dependencies": { + "8fold-marked": "^0.3.8", + "@hashicorp-tmp/consent-manager": "^0.0.5", + "@hashicorp/hashi-alert": "^1.1.0", + "@hashicorp/hashi-button": "1.0.4", + "@hashicorp/hashi-callouts": "^2.0.2", + "@hashicorp/hashi-content": "^0.0.4", + "@hashicorp/hashi-docs-sidenav": "^0.1.0", + "@hashicorp/hashi-docs-sitemap": "^0.1.0", + "@hashicorp/hashi-footer": "1.0.5", + "@hashicorp/hashi-ga-form-fields": "1.0.2", + "@hashicorp/hashi-global-styles": "^1.0.8", + "@hashicorp/hashi-hero": "^2.1.2", + "@hashicorp/hashi-image": "1.0.3", + "@hashicorp/hashi-linked-text-summary-list": "^0.1.3", + "@hashicorp/hashi-logo-grid": "2.2.0", + "@hashicorp/hashi-mega-nav": "^1.0.0", + "@hashicorp/hashi-nav": "1.0.5", + "@hashicorp/hashi-newsletter-signup-form": "1.0.4", + "@hashicorp/hashi-product-downloader": "^0.4.0", + "@hashicorp/hashi-product-subnav": "^0.4.3", + "@hashicorp/hashi-section-header": "2.0.2", + "@hashicorp/hashi-split-cta": "^0.1.3", + "@hashicorp/hashi-vertical-text-block-list": "^0.1.0", + "@hashicorp/localstorage-polyfill": "^1.0.2", + "color-contrast": "^0.0.1", + "js-cookie": "^2.2.0", + "marked": "^0.5.1", + "normalize.css": "^8.0.0", + "object-assign": "^4.1.1", + "object-fit-images": "^3.2.4", + "postcss-extend-rule": "^2.0.0", + "preact": "^8.3.1", + "promise-polyfill": "^8.1.0", + "query-string": "^5.1.1", + "reshape-preact-components": "^0.6.0", + "siema": "^1.5.1", + "slugify": "^1.3.1", + "strftime": "^0.10.0", + "tippy.js": "^3.0.6", + "unfetch": "^4.0.1" + }, + "devDependencies": { + "babel-preset-preact": "^1.1.0", + "babel-register": "^6.26.0", + "node-fetch": "^2.2.0", + "spike": "^2.3.0", + "spike-css-standards": "^4.0.0", + "spike-js-standards": "^2.0.2", + "webpack-bundle-analyzer": "^3.0.3" + } +} diff --git a/website/assets/reshape.js b/website/assets/reshape.js new file mode 100644 index 0000000000..8adc66bab1 --- /dev/null +++ b/website/assets/reshape.js @@ -0,0 +1,33 @@ +const footer = require('@hashicorp/hashi-footer') +const nav = require('@hashicorp/hashi-nav') +const button = require('@hashicorp/hashi-button') +const megaNav = require('@hashicorp/hashi-mega-nav') +const productSubnav = require('@hashicorp/hashi-product-subnav') +const verticalTextBlockList = require('@hashicorp/hashi-vertical-text-block-list') +const sectionHeader = require('@hashicorp/hashi-section-header') +const content = require('@hashicorp/hashi-content') +const productDownloader = require('@hashicorp/hashi-product-downloader') +const docsSidebar = require('@hashicorp/hashi-docs-sidenav') +const hero = require('@hashicorp/hashi-hero') +const callouts = require('@hashicorp/hashi-callouts') +const splitCta = require('@hashicorp/hashi-split-cta') +const linkedTextSummaryList = require('@hashicorp/hashi-linked-text-summary-list') +const docsSitemap = require('@hashicorp/hashi-docs-sitemap') + +module.exports = { + 'hashi-footer': footer, + 'hashi-nav': nav, + 'hashi-button': button, + 'hashi-docs-sidebar': docsSidebar, + 'hashi-mega-nav': megaNav, + 'hashi-product-subnav': productSubnav, + 'hashi-content': content, + 'hashi-product-downloader': productDownloader, + 'hashi-vertical-text-block-list': verticalTextBlockList, + 'hashi-section-header': sectionHeader, + 'hashi-hero': hero, + 'hashi-callouts': callouts, + 'hashi-split-cta': splitCta, + 'hashi-linked-text-summary-list': linkedTextSummaryList, + 'hashi-docs-sitemap': docsSitemap +} diff --git a/website/assets/yarn.lock b/website/assets/yarn.lock new file mode 100644 index 0000000000..e5284aaf19 --- /dev/null +++ b/website/assets/yarn.lock @@ -0,0 +1,7231 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"8fold-marked@^0.3.8": + version "0.3.9" + resolved "https://registry.yarnpkg.com/8fold-marked/-/8fold-marked-0.3.9.tgz#bb89c645612f8ccfaffac1ca6e3c11f168c9cf59" + integrity sha512-OmVTXzmvQk/WuVZnOa+sT6wpkLrkPrjYanXS3X0ib1yk6315iwuPmvwKkOOdpqznYmavyT2ZCDOo6MeFe4xSog== + +"@babel/helper-module-imports@7.0.0-beta.40": + version "7.0.0-beta.40" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0-beta.40.tgz#251cbb6404599282e8f7356a5b32c9381bef5d2d" + integrity sha512-QFOskAKWbqJSBbGIl/Y1igJI4mW0A+wD5NFqsgDJj85KSvj/dHM4wNGIeqCi85nN9aMa4DgTBBrzUK4zSMsN2Q== + dependencies: + "@babel/types" "7.0.0-beta.40" + lodash "^4.2.0" + +"@babel/types@7.0.0-beta.40": + version "7.0.0-beta.40" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-beta.40.tgz#25c3d7aae14126abe05fcb098c65a66b6d6b8c14" + integrity sha512-uXCGCzTgMZxcSUzutCPtZmXbVC+cvENgS2e0tRuhn+Y1hZnMb8IHP0Trq7Q2MB/eFmG5pKrAeTIUfQIe5kA4Tg== + dependencies: + esutils "^2.0.2" + lodash "^4.2.0" + to-fast-properties "^2.0.0" + +"@emotion/babel-utils@^0.5.3": + version "0.5.3" + resolved "https://registry.yarnpkg.com/@emotion/babel-utils/-/babel-utils-0.5.3.tgz#6be6dd7a480fdbdfb6cbba7f4f6d9361744b8d6e" + integrity sha1-a+bdekgP29+2y7p/T22TYXRLjW4= + +"@emotion/hash@^0.6.2": + version "0.6.3" + resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.6.3.tgz#0e7a5604626fc6c6d4ac4061a2f5ac80d50262a4" + integrity sha1-DnpWBGJvxsbUrEBhovWsgNUCYqQ= + +"@emotion/is-prop-valid@^0.6.1": + version "0.6.2" + resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.6.2.tgz#a76a16b174ff03f8e3a27faf6259bacd21a02adc" + integrity sha1-p2oWsXT/A/jjon+vYlm6zSGgKtw= + dependencies: + "@emotion/memoize" "^0.6.2" + +"@emotion/memoize@^0.6.1", "@emotion/memoize@^0.6.2": + version "0.6.2" + resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.6.2.tgz#138e00b332d519b4e307bded6159e5ba48aba3ae" + integrity sha1-E44AszLVGbTjB73tYVnlukiro64= + +"@emotion/stylis@^0.6.5": + version "0.6.8" + resolved "https://registry.yarnpkg.com/@emotion/stylis/-/stylis-0.6.8.tgz#6ad4e8d32b19b440efa4481bbbcb98a8c12765bb" + integrity sha1-atTo0ysZtEDvpEgbu8uYqMEnZbs= + +"@emotion/unitless@^0.6.2": + version "0.6.3" + resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.6.3.tgz#65682e68a82701c70eefb38d7f941a2c0bfa90de" + integrity sha1-ZWguaKgnAccO77ONf5QaLAv6kN4= + +"@hashicorp-tmp/consent-manager@^0.0.5": + version "0.0.5" + resolved "https://registry.yarnpkg.com/@hashicorp-tmp/consent-manager/-/consent-manager-0.0.5.tgz#842988212bf132004dd4a86d87c03f33126aecdb" + integrity sha1-hCmIISvxMgBN1Khth8A/MxJq7Ns= + dependencies: + "@segment/top-domain" "^3.0.0" + babel-runtime "^6.26.0" + emotion "^9.1.2" + isomorphic-fetch "^2.2.1" + js-cookie "^2.2.0" + lodash "^4.17.5" + nanoid "^1.0.2" + preact-compat "^3.18.0" + preact-emotion "^9.1.3" + preact-portal "^1.1.3" + prop-types "^15.6.1" + +"@hashicorp/hashi-alert@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-alert/-/hashi-alert-1.1.0.tgz#3a7b3f466ee9a863fe13ce9abd0bbcdcf415500c" + integrity sha512-jaYFcGvF8RWZhvK/b/XuwjQCV4TO3r+CBB9KVrRK91VvDwzT5Rk27utCyaoxkdw8InDD7/jfAOBOouuPVH2JLg== + +"@hashicorp/hashi-button@1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-button/-/hashi-button-1.0.4.tgz#0000b88dd2a9b3edd3d392819303152eb94e6382" + integrity sha512-e3LA023nCbCfP8KPbev7YlaNPZp9Cy3Ug79SO2eis7W9tJ2d+cWMV3UTEH48LMRTQMJ0c1m+cENBEJPl4zgBZQ== + +"@hashicorp/hashi-callouts@^2.0.2": + version "2.0.2" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-callouts/-/hashi-callouts-2.0.2.tgz#7e633dd6d97045143ccd7ca4f5aa7df2936b6a47" + integrity sha512-RSTIjz2RWsshQrzM1kHN2dqWEcd1Iv1RTZ0rlj/Qdueamq9nUwHnjQ8vBvF3UC845KwcUrGySCW62+THt4S4vQ== + +"@hashicorp/hashi-content@^0.0.4": + version "0.0.4" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-content/-/hashi-content-0.0.4.tgz#33a3526e94eef83fde2cfd2770f45fbe2edb51cc" + integrity sha512-aZQF47Vew1QBb+sBhHxZjwLRsfH0auR5o3x8/iSGyWXNr1Jke5JD3SQRQG8xMu1tcztTxSiebij/a1wN1AWseg== + +"@hashicorp/hashi-docs-sidenav@^0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-docs-sidenav/-/hashi-docs-sidenav-0.1.0.tgz#567b68a57ec32d2a8bc8690e2cdfd61715a4fcc8" + integrity sha512-9piu2dxHDWmeVBRxcLZGGu/GKmnmBtKzBzLnwnIiOHxp6pzY8PA2i1XwhGbOsH3o1qh/UzHqPVb9FMOSI1A0uQ== + +"@hashicorp/hashi-docs-sitemap@^0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-docs-sitemap/-/hashi-docs-sitemap-0.1.0.tgz#1f11764f599c650208c2fdd47ea81f950321ebdd" + integrity sha512-MeaChDH/wtOkYr6HIf1/1Fl9LcqoEU7dLOg+CmopKxyiktCmbbPeGyKPMUq6nsxB5LUFCxrB2RuMVr43MeteEA== + +"@hashicorp/hashi-footer@1.0.5": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-footer/-/hashi-footer-1.0.5.tgz#c4907e6003c2cd0c3d973c7fee527ad468cca7f2" + integrity sha512-ta2wyswuJqGC0r1a7sJhQ6mnC07qqEYwFY9WigENWfz79vsrG1/jNs/bMsR8QTLwdwFC+OEfJjLldCa1bFU4Zw== + +"@hashicorp/hashi-ga-form-fields@1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-ga-form-fields/-/hashi-ga-form-fields-1.0.2.tgz#e9fb3b61a73a9f380bb14b04df600303f80d7042" + integrity sha512-nKa5Z+5AiVgY44Q2iij35bybsjMHQdwsBGgm2tvY2vcFuj7GTCyJgA510Vvpvwz86mK+dYwgfJil+rti/b3O8w== + +"@hashicorp/hashi-global-styles@^1.0.8": + version "1.0.8" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-global-styles/-/hashi-global-styles-1.0.8.tgz#5b0ecb1a50a2c3eec3acd7e413092cdcb52ba1d3" + integrity sha512-UClXKVALpVxcmDGB3DVTLdyDIxoo1Vz8B+drv3+hX/TwDPKBZxn4Rz3lW4bcP05g/zJ/udmVAr7ilMFOiCjk7Q== + +"@hashicorp/hashi-hero@^2.1.2": + version "2.1.2" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-hero/-/hashi-hero-2.1.2.tgz#3ceb4b415d25f66e369bd6329acf581d5810b419" + integrity sha512-5zKWysspca+aTr75hZqIazL1lq5UliHsZDYm2rCdoOq8cqWlQKjvV3In3HQYzt9OUCJ6jOBQWmHmpnho3BIL4w== + +"@hashicorp/hashi-image@1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-image/-/hashi-image-1.0.3.tgz#bf9230a04d3cfaa29adf5f1760ded68e7df09bd0" + integrity sha512-fhkeduyVfb5Rtl6ehrjxOnoHZIPewaYFdD97Jl4e/VsiV3j6N0upfWKsxrdURRffn4+9/pQyOjXRA/WQJL4wBA== + +"@hashicorp/hashi-linked-text-summary-list@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-linked-text-summary-list/-/hashi-linked-text-summary-list-0.1.3.tgz#681a90f22b78c50682d0ab4401a6796c3a31eebb" + integrity sha512-iT3XuTw9aHiGDOcMza5mwr3fvPdBcrUw3EcD4Uc9Wq8di2A5B1nyeaLh6/8nnhxIYqe0Uh61G8PSm52FZh25Sw== + +"@hashicorp/hashi-logo-grid@2.2.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-logo-grid/-/hashi-logo-grid-2.2.0.tgz#e1b911660af3ff510f0addc8433713cacb780d7e" + integrity sha512-NY5wqjbh5nrm26NFdS0VkS1yrWCtXoP9b976EvBc4CeqNqEsYWDFgkF3tI02NIpjKNnW9xHlk9RpvP0R6zy1cg== + +"@hashicorp/hashi-mega-nav@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-mega-nav/-/hashi-mega-nav-1.0.0.tgz#6c509a66e89a032ed6b9ceb1898506eb29fb3914" + integrity sha512-KaCOFRkTHwIwqjeO9atNd0NuYNN8GpIX68WYKFC9hcg8WdfZBfLxf9v/Sg2vcBZJYP+xZnOKZEOkUvR17XA96Q== + +"@hashicorp/hashi-nav@1.0.5": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-nav/-/hashi-nav-1.0.5.tgz#876355a2a10b4b22d324e8cc858f24d6895cbcb9" + integrity sha512-Vx5XDp++227ahzUibOms7TOuflhkDgx/TaP+PstLU3Ah8K/6MuuNBPIOgH+HncAXjU9yZmoF8TDC+7gPr4g/Ww== + +"@hashicorp/hashi-newsletter-signup-form@1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-newsletter-signup-form/-/hashi-newsletter-signup-form-1.0.4.tgz#a9a9df40d2d68954cad95f871a2dfc169ccd9a3b" + integrity sha512-4W7GiEocIA7YffKkh31FU5NMvZWBXfNOyuZ+3/tYNT0gSM8W5JzIYYqnu63cjqOuXIFUUrCDGQLRndYaKmzSMw== + +"@hashicorp/hashi-product-downloader@^0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-product-downloader/-/hashi-product-downloader-0.4.0.tgz#68eb0048eccd3ce17231a93517fb91b29e2c40a8" + integrity sha512-UXc3JhHMuhDIlm++fe2N4vwUXHvthzXoqaGkLPWS/T7g7COlzzj/EIjLw7hoSnu4Wb3T0uQXHP6hkRu5NbRZNA== + +"@hashicorp/hashi-product-subnav@^0.4.3": + version "0.4.3" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-product-subnav/-/hashi-product-subnav-0.4.3.tgz#9ffa0992df3440c18cadac7f1cb8f43287563b41" + integrity sha512-V3tTZYwreWtxPxdCmeJ0KVrvgI5Mq3T2SkslmVtGUyq/O1UGjqCYnBe7iA8XIBux2nhJzFDH5YITNTEbEOAvnw== + +"@hashicorp/hashi-section-header@2.0.2": + version "2.0.2" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-section-header/-/hashi-section-header-2.0.2.tgz#c48159c9e53b8c2ac67a11cf82e81e06be873c0b" + integrity sha512-a2O0W2q+PM/DHB9qJCtiTiI10AsIK7t5qGNAS59Sx9t7nw0Bc2VUzj+y57vNfV0IKKTtCbB7wWp+BtRXZqSGKA== + +"@hashicorp/hashi-split-cta@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-split-cta/-/hashi-split-cta-0.1.3.tgz#a5acce87f7139572f88b9b0d3140d7a6f3aba9ab" + integrity sha512-Hm6Z91iNMo16yxr7sIPU4vf06CJ7edn9GH+wXhtvxQYAb1wgXbezVsYF6i1AeAOaQe8hZvWA7rQb+aHKupDyPA== + +"@hashicorp/hashi-vertical-text-block-list@^0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-vertical-text-block-list/-/hashi-vertical-text-block-list-0.1.0.tgz#d44a861a66501c59d5990a67487e1bbbb40590cc" + integrity sha512-nFhiTl1SbayDEbiZsbsznKPRKPkaHDA//KjVWVdQaGAe9U4rAamzmb7CYLxjvw11taGNXKGrs93B62P2ojk8Aw== + +"@hashicorp/localstorage-polyfill@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@hashicorp/localstorage-polyfill/-/localstorage-polyfill-1.0.2.tgz#8a2ae4b6f485ebad4c1e10ccaec75599c04c02ac" + integrity sha512-c4HIMmr62LWIg2OLdSI6+mC+cXoEH3MYWitrg3DoKfpMyAfmTFLNBAznb8/r8vYNq0rK/TZbJ0jYHJ4VM4nRTg== + +"@segment/top-domain@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@segment/top-domain/-/top-domain-3.0.0.tgz#02e5a5a4fd42a9f6cf886b05e82f104012a3c3a7" + integrity sha1-AuWlpP1CqfbPiGsF6C8QQBKjw6c= + dependencies: + component-cookie "^1.1.2" + component-url "^0.2.1" + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + +accepts@~1.3.4, accepts@~1.3.5: + version "1.3.5" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.5.tgz#eb777df6011723a3b14e8a72c0805c8e86746bd2" + integrity sha1-63d99gEXI6OxTopywIBcjoZ0a9I= + dependencies: + mime-types "~2.1.18" + negotiator "0.6.1" + +acorn-dynamic-import@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz#c752bd210bef679501b6c6cb7fc84f8f47158cc4" + integrity sha1-x1K9IQvvZ5UBtsbLf8hPj0cVjMQ= + dependencies: + acorn "^4.0.3" + +acorn@^4.0.3: + version "4.0.13" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787" + integrity sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c= + +acorn@^5.0.0: + version "5.6.2" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.6.2.tgz#b1da1d7be2ac1b4a327fb9eab851702c5045b4e7" + integrity sha512-zUzo1E5dI2Ey8+82egfnttyMlMZ2y0D8xOCO3PNPPlYXpl8NZvF6Qk9L9BEtJs+43FqEmfBViDqc5d1ckRDguw== + +acorn@^5.7.3: + version "5.7.3" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz#67aa231bf8812974b85235a96771eb6bd07ea279" + integrity sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw== + +after@0.8.2: + version "0.8.2" + resolved "https://registry.yarnpkg.com/after/-/after-0.8.2.tgz#fedb394f9f0e02aa9768e702bda23b505fae7e1f" + integrity sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8= + +ajv-keywords@^3.1.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.2.0.tgz#e86b819c602cf8821ad637413698f1dec021847a" + integrity sha1-6GuBnGAs+IIa1jdBNpjx3sAhhHo= + +ajv@^5.1.0: + version "5.5.2" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" + integrity sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU= + dependencies: + co "^4.6.0" + fast-deep-equal "^1.0.0" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.3.0" + +ajv@^6.1.0: + version "6.5.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.5.0.tgz#4c8affdf80887d8f132c9c52ab8a2dc4d0b7b24c" + integrity sha512-VDUX1oSajablmiyFyED9L1DFndg0P9h7p1F+NO8FkIzei6EPrR6Zu1n18rd5P8PqaSRd/FrWv3G1TVBqpM83gA== + dependencies: + fast-deep-equal "^2.0.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.3.0" + uri-js "^4.2.1" + +align-text@^0.1.1, align-text@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" + integrity sha1-DNkKVhCT810KmSVsIrcGlDP60Rc= + dependencies: + kind-of "^3.0.2" + longest "^1.0.1" + repeat-string "^1.5.2" + +alphanum-sort@^1.0.1, alphanum-sort@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" + integrity sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM= + +ansi-escapes@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.1.0.tgz#f73207bb81207d75fd6c83f125af26eea378ca30" + integrity sha512-UgAb8H9D41AQnu/PbWlCofQVcnV4Gs2bBJi9eZPxfU/hgglFh3SMDMENRIqdr7H6XFnXdoknctFByVsCOotTVw== + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8= + +ansi-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" + integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4= + +ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +anymatch@^1.3.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" + integrity sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA== + dependencies: + micromatch "^2.1.5" + normalize-path "^2.0.0" + +anymatch@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" + integrity sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw== + dependencies: + micromatch "^3.1.4" + normalize-path "^2.1.1" + +aproba@^1.0.3: + version "1.2.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" + integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== + +are-we-there-yet@~1.1.2: + version "1.1.5" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" + integrity sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w== + dependencies: + delegates "^1.0.0" + readable-stream "^2.0.6" + +argparse@^1.0.10, argparse@^1.0.2, argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + +arr-diff@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" + integrity sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8= + dependencies: + arr-flatten "^1.0.1" + +arr-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" + integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= + +arr-flatten@^1.0.1, arr-flatten@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" + integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== + +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" + integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= + +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" + integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= + +array-unique@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" + integrity sha1-odl8yvy8JiXMcPrc6zalDFiwGlM= + +array-unique@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" + integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= + +arraybuffer.slice@~0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz#3bbc4275dd584cc1b10809b89d4e8b63a69e7675" + integrity sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog== + +asap@~2.0.3: + version "2.0.6" + resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" + integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY= + +asn1.js@^4.0.0: + version "4.10.1" + resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0" + integrity sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw== + dependencies: + bn.js "^4.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +asn1@~0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" + integrity sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y= + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= + +assert@^1.1.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" + integrity sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE= + dependencies: + util "0.10.3" + +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" + integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= + +async-each-series@0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/async-each-series/-/async-each-series-0.1.1.tgz#7617c1917401fd8ca4a28aadce3dbae98afeb432" + integrity sha1-dhfBkXQB/Yykooqtzj266Yr+tDI= + +async-each@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" + integrity sha1-GdOGodntxufByF04iu28xW0zYC0= + +async-limiter@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8" + integrity sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg== + +async@1.5.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" + integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo= + +async@^2.1.2: + version "2.6.1" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.1.tgz#b245a23ca71930044ec53fa46aa00a3e87c6a610" + integrity sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ== + dependencies: + lodash "^4.17.10" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + +atob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.1.tgz#ae2d5a729477f289d60dd7f96a6314a22dd6c22a" + integrity sha1-ri1acpR38onWDdf5amMUoi3Wwio= + +autoprefixer@^6.3.1: + version "6.7.7" + resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-6.7.7.tgz#1dbd1c835658e35ce3f9984099db00585c782014" + integrity sha1-Hb0cg1ZY41zj+ZhAmdsAWFx4IBQ= + dependencies: + browserslist "^1.7.6" + caniuse-db "^1.0.30000634" + normalize-range "^0.1.2" + num2fraction "^1.2.2" + postcss "^5.2.16" + postcss-value-parser "^3.2.3" + +autoprefixer@^7.1.2: + version "7.2.6" + resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-7.2.6.tgz#256672f86f7c735da849c4f07d008abb056067dc" + integrity sha512-Iq8TRIB+/9eQ8rbGhcP7ct5cYb/3qjNYAR2SnzLCEcwF6rvVOax8+9+fccgXk4bEhQGjOZd5TLhsksmAdsbGqQ== + dependencies: + browserslist "^2.11.3" + caniuse-lite "^1.0.30000805" + normalize-range "^0.1.2" + num2fraction "^1.2.2" + postcss "^6.0.17" + postcss-value-parser "^3.2.3" + +autoprefixer@^8.3.0: + version "8.6.1" + resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-8.6.1.tgz#cb186e6c904cd54a4af7bda078fd27a1fddc7be5" + integrity sha512-DqvyCbff+kvfrZgoDHIRK28svWSSFE/Y86FXUd9zflJ+aU7rr+6JCSuhNf1evSPzh+42GdI39BuIjixN5W/EPQ== + dependencies: + browserslist "^3.2.8" + caniuse-lite "^1.0.30000850" + normalize-range "^0.1.2" + num2fraction "^1.2.2" + postcss "^6.0.22" + postcss-value-parser "^3.2.3" + +aws-sign2@~0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" + integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg= + +aws4@^1.6.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.7.0.tgz#d4d0e9b9dbfca77bf08eeb0a8a471550fe39e289" + integrity sha512-32NDda82rhwD9/JBCCkB+MRYDp0oSvlo2IL6rQWA10PQi7tDUM3eqMSltXmY+Oyl/7N3P3qNtAlv7X0d9bI28w== + +axios@0.17.1: + version "0.17.1" + resolved "https://registry.yarnpkg.com/axios/-/axios-0.17.1.tgz#2d8e3e5d0bdbd7327f91bc814f5c57660f81824d" + integrity sha1-LY4+XQvb1zJ/kbyBT1xXZg+Bgk0= + dependencies: + follow-redirects "^1.2.5" + is-buffer "^1.1.5" + +babel-code-frame@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" + integrity sha1-Y/1D99weO7fONZR9uP42mj9Yx0s= + dependencies: + chalk "^1.1.3" + esutils "^2.0.2" + js-tokens "^3.0.2" + +babel-core@^6.26.0: + version "6.26.3" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" + integrity sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA== + dependencies: + babel-code-frame "^6.26.0" + babel-generator "^6.26.0" + babel-helpers "^6.24.1" + babel-messages "^6.23.0" + babel-register "^6.26.0" + babel-runtime "^6.26.0" + babel-template "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + convert-source-map "^1.5.1" + debug "^2.6.9" + json5 "^0.5.1" + lodash "^4.17.4" + minimatch "^3.0.4" + path-is-absolute "^1.0.1" + private "^0.1.8" + slash "^1.0.0" + source-map "^0.5.7" + +babel-generator@^6.26.0: + version "6.26.1" + resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" + integrity sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA== + dependencies: + babel-messages "^6.23.0" + babel-runtime "^6.26.0" + babel-types "^6.26.0" + detect-indent "^4.0.0" + jsesc "^1.3.0" + lodash "^4.17.4" + source-map "^0.5.7" + trim-right "^1.0.1" + +babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" + integrity sha1-zORReto1b0IgvK6KAsKzRvmlZmQ= + dependencies: + babel-helper-explode-assignable-expression "^6.24.1" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-builder-react-jsx@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.26.0.tgz#39ff8313b75c8b65dceff1f31d383e0ff2a408a0" + integrity sha1-Of+DE7dci2Xc7/HzHTg+D/KkCKA= + dependencies: + babel-runtime "^6.26.0" + babel-types "^6.26.0" + esutils "^2.0.2" + +babel-helper-call-delegate@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" + integrity sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340= + dependencies: + babel-helper-hoist-variables "^6.24.1" + babel-runtime "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-define-map@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" + integrity sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8= + dependencies: + babel-helper-function-name "^6.24.1" + babel-runtime "^6.26.0" + babel-types "^6.26.0" + lodash "^4.17.4" + +babel-helper-explode-assignable-expression@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" + integrity sha1-8luCz33BBDPFX3BZLVdGQArCLKo= + dependencies: + babel-runtime "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-function-name@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" + integrity sha1-00dbjAPtmCQqJbSDUasYOZ01gKk= + dependencies: + babel-helper-get-function-arity "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-get-function-arity@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" + integrity sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0= + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-hoist-variables@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" + integrity sha1-HssnaJydJVE+rbyZFKc/VAi+enY= + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-optimise-call-expression@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" + integrity sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc= + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-regex@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" + integrity sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI= + dependencies: + babel-runtime "^6.26.0" + babel-types "^6.26.0" + lodash "^4.17.4" + +babel-helper-remap-async-to-generator@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" + integrity sha1-XsWBgnrXI/7N04HxySg5BnbkVRs= + dependencies: + babel-helper-function-name "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-replace-supers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" + integrity sha1-v22/5Dk40XNpohPKiov3S2qQqxo= + dependencies: + babel-helper-optimise-call-expression "^6.24.1" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helpers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" + integrity sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI= + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-loader@^7.1.5: + version "7.1.5" + resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.1.5.tgz#e3ee0cd7394aa557e013b02d3e492bfd07aa6d68" + integrity sha512-iCHfbieL5d1LfOQeeVJEUyD9rTwBcP/fcEbRCfempxTDuqrKpu0AZjLAQHEQa3Yqyj9ORKe2iHfoj4rHLf7xpw== + dependencies: + find-cache-dir "^1.0.0" + loader-utils "^1.0.2" + mkdirp "^0.5.1" + +babel-messages@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" + integrity sha1-8830cDhYA1sqKVHG7F7fbGLyYw4= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-check-es2015-constants@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" + integrity sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-emotion@^9.2.0: + version "9.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-emotion/-/babel-plugin-emotion-9.2.0.tgz#43543dd02c7b5cd89d464aeedef864edb754b852" + integrity sha1-Q1Q90Cx7XNidRkru3vhk7bdUuFI= + dependencies: + "@babel/helper-module-imports" "7.0.0-beta.40" + "@emotion/babel-utils" "^0.5.3" + "@emotion/hash" "^0.6.2" + "@emotion/memoize" "^0.6.1" + "@emotion/stylis" "^0.6.5" + babel-plugin-macros "^2.0.0" + babel-plugin-syntax-jsx "^6.18.0" + convert-source-map "^1.5.0" + find-root "^1.1.0" + mkdirp "^0.5.1" + source-map "^0.5.7" + touch "^1.0.0" + +babel-plugin-macros@^2.0.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-2.2.2.tgz#049c93f4b934453688a6ec38bba529c55bf0fa1f" + integrity sha512-wq6DYqjNmSPskGyhOeRIbmuvLtsHTfc6ROtGqapTttIGL1RoQmM3V5N8aJiDxPaw3/fveIsVspF51E3V7qTOMQ== + dependencies: + cosmiconfig "^4.0.0" + +babel-plugin-syntax-async-functions@^6.8.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" + integrity sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU= + +babel-plugin-syntax-dynamic-import@^6.18.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da" + integrity sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo= + +babel-plugin-syntax-exponentiation-operator@^6.8.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" + integrity sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4= + +babel-plugin-syntax-jsx@^6.0.2, babel-plugin-syntax-jsx@^6.18.0, babel-plugin-syntax-jsx@^6.8.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" + integrity sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY= + +babel-plugin-syntax-trailing-function-commas@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" + integrity sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM= + +babel-plugin-transform-async-to-generator@^6.22.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" + integrity sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E= + dependencies: + babel-helper-remap-async-to-generator "^6.24.1" + babel-plugin-syntax-async-functions "^6.8.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-arrow-functions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" + integrity sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" + integrity sha1-u8UbSflk1wy42OC5ToICRs46YUE= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-block-scoping@^6.23.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" + integrity sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8= + dependencies: + babel-runtime "^6.26.0" + babel-template "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + lodash "^4.17.4" + +babel-plugin-transform-es2015-classes@^6.23.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" + integrity sha1-WkxYpQyclGHlZLSyo7+ryXolhNs= + dependencies: + babel-helper-define-map "^6.24.1" + babel-helper-function-name "^6.24.1" + babel-helper-optimise-call-expression "^6.24.1" + babel-helper-replace-supers "^6.24.1" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-computed-properties@^6.22.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" + integrity sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM= + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-destructuring@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" + integrity sha1-mXux8auWf2gtKwh2/jWNYOdlxW0= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-duplicate-keys@^6.22.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" + integrity sha1-c+s9MQypaePvnskcU3QabxV2Qj4= + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-for-of@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" + integrity sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-function-name@^6.22.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" + integrity sha1-g0yJhTvDaxrw86TF26qU/Y6sqos= + dependencies: + babel-helper-function-name "^6.24.1" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-literals@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" + integrity sha1-T1SgLWzWbPkVKAAZox0xklN3yi4= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015-modules-amd@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" + integrity sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ= + dependencies: + babel-plugin-transform-es2015-modules-commonjs "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1: + version "6.26.2" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz#58a793863a9e7ca870bdc5a881117ffac27db6f3" + integrity sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q== + dependencies: + babel-plugin-transform-strict-mode "^6.24.1" + babel-runtime "^6.26.0" + babel-template "^6.26.0" + babel-types "^6.26.0" + +babel-plugin-transform-es2015-modules-systemjs@^6.23.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" + integrity sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM= + dependencies: + babel-helper-hoist-variables "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-modules-umd@^6.23.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" + integrity sha1-rJl+YoXNGO1hdq22B9YCNErThGg= + dependencies: + babel-plugin-transform-es2015-modules-amd "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-object-super@^6.22.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" + integrity sha1-JM72muIcuDp/hgPa0CH1cusnj40= + dependencies: + babel-helper-replace-supers "^6.24.1" + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-parameters@^6.23.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" + integrity sha1-V6w1GrScrxSpfNE7CfZv3wpiXys= + dependencies: + babel-helper-call-delegate "^6.24.1" + babel-helper-get-function-arity "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-shorthand-properties@^6.22.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" + integrity sha1-JPh11nIch2YbvZmkYi5R8U3jiqA= + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-spread@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" + integrity sha1-1taKmfia7cRTbIGlQujdnxdG+NE= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-sticky-regex@^6.22.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" + integrity sha1-AMHNsaynERLN8M9hJsLta0V8zbw= + dependencies: + babel-helper-regex "^6.24.1" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-template-literals@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" + integrity sha1-qEs0UPfp+PH2g51taH2oS7EjbY0= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-typeof-symbol@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" + integrity sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-unicode-regex@^6.22.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" + integrity sha1-04sS9C6nMj9yk4fxinxa4frrNek= + dependencies: + babel-helper-regex "^6.24.1" + babel-runtime "^6.22.0" + regexpu-core "^2.0.0" + +babel-plugin-transform-exponentiation-operator@^6.22.0: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" + integrity sha1-KrDJx/MJj6SJB3cruBP+QejeOg4= + dependencies: + babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" + babel-plugin-syntax-exponentiation-operator "^6.8.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-react-jsx@^6.0.2: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.24.1.tgz#840a028e7df460dfc3a2d29f0c0d91f6376e66a3" + integrity sha1-hAoCjn30YN/DotKfDA2R9jduZqM= + dependencies: + babel-helper-builder-react-jsx "^6.24.1" + babel-plugin-syntax-jsx "^6.8.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-regenerator@^6.22.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" + integrity sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8= + dependencies: + regenerator-transform "^0.10.0" + +babel-plugin-transform-strict-mode@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" + integrity sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g= + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-preset-env@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.7.0.tgz#dea79fa4ebeb883cd35dab07e260c1c9c04df77a" + integrity sha512-9OR2afuKDneX2/q2EurSftUYM0xGu4O2D9adAhVfADDhrYDaxXV0rBbevVYoY9n6nyX1PmQW/0jtpJvUNr9CHg== + dependencies: + babel-plugin-check-es2015-constants "^6.22.0" + babel-plugin-syntax-trailing-function-commas "^6.22.0" + babel-plugin-transform-async-to-generator "^6.22.0" + babel-plugin-transform-es2015-arrow-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoping "^6.23.0" + babel-plugin-transform-es2015-classes "^6.23.0" + babel-plugin-transform-es2015-computed-properties "^6.22.0" + babel-plugin-transform-es2015-destructuring "^6.23.0" + babel-plugin-transform-es2015-duplicate-keys "^6.22.0" + babel-plugin-transform-es2015-for-of "^6.23.0" + babel-plugin-transform-es2015-function-name "^6.22.0" + babel-plugin-transform-es2015-literals "^6.22.0" + babel-plugin-transform-es2015-modules-amd "^6.22.0" + babel-plugin-transform-es2015-modules-commonjs "^6.23.0" + babel-plugin-transform-es2015-modules-systemjs "^6.23.0" + babel-plugin-transform-es2015-modules-umd "^6.23.0" + babel-plugin-transform-es2015-object-super "^6.22.0" + babel-plugin-transform-es2015-parameters "^6.23.0" + babel-plugin-transform-es2015-shorthand-properties "^6.22.0" + babel-plugin-transform-es2015-spread "^6.22.0" + babel-plugin-transform-es2015-sticky-regex "^6.22.0" + babel-plugin-transform-es2015-template-literals "^6.22.0" + babel-plugin-transform-es2015-typeof-symbol "^6.23.0" + babel-plugin-transform-es2015-unicode-regex "^6.22.0" + babel-plugin-transform-exponentiation-operator "^6.22.0" + babel-plugin-transform-regenerator "^6.22.0" + browserslist "^3.2.6" + invariant "^2.2.2" + semver "^5.3.0" + +babel-preset-preact@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/babel-preset-preact/-/babel-preset-preact-1.1.0.tgz#35ac655a73a49b8438163ce053816577e1980861" + integrity sha1-NaxlWnOkm4Q4FjzgU4Fld+GYCGE= + dependencies: + babel-plugin-syntax-jsx "^6.0.2" + babel-plugin-transform-react-jsx "^6.0.2" + +babel-register@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" + integrity sha1-btAhFz4vy0htestFxgCahW9kcHE= + dependencies: + babel-core "^6.26.0" + babel-runtime "^6.26.0" + core-js "^2.5.0" + home-or-tmp "^2.0.0" + lodash "^4.17.4" + mkdirp "^0.5.1" + source-map-support "^0.4.15" + +babel-runtime@^6.11.6, babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" + integrity sha1-llxwWGaOgrVde/4E/yM3vItWR/4= + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.11.0" + +babel-template@^6.24.1, babel-template@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" + integrity sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI= + dependencies: + babel-runtime "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + lodash "^4.17.4" + +babel-traverse@^6.24.1, babel-traverse@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" + integrity sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4= + dependencies: + babel-code-frame "^6.26.0" + babel-messages "^6.23.0" + babel-runtime "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + debug "^2.6.8" + globals "^9.18.0" + invariant "^2.2.2" + lodash "^4.17.4" + +babel-types@^6.15.0, babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" + integrity sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc= + dependencies: + babel-runtime "^6.26.0" + esutils "^2.0.2" + lodash "^4.17.4" + to-fast-properties "^1.0.3" + +babylon-walk@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/babylon-walk/-/babylon-walk-1.0.2.tgz#3b15a5ddbb482a78b4ce9c01c8ba181702d9d6ce" + integrity sha1-OxWl3btIKni0zpwByLoYFwLZ1s4= + dependencies: + babel-runtime "^6.11.6" + babel-types "^6.15.0" + lodash.clone "^4.5.0" + +babylon@^6.18.0, babylon@^6.9.1: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" + integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ== + +backo2@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/backo2/-/backo2-1.0.2.tgz#31ab1ac8b129363463e35b3ebb69f4dfcfba7947" + integrity sha1-MasayLEpNjRj41s+u2n038+6eUc= + +balanced-match@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.1.0.tgz#b504bd05869b39259dd0c5efc35d843176dccc4a" + integrity sha1-tQS9BYabOSWd0MXvw12EMXbczEo= + +balanced-match@^0.4.2: + version "0.4.2" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" + integrity sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg= + +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= + +base64-arraybuffer@0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz#73926771923b5a19747ad666aa5cd4bf9c6e9ce8" + integrity sha1-c5JncZI7Whl0etZmqlzUv5xunOg= + +base64-js@^1.0.2: + version "1.3.0" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3" + integrity sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw== + +base64id@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/base64id/-/base64id-1.0.0.tgz#47688cb99bb6804f0e06d3e763b1c32e57d8e6b6" + integrity sha1-R2iMuZu2gE8OBtPnY7HDLlfY5rY= + +base@^0.11.1: + version "0.11.2" + resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" + integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== + dependencies: + cache-base "^1.0.1" + class-utils "^0.3.5" + component-emitter "^1.2.1" + define-property "^1.0.0" + isobject "^3.0.1" + mixin-deep "^1.2.0" + pascalcase "^0.1.1" + +batch@0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16" + integrity sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY= + +bcrypt-pbkdf@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" + integrity sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40= + dependencies: + tweetnacl "^0.14.3" + +better-assert@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/better-assert/-/better-assert-1.0.2.tgz#40866b9e1b9e0b55b481894311e68faffaebc522" + integrity sha1-QIZrnhueC1W0gYlDEeaPr/rrxSI= + dependencies: + callsite "1.0.0" + +bfj@^6.1.1: + version "6.1.1" + resolved "https://registry.yarnpkg.com/bfj/-/bfj-6.1.1.tgz#05a3b7784fbd72cfa3c22e56002ef99336516c48" + integrity sha512-+GUNvzHR4nRyGybQc2WpNJL4MJazMuvf92ueIyA0bIkPRwhhQu3IfZQ2PSoVPpCBJfmoSdOxu5rnotfFLlvYRQ== + dependencies: + bluebird "^3.5.1" + check-types "^7.3.0" + hoopy "^0.1.2" + tryer "^1.0.0" + +big.js@^3.1.3: + version "3.2.0" + resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e" + integrity sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q== + +binary-extensions@^1.0.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" + integrity sha1-RqoXUftqL5PuXmibsQh9SxTGwgU= + +blob@0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/blob/-/blob-0.0.4.tgz#bcf13052ca54463f30f9fc7e95b9a47630a94921" + integrity sha1-vPEwUspURj8w+fx+lbmkdjCpSSE= + +bluebird@^3.5.1: + version "3.5.1" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" + integrity sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA== + +bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: + version "4.11.8" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" + integrity sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA== + +body-parser@1.18.2: + version "1.18.2" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.18.2.tgz#87678a19d84b47d859b83199bd59bce222b10454" + integrity sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ= + dependencies: + bytes "3.0.0" + content-type "~1.0.4" + debug "2.6.9" + depd "~1.1.1" + http-errors "~1.6.2" + iconv-lite "0.4.19" + on-finished "~2.3.0" + qs "6.5.1" + raw-body "2.3.2" + type-is "~1.6.15" + +boom@4.x.x: + version "4.3.1" + resolved "https://registry.yarnpkg.com/boom/-/boom-4.3.1.tgz#4f8a3005cb4a7e3889f749030fd25b96e01d2e31" + integrity sha1-T4owBctKfjiJ90kDD9JbluAdLjE= + dependencies: + hoek "4.x.x" + +boom@5.x.x: + version "5.2.0" + resolved "https://registry.yarnpkg.com/boom/-/boom-5.2.0.tgz#5dd9da6ee3a5f302077436290cb717d3f4a54e02" + integrity sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw== + dependencies: + hoek "4.x.x" + +brace-expansion@^1.0.0, brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +braces@^1.8.2: + version "1.8.5" + resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" + integrity sha1-uneWLhLf+WnWt2cR6RS3N4V79qc= + dependencies: + expand-range "^1.8.1" + preserve "^0.2.0" + repeat-element "^1.1.2" + +braces@^2.3.0, braces@^2.3.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" + integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== + dependencies: + arr-flatten "^1.1.0" + array-unique "^0.3.2" + extend-shallow "^2.0.1" + fill-range "^4.0.0" + isobject "^3.0.1" + repeat-element "^1.1.2" + snapdragon "^0.8.1" + snapdragon-node "^2.0.1" + split-string "^3.0.2" + to-regex "^3.0.1" + +brorand@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= + +browser-sync-ui@v1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/browser-sync-ui/-/browser-sync-ui-1.0.1.tgz#9740527b26d1d7ace259acc0c79e5b5e37d0fdf2" + integrity sha512-RIxmwVVcUFhRd1zxp7m2FfLnXHf59x4Gtj8HFwTA//3VgYI3AKkaQAuDL8KDJnE59XqCshxZa13JYuIWtZlKQg== + dependencies: + async-each-series "0.1.1" + connect-history-api-fallback "^1.1.0" + immutable "^3.7.6" + server-destroy "1.0.1" + socket.io-client "2.0.4" + stream-throttle "^0.1.3" + +browser-sync-webpack-plugin@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/browser-sync-webpack-plugin/-/browser-sync-webpack-plugin-1.2.0.tgz#33358dde35121f12cbdab46d4453e67b8357726a" + integrity sha512-kPM7BjcZHRa5UjBIdyQbC4HoGprHoZpzlsPDb2P+UaCSmnjonLC3Z9vQBtSmJDghU0KuijkHZ/eLvKF1AyO7zg== + dependencies: + lodash "^4" + +browser-sync@^2.24.6: + version "2.24.7" + resolved "https://registry.yarnpkg.com/browser-sync/-/browser-sync-2.24.7.tgz#0f93bcaabfb84a35a5c98e07682c9e45c6251a93" + integrity sha512-NqXek0cPNEayQm77VGnD+qrwcVBTKMIQ9bdP6IWDRUTU1Bk7tZeq5QR3OG5Rr36Rao1t+Vx1QnfolHvvr5qsTA== + dependencies: + browser-sync-ui v1.0.1 + bs-recipes "1.3.4" + chokidar "1.7.0" + connect "3.6.6" + connect-history-api-fallback "^1.5.0" + dev-ip "^1.0.1" + easy-extender "^2.3.4" + eazy-logger "3.0.2" + etag "^1.8.1" + fresh "^0.5.2" + fs-extra "3.0.1" + http-proxy "1.15.2" + immutable "3.8.2" + localtunnel "1.9.0" + micromatch "2.3.11" + opn "5.3.0" + portscanner "2.1.1" + qs "6.2.3" + raw-body "^2.3.2" + resp-modifier "6.0.2" + rx "4.1.0" + serve-index "1.9.1" + serve-static "1.13.2" + server-destroy "1.0.1" + socket.io "2.1.1" + ua-parser-js "0.7.17" + yargs "6.4.0" + +browserify-aes@^1.0.0, browserify-aes@^1.0.4: + version "1.2.0" + resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" + integrity sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA== + dependencies: + buffer-xor "^1.0.3" + cipher-base "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.3" + inherits "^2.0.1" + safe-buffer "^5.0.1" + +browserify-cipher@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.1.tgz#8d6474c1b870bfdabcd3bcfcc1934a10e94f15f0" + integrity sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w== + dependencies: + browserify-aes "^1.0.4" + browserify-des "^1.0.0" + evp_bytestokey "^1.0.0" + +browserify-des@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.1.tgz#3343124db6d7ad53e26a8826318712bdc8450f9c" + integrity sha512-zy0Cobe3hhgpiOM32Tj7KQ3Vl91m0njwsjzZQK1L+JDf11dzP9qIvjreVinsvXrgfjhStXwUWAEpB9D7Gwmayw== + dependencies: + cipher-base "^1.0.1" + des.js "^1.0.0" + inherits "^2.0.1" + +browserify-rsa@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" + integrity sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ= + dependencies: + bn.js "^4.1.0" + randombytes "^2.0.1" + +browserify-sign@^4.0.0: + version "4.0.4" + resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.0.4.tgz#aa4eb68e5d7b658baa6bf6a57e630cbd7a93d298" + integrity sha1-qk62jl17ZYuqa/alfmMMvXqT0pg= + dependencies: + bn.js "^4.1.1" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.2" + elliptic "^6.0.0" + inherits "^2.0.1" + parse-asn1 "^5.0.0" + +browserify-zlib@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f" + integrity sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA== + dependencies: + pako "~1.0.5" + +browserslist@^1.3.6, browserslist@^1.5.2, browserslist@^1.7.6: + version "1.7.7" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.7.7.tgz#0bd76704258be829b2398bb50e4b62d1a166b0b9" + integrity sha1-C9dnBCWL6CmyOYu1Dkti0aFmsLk= + dependencies: + caniuse-db "^1.0.30000639" + electron-to-chromium "^1.2.7" + +browserslist@^2.0.0, browserslist@^2.11.3: + version "2.11.3" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.11.3.tgz#fe36167aed1bbcde4827ebfe71347a2cc70b99b2" + integrity sha512-yWu5cXT7Av6mVwzWc8lMsJMHWn4xyjSuGYi4IozbVTLUOEYPSagUB8kiMDUHA1fS3zjr8nkxkn9jdvug4BBRmA== + dependencies: + caniuse-lite "^1.0.30000792" + electron-to-chromium "^1.3.30" + +browserslist@^3.2.6, browserslist@^3.2.8: + version "3.2.8" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-3.2.8.tgz#b0005361d6471f0f5952797a76fc985f1f978fc6" + integrity sha512-WHVocJYavUwVgVViC0ORikPHQquXwVh939TaelZ4WDqpWgTX/FsGhl/+P4qBUAGcRvtOgDgC+xftNWWp2RUTAQ== + dependencies: + caniuse-lite "^1.0.30000844" + electron-to-chromium "^1.3.47" + +bs-recipes@1.3.4: + version "1.3.4" + resolved "https://registry.yarnpkg.com/bs-recipes/-/bs-recipes-1.3.4.tgz#0d2d4d48a718c8c044769fdc4f89592dc8b69585" + integrity sha1-DS1NSKcYyMBEdp/cT4lZLci2lYU= + +buffer-xor@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" + integrity sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk= + +buffer@^4.3.0: + version "4.9.1" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" + integrity sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg= + dependencies: + base64-js "^1.0.2" + ieee754 "^1.1.4" + isarray "^1.0.0" + +builtin-modules@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" + integrity sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8= + +builtin-status-codes@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" + integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug= + +bytes@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" + integrity sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg= + +cache-base@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" + integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== + dependencies: + collection-visit "^1.0.0" + component-emitter "^1.2.1" + get-value "^2.0.6" + has-value "^1.0.0" + isobject "^3.0.1" + set-value "^2.0.0" + to-object-path "^0.3.0" + union-value "^1.0.0" + unset-value "^1.0.0" + +callsite@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/callsite/-/callsite-1.0.0.tgz#280398e5d664bd74038b6f0905153e6e8af1bc20" + integrity sha1-KAOY5dZkvXQDi28JBRU+borxvCA= + +camelcase@^1.0.2: + version "1.2.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" + integrity sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk= + +camelcase@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" + integrity sha1-MvxLn82vhF/N9+c7uXysImHwqwo= + +camelcase@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" + integrity sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0= + +caniuse-api@^1.5.2: + version "1.6.1" + resolved "https://registry.yarnpkg.com/caniuse-api/-/caniuse-api-1.6.1.tgz#b534e7c734c4f81ec5fbe8aca2ad24354b962c6c" + integrity sha1-tTTnxzTE+B7F++isoq0kNUuWLGw= + dependencies: + browserslist "^1.3.6" + caniuse-db "^1.0.30000529" + lodash.memoize "^4.1.2" + lodash.uniq "^4.5.0" + +caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639: + version "1.0.30000851" + resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000851.tgz#8a0d3ca4dde72068560acc98bacf75a359e8d3e3" + integrity sha1-ig08pN3nIGhWCsyYus91o1no0+M= + +caniuse-lite@^1.0.30000792, caniuse-lite@^1.0.30000805, caniuse-lite@^1.0.30000844, caniuse-lite@^1.0.30000850: + version "1.0.30000851" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000851.tgz#3b498aebf9f92cf6cff4ab54d13b557c0b590533" + integrity sha512-Y1ecA1cL9wg0vni8t33nBw/poX8ypm+2c3fbwAESj8cm4ufK9CBFQ1+nUK8Dp5dtFo5Fc3JzkI5DKmQbuIo6hQ== + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= + +center-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" + integrity sha1-qg0yYptu6XIgBBHL1EYckHvCt60= + dependencies: + align-text "^0.1.3" + lazy-cache "^1.0.3" + +chalk@^1.1.1, chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= + dependencies: + ansi-styles "^2.2.1" + escape-string-regexp "^1.0.2" + has-ansi "^2.0.0" + strip-ansi "^3.0.0" + supports-color "^2.0.0" + +chalk@^2.0.0, chalk@^2.0.1, chalk@^2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" + integrity sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chardet@^0.4.0: + version "0.4.2" + resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2" + integrity sha1-tUc7M9yXxCTl2Y3IfVXU2KKci/I= + +check-types@^7.3.0: + version "7.3.0" + resolved "https://registry.yarnpkg.com/check-types/-/check-types-7.3.0.tgz#468f571a4435c24248f5fd0cb0e8d87c3c341e7d" + integrity sha1-Ro9XGkQ1wkJI9f0MsOjYfDw0Hn0= + +chokidar@1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" + integrity sha1-eY5ol3gVHIB2tLNg5e3SjNortGg= + dependencies: + anymatch "^1.3.0" + async-each "^1.0.0" + glob-parent "^2.0.0" + inherits "^2.0.1" + is-binary-path "^1.0.0" + is-glob "^2.0.0" + path-is-absolute "^1.0.0" + readdirp "^2.0.0" + optionalDependencies: + fsevents "^1.0.0" + +chokidar@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.0.3.tgz#dcbd4f6cbb2a55b4799ba8a840ac527e5f4b1176" + integrity sha512-zW8iXYZtXMx4kux/nuZVXjkLP+CyIK5Al5FHnj1OgTKGZfp4Oy6/ymtMSKFv3GD8DviEmUPmJg9eFdJ/JzudMg== + dependencies: + anymatch "^2.0.0" + async-each "^1.0.0" + braces "^2.3.0" + glob-parent "^3.1.0" + inherits "^2.0.1" + is-binary-path "^1.0.0" + is-glob "^4.0.0" + normalize-path "^2.1.1" + path-is-absolute "^1.0.0" + readdirp "^2.0.0" + upath "^1.0.0" + optionalDependencies: + fsevents "^1.1.2" + +chownr@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181" + integrity sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE= + +cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" + integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q== + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +clap@^1.0.9: + version "1.2.3" + resolved "https://registry.yarnpkg.com/clap/-/clap-1.2.3.tgz#4f36745b32008492557f46412d66d50cb99bce51" + integrity sha512-4CoL/A3hf90V3VIEjeuhSvlGFEHKzOz+Wfc2IVZc+FaUgU0ZQafJTP49fvnULipOPcAfqhyI2duwQyns6xqjYA== + dependencies: + chalk "^1.1.3" + +class-utils@^0.3.5: + version "0.3.6" + resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" + integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== + dependencies: + arr-union "^3.1.0" + define-property "^0.2.5" + isobject "^3.0.0" + static-extend "^0.1.1" + +cli-cursor@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" + integrity sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU= + dependencies: + restore-cursor "^2.0.0" + +cli-width@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639" + integrity sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk= + +cliui@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" + integrity sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE= + dependencies: + center-align "^0.1.1" + right-align "^0.1.1" + wordwrap "0.0.2" + +cliui@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" + integrity sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0= + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + wrap-ansi "^2.0.0" + +clone@^1.0.2: + version "1.0.4" + resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" + integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4= + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= + +coa@~1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/coa/-/coa-1.0.4.tgz#a9ef153660d6a86a8bdec0289a5c684d217432fd" + integrity sha1-qe8VNmDWqGqL3sAomlxoTSF0Mv0= + dependencies: + q "^1.1.2" + +code-frame@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/code-frame/-/code-frame-5.0.0.tgz#40030707ec46e1d99d5e52dc9f357fcad90d993d" + integrity sha1-QAMHB+xG4dmdXlLcnzV/ytkNmT0= + dependencies: + left-pad "^1.1.3" + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= + +collection-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" + integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= + dependencies: + map-visit "^1.0.0" + object-visit "^1.0.0" + +color-contrast@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/color-contrast/-/color-contrast-0.0.1.tgz#effaee7b3865acc94e1fd1eb078cde5ff75e38f7" + integrity sha1-7/ruezhlrMlOH9HrB4zeX/deOPc= + dependencies: + onecolor "^3.0.5" + +color-convert@^1.3.0, color-convert@^1.8.2, color-convert@^1.9.0, color-convert@^1.9.1: + version "1.9.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed" + integrity sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ== + dependencies: + color-name "^1.1.1" + +color-name@^1.0.0, color-name@^1.1.1: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= + +color-string@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/color-string/-/color-string-0.3.0.tgz#27d46fb67025c5c2fa25993bfbf579e47841b991" + integrity sha1-J9RvtnAlxcL6JZk7+/V55HhBuZE= + dependencies: + color-name "^1.0.0" + +color-string@^1.4.0, color-string@^1.5.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.5.2.tgz#26e45814bc3c9a7cbd6751648a41434514a773a9" + integrity sha1-JuRYFLw8mny9Z1FkikFDRRSnc6k= + dependencies: + color-name "^1.0.0" + simple-swizzle "^0.2.2" + +color@^0.11.0: + version "0.11.4" + resolved "https://registry.yarnpkg.com/color/-/color-0.11.4.tgz#6d7b5c74fb65e841cd48792ad1ed5e07b904d764" + integrity sha1-bXtcdPtl6EHNSHkq0e1eB7kE12Q= + dependencies: + clone "^1.0.2" + color-convert "^1.3.0" + color-string "^0.3.0" + +color@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/color/-/color-1.0.3.tgz#e48e832d85f14ef694fb468811c2d5cfe729b55d" + integrity sha1-5I6DLYXxTvaU+0aIEcLVz+cptV0= + dependencies: + color-convert "^1.8.2" + color-string "^1.4.0" + +color@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/color/-/color-2.0.1.tgz#e4ed78a3c4603d0891eba5430b04b86314f4c839" + integrity sha512-ubUCVVKfT7r2w2D3qtHakj8mbmKms+tThR8gI8zEYCbUBl8/voqFGt3kgBqGwXAopgXybnkuOq+qMYCRrp4cXw== + dependencies: + color-convert "^1.9.1" + color-string "^1.5.2" + +colormin@^1.0.5: + version "1.1.2" + resolved "https://registry.yarnpkg.com/colormin/-/colormin-1.1.2.tgz#ea2f7420a72b96881a38aae59ec124a6f7298133" + integrity sha1-6i90IKcrlogaOKrlnsEkpvcpgTM= + dependencies: + color "^0.11.0" + css-color-names "0.0.4" + has "^1.0.1" + +colors@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63" + integrity sha1-FopHAXVran9RoSzgyXv6KMCE7WM= + +combined-stream@1.0.6, combined-stream@~1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" + integrity sha1-cj599ugBrFYTETp+RFqbactjKBg= + dependencies: + delayed-stream "~1.0.0" + +commander@^2.18.0: + version "2.18.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.18.0.tgz#2bf063ddee7c7891176981a2cc798e5754bc6970" + integrity sha512-6CYPa+JP2ftfRU2qkDK+UTVeQYosOg/2GbcjIcKPHfinyOLPVGXu/ovN86RP49Re5ndJK1N0kuiidFFuepc4ZQ== + +commander@^2.2.0: + version "2.15.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f" + integrity sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag== + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + integrity sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs= + +component-bind@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/component-bind/-/component-bind-1.0.0.tgz#00c608ab7dcd93897c0009651b1d3a8e1e73bbd1" + integrity sha1-AMYIq33Nk4l8AAllGx06jh5zu9E= + +component-cookie@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/component-cookie/-/component-cookie-1.1.3.tgz#053e14a3bd7748154f55724fd39a60c01994ebed" + integrity sha1-BT4Uo713SBVPVXJP05pgwBmU6+0= + dependencies: + debug "*" + +component-emitter@1.2.1, component-emitter@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" + integrity sha1-E3kY1teCg/ffemt8WmPhQOaUJeY= + +component-inherit@0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/component-inherit/-/component-inherit-0.0.3.tgz#645fc4adf58b72b649d5cae65135619db26ff143" + integrity sha1-ZF/ErfWLcrZJ1crmUTVhnbJv8UM= + +component-url@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/component-url/-/component-url-0.2.1.tgz#4e4f4799c43ead9fd3ce91b5a305d220208fee47" + integrity sha1-Tk9HmcQ+rZ/TzpG1owXSICCP7kc= + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + +connect-history-api-fallback@^1.1.0, connect-history-api-fallback@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz#b06873934bc5e344fef611a196a6faae0aee015a" + integrity sha1-sGhzk0vF40T+9hGhlqb6rgruAVo= + +connect@3.6.6: + version "3.6.6" + resolved "https://registry.yarnpkg.com/connect/-/connect-3.6.6.tgz#09eff6c55af7236e137135a72574858b6786f524" + integrity sha1-Ce/2xVr3I24TcTWnJXSFi2eG9SQ= + dependencies: + debug "2.6.9" + finalhandler "1.1.0" + parseurl "~1.3.2" + utils-merge "1.0.1" + +console-browserify@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" + integrity sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA= + dependencies: + date-now "^0.1.4" + +console-control-strings@^1.0.0, console-control-strings@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4= + +constants-browserify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" + integrity sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U= + +content-disposition@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4" + integrity sha1-DPaLud318r55YcOoUXjLhdunjLQ= + +content-type@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" + integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== + +convert-source-map@^1.5.0, convert-source-map@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" + integrity sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU= + +cookie-signature@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" + integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw= + +cookie@0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.3.1.tgz#e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb" + integrity sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s= + +copy-descriptor@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" + integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= + +core-js@^1.0.0: + version "1.2.7" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" + integrity sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY= + +core-js@^2.4.0, core-js@^2.5.0: + version "2.5.7" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e" + integrity sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw== + +core-util-is@1.0.2, core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= + +cosmiconfig@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-4.0.0.tgz#760391549580bbd2df1e562bc177b13c290972dc" + integrity sha512-6e5vDdrXZD+t5v0L8CrurPeybg4Fmf+FCSYxXKYVAqLUtyCSbuyqE059d0kDthTNRzKVjL7QMgNpEUlsoYH3iQ== + dependencies: + is-directory "^0.3.1" + js-yaml "^3.9.0" + parse-json "^4.0.0" + require-from-string "^2.0.1" + +create-ecdh@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.3.tgz#c9111b6f33045c4697f144787f9254cdc77c45ff" + integrity sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw== + dependencies: + bn.js "^4.1.0" + elliptic "^6.0.0" + +create-emotion-styled@^9.2.1: + version "9.2.1" + resolved "https://registry.yarnpkg.com/create-emotion-styled/-/create-emotion-styled-9.2.1.tgz#73eb9ac73e5c915d8035942bde7e8e012ed7e97b" + integrity sha1-c+uaxz5ckV2ANZQr3n6OAS7X6Xs= + dependencies: + "@emotion/is-prop-valid" "^0.6.1" + +create-emotion@^9.2.1: + version "9.2.1" + resolved "https://registry.yarnpkg.com/create-emotion/-/create-emotion-9.2.1.tgz#1316189d53bf65cf191a59d3ac6ecb6f4e13e020" + integrity sha1-ExYYnVO/Zc8ZGlnTrG7Lb04T4CA= + dependencies: + "@emotion/hash" "^0.6.2" + "@emotion/memoize" "^0.6.1" + "@emotion/stylis" "^0.6.5" + "@emotion/unitless" "^0.6.2" + csstype "^2.5.2" + stylis "^3.5.0" + stylis-rule-sheet "^0.0.10" + +create-hash@^1.1.0, create-hash@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" + integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg== + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" + +create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: + version "1.1.7" + resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff" + integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg== + dependencies: + cipher-base "^1.0.3" + create-hash "^1.1.0" + inherits "^2.0.1" + ripemd160 "^2.0.0" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +cross-spawn@^5.0.1: + version "5.1.0" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" + integrity sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk= + dependencies: + lru-cache "^4.0.1" + shebang-command "^1.2.0" + which "^1.2.9" + +cryptiles@3.x.x: + version "3.1.2" + resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-3.1.2.tgz#a89fbb220f5ce25ec56e8c4aa8a4fd7b5b0d29fe" + integrity sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4= + dependencies: + boom "5.x.x" + +crypto-browserify@^3.11.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" + integrity sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg== + dependencies: + browserify-cipher "^1.0.0" + browserify-sign "^4.0.0" + create-ecdh "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.0" + diffie-hellman "^5.0.0" + inherits "^2.0.1" + pbkdf2 "^3.0.3" + public-encrypt "^4.0.0" + randombytes "^2.0.0" + randomfill "^1.0.3" + +css-color-function@~1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/css-color-function/-/css-color-function-1.3.3.tgz#8ed24c2c0205073339fafa004bc8c141fccb282e" + integrity sha1-jtJMLAIFBzM5+voAS8jBQfzLKC4= + dependencies: + balanced-match "0.1.0" + color "^0.11.0" + debug "^3.1.0" + rgb "~0.1.0" + +css-color-names@0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0" + integrity sha1-gIrcLnnPhHOAabZGyyDsJ762KeA= + +css-unit-converter@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/css-unit-converter/-/css-unit-converter-1.1.1.tgz#d9b9281adcfd8ced935bdbaba83786897f64e996" + integrity sha1-2bkoGtz9jO2TW9urqDeGiX9k6ZY= + +cssnano@^3.7.4: + version "3.10.0" + resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-3.10.0.tgz#4f38f6cea2b9b17fa01490f23f1dc68ea65c1c38" + integrity sha1-Tzj2zqK5sX+gFJDyPx3GjqZcHDg= + dependencies: + autoprefixer "^6.3.1" + decamelize "^1.1.2" + defined "^1.0.0" + has "^1.0.1" + object-assign "^4.0.1" + postcss "^5.0.14" + postcss-calc "^5.2.0" + postcss-colormin "^2.1.8" + postcss-convert-values "^2.3.4" + postcss-discard-comments "^2.0.4" + postcss-discard-duplicates "^2.0.1" + postcss-discard-empty "^2.0.1" + postcss-discard-overridden "^0.1.1" + postcss-discard-unused "^2.2.1" + postcss-filter-plugins "^2.0.0" + postcss-merge-idents "^2.1.5" + postcss-merge-longhand "^2.0.1" + postcss-merge-rules "^2.0.3" + postcss-minify-font-values "^1.0.2" + postcss-minify-gradients "^1.0.1" + postcss-minify-params "^1.0.4" + postcss-minify-selectors "^2.0.4" + postcss-normalize-charset "^1.1.0" + postcss-normalize-url "^3.0.7" + postcss-ordered-values "^2.1.0" + postcss-reduce-idents "^2.2.2" + postcss-reduce-initial "^1.0.0" + postcss-reduce-transforms "^1.0.3" + postcss-svgo "^2.1.1" + postcss-unique-selectors "^2.0.2" + postcss-value-parser "^3.2.3" + postcss-zindex "^2.0.1" + +csso@~2.3.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/csso/-/csso-2.3.2.tgz#ddd52c587033f49e94b71fc55569f252e8ff5f85" + integrity sha1-3dUsWHAz9J6Utx/FVWnyUuj/X4U= + dependencies: + clap "^1.0.9" + source-map "^0.5.3" + +csstype@^2.5.2: + version "2.5.3" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.5.3.tgz#2504152e6e1cc59b32098b7f5d6a63f16294c1f7" + integrity sha512-G5HnoK8nOiAq3DXIEoY2n/8Vb7Lgrms+jGJl8E4EJpQEeVONEnPFJSl8IK505wPBoxxtrtHhrRm4WX2GgdqarA== + +d@1: + version "1.0.0" + resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f" + integrity sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8= + dependencies: + es5-ext "^0.10.9" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + integrity sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA= + dependencies: + assert-plus "^1.0.0" + +date-now@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" + integrity sha1-6vQ5/U1ISK105cx9vvIAZyueNFs= + +debug@*, debug@^3.0.0, debug@^3.1.0, debug@~3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" + integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g== + dependencies: + ms "2.0.0" + +debug@2.6.8: + version "2.6.8" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc" + integrity sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw= + dependencies: + ms "2.0.0" + +debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9, debug@~2.6.4: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +decamelize@^1.0.0, decamelize@^1.1.1, decamelize@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= + +decode-uri-component@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" + integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= + +deep-extend@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== + +define-property@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" + integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= + dependencies: + is-descriptor "^0.1.0" + +define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" + integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= + dependencies: + is-descriptor "^1.0.0" + +define-property@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" + integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== + dependencies: + is-descriptor "^1.0.2" + isobject "^3.0.1" + +defined@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" + integrity sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM= + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + integrity sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o= + +depd@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.1.tgz#5783b4e1c459f06fa5ca27f991f3d06e7a310359" + integrity sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k= + +depd@~1.1.1, depd@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= + +des.js@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" + integrity sha1-wHTS4qpqipoH29YfmhXCzYPsjsw= + dependencies: + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +destroy@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" + integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA= + +detect-indent@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" + integrity sha1-920GQ1LN9Docts5hnE7jqUdd4gg= + dependencies: + repeating "^2.0.0" + +detect-libc@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" + integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups= + +dev-ip@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/dev-ip/-/dev-ip-1.0.1.tgz#a76a3ed1855be7a012bb8ac16cb80f3c00dc28f0" + integrity sha1-p2o+0YVb56ASu4rBbLgPPADcKPA= + +diffie-hellman@^5.0.0: + version "5.0.3" + resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" + integrity sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg== + dependencies: + bn.js "^4.1.0" + miller-rabin "^4.0.0" + randombytes "^2.0.0" + +domain-browser@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" + integrity sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA== + +duplexer@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" + integrity sha1-rOb/gIwc5mtX0ev5eXessCM0z8E= + +easy-extender@^2.3.4: + version "2.3.4" + resolved "https://registry.yarnpkg.com/easy-extender/-/easy-extender-2.3.4.tgz#298789b64f9aaba62169c77a2b3b64b4c9589b8f" + integrity sha512-8cAwm6md1YTiPpOvDULYJL4ZS6WfM5/cTeVVh4JsvyYZAoqlRVUpHL9Gr5Fy7HA6xcSZicUia3DeAgO3Us8E+Q== + dependencies: + lodash "^4.17.10" + +eazy-logger@3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/eazy-logger/-/eazy-logger-3.0.2.tgz#a325aa5e53d13a2225889b2ac4113b2b9636f4fc" + integrity sha1-oyWqXlPROiIliJsqxBE7K5Y29Pw= + dependencies: + tfunk "^3.0.1" + +ecc-jsbn@~0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" + integrity sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU= + dependencies: + jsbn "~0.1.0" + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= + +ejs@^2.3.1, ejs@^2.6.1: + version "2.6.1" + resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.6.1.tgz#498ec0d495655abc6f23cd61868d926464071aa0" + integrity sha512-0xy4A/twfrRCnkhfk8ErDi5DqdAsAqeGxht4xkCUrsvhhbQNs7E+4jV0CN7+NKIY0aHE72+XvqtBIXzD31ZbXQ== + +electron-to-chromium@^1.2.7, electron-to-chromium@^1.3.30, electron-to-chromium@^1.3.47: + version "1.3.48" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.48.tgz#d3b0d8593814044e092ece2108fc3ac9aea4b900" + integrity sha1-07DYWTgUBE4JLs4hCPw6ya6kuQA= + +elliptic@^6.0.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.0.tgz#cac9af8762c85836187003c8dfe193e5e2eae5df" + integrity sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8= + dependencies: + bn.js "^4.4.0" + brorand "^1.0.1" + hash.js "^1.0.0" + hmac-drbg "^1.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.0" + +emojis-list@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" + integrity sha1-TapNnbAPmBmIDHn6RXrlsJof04k= + +emotion@^9.1.2: + version "9.2.1" + resolved "https://registry.yarnpkg.com/emotion/-/emotion-9.2.1.tgz#d2aa77b22945d9f40ea9b5ac6bdac42cec35610a" + integrity sha1-0qp3silF2fQOqbWsa9rELOw1YQo= + dependencies: + babel-plugin-emotion "^9.2.0" + create-emotion "^9.2.1" + +encodeurl@~1.0.1, encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= + +encoding@^0.1.11: + version "0.1.12" + resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" + integrity sha1-U4tm8+5izRq1HsMjgp0flIDHS+s= + dependencies: + iconv-lite "~0.4.13" + +engine.io-client@~3.1.0: + version "3.1.6" + resolved "https://registry.yarnpkg.com/engine.io-client/-/engine.io-client-3.1.6.tgz#5bdeb130f8b94a50ac5cbeb72583e7a4a063ddfd" + integrity sha512-hnuHsFluXnsKOndS4Hv6SvUrgdYx1pk2NqfaDMW+GWdgfU3+/V25Cj7I8a0x92idSpa5PIhJRKxPvp9mnoLsfg== + dependencies: + component-emitter "1.2.1" + component-inherit "0.0.3" + debug "~3.1.0" + engine.io-parser "~2.1.1" + has-cors "1.1.0" + indexof "0.0.1" + parseqs "0.0.5" + parseuri "0.0.5" + ws "~3.3.1" + xmlhttprequest-ssl "~1.5.4" + yeast "0.1.2" + +engine.io-client@~3.2.0: + version "3.2.1" + resolved "https://registry.yarnpkg.com/engine.io-client/-/engine.io-client-3.2.1.tgz#6f54c0475de487158a1a7c77d10178708b6add36" + integrity sha512-y5AbkytWeM4jQr7m/koQLc5AxpRKC1hEVUb/s1FUAWEJq5AzJJ4NLvzuKPuxtDi5Mq755WuDvZ6Iv2rXj4PTzw== + dependencies: + component-emitter "1.2.1" + component-inherit "0.0.3" + debug "~3.1.0" + engine.io-parser "~2.1.1" + has-cors "1.1.0" + indexof "0.0.1" + parseqs "0.0.5" + parseuri "0.0.5" + ws "~3.3.1" + xmlhttprequest-ssl "~1.5.4" + yeast "0.1.2" + +engine.io-parser@~2.1.0, engine.io-parser@~2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/engine.io-parser/-/engine.io-parser-2.1.2.tgz#4c0f4cff79aaeecbbdcfdea66a823c6085409196" + integrity sha512-dInLFzr80RijZ1rGpx1+56/uFoH7/7InhH3kZt+Ms6hT8tNx3NGW/WNSA/f8As1WkOfkuyb3tnRyuXGxusclMw== + dependencies: + after "0.8.2" + arraybuffer.slice "~0.0.7" + base64-arraybuffer "0.1.5" + blob "0.0.4" + has-binary2 "~1.0.2" + +engine.io@~3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/engine.io/-/engine.io-3.2.0.tgz#54332506f42f2edc71690d2f2a42349359f3bf7d" + integrity sha512-mRbgmAtQ4GAlKwuPnnAvXXwdPhEx+jkc0OBCLrXuD/CRvwNK3AxRSnqK4FSqmAMRRHryVJP8TopOvmEaA64fKw== + dependencies: + accepts "~1.3.4" + base64id "1.0.0" + cookie "0.3.1" + debug "~3.1.0" + engine.io-parser "~2.1.0" + ws "~3.3.1" + +enhanced-resolve@^3.4.0: + version "3.4.1" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz#0421e339fd71419b3da13d129b3979040230476e" + integrity sha1-BCHjOf1xQZs9oT0Smzl5BAIwR24= + dependencies: + graceful-fs "^4.1.2" + memory-fs "^0.4.0" + object-assign "^4.0.1" + tapable "^0.2.7" + +errno@^0.1.3: + version "0.1.7" + resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618" + integrity sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg== + dependencies: + prr "~1.0.1" + +error-ex@^1.2.0, error-ex@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" + integrity sha1-+FWobOYa3E6GIcPNoh56dhLDqNw= + dependencies: + is-arrayish "^0.2.1" + +es5-ext@^0.10.14, es5-ext@^0.10.35, es5-ext@^0.10.9, es5-ext@~0.10.14: + version "0.10.45" + resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.45.tgz#0bfdf7b473da5919d5adf3bd25ceb754fccc3653" + integrity sha512-FkfM6Vxxfmztilbxxz5UKSD4ICMf5tSpRFtDNtkAhOxZ0EKtX6qwmXNyH/sFyIbX2P/nU5AMiA9jilWsUGJzCQ== + dependencies: + es6-iterator "~2.0.3" + es6-symbol "~3.1.1" + next-tick "1" + +es6-iterator@^2.0.1, es6-iterator@~2.0.1, es6-iterator@~2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" + integrity sha1-p96IkUGgWpSwhUQDstCg+/qY87c= + dependencies: + d "1" + es5-ext "^0.10.35" + es6-symbol "^3.1.1" + +es6-map@^0.1.3: + version "0.1.5" + resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.5.tgz#9136e0503dcc06a301690f0bb14ff4e364e949f0" + integrity sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA= + dependencies: + d "1" + es5-ext "~0.10.14" + es6-iterator "~2.0.1" + es6-set "~0.1.5" + es6-symbol "~3.1.1" + event-emitter "~0.3.5" + +es6-set@~0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1" + integrity sha1-0rPsXU2ADO2BjbU40ol02wpzzLE= + dependencies: + d "1" + es5-ext "~0.10.14" + es6-iterator "~2.0.1" + es6-symbol "3.1.1" + event-emitter "~0.3.5" + +es6-symbol@3.1.1, es6-symbol@^3.1.1, es6-symbol@~3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77" + integrity sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc= + dependencies: + d "1" + es5-ext "~0.10.14" + +es6-weak-map@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.2.tgz#5e3ab32251ffd1538a1f8e5ffa1357772f92d96f" + integrity sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8= + dependencies: + d "1" + es5-ext "^0.10.14" + es6-iterator "^2.0.1" + es6-symbol "^3.1.1" + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= + +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= + +escope@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3" + integrity sha1-4Bl16BJ4GhY6ba392AOY3GTIicM= + dependencies: + es6-map "^0.1.3" + es6-weak-map "^2.0.1" + esrecurse "^4.1.0" + estraverse "^4.1.1" + +esprima@^2.6.0: + version "2.7.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" + integrity sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE= + +esprima@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" + integrity sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw== + +esrecurse@^4.1.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz#007a3b9fdbc2b3bb87e4879ea19c92fdbd3942cf" + integrity sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ== + dependencies: + estraverse "^4.1.0" + +estraverse@^4.1.0, estraverse@^4.1.1: + version "4.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" + integrity sha1-De4/7TH81GlhjOc0IJn8GvoL2xM= + +esutils@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" + integrity sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs= + +etag@^1.8.1, etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= + +event-emitter@~0.3.5: + version "0.3.5" + resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" + integrity sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk= + dependencies: + d "1" + es5-ext "~0.10.14" + +eventemitter3@1.x.x: + version "1.2.0" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-1.2.0.tgz#1c86991d816ad1e504750e73874224ecf3bec508" + integrity sha1-HIaZHYFq0eUEdQ5zh0Ik7PO+xQg= + +events@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" + integrity sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ= + +evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" + integrity sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA== + dependencies: + md5.js "^1.3.4" + safe-buffer "^5.1.1" + +execa@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" + integrity sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c= + dependencies: + cross-spawn "^5.0.1" + get-stream "^3.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + +expand-brackets@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" + integrity sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s= + dependencies: + is-posix-bracket "^0.1.0" + +expand-brackets@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" + integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= + dependencies: + debug "^2.3.3" + define-property "^0.2.5" + extend-shallow "^2.0.1" + posix-character-classes "^0.1.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +expand-range@^1.8.1: + version "1.8.2" + resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" + integrity sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc= + dependencies: + fill-range "^2.1.0" + +express@^4.16.3: + version "4.16.3" + resolved "http://registry.npmjs.org/express/-/express-4.16.3.tgz#6af8a502350db3246ecc4becf6b5a34d22f7ed53" + integrity sha1-avilAjUNsyRuzEvs9rWjTSL37VM= + dependencies: + accepts "~1.3.5" + array-flatten "1.1.1" + body-parser "1.18.2" + content-disposition "0.5.2" + content-type "~1.0.4" + cookie "0.3.1" + cookie-signature "1.0.6" + debug "2.6.9" + depd "~1.1.2" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "1.1.1" + fresh "0.5.2" + merge-descriptors "1.0.1" + methods "~1.1.2" + on-finished "~2.3.0" + parseurl "~1.3.2" + path-to-regexp "0.1.7" + proxy-addr "~2.0.3" + qs "6.5.1" + range-parser "~1.2.0" + safe-buffer "5.1.1" + send "0.16.2" + serve-static "1.13.2" + setprototypeof "1.1.0" + statuses "~1.4.0" + type-is "~1.6.16" + utils-merge "1.0.1" + vary "~1.1.2" + +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= + dependencies: + is-extendable "^0.1.0" + +extend-shallow@^3.0.0, extend-shallow@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" + integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + +extend@~3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" + integrity sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ= + +external-editor@^2.0.4: + version "2.2.0" + resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.2.0.tgz#045511cfd8d133f3846673d1047c154e214ad3d5" + integrity sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A== + dependencies: + chardet "^0.4.0" + iconv-lite "^0.4.17" + tmp "^0.0.33" + +extglob@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" + integrity sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE= + dependencies: + is-extglob "^1.0.0" + +extglob@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" + integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== + dependencies: + array-unique "^0.3.2" + define-property "^1.0.0" + expand-brackets "^2.1.4" + extend-shallow "^2.0.1" + fragment-cache "^0.2.1" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + integrity sha1-lpGEQOMEGnpBT4xS48V06zw+HgU= + +extsprintf@^1.2.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" + integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= + +fast-deep-equal@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614" + integrity sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ= + +fast-deep-equal@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" + integrity sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk= + +fast-json-stable-stringify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" + integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I= + +fbjs@^0.8.16: + version "0.8.16" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db" + integrity sha1-XmdDL1UNxBtXK/VYR7ispk5TN9s= + dependencies: + core-js "^1.0.0" + isomorphic-fetch "^2.1.1" + loose-envify "^1.0.0" + object-assign "^4.1.0" + promise "^7.1.1" + setimmediate "^1.0.5" + ua-parser-js "^0.7.9" + +figures@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" + integrity sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI= + dependencies: + escape-string-regexp "^1.0.5" + +filename-regex@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" + integrity sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY= + +filesize@^3.6.1: + version "3.6.1" + resolved "https://registry.yarnpkg.com/filesize/-/filesize-3.6.1.tgz#090bb3ee01b6f801a8a8be99d31710b3422bb317" + integrity sha512-7KjR1vv6qnicaPMi1iiTcI85CyYwRO/PSFCu6SvqL8jN2Wjt/NIYQTFtFs7fSDCYOstUkEWIQGFUg5YZQfjlcg== + +filewrap@1.0.0, filewrap@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/filewrap/-/filewrap-1.0.0.tgz#a6e3cb380af3473da2edd9c9fb29afa88780ffe5" + integrity sha1-puPLOArzRz2i7dnJ+ymvqIeA/+U= + +fill-range@^2.1.0: + version "2.2.4" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" + integrity sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q== + dependencies: + is-number "^2.1.0" + isobject "^2.0.0" + randomatic "^3.0.0" + repeat-element "^1.1.2" + repeat-string "^1.5.2" + +fill-range@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" + integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= + dependencies: + extend-shallow "^2.0.1" + is-number "^3.0.0" + repeat-string "^1.6.1" + to-regex-range "^2.1.0" + +finalhandler@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.0.tgz#ce0b6855b45853e791b2fcc680046d88253dd7f5" + integrity sha1-zgtoVbRYU+eRsvzGgARtiCU91/U= + dependencies: + debug "2.6.9" + encodeurl "~1.0.1" + escape-html "~1.0.3" + on-finished "~2.3.0" + parseurl "~1.3.2" + statuses "~1.3.1" + unpipe "~1.0.0" + +finalhandler@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.1.tgz#eebf4ed840079c83f4249038c9d703008301b105" + integrity sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg== + dependencies: + debug "2.6.9" + encodeurl "~1.0.2" + escape-html "~1.0.3" + on-finished "~2.3.0" + parseurl "~1.3.2" + statuses "~1.4.0" + unpipe "~1.0.0" + +find-cache-dir@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-1.0.0.tgz#9288e3e9e3cc3748717d39eade17cf71fc30ee6f" + integrity sha1-kojj6ePMN0hxfTnq3hfPcfww7m8= + dependencies: + commondir "^1.0.1" + make-dir "^1.0.0" + pkg-dir "^2.0.0" + +find-root@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.1.0.tgz#abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4" + integrity sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng== + +find-up@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" + integrity sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8= + dependencies: + path-exists "^2.0.0" + pinkie-promise "^2.0.0" + +find-up@^2.0.0, find-up@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= + dependencies: + locate-path "^2.0.0" + +flatten@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782" + integrity sha1-2uRqnXj74lKSJYzB54CkHZXAN4I= + +follow-redirects@^1.2.5: + version "1.5.0" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.0.tgz#234f49cf770b7f35b40e790f636ceba0c3a0ab77" + integrity sha512-fdrt472/9qQ6Kgjvb935ig6vJCuofpBUD14f9Vb+SLlm7xIe4Qva5gey8EKtv8lp7ahE1wilg3xL1znpVGtZIA== + dependencies: + debug "^3.1.0" + +for-in@^1.0.1, for-in@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= + +for-own@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" + integrity sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4= + dependencies: + for-in "^1.0.1" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= + +form-data@~2.3.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.2.tgz#4970498be604c20c005d4f5c23aecd21d6b49099" + integrity sha1-SXBJi+YEwgwAXU9cI67NIda0kJk= + dependencies: + asynckit "^0.4.0" + combined-stream "1.0.6" + mime-types "^2.1.12" + +forwarded@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" + integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ= + +fragment-cache@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" + integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= + dependencies: + map-cache "^0.2.2" + +fresh@0.5.2, fresh@^0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac= + +fs-extra@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-3.0.1.tgz#3794f378c58b342ea7dbbb23095109c4b3b62291" + integrity sha1-N5TzeMWLNC6n27sjCVEJxLO2IpE= + dependencies: + graceful-fs "^4.1.2" + jsonfile "^3.0.0" + universalify "^0.1.0" + +fs-minipass@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d" + integrity sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ== + dependencies: + minipass "^2.2.1" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + +fsevents@^1.0.0, fsevents@^1.1.2: + version "1.2.4" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.4.tgz#f41dcb1af2582af3692da36fc55cbd8e1041c426" + integrity sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg== + dependencies: + nan "^2.9.2" + node-pre-gyp "^0.10.0" + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +gather-stream@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/gather-stream/-/gather-stream-1.0.0.tgz#b33994af457a8115700d410f317733cbe7a0904b" + integrity sha1-szmUr0V6gRVwDUEPMXczy+egkEs= + +gauge@~2.7.3: + version "2.7.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" + integrity sha1-LANAXHU4w51+s3sxcCLjJfsBi/c= + dependencies: + aproba "^1.0.3" + console-control-strings "^1.0.0" + has-unicode "^2.0.0" + object-assign "^4.1.0" + signal-exit "^3.0.0" + string-width "^1.0.1" + strip-ansi "^3.0.1" + wide-align "^1.1.0" + +get-caller-file@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" + integrity sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U= + +get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" + integrity sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ= + +get-value@^2.0.3, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" + integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo= + dependencies: + assert-plus "^1.0.0" + +glob-base@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" + integrity sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q= + dependencies: + glob-parent "^2.0.0" + is-glob "^2.0.0" + +glob-parent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" + integrity sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg= + dependencies: + is-glob "^2.0.0" + +glob-parent@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" + integrity sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4= + dependencies: + is-glob "^3.1.0" + path-dirname "^1.0.0" + +glob@^7.0.5, glob@^7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" + integrity sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +globals@^9.18.0: + version "9.18.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" + integrity sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ== + +graceful-fs@^4.1.2, graceful-fs@^4.1.6: + version "4.1.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" + integrity sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg= + +gzip-size@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-5.0.0.tgz#a55ecd99222f4c48fd8c01c625ce3b349d0a0e80" + integrity sha512-5iI7omclyqrnWw4XbXAmGhPsABkSIDQonv2K0h61lybgofWa6iZyvrI3r2zsJH4P8Nb64fFVzlvfhs0g7BBxAA== + dependencies: + duplexer "^0.1.1" + pify "^3.0.0" + +har-schema@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" + integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI= + +har-validator@~5.0.3: + version "5.0.3" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.0.3.tgz#ba402c266194f15956ef15e0fcf242993f6a7dfd" + integrity sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0= + dependencies: + ajv "^5.1.0" + har-schema "^2.0.0" + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + integrity sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE= + dependencies: + ansi-regex "^2.0.0" + +has-binary2@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-binary2/-/has-binary2-1.0.3.tgz#7776ac627f3ea77250cfc332dab7ddf5e4f5d11d" + integrity sha512-G1LWKhDSvhGeAQ8mPVQlqNcOB2sJdwATtZKl2pDKKHfpf/rYj24lkinxf69blJbnsvtqqNU+L3SL50vzZhXOnw== + dependencies: + isarray "2.0.1" + +has-cors@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/has-cors/-/has-cors-1.1.0.tgz#5e474793f7ea9843d1bb99c23eef49ff126fff39" + integrity sha1-XkdHk/fqmEPRu5nCPu9J/xJv/zk= + +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + integrity sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo= + +has-flag@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" + integrity sha1-6CB68cx7MNRGzHC3NLXovhj4jVE= + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + +has-unicode@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk= + +has-value@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" + integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= + dependencies: + get-value "^2.0.3" + has-values "^0.1.4" + isobject "^2.0.0" + +has-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" + integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= + dependencies: + get-value "^2.0.6" + has-values "^1.0.0" + isobject "^3.0.0" + +has-values@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" + integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= + +has-values@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" + integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= + dependencies: + is-number "^3.0.0" + kind-of "^4.0.0" + +has@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +hash-base@^3.0.0: + version "3.0.4" + resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918" + integrity sha1-X8hoaEfs1zSZQDMZprCj8/auSRg= + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +hash.js@^1.0.0, hash.js@^1.0.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.3.tgz#340dedbe6290187151c1ea1d777a3448935df846" + integrity sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA== + dependencies: + inherits "^2.0.3" + minimalistic-assert "^1.0.0" + +hawk@~6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/hawk/-/hawk-6.0.2.tgz#af4d914eb065f9b5ce4d9d11c1cb2126eecc3038" + integrity sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ== + dependencies: + boom "4.x.x" + cryptiles "3.x.x" + hoek "4.x.x" + sntp "2.x.x" + +hmac-drbg@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +hoek@4.x.x: + version "4.2.1" + resolved "https://registry.yarnpkg.com/hoek/-/hoek-4.2.1.tgz#9634502aa12c445dd5a7c5734b572bb8738aacbb" + integrity sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA== + +home-or-tmp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" + integrity sha1-42w/LSyufXRqhX440Y1fMqeILbg= + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.1" + +hoopy@^0.1.2: + version "0.1.4" + resolved "https://registry.yarnpkg.com/hoopy/-/hoopy-0.1.4.tgz#609207d661100033a9a9402ad3dea677381c1b1d" + integrity sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ== + +hosted-git-info@^2.1.4: + version "2.6.0" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.6.0.tgz#23235b29ab230c576aab0d4f13fc046b0b038222" + integrity sha512-lIbgIIQA3lz5XaB6vxakj6sDHADJiZadYEJB+FgA+C4nubM1NwcuvUr9EJPmnH1skZqpqUzWborWo8EIUi0Sdw== + +html-comment-regex@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/html-comment-regex/-/html-comment-regex-1.1.1.tgz#668b93776eaae55ebde8f3ad464b307a4963625e" + integrity sha1-ZouTd26q5V696POtRkswekljYl4= + +http-errors@1.6.2: + version "1.6.2" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.2.tgz#0a002cc85707192a7e7946ceedc11155f60ec736" + integrity sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY= + dependencies: + depd "1.1.1" + inherits "2.0.3" + setprototypeof "1.0.3" + statuses ">= 1.3.1 < 2" + +http-errors@1.6.3, http-errors@~1.6.2: + version "1.6.3" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" + integrity sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0= + dependencies: + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.0" + statuses ">= 1.4.0 < 2" + +http-proxy@1.15.2: + version "1.15.2" + resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.15.2.tgz#642fdcaffe52d3448d2bda3b0079e9409064da31" + integrity sha1-ZC/cr/5S00SNK9o7AHnpQJBk2jE= + dependencies: + eventemitter3 "1.x.x" + requires-port "1.x.x" + +http-signature@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" + integrity sha1-muzZJRFHcvPZW2WmCruPfBj7rOE= + dependencies: + assert-plus "^1.0.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +https-browserify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" + integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM= + +hygienist-middleware@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/hygienist-middleware/-/hygienist-middleware-0.1.3.tgz#42bdb5ccdc137e95c55a0d031423d2f5a46cdc7e" + integrity sha1-Qr21zNwTfpXFWg0DFCPS9aRs3H4= + dependencies: + minimatch "3.0.3" + +iconv-lite@0.4.19: + version "0.4.19" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" + integrity sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ== + +iconv-lite@0.4.23, iconv-lite@^0.4.17, iconv-lite@^0.4.4, iconv-lite@~0.4.13: + version "0.4.23" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.23.tgz#297871f63be507adcfbfca715d0cd0eed84e9a63" + integrity sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ieee754@^1.1.4: + version "1.1.11" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.11.tgz#c16384ffe00f5b7835824e67b6f2bd44a5229455" + integrity sha512-VhDzCKN7K8ufStx/CLj5/PDTMgph+qwN5Pkd5i0sGnVwk56zJ0lkT8Qzi1xqWLS0Wp29DgDtNeS7v8/wMoZeHg== + +ignore-walk@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8" + integrity sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ== + dependencies: + minimatch "^3.0.4" + +immutability-helper@^2.1.2: + version "2.7.0" + resolved "https://registry.yarnpkg.com/immutability-helper/-/immutability-helper-2.7.0.tgz#4ea9916cc8f45142ec3e3f0fce75fa5d66fa1b38" + integrity sha512-8GODapwCoeBIoBkaldNiaJwfD6Hgp5TL4SrOl6jDip5JLmcnlfVlLEC6MRqa1WzFiwZ6xq6GC0AaBtoboDvkyQ== + dependencies: + invariant "^2.2.0" + +immutable@3.8.2, immutable@^3.7.6: + version "3.8.2" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.2.tgz#c2439951455bb39913daf281376f1530e104adf3" + integrity sha1-wkOZUUVbs5kT2vKBN28VMOEErfM= + +import-cwd@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/import-cwd/-/import-cwd-2.1.0.tgz#aa6cf36e722761285cb371ec6519f53e2435b0a9" + integrity sha1-qmzzbnInYShcs3HsZRn1PiQ1sKk= + dependencies: + import-from "^2.1.0" + +import-from@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/import-from/-/import-from-2.1.0.tgz#335db7f2a7affd53aaa471d4b8021dee36b7f3b1" + integrity sha1-M1238qev/VOqpHHUuAId7ja387E= + dependencies: + resolve-from "^3.0.0" + +indexes-of@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" + integrity sha1-8w9xbI4r00bHtn0985FVZqfAVgc= + +indexof@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" + integrity sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10= + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= + +inherits@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" + integrity sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE= + +ini@~1.3.0: + version "1.3.5" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" + integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== + +inquirer@^3.2.1: + version "3.3.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.3.0.tgz#9dd2f2ad765dcab1ff0443b491442a20ba227dc9" + integrity sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ== + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.0" + cli-cursor "^2.1.0" + cli-width "^2.0.0" + external-editor "^2.0.4" + figures "^2.0.0" + lodash "^4.3.0" + mute-stream "0.0.7" + run-async "^2.2.0" + rx-lite "^4.0.8" + rx-lite-aggregates "^4.0.8" + string-width "^2.1.0" + strip-ansi "^4.0.0" + through "^2.3.6" + +interpret@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614" + integrity sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ= + +invariant@^2.2.0, invariant@^2.2.2: + version "2.2.4" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" + integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== + dependencies: + loose-envify "^1.0.0" + +invert-kv@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" + integrity sha1-EEqOSqym09jNFXqO+L+rLXo//bY= + +ipaddr.js@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.6.0.tgz#e3fa357b773da619f26e95f049d055c72796f86b" + integrity sha1-4/o1e3c9phnybpXwSdBVxyeW+Gs= + +is-absolute-url@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6" + integrity sha1-UFMN+4T8yap9vnhS6Do3uTufKqY= + +is-accessor-descriptor@^0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" + integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= + dependencies: + kind-of "^3.0.2" + +is-accessor-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" + integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== + dependencies: + kind-of "^6.0.0" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= + +is-arrayish@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.1.tgz#c2dfc386abaa0c3e33c48db3fe87059e69065efd" + integrity sha1-wt/DhquqDD4zxI2z/ocFnmkGXv0= + +is-binary-path@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" + integrity sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg= + dependencies: + binary-extensions "^1.0.0" + +is-binary-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.0.0.tgz#0e61cea6974b24dda8bcc8366ce58a69265d1a36" + integrity sha1-DmHOppdLJN2ovMg2bOWKaSZdGjY= + dependencies: + binary-extensions "^1.0.0" + +is-buffer@^1.1.5: + version "1.1.6" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" + integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== + +is-builtin-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" + integrity sha1-VAVy0096wxGfj3bDDLwbHgN6/74= + dependencies: + builtin-modules "^1.0.0" + +is-data-descriptor@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" + integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= + dependencies: + kind-of "^3.0.2" + +is-data-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" + integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== + dependencies: + kind-of "^6.0.0" + +is-descriptor@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" + integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== + dependencies: + is-accessor-descriptor "^0.1.6" + is-data-descriptor "^0.1.4" + kind-of "^5.0.0" + +is-descriptor@^1.0.0, is-descriptor@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" + integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== + dependencies: + is-accessor-descriptor "^1.0.0" + is-data-descriptor "^1.0.0" + kind-of "^6.0.2" + +is-directory@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" + integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= + +is-dotfile@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" + integrity sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE= + +is-equal-shallow@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" + integrity sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ= + dependencies: + is-primitive "^2.0.0" + +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== + dependencies: + is-plain-object "^2.0.4" + +is-extglob@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" + integrity sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA= + +is-extglob@^2.1.0, is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= + +is-finite@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" + integrity sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko= + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + integrity sha1-754xOG8DGn8NZDr4L95QxFfvAMs= + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= + +is-glob@^2.0.0, is-glob@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" + integrity sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM= + dependencies: + is-extglob "^1.0.0" + +is-glob@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" + integrity sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo= + dependencies: + is-extglob "^2.1.0" + +is-glob@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.0.tgz#9521c76845cc2610a85203ddf080a958c2ffabc0" + integrity sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A= + dependencies: + is-extglob "^2.1.1" + +is-number-like@^1.0.3: + version "1.0.8" + resolved "https://registry.yarnpkg.com/is-number-like/-/is-number-like-1.0.8.tgz#2e129620b50891042e44e9bbbb30593e75cfbbe3" + integrity sha512-6rZi3ezCyFcn5L71ywzz2bS5b2Igl1En3eTlZlvKjpz1n3IZLAYMbKYAIQgFmEu0GENg92ziU/faEOA/aixjbA== + dependencies: + lodash.isfinite "^3.3.2" + +is-number@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" + integrity sha1-Afy7s5NGOlSPL0ZszhbezknbkI8= + dependencies: + kind-of "^3.0.2" + +is-number@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" + integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= + dependencies: + kind-of "^3.0.2" + +is-number@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" + integrity sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ== + +is-odd@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-odd/-/is-odd-2.0.0.tgz#7646624671fd7ea558ccd9a2795182f2958f1b24" + integrity sha512-OTiixgpZAT1M4NHgS5IguFp/Vz2VI3U7Goh4/HA1adtwyLtSBrxYlcSYkhpAE07s4fKEcjrFxyvtQBND4vFQyQ== + dependencies: + is-number "^4.0.0" + +is-plain-obj@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" + integrity sha1-caUMhCnfync8kqOQpKA7OfzVHT4= + +is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== + dependencies: + isobject "^3.0.1" + +is-posix-bracket@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" + integrity sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q= + +is-primitive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" + integrity sha1-IHurkWOEmcB7Kt8kCkGochADRXU= + +is-promise@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" + integrity sha1-eaKp7OfwlugPNtKy87wWwf9L8/o= + +is-stream@^1.0.1, is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= + +is-svg@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-svg/-/is-svg-2.1.0.tgz#cf61090da0d9efbcab8722deba6f032208dbb0e9" + integrity sha1-z2EJDaDZ77yrhyLeum8DIgjbsOk= + dependencies: + html-comment-regex "^1.1.0" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +is-utf8@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + integrity sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI= + +is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" + integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== + +is-wsl@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" + integrity sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0= + +isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= + +isarray@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.1.tgz#a37d94ed9cda2d59865c9f76fe596ee1f338741e" + integrity sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4= + +isbinaryfile@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-3.0.2.tgz#4a3e974ec0cba9004d3fc6cde7209ea69368a621" + integrity sha1-Sj6XTsDLqQBNP8bN5yCeppNopiE= + +isemail@2.x.x: + version "2.2.1" + resolved "https://registry.yarnpkg.com/isemail/-/isemail-2.2.1.tgz#0353d3d9a62951080c262c2aa0a42b8ea8e9e2a6" + integrity sha1-A1PT2aYpUQgMJiwqoKQrjqjp4qY= + +isemail@3.x.x: + version "3.1.2" + resolved "https://registry.yarnpkg.com/isemail/-/isemail-3.1.2.tgz#937cf919002077999a73ea8b1951d590e84e01dd" + integrity sha512-zfRhJn9rFSGhzU5tGZqepRSAj3+g6oTOHxMGGriWNJZzyLPUK8H7VHpqKntegnW8KLyGA9zwuNaCoopl40LTpg== + dependencies: + punycode "2.x.x" + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= + +isnumeric@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/isnumeric/-/isnumeric-0.2.0.tgz#a2347ba360de19e33d0ffd590fddf7755cbf2e64" + integrity sha1-ojR7o2DeGeM9D/1ZD933dVy/LmQ= + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= + dependencies: + isarray "1.0.0" + +isobject@^3.0.0, isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= + +isomorphic-fetch@^2.1.1, isomorphic-fetch@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" + integrity sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk= + dependencies: + node-fetch "^1.0.1" + whatwg-fetch ">=0.10.0" + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= + +items@2.x.x: + version "2.1.1" + resolved "https://registry.yarnpkg.com/items/-/items-2.1.1.tgz#8bd16d9c83b19529de5aea321acaada78364a198" + integrity sha1-i9FtnIOxlSneWuoyGsqtp4NkoZg= + +joi@^10.0.0: + version "10.6.0" + resolved "https://registry.yarnpkg.com/joi/-/joi-10.6.0.tgz#52587f02d52b8b75cdb0c74f0b164a191a0e1fc2" + integrity sha512-hBF3LcqyAid+9X/pwg+eXjD2QBZI5eXnBFJYaAkH4SK3mp9QSRiiQnDYlmlz5pccMvnLcJRS4whhDOTCkmsAdQ== + dependencies: + hoek "4.x.x" + isemail "2.x.x" + items "2.x.x" + topo "2.x.x" + +joi@^12.0.0: + version "12.0.0" + resolved "https://registry.yarnpkg.com/joi/-/joi-12.0.0.tgz#46f55e68f4d9628f01bbb695902c8b307ad8d33a" + integrity sha512-z0FNlV4NGgjQN1fdtHYXf5kmgludM65fG/JlXzU6+rwkt9U5UWuXVYnXa2FpK0u6+qBuCmrm5byPNuiiddAHvQ== + dependencies: + hoek "4.x.x" + isemail "3.x.x" + topo "2.x.x" + +js-base64@^2.1.9: + version "2.4.5" + resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.4.5.tgz#e293cd3c7c82f070d700fc7a1ca0a2e69f101f92" + integrity sha512-aUnNwqMOXw3yvErjMPSQu6qIIzUmT1e5KcU1OZxRDU1g/am6mzBvcrmLAYwzmB59BHPrh5/tKaiF4OPhqRWESQ== + +js-cookie@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/js-cookie/-/js-cookie-2.2.0.tgz#1b2c279a6eece380a12168b92485265b35b1effb" + integrity sha1-Gywnmm7s44ChIWi5JIUmWzWx7/s= + +js-tokens@^3.0.0, js-tokens@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" + integrity sha1-mGbfOVECEw449/mWvOtlRDIJwls= + +js-yaml@^3.4.5, js-yaml@^3.9.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1" + integrity sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +js-yaml@~3.7.0: + version "3.7.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.7.0.tgz#5c967ddd837a9bfdca5f2de84253abe8a1c03b80" + integrity sha1-XJZ93YN6m/3KXy3oQlOr6KHAO4A= + dependencies: + argparse "^1.0.7" + esprima "^2.6.0" + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= + +jsesc@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" + integrity sha1-RsP+yMGJKxKwgz25vHYiF226s0s= + +jsesc@~0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" + integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0= + +json-loader@^0.5.4: + version "0.5.7" + resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.7.tgz#dca14a70235ff82f0ac9a3abeb60d337a365185d" + integrity sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w== + +json-parse-better-errors@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" + integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== + +json-schema-traverse@^0.3.0: + version "0.3.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" + integrity sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A= + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= + +json5@^0.5.0, json5@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" + integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE= + +jsonfile@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-3.0.1.tgz#a5ecc6f65f53f662c4415c7675a0331d0992ec66" + integrity sha1-pezG9l9T9mLEQVx2daAzHQmS7GY= + optionalDependencies: + graceful-fs "^4.1.6" + +jsprim@^1.2.2: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" + integrity sha1-MT5mvB5cwG5Di8G3SZwuXFastqI= + dependencies: + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.2.3" + verror "1.10.0" + +kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" + integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= + dependencies: + is-buffer "^1.1.5" + +kind-of@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" + integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= + dependencies: + is-buffer "^1.1.5" + +kind-of@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" + integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== + +kind-of@^6.0.0, kind-of@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" + integrity sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA== + +laggard@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/laggard/-/laggard-2.0.1.tgz#b34e87a5687788b9537e34c1b0560fed8f8c0cd9" + integrity sha512-XCUGeE3r3VWxM8CV9aw+GjG3v3vTInyCf3p9YUo1SCTkM4N93/JaRH/4Lpz0hDZnaEQsArtAbp+rYic3PdTpbg== + dependencies: + minimist "^1.2.0" + pixrem "^4.0.1" + postcss "^6.0.8" + postcss-color-rgba-fallback "^3.0.0" + postcss-opacity "^5.0.0" + postcss-pseudoelements "^5.0.0" + postcss-reporter "^5.0.0" + postcss-vmin "^3.0.0" + postcss-will-change "^2.0.0" + read-file-stdin "^0.2.0" + write-file-stdout "0.0.2" + +lazy-cache@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + integrity sha1-odePw6UEdMuAhF07O24dpJpEbo4= + +lcid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" + integrity sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU= + dependencies: + invert-kv "^1.0.0" + +left-pad@^1.1.3: + version "1.3.0" + resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e" + integrity sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA== + +limiter@^1.0.5: + version "1.1.3" + resolved "https://registry.yarnpkg.com/limiter/-/limiter-1.1.3.tgz#32e2eb55b2324076943e5d04c1185ffb387968ef" + integrity sha512-zrycnIMsLw/3ZxTbW7HCez56rcFGecWTx5OZNplzcXUUmJLmoYArC6qdJzmAN5BWiNXGcpjhF9RQ1HSv5zebEw== + +load-json-file@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" + integrity sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA= + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + pinkie-promise "^2.0.0" + strip-bom "^2.0.0" + +load-json-file@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" + integrity sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg= + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + strip-bom "^3.0.0" + +loader-runner@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.3.0.tgz#f482aea82d543e07921700d5a46ef26fdac6b8a2" + integrity sha1-9IKuqC1UPgeSFwDVpG7yb9rGuKI= + +loader-utils@^1.0.2, loader-utils@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.1.0.tgz#c98aef488bcceda2ffb5e2de646d6a754429f5cd" + integrity sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0= + dependencies: + big.js "^3.1.3" + emojis-list "^2.0.0" + json5 "^0.5.0" + +localtunnel@1.9.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/localtunnel/-/localtunnel-1.9.0.tgz#8ffecdcf8c8a14f62df1056cf9d54acbb0bb9a8f" + integrity sha512-wCIiIHJ8kKIcWkTQE3m1VRABvsH2ZuOkiOpZUofUCf6Q42v3VIZ+Q0YfX1Z4sYDRj0muiKL1bLvz1FeoxsPO0w== + dependencies: + axios "0.17.1" + debug "2.6.8" + openurl "1.1.1" + yargs "6.6.0" + +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + +lodash.clone@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.clone/-/lodash.clone-4.5.0.tgz#195870450f5a13192478df4bc3d23d2dea1907b6" + integrity sha1-GVhwRQ9aExkkeN9Lw9I9LeoZB7Y= + +lodash.difference@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.difference/-/lodash.difference-4.5.0.tgz#9ccb4e505d486b91651345772885a2df27fd017c" + integrity sha1-nMtOUF1Ia5FlE0V3KIWi3yf9AXw= + +lodash.isfinite@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/lodash.isfinite/-/lodash.isfinite-3.3.2.tgz#fb89b65a9a80281833f0b7478b3a5104f898ebb3" + integrity sha1-+4m2WpqAKBgz8LdHizpRBPiY67M= + +lodash.memoize@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" + integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= + +lodash.merge@^4.6.0, lodash.merge@^4.6.1: + version "4.6.1" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.1.tgz#adc25d9cb99b9391c59624f379fbba60d7111d54" + integrity sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ== + +lodash.reduce@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.reduce/-/lodash.reduce-4.6.0.tgz#f1ab6b839299ad48f784abbf476596f03b914d3b" + integrity sha1-8atrg5KZrUj3hKu/R2WW8DuRTTs= + +lodash.union@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.union/-/lodash.union-4.6.0.tgz#48bb5088409f16f1821666641c44dd1aaae3cd88" + integrity sha1-SLtQiECfFvGCFmZkHETdGqrjzYg= + +lodash.uniq@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" + integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= + +lodash@^4, lodash@^4.12.0, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.3.0: + version "4.17.10" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" + integrity sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg== + +log-symbols@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" + integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg== + dependencies: + chalk "^2.0.1" + +longest@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + integrity sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc= + +loose-envify@^1.0.0, loose-envify@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" + integrity sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg= + dependencies: + js-tokens "^3.0.0" + +lru-cache@^4.0.1: + version "4.1.3" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.3.tgz#a1175cf3496dfc8436c156c334b4955992bce69c" + integrity sha512-fFEhvcgzuIoJVUF8fYr5KR0YqxD238zgObTps31YdADwPPAp82a4M8TrckkWyx7ekNlf9aBcVn81cFwwXngrJA== + dependencies: + pseudomap "^1.0.2" + yallist "^2.1.2" + +make-dir@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" + integrity sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ== + dependencies: + pify "^3.0.0" + +map-cache@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" + integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= + +map-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" + integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= + dependencies: + object-visit "^1.0.0" + +marked@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/marked/-/marked-0.5.1.tgz#062f43b88b02ee80901e8e8d8e6a620ddb3aa752" + integrity sha512-iUkBZegCZou4AdwbKTwSW/lNDcz5OuRSl3qdcl31Ia0B2QPG0Jn+tKblh/9/eP9/6+4h27vpoh8wel/vQOV0vw== + +math-expression-evaluator@^1.2.14: + version "1.2.17" + resolved "https://registry.yarnpkg.com/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz#de819fdbcd84dccd8fae59c6aeb79615b9d266ac" + integrity sha1-3oGf282E3M2PrlnGrreWFbnSZqw= + +math-random@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac" + integrity sha1-izqsWIuKZuSXXjzepn97sylgH6w= + +md5.js@^1.3.4: + version "1.3.4" + resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d" + integrity sha1-6b296UogpawYsENA/Fdk1bCdkB0= + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" + integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g= + +mem@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" + integrity sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y= + dependencies: + mimic-fn "^1.0.0" + +memory-fs@^0.4.0, memory-fs@~0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" + integrity sha1-OpoguEYlI+RHz7x+i7gO1me/xVI= + dependencies: + errno "^0.1.3" + readable-stream "^2.0.1" + +merge-descriptors@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" + integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= + +methods@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" + integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4= + +micromatch@2.3.11, micromatch@^2.1.5: + version "2.3.11" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" + integrity sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU= + dependencies: + arr-diff "^2.0.0" + array-unique "^0.2.1" + braces "^1.8.2" + expand-brackets "^0.1.4" + extglob "^0.3.1" + filename-regex "^2.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.1" + kind-of "^3.0.2" + normalize-path "^2.0.1" + object.omit "^2.0.0" + parse-glob "^3.0.4" + regex-cache "^0.4.2" + +micromatch@^3.0.4, micromatch@^3.1.4: + version "3.1.10" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" + integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + braces "^2.3.1" + define-property "^2.0.2" + extend-shallow "^3.0.2" + extglob "^2.0.4" + fragment-cache "^0.2.1" + kind-of "^6.0.2" + nanomatch "^1.2.9" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.2" + +miller-rabin@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" + integrity sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA== + dependencies: + bn.js "^4.0.0" + brorand "^1.0.1" + +mime-db@~1.33.0: + version "1.33.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.33.0.tgz#a3492050a5cb9b63450541e39d9788d2272783db" + integrity sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ== + +mime-types@^2.1.12, mime-types@~2.1.17, mime-types@~2.1.18: + version "2.1.18" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8" + integrity sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ== + dependencies: + mime-db "~1.33.0" + +mime@1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6" + integrity sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ== + +mimic-fn@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" + integrity sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ== + +minimalistic-assert@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== + +minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= + +minimatch@3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" + integrity sha1-Kk5AkLlrLbBqnX3wEFWmKnfJt3Q= + dependencies: + brace-expansion "^1.0.0" + +minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== + dependencies: + brace-expansion "^1.1.7" + +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= + +minimist@^1.1.2, minimist@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ= + +minipass@^2.2.1, minipass@^2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.3.tgz#a7dcc8b7b833f5d368759cce544dccb55f50f233" + integrity sha512-/jAn9/tEX4gnpyRATxgHEOV6xbcyxgT7iUnxo9Y3+OB0zX00TgKIv/2FZCf5brBbICcwbLqVv2ImjvWWrQMSYw== + dependencies: + safe-buffer "^5.1.2" + yallist "^3.0.0" + +minizlib@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.1.0.tgz#11e13658ce46bc3a70a267aac58359d1e0c29ceb" + integrity sha512-4T6Ur/GctZ27nHfpt9THOdRZNgyJ9FZchYO1ceg5S8Q3DNLCKYy44nCZzgCJgcvx2UM8czmqak5BCxJMrq37lA== + dependencies: + minipass "^2.2.1" + +mixin-deep@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" + integrity sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ== + dependencies: + for-in "^1.0.2" + is-extendable "^1.0.1" + +mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= + dependencies: + minimist "0.0.8" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + +mute-stream@0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" + integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= + +nan@^2.9.2: + version "2.10.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f" + integrity sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA== + +nanoid@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-1.0.3.tgz#3ff31779301f481baa52a6a31a67c8f6e91949d2" + integrity sha512-l5PWjXxZa6DTMzCO3uXNnnNxuqSUeTxNEMWsSr+5QUbC7g00Z4d6tSp8r0RQpY5h49KjwsMxmehLIfmuLv+6CQ== + +nanomatch@^1.2.9: + version "1.2.9" + resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.9.tgz#879f7150cb2dab7a471259066c104eee6e0fa7c2" + integrity sha512-n8R9bS8yQ6eSXaV6jHUpKzD8gLsin02w1HSFiegwrs9E098Ylhw5jdyKPaYqvHknHaSCKTPp7C8dGCQ0q9koXA== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + define-property "^2.0.2" + extend-shallow "^3.0.2" + fragment-cache "^0.2.1" + is-odd "^2.0.0" + is-windows "^1.0.2" + kind-of "^6.0.2" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +ncp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ncp/-/ncp-2.0.0.tgz#195a21d6c46e361d2fb1281ba38b91e9df7bdbb3" + integrity sha1-GVoh1sRuNh0vsSgbo4uR6d9727M= + +needle@^2.2.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.1.tgz#b5e325bd3aae8c2678902fa296f729455d1d3a7d" + integrity sha512-t/ZswCM9JTWjAdXS9VpvqhI2Ct2sL2MdY4fUXqGJaGBk13ge99ObqRksRTbBE56K+wxUXwwfZYOuZHifFW9q+Q== + dependencies: + debug "^2.1.2" + iconv-lite "^0.4.4" + sax "^1.2.4" + +negotiator@0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9" + integrity sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk= + +neo-async@^2.5.0: + version "2.5.1" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.5.1.tgz#acb909e327b1e87ec9ef15f41b8a269512ad41ee" + integrity sha512-3KL3fvuRkZ7s4IFOMfztb7zJp3QaVWnBeGoJlgB38XnCRPj/0tLzzLG5IB8NYOHbJ8g8UGrgZv44GLDk6CxTxA== + +next-tick@1: + version "1.0.0" + resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" + integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= + +node-fetch@^1.0.1: + version "1.7.3" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" + integrity sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ== + dependencies: + encoding "^0.1.11" + is-stream "^1.0.1" + +node-fetch@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.2.0.tgz#4ee79bde909262f9775f731e3656d0db55ced5b5" + integrity sha512-OayFWziIxiHY8bCUyLX6sTpDH8Jsbp4FfYd1j1f7vZyfgkcOnAyM4oQR16f8a0s7Gl/viMGRey8eScYk4V4EZA== + +node-libs-browser@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.1.0.tgz#5f94263d404f6e44767d726901fff05478d600df" + integrity sha512-5AzFzdoIMb89hBGMZglEegffzgRg+ZFoUmisQ8HI4j1KDdpx13J0taNp2y9xPbur6W61gepGDDotGBVQ7mfUCg== + dependencies: + assert "^1.1.1" + browserify-zlib "^0.2.0" + buffer "^4.3.0" + console-browserify "^1.1.0" + constants-browserify "^1.0.0" + crypto-browserify "^3.11.0" + domain-browser "^1.1.1" + events "^1.0.0" + https-browserify "^1.0.0" + os-browserify "^0.3.0" + path-browserify "0.0.0" + process "^0.11.10" + punycode "^1.2.4" + querystring-es3 "^0.2.0" + readable-stream "^2.3.3" + stream-browserify "^2.0.1" + stream-http "^2.7.2" + string_decoder "^1.0.0" + timers-browserify "^2.0.4" + tty-browserify "0.0.0" + url "^0.11.0" + util "^0.10.3" + vm-browserify "0.0.4" + +node-pre-gyp@^0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.10.0.tgz#6e4ef5bb5c5203c6552448828c852c40111aac46" + integrity sha512-G7kEonQLRbcA/mOoFoxvlMrw6Q6dPf92+t/l0DFSMuSlDoWaI9JWIyPwK0jyE1bph//CUEL65/Fz1m2vJbmjQQ== + dependencies: + detect-libc "^1.0.2" + mkdirp "^0.5.1" + needle "^2.2.0" + nopt "^4.0.1" + npm-packlist "^1.1.6" + npmlog "^4.0.2" + rc "^1.1.7" + rimraf "^2.6.1" + semver "^5.3.0" + tar "^4" + +nopt@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" + integrity sha1-0NRoWv1UFRk8jHUFYC0NF81kR00= + dependencies: + abbrev "1" + osenv "^0.1.4" + +nopt@~1.0.10: + version "1.0.10" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee" + integrity sha1-bd0hvSoxQXuScn3Vhfim83YI6+4= + dependencies: + abbrev "1" + +normalize-package-data@^2.3.2: + version "2.4.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" + integrity sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw== + dependencies: + hosted-git-info "^2.1.4" + is-builtin-module "^1.0.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-path@^2.0.0, normalize-path@^2.0.1, normalize-path@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" + integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= + dependencies: + remove-trailing-separator "^1.0.1" + +normalize-range@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" + integrity sha1-LRDAa9/TEuqXd2laTShDlFa3WUI= + +normalize-url@^1.4.0: + version "1.9.1" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-1.9.1.tgz#2cc0d66b31ea23036458436e3620d85954c66c3c" + integrity sha1-LMDWazHqIwNkWENuNiDYWVTGbDw= + dependencies: + object-assign "^4.0.1" + prepend-http "^1.0.0" + query-string "^4.1.0" + sort-keys "^1.0.0" + +normalize.css@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/normalize.css/-/normalize.css-8.0.0.tgz#14ac5e461612538a4ce9be90a7da23f86e718493" + integrity sha512-iXcbM3NWr0XkNyfiSBsoPezi+0V92P9nj84yVV1/UZxRUrGczgX/X91KMAGM0omWLY2+2Q1gKD/XRn4gQRDB2A== + +npm-bundled@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.3.tgz#7e71703d973af3370a9591bafe3a63aca0be2308" + integrity sha512-ByQ3oJ/5ETLyglU2+8dBObvhfWXX8dtPZDMePCahptliFX2iIuhyEszyFk401PZUNQH20vvdW5MLjJxkwU80Ow== + +npm-packlist@^1.1.6: + version "1.1.10" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.1.10.tgz#1039db9e985727e464df066f4cf0ab6ef85c398a" + integrity sha512-AQC0Dyhzn4EiYEfIUjCdMl0JJ61I2ER9ukf/sLxJUcZHfo+VyEfz2rMJgLZSS1v30OxPQe1cN0LZA1xbcaVfWA== + dependencies: + ignore-walk "^3.0.1" + npm-bundled "^1.0.1" + +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" + integrity sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8= + dependencies: + path-key "^2.0.0" + +npmlog@^4.0.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" + integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== + dependencies: + are-we-there-yet "~1.1.2" + console-control-strings "~1.1.0" + gauge "~2.7.3" + set-blocking "~2.0.0" + +num2fraction@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede" + integrity sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4= + +number-is-nan@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0= + +oauth-sign@~0.8.2: + version "0.8.2" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" + integrity sha1-Rqarfwrq2N6unsBWV4C31O/rnUM= + +object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= + +object-component@0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/object-component/-/object-component-0.0.3.tgz#f0c69aa50efc95b866c186f400a33769cb2f1291" + integrity sha1-8MaapQ78lbhmwYb0AKM3acsvEpE= + +object-copy@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" + integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= + dependencies: + copy-descriptor "^0.1.0" + define-property "^0.2.5" + kind-of "^3.0.3" + +object-fit-images@^3.2.4: + version "3.2.4" + resolved "https://registry.yarnpkg.com/object-fit-images/-/object-fit-images-3.2.4.tgz#6c299d38fdf207746e5d2d46c2877f6f25d15b52" + integrity sha512-G+7LzpYfTfqUyrZlfrou/PLLLAPNC52FTy5y1CBywX+1/FkxIloOyQXBmZ3Zxa2AWO+lMF0JTuvqbr7G5e5CWg== + +object-path@^0.9.0: + version "0.9.2" + resolved "https://registry.yarnpkg.com/object-path/-/object-path-0.9.2.tgz#0fd9a74fc5fad1ae3968b586bda5c632bd6c05a5" + integrity sha1-D9mnT8X60a45aLWGvaXGMr1sBaU= + +object-visit@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" + integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= + dependencies: + isobject "^3.0.0" + +object.omit@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" + integrity sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo= + dependencies: + for-own "^0.1.4" + is-extendable "^0.1.1" + +object.pick@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" + integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= + dependencies: + isobject "^3.0.1" + +objectfn@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/objectfn/-/objectfn-2.0.0.tgz#3fbc9d2c43690bf2b418ba5e3486e3cbb5b99e95" + integrity sha1-P7ydLENpC/K0GLpeNIbjy7W5npU= + +on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + integrity sha1-IPEzZIGwg811M3mSoWlxqi2QaUc= + dependencies: + ee-first "1.1.1" + +once@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +onecolor@^3.0.5: + version "3.1.0" + resolved "https://registry.yarnpkg.com/onecolor/-/onecolor-3.1.0.tgz#b72522270a49569ac20d244b3cd40fe157fda4d2" + integrity sha512-YZSypViXzu3ul5LMu/m6XjJ9ol8qAy9S2VjHl5E6UlhUH1KGKWabyEJifn0Jjpw23bYDzC2ucKMPGiH5kfwSGQ== + +onetime@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" + integrity sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ= + dependencies: + mimic-fn "^1.0.0" + +opener@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.1.tgz#6d2f0e77f1a0af0032aca716c2c1fbb8e7e8abed" + integrity sha512-goYSy5c2UXE4Ra1xixabeVh1guIX/ZV/YokJksb6q2lubWu6UbvPQ20p542/sFIll1nl8JnCyK9oBaOcCWXwvA== + +openurl@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/openurl/-/openurl-1.1.1.tgz#3875b4b0ef7a52c156f0db41d4609dbb0f94b387" + integrity sha1-OHW0sO96UsFW8NtB1GCduw+Us4c= + +opn@5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/opn/-/opn-5.3.0.tgz#64871565c863875f052cfdf53d3e3cb5adb53b1c" + integrity sha512-bYJHo/LOmoTd+pfiYhfZDnf9zekVJrY+cnS2a5F2x+w5ppvTqObojTP7WiFG+kVZs9Inw+qQ/lw7TroWwhdd2g== + dependencies: + is-wsl "^1.1.0" + +os-browserify@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" + integrity sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc= + +os-homedir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= + +os-locale@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" + integrity sha1-IPnxeuKe00XoveWDsT0gCYA8FNk= + dependencies: + lcid "^1.0.0" + +os-locale@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" + integrity sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA== + dependencies: + execa "^0.7.0" + lcid "^1.0.0" + mem "^1.1.0" + +os-tmpdir@^1.0.0, os-tmpdir@^1.0.1, os-tmpdir@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= + +osenv@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" + integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4= + +p-limit@^1.1.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" + integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== + dependencies: + p-try "^1.0.0" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= + dependencies: + p-limit "^1.1.0" + +p-try@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" + integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= + +pako@~1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.6.tgz#0101211baa70c4bca4a0f63f2206e97b7dfaf258" + integrity sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg== + +parse-asn1@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.1.tgz#f6bf293818332bd0dab54efb16087724745e6ca8" + integrity sha512-KPx7flKXg775zZpnp9SxJlz00gTd4BmJ2yJufSc44gMCRrRQ7NSzAcSJQfifuOLgW6bEi+ftrALtsgALeB2Adw== + dependencies: + asn1.js "^4.0.0" + browserify-aes "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.0" + pbkdf2 "^3.0.3" + +parse-glob@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" + integrity sha1-ssN2z7EfNVE7rdFz7wu246OIORw= + dependencies: + glob-base "^0.3.0" + is-dotfile "^1.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.0" + +parse-json@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + integrity sha1-9ID0BDTvgHQfhGkJn43qGPVaTck= + dependencies: + error-ex "^1.2.0" + +parse-json@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" + integrity sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA= + dependencies: + error-ex "^1.3.1" + json-parse-better-errors "^1.0.1" + +parse5@^2.1.5: + version "2.2.3" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-2.2.3.tgz#0c4fc41c1000c5e6b93d48b03f8083837834e9f6" + integrity sha1-DE/EHBAAxea5PUiwP4CDg3g06fY= + +parse5@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" + integrity sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA== + +parseqs@0.0.5: + version "0.0.5" + resolved "https://registry.yarnpkg.com/parseqs/-/parseqs-0.0.5.tgz#d5208a3738e46766e291ba2ea173684921a8b89d" + integrity sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0= + dependencies: + better-assert "~1.0.0" + +parseuri@0.0.5: + version "0.0.5" + resolved "https://registry.yarnpkg.com/parseuri/-/parseuri-0.0.5.tgz#80204a50d4dbb779bfdc6ebe2778d90e4bce320a" + integrity sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo= + dependencies: + better-assert "~1.0.0" + +parseurl@~1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.2.tgz#fc289d4ed8993119460c156253262cdc8de65bf3" + integrity sha1-/CidTtiZMRlGDBViUyYs3I3mW/M= + +pascalcase@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" + integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= + +path-browserify@0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a" + integrity sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo= + +path-dirname@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" + integrity sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA= + +path-exists@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" + integrity sha1-D+tsZPD8UY2adU3V77YscCJ2H0s= + dependencies: + pinkie-promise "^2.0.0" + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= + +path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + +path-key@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= + +path-parse@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" + integrity sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME= + +path-to-regexp@0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" + integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w= + +path-type@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" + integrity sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE= + dependencies: + graceful-fs "^4.1.2" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +path-type@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" + integrity sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM= + dependencies: + pify "^2.0.0" + +pbkdf2@^3.0.3: + version "3.0.16" + resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.16.tgz#7404208ec6b01b62d85bf83853a8064f8d9c2a5c" + integrity sha512-y4CXP3thSxqf7c0qmOF+9UeOTrifiVTIM+u7NWlq+PRsHbr7r7dpCmvzrZxa96JJUNi0Y5w9VqG5ZNeCVMoDcA== + dependencies: + create-hash "^1.1.2" + create-hmac "^1.1.4" + ripemd160 "^2.0.1" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +performance-now@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" + integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= + +pify@^2.0.0, pify@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw= + +pify@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" + integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY= + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + integrity sha1-ITXW36ejWMBprJsXh3YogihFD/o= + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA= + +pixrem@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pixrem/-/pixrem-4.0.1.tgz#2da4a1de6ec4423c5fc3794e930b81d4490ec686" + integrity sha1-LaSh3m7EQjxfw3lOkwuB1EkOxoY= + dependencies: + browserslist "^2.0.0" + postcss "^6.0.0" + reduce-css-calc "^1.2.7" + +pkg-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" + integrity sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s= + dependencies: + find-up "^2.1.0" + +popper.js@^1.14.4: + version "1.14.4" + resolved "https://registry.yarnpkg.com/popper.js/-/popper.js-1.14.4.tgz#8eec1d8ff02a5a3a152dd43414a15c7b79fd69b6" + integrity sha1-juwdj/AqWjoVLdQ0FKFce3n9abY= + +portscanner@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/portscanner/-/portscanner-2.1.1.tgz#eabb409e4de24950f5a2a516d35ae769343fbb96" + integrity sha1-6rtAnk3iSVD1oqUW01rnaTQ/u5Y= + dependencies: + async "1.5.2" + is-number-like "^1.0.3" + +posix-character-classes@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" + integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= + +postcss-alias@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-alias/-/postcss-alias-2.0.0.tgz#018f46c2fbff818e29fa6af67afa4be2becd376d" + integrity sha1-AY9Gwvv/gY4p+mr2evpL4r7NN20= + dependencies: + postcss "^6.0.6" + +postcss-attribute-case-insensitive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-2.0.0.tgz#94dc422c8f90997f16bd33a3654bbbec084963b4" + integrity sha1-lNxCLI+QmX8WvTOjZUu77AhJY7Q= + dependencies: + postcss "^6.0.0" + postcss-selector-parser "^2.2.3" + +postcss-calc@^5.2.0: + version "5.3.1" + resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-5.3.1.tgz#77bae7ca928ad85716e2fda42f261bf7c1d65b5e" + integrity sha1-d7rnypKK2FcW4v2kLyYb98HWW14= + dependencies: + postcss "^5.0.2" + postcss-message-helpers "^2.0.0" + reduce-css-calc "^1.2.6" + +postcss-calc@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-6.0.1.tgz#3d24171bbf6e7629d422a436ebfe6dd9511f4330" + integrity sha1-PSQXG79udinUIqQ26/5t2VEfQzA= + dependencies: + css-unit-converter "^1.1.1" + postcss "^6.0.0" + postcss-selector-parser "^2.2.2" + reduce-css-calc "^2.0.0" + +postcss-clearfix@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/postcss-clearfix/-/postcss-clearfix-2.0.1.tgz#5170a1998f167d3190a0173445b6380c8c5c07f2" + integrity sha1-UXChmY8WfTGQoBc0RbY4DIxcB/I= + dependencies: + postcss "^6.0.6" + +postcss-color-function@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-color-function/-/postcss-color-function-4.0.1.tgz#402b3f2cebc3f6947e618fb6be3654fbecef6444" + integrity sha1-QCs/LOvD9pR+YY+2vjZU++zvZEQ= + dependencies: + css-color-function "~1.3.3" + postcss "^6.0.1" + postcss-message-helpers "^2.0.0" + postcss-value-parser "^3.3.0" + +postcss-color-gray@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/postcss-color-gray/-/postcss-color-gray-4.1.0.tgz#e5581ed57eaa826fb652ca11b1e2b7b136a9f9df" + integrity sha512-L4iLKQLdqChz6ZOgGb6dRxkBNw78JFYcJmBz1orHpZoeLtuhDDGegRtX9gSyfoCIM7rWZ3VNOyiqqvk83BEN+w== + dependencies: + color "^2.0.1" + postcss "^6.0.14" + postcss-message-helpers "^2.0.0" + reduce-function-call "^1.0.2" + +postcss-color-hex-alpha@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-color-hex-alpha/-/postcss-color-hex-alpha-3.0.0.tgz#1e53e6c8acb237955e8fd08b7ecdb1b8b8309f95" + integrity sha1-HlPmyKyyN5Vej9CLfs2xuLgwn5U= + dependencies: + color "^1.0.3" + postcss "^6.0.1" + postcss-message-helpers "^2.0.0" + +postcss-color-hsl@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-color-hsl/-/postcss-color-hsl-2.0.0.tgz#12703666fa310430e3f30a454dac1386317d5844" + integrity sha1-EnA2ZvoxBDDj8wpFTawThjF9WEQ= + dependencies: + postcss "^6.0.1" + postcss-value-parser "^3.3.0" + units-css "^0.4.0" + +postcss-color-hwb@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-color-hwb/-/postcss-color-hwb-3.0.0.tgz#3402b19ef4d8497540c1fb5072be9863ca95571e" + integrity sha1-NAKxnvTYSXVAwftQcr6YY8qVVx4= + dependencies: + color "^1.0.3" + postcss "^6.0.1" + postcss-message-helpers "^2.0.0" + reduce-function-call "^1.0.2" + +postcss-color-rebeccapurple@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-3.1.0.tgz#ce1269ecc2d0d8bf92aab44bd884e633124c33ec" + integrity sha512-212hJUk9uSsbwO5ECqVjmh/iLsmiVL1xy9ce9TVf+X3cK/ZlUIlaMdoxje/YpsL9cmUH3I7io+/G2LyWx5rg1g== + dependencies: + postcss "^6.0.22" + postcss-values-parser "^1.5.0" + +postcss-color-rgb@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-color-rgb/-/postcss-color-rgb-2.0.0.tgz#14539c8a7131494b482e0dd1cc265ff6514b5263" + integrity sha1-FFOcinExSUtILg3RzCZf9lFLUmM= + dependencies: + postcss "^6.0.1" + postcss-value-parser "^3.3.0" + +postcss-color-rgba-fallback@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-color-rgba-fallback/-/postcss-color-rgba-fallback-3.0.0.tgz#37d5c9353a07a09270912a82606bb42a0d702c04" + integrity sha1-N9XJNToHoJJwkSqCYGu0Kg1wLAQ= + dependencies: + postcss "^6.0.6" + postcss-value-parser "^3.3.0" + rgb-hex "^2.1.0" + +postcss-colormin@^2.1.8: + version "2.2.2" + resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-2.2.2.tgz#6631417d5f0e909a3d7ec26b24c8a8d1e4f96e4b" + integrity sha1-ZjFBfV8OkJo9fsJrJMio0eT5bks= + dependencies: + colormin "^1.0.5" + postcss "^5.0.13" + postcss-value-parser "^3.2.3" + +postcss-convert-values@^2.3.4: + version "2.6.1" + resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-2.6.1.tgz#bbd8593c5c1fd2e3d1c322bb925dcae8dae4d62d" + integrity sha1-u9hZPFwf0uPRwyK7kl3K6Nrk1i0= + dependencies: + postcss "^5.0.11" + postcss-value-parser "^3.1.2" + +postcss-custom-media@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/postcss-custom-media/-/postcss-custom-media-6.0.0.tgz#be532784110ecb295044fb5395a18006eb21a737" + integrity sha1-vlMnhBEOyylQRPtTlaGABushpzc= + dependencies: + postcss "^6.0.1" + +postcss-custom-properties@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/postcss-custom-properties/-/postcss-custom-properties-7.0.0.tgz#24dc4fbe6d6ed550ea4fd3b11204660e9ffa3b33" + integrity sha512-dl/CNaM6z2RBa0vZZqsV6Hunj4HD6Spu7FcAkiVp5B2tgm6xReKKYzI7x7QNx3wTMBNj5v+ylfVcQGMW4xdkHw== + dependencies: + balanced-match "^1.0.0" + postcss "^6.0.18" + +postcss-custom-selectors@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-custom-selectors/-/postcss-custom-selectors-4.0.1.tgz#781382f94c52e727ef5ca4776ea2adf49a611382" + integrity sha1-eBOC+UxS5yfvXKR3bqKt9JphE4I= + dependencies: + postcss "^6.0.1" + postcss-selector-matches "^3.0.0" + +postcss-discard-comments@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-2.0.4.tgz#befe89fafd5b3dace5ccce51b76b81514be00e3d" + integrity sha1-vv6J+v1bPazlzM5Rt2uBUUvgDj0= + dependencies: + postcss "^5.0.14" + +postcss-discard-duplicates@^2.0.1: + version "2.1.0" + resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-2.1.0.tgz#b9abf27b88ac188158a5eb12abcae20263b91932" + integrity sha1-uavye4isGIFYpesSq8riAmO5GTI= + dependencies: + postcss "^5.0.4" + +postcss-discard-empty@^2.0.1: + version "2.1.0" + resolved "https://registry.yarnpkg.com/postcss-discard-empty/-/postcss-discard-empty-2.1.0.tgz#d2b4bd9d5ced5ebd8dcade7640c7d7cd7f4f92b5" + integrity sha1-0rS9nVztXr2Nyt52QMfXzX9PkrU= + dependencies: + postcss "^5.0.14" + +postcss-discard-overridden@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/postcss-discard-overridden/-/postcss-discard-overridden-0.1.1.tgz#8b1eaf554f686fb288cd874c55667b0aa3668d58" + integrity sha1-ix6vVU9ob7KIzYdMVWZ7CqNmjVg= + dependencies: + postcss "^5.0.16" + +postcss-discard-unused@^2.2.1: + version "2.2.3" + resolved "https://registry.yarnpkg.com/postcss-discard-unused/-/postcss-discard-unused-2.2.3.tgz#bce30b2cc591ffc634322b5fb3464b6d934f4433" + integrity sha1-vOMLLMWR/8Y0Mitfs0ZLbZNPRDM= + dependencies: + postcss "^5.0.14" + uniqs "^2.0.0" + +postcss-easings@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/postcss-easings/-/postcss-easings-1.0.1.tgz#a7b9ebddabe5f8589e245256bd565408ea3366c3" + integrity sha512-zHRCKHinXtqpyrPPi3oojaf47v3eGcQHmG5zujWs1+9OWukIKi/rVEAm2KSh5y4swn66SNCZceGXcNi9GXo1cQ== + dependencies: + postcss "^6.0.14" + postcss-value-parser "^3.3.0" + +postcss-extend-rule@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-extend-rule/-/postcss-extend-rule-2.0.0.tgz#031fe6f608cf6efd20cb58b11f343b164c18d370" + integrity sha512-dgr1GJzW3lUBczZJO5Fm51rktn34Uc99xR1uQyC2Td8JPep/Y+TRx6TjK0yngikOd4LxV1xyuohMMpcaOBgrfA== + dependencies: + postcss "^6.0.22" + postcss-nesting "^5.0.0" + +postcss-filter-plugins@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/postcss-filter-plugins/-/postcss-filter-plugins-2.0.3.tgz#82245fdf82337041645e477114d8e593aa18b8ec" + integrity sha512-T53GVFsdinJhgwm7rg1BzbeBRomOg9y5MBVhGcsV0CxurUdVj1UlPdKtn7aqYA/c/QVkzKMjq2bSV5dKG5+AwQ== + dependencies: + postcss "^5.0.4" + +postcss-font-family-system-ui@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-font-family-system-ui/-/postcss-font-family-system-ui-3.0.0.tgz#675fe7a9e029669f05f8dba2e44c2225ede80623" + integrity sha512-58G/hTxMSSKlIRpcPUjlyo6hV2MEzvcVO2m4L/T7Bb2fJTG4DYYfQjQeRvuimKQh1V1sOzCIz99g+H2aFNtlQw== + dependencies: + postcss "^6.0" + +postcss-font-variant@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-font-variant/-/postcss-font-variant-3.0.0.tgz#08ccc88f6050ba82ed8ef2cc76c0c6a6b41f183e" + integrity sha1-CMzIj2BQuoLtjvLMdsDGprQfGD4= + dependencies: + postcss "^6.0.1" + +postcss-fontpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/postcss-fontpath/-/postcss-fontpath-1.0.0.tgz#ad0eefc2193e29cf7a34b8c751ff7fe8e74699e5" + integrity sha1-rQ7vwhk+Kc96NLjHUf9/6OdGmeU= + dependencies: + postcss "^6.0.0" + +postcss-hexrgba@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/postcss-hexrgba/-/postcss-hexrgba-1.0.1.tgz#d82256b7b5116e5f582026fce549fec21db816e0" + integrity sha512-zFJ5XEoh6aD1clOCxHx2D2Vj2dzcr86t5OXgZKB0K2z0LWZlWhdVJV1lpJBRX075qhTSbKqqjemUHU+TSy9Buw== + dependencies: + postcss "^6.0.7" + +postcss-image-set-polyfill@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/postcss-image-set-polyfill/-/postcss-image-set-polyfill-0.4.4.tgz#5acdebd25aeb237dde0791c524b68947400995f8" + integrity sha512-Mr5vXeUwxylX9amqyhXyiyqbzJgGS8quJ/d855EqU5S/DBILvoiR4pRnxLw9Ic2a5E0nB6gLOuMU0Wm/KhVW9A== + dependencies: + postcss "6.0.1" + postcss-media-query-parser "0.2.3" + postcss-value-parser "3.3.0" + +postcss-import@^11.0.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/postcss-import/-/postcss-import-11.1.0.tgz#55c9362c9192994ec68865d224419df1db2981f0" + integrity sha512-5l327iI75POonjxkXgdRCUS+AlzAdBx4pOvMEhTKTCjb1p8IEeVR9yx3cPbmN7LIWJLbfnIXxAhoB4jpD0c/Cw== + dependencies: + postcss "^6.0.1" + postcss-value-parser "^3.2.3" + read-cache "^1.0.0" + resolve "^1.1.7" + +postcss-input-style@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/postcss-input-style/-/postcss-input-style-1.0.0.tgz#bbfdc82b9f799b3e78c863a02476757e26fbdc61" + integrity sha1-u/3IK595mz54yGOgJHZ1fib73GE= + dependencies: + postcss "^6.0.7" + +postcss-load-config@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-2.0.0.tgz#f1312ddbf5912cd747177083c5ef7a19d62ee484" + integrity sha512-V5JBLzw406BB8UIfsAWSK2KSwIJ5yoEIVFb4gVkXci0QdKgA24jLmHZ/ghe/GgX0lJ0/D1uUK1ejhzEY94MChQ== + dependencies: + cosmiconfig "^4.0.0" + import-cwd "^2.0.0" + +postcss-loader@^2.1.6: + version "2.1.6" + resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-2.1.6.tgz#1d7dd7b17c6ba234b9bed5af13e0bea40a42d740" + integrity sha512-hgiWSc13xVQAq25cVw80CH0l49ZKlAnU1hKPOdRrNj89bokRr/bZF2nT+hebPPF9c9xs8c3gw3Fr2nxtmXYnNg== + dependencies: + loader-utils "^1.1.0" + postcss "^6.0.0" + postcss-load-config "^2.0.0" + schema-utils "^0.4.0" + +postcss-media-minmax@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-media-minmax/-/postcss-media-minmax-3.0.0.tgz#675256037a43ef40bc4f0760bfd06d4dc69d48d2" + integrity sha1-Z1JWA3pD70C8Twdgv9BtTcadSNI= + dependencies: + postcss "^6.0.1" + +postcss-media-query-parser@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz#27b39c6f4d94f81b1a73b8f76351c609e5cef244" + integrity sha1-J7Ocb02U+Bsac7j3Y1HGCeXO8kQ= + +postcss-merge-idents@^2.1.5: + version "2.1.7" + resolved "https://registry.yarnpkg.com/postcss-merge-idents/-/postcss-merge-idents-2.1.7.tgz#4c5530313c08e1d5b3bbf3d2bbc747e278eea270" + integrity sha1-TFUwMTwI4dWzu/PSu8dH4njuonA= + dependencies: + has "^1.0.1" + postcss "^5.0.10" + postcss-value-parser "^3.1.1" + +postcss-merge-longhand@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-2.0.2.tgz#23d90cd127b0a77994915332739034a1a4f3d658" + integrity sha1-I9kM0Sewp3mUkVMyc5A0oaTz1lg= + dependencies: + postcss "^5.0.4" + +postcss-merge-rules@^2.0.3: + version "2.1.2" + resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-2.1.2.tgz#d1df5dfaa7b1acc3be553f0e9e10e87c61b5f721" + integrity sha1-0d9d+qexrMO+VT8OnhDofGG19yE= + dependencies: + browserslist "^1.5.2" + caniuse-api "^1.5.2" + postcss "^5.0.4" + postcss-selector-parser "^2.2.2" + vendors "^1.0.0" + +postcss-message-helpers@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-message-helpers/-/postcss-message-helpers-2.0.0.tgz#a4f2f4fab6e4fe002f0aed000478cdf52f9ba60e" + integrity sha1-pPL0+rbk/gAvCu0ABHjN9S+bpg4= + +postcss-minify-font-values@^1.0.2: + version "1.0.5" + resolved "https://registry.yarnpkg.com/postcss-minify-font-values/-/postcss-minify-font-values-1.0.5.tgz#4b58edb56641eba7c8474ab3526cafd7bbdecb69" + integrity sha1-S1jttWZB66fIR0qzUmyv17vey2k= + dependencies: + object-assign "^4.0.1" + postcss "^5.0.4" + postcss-value-parser "^3.0.2" + +postcss-minify-gradients@^1.0.1: + version "1.0.5" + resolved "https://registry.yarnpkg.com/postcss-minify-gradients/-/postcss-minify-gradients-1.0.5.tgz#5dbda11373703f83cfb4a3ea3881d8d75ff5e6e1" + integrity sha1-Xb2hE3NwP4PPtKPqOIHY11/15uE= + dependencies: + postcss "^5.0.12" + postcss-value-parser "^3.3.0" + +postcss-minify-params@^1.0.4: + version "1.2.2" + resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-1.2.2.tgz#ad2ce071373b943b3d930a3fa59a358c28d6f1f3" + integrity sha1-rSzgcTc7lDs9kwo/pZo1jCjW8fM= + dependencies: + alphanum-sort "^1.0.1" + postcss "^5.0.2" + postcss-value-parser "^3.0.2" + uniqs "^2.0.0" + +postcss-minify-selectors@^2.0.4: + version "2.1.1" + resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-2.1.1.tgz#b2c6a98c0072cf91b932d1a496508114311735bf" + integrity sha1-ssapjAByz5G5MtGkllCBFDEXNb8= + dependencies: + alphanum-sort "^1.0.2" + has "^1.0.1" + postcss "^5.0.14" + postcss-selector-parser "^2.0.0" + +postcss-nesting@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/postcss-nesting/-/postcss-nesting-5.0.0.tgz#973e3a7dc6426543affc0b0beb367c3b2a8d9923" + integrity sha512-Yoe3w2mcVslnEJl5zLyz1yBxCFUpYu138apEEOCwS2HRdDw/TDxTwD1fXBrIarL8J1cPzHfVwO1m40B2/UpGCw== + dependencies: + postcss "^6.0.21" + +postcss-normalize-charset@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-1.1.1.tgz#ef9ee71212d7fe759c78ed162f61ed62b5cb93f1" + integrity sha1-757nEhLX/nWceO0WL2HtYrXLk/E= + dependencies: + postcss "^5.0.5" + +postcss-normalize-url@^3.0.7: + version "3.0.8" + resolved "https://registry.yarnpkg.com/postcss-normalize-url/-/postcss-normalize-url-3.0.8.tgz#108f74b3f2fcdaf891a2ffa3ea4592279fc78222" + integrity sha1-EI90s/L82viRov+j6kWSJ5/HgiI= + dependencies: + is-absolute-url "^2.0.0" + normalize-url "^1.4.0" + postcss "^5.0.14" + postcss-value-parser "^3.2.3" + +postcss-opacity@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/postcss-opacity/-/postcss-opacity-5.0.0.tgz#6ea6deef4d5fc28dd4cf7af97dba2807b3e07c4c" + integrity sha512-n6LgHk5HWIsyEHgPqM2jwXrkh4SuH+cZOIWh4tUp4ug3P7FkzxiJuqrpEaBvNwH/dKs5PHjHL2vPeR+nLbs+Mw== + dependencies: + postcss "^6.0.7" + +postcss-ordered-values@^2.1.0: + version "2.2.3" + resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-2.2.3.tgz#eec6c2a67b6c412a8db2042e77fe8da43f95c11d" + integrity sha1-7sbCpntsQSqNsgQud/6NpD+VwR0= + dependencies: + postcss "^5.0.4" + postcss-value-parser "^3.0.1" + +postcss-position@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/postcss-position/-/postcss-position-1.0.0.tgz#30cbeee408f26a6dbebbf61261ca210e548c77ff" + integrity sha1-MMvu5Ajyam2+u/YSYcohDlSMd/8= + dependencies: + postcss "^6.0.7" + +postcss-property-lookup@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-property-lookup/-/postcss-property-lookup-2.0.0.tgz#c995d1df42a75420f2aea834c2cbe296b2c15922" + integrity sha512-KUb53a7UZWDMVb0SRODOonc4H1wlbgQ0VfYwmJaR1xWPorhariEz0U7x0ri3W/imFs6HqLYWP7hl2yMvi5Ty+w== + dependencies: + object-assign "^4.0.1" + postcss "^6.0.6" + tcomb "^3.2.21" + +postcss-pseudo-class-any-link@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-4.0.0.tgz#9152a0613d3450720513e8892854bae42d0ee68e" + integrity sha1-kVKgYT00UHIFE+iJKFS65C0O5o4= + dependencies: + postcss "^6.0.1" + postcss-selector-parser "^2.2.3" + +postcss-pseudoelements@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/postcss-pseudoelements/-/postcss-pseudoelements-5.0.0.tgz#eef194e8d524645ca520a949e95e518e812402cb" + integrity sha1-7vGU6NUkZFylIKlJ6V5RjoEkAss= + dependencies: + postcss "^6.0.0" + +postcss-quantity-queries@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/postcss-quantity-queries/-/postcss-quantity-queries-0.5.0.tgz#52b6717fcc8d9925ae64cff43340870fe15516ab" + integrity sha1-UrZxf8yNmSWuZM/0M0CHD+FVFqs= + dependencies: + balanced-match "^0.4.2" + postcss "^6.0.0" + +postcss-reduce-idents@^2.2.2: + version "2.4.0" + resolved "https://registry.yarnpkg.com/postcss-reduce-idents/-/postcss-reduce-idents-2.4.0.tgz#c2c6d20cc958284f6abfbe63f7609bf409059ad3" + integrity sha1-wsbSDMlYKE9qv75j92Cb9AkFmtM= + dependencies: + postcss "^5.0.4" + postcss-value-parser "^3.0.2" + +postcss-reduce-initial@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-1.0.1.tgz#68f80695f045d08263a879ad240df8dd64f644ea" + integrity sha1-aPgGlfBF0IJjqHmtJA343WT2ROo= + dependencies: + postcss "^5.0.4" + +postcss-reduce-transforms@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/postcss-reduce-transforms/-/postcss-reduce-transforms-1.0.4.tgz#ff76f4d8212437b31c298a42d2e1444025771ae1" + integrity sha1-/3b02CEkN7McKYpC0uFEQCV3GuE= + dependencies: + has "^1.0.1" + postcss "^5.0.8" + postcss-value-parser "^3.0.1" + +postcss-reporter@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/postcss-reporter/-/postcss-reporter-5.0.0.tgz#a14177fd1342829d291653f2786efd67110332c3" + integrity sha512-rBkDbaHAu5uywbCR2XE8a25tats3xSOsGNx6mppK6Q9kSFGKc/FyAzfci+fWM2l+K402p1D0pNcfDGxeje5IKg== + dependencies: + chalk "^2.0.1" + lodash "^4.17.4" + log-symbols "^2.0.0" + postcss "^6.0.8" + +postcss-responsive-type@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/postcss-responsive-type/-/postcss-responsive-type-1.0.0.tgz#bb2d57d830beb9586ec4fda7994f07e37953aad8" + integrity sha1-uy1X2DC+uVhuxP2nmU8H43lTqtg= + dependencies: + postcss "^6.0.6" + +postcss-selector-matches@^3.0.0, postcss-selector-matches@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/postcss-selector-matches/-/postcss-selector-matches-3.0.1.tgz#e5634011e13950881861bbdd58c2d0111ffc96ab" + integrity sha1-5WNAEeE5UIgYYbvdWMLQER/8lqs= + dependencies: + balanced-match "^0.4.2" + postcss "^6.0.1" + +postcss-selector-not@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/postcss-selector-not/-/postcss-selector-not-3.0.1.tgz#2e4db2f0965336c01e7cec7db6c60dff767335d9" + integrity sha1-Lk2y8JZTNsAefOx9tsYN/3ZzNdk= + dependencies: + balanced-match "^0.4.2" + postcss "^6.0.1" + +postcss-selector-parser@^2.0.0, postcss-selector-parser@^2.2.2, postcss-selector-parser@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-2.2.3.tgz#f9437788606c3c9acee16ffe8d8b16297f27bb90" + integrity sha1-+UN3iGBsPJrO4W/+jYsWKX8nu5A= + dependencies: + flatten "^1.0.2" + indexes-of "^1.0.1" + uniq "^1.0.1" + +postcss-svgo@^2.1.1: + version "2.1.6" + resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-2.1.6.tgz#b6df18aa613b666e133f08adb5219c2684ac108d" + integrity sha1-tt8YqmE7Zm4TPwittSGcJoSsEI0= + dependencies: + is-svg "^2.0.0" + postcss "^5.0.14" + postcss-value-parser "^3.2.3" + svgo "^0.7.0" + +postcss-unique-selectors@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-2.0.2.tgz#981d57d29ddcb33e7b1dfe1fd43b8649f933ca1d" + integrity sha1-mB1X0p3csz57Hf4f1DuGSfkzyh0= + dependencies: + alphanum-sort "^1.0.1" + postcss "^5.0.4" + uniqs "^2.0.0" + +postcss-value-parser@3.3.0, postcss-value-parser@^3.0.1, postcss-value-parser@^3.0.2, postcss-value-parser@^3.1.1, postcss-value-parser@^3.1.2, postcss-value-parser@^3.2.3, postcss-value-parser@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz#87f38f9f18f774a4ab4c8a232f5c5ce8872a9d15" + integrity sha1-h/OPnxj3dKSrTIojL1xc6IcqnRU= + +postcss-values-parser@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/postcss-values-parser/-/postcss-values-parser-1.5.0.tgz#5d9fa63e2bcb0179ce48f3235303765eb89f3047" + integrity sha512-3M3p+2gMp0AH3da530TlX8kiO1nxdTnc3C6vr8dMxRLIlh8UYkz0/wcwptSXjhtx2Fr0TySI7a+BHDQ8NL7LaQ== + dependencies: + flatten "^1.0.2" + indexes-of "^1.0.1" + uniq "^1.0.1" + +postcss-vmin@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-vmin/-/postcss-vmin-3.0.0.tgz#6d6ae6b3e84fe3ff7a4df1eb86f3a69a07e8a144" + integrity sha1-bWrms+hP4/96TfHrhvOmmgfooUQ= + dependencies: + postcss "^6.0.0" + +postcss-will-change@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-will-change/-/postcss-will-change-2.0.0.tgz#cff091a87a0386bab1f32a7cfa7f79d6b773e100" + integrity sha1-z/CRqHoDhrqx8yp8+n951rdz4QA= + dependencies: + postcss "^6.0.1" + +postcss-zindex@^2.0.1: + version "2.2.0" + resolved "https://registry.yarnpkg.com/postcss-zindex/-/postcss-zindex-2.2.0.tgz#d2109ddc055b91af67fc4cb3b025946639d2af22" + integrity sha1-0hCd3AVbka9n/EyzsCWUZjnSryI= + dependencies: + has "^1.0.1" + postcss "^5.0.4" + uniqs "^2.0.0" + +postcss@6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.1.tgz#000dbd1f8eef217aa368b9a212c5fc40b2a8f3f2" + integrity sha1-AA29H47vIXqjaLmiEsX8QLKo8/I= + dependencies: + chalk "^1.1.3" + source-map "^0.5.6" + supports-color "^3.2.3" + +postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, postcss@^5.0.13, postcss@^5.0.14, postcss@^5.0.16, postcss@^5.0.2, postcss@^5.0.4, postcss@^5.0.5, postcss@^5.0.8, postcss@^5.2.16: + version "5.2.18" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-5.2.18.tgz#badfa1497d46244f6390f58b319830d9107853c5" + integrity sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg== + dependencies: + chalk "^1.1.3" + js-base64 "^2.1.9" + source-map "^0.5.6" + supports-color "^3.2.3" + +postcss@^6.0, postcss@^6.0.0, postcss@^6.0.1, postcss@^6.0.14, postcss@^6.0.17, postcss@^6.0.18, postcss@^6.0.21, postcss@^6.0.22, postcss@^6.0.6, postcss@^6.0.7, postcss@^6.0.8: + version "6.0.22" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.22.tgz#e23b78314905c3b90cbd61702121e7a78848f2a3" + integrity sha512-Toc9lLoUASwGqxBSJGTVcOQiDqjK+Z2XlWBg+IgYwQMY9vA2f7iMpXVc1GpPcfTSyM5lkxNo0oDwDRO+wm7XHA== + dependencies: + chalk "^2.4.1" + source-map "^0.6.1" + supports-color "^5.4.0" + +preact-compat@^3.18.0: + version "3.18.0" + resolved "https://registry.yarnpkg.com/preact-compat/-/preact-compat-3.18.0.tgz#ca430cc1f67193fb9feaf7c510832957b2ebe701" + integrity sha512-4ygl49bkMyPEx2ZwkNDh2AhUa62g2lwJYIsQU4IR5zW4d4QIyucmZFr/hu2+aeFP4YVR8nVZg1KWMETpP32UkA== + dependencies: + immutability-helper "^2.1.2" + preact-render-to-string "^3.6.0" + preact-transition-group "^1.1.0" + prop-types "^15.5.8" + standalone-react-addons-pure-render-mixin "^0.1.1" + +preact-emotion@^9.1.3: + version "9.2.1" + resolved "https://registry.yarnpkg.com/preact-emotion/-/preact-emotion-9.2.1.tgz#3664cbc9dce8dbf991de5b49a5ec93e23ea242d9" + integrity sha1-NmTLydzo2/mR3ltJpeyT4j6iQtk= + dependencies: + babel-plugin-emotion "^9.2.0" + create-emotion-styled "^9.2.1" + +preact-portal@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/preact-portal/-/preact-portal-1.1.3.tgz#22cdd3ecf6ad9aaa3f830607a9c6591de90aedb7" + integrity sha512-rE0KG2b7ggIly4VVsSm7+WmQmG/EoUZzBOed2IbycyaFIArOvz+yab/8RBoDogA0JWZuTsbMTStR41Ghc+5m7Q== + +preact-render-to-string@^3.6.0, preact-render-to-string@^3.6.2: + version "3.7.0" + resolved "https://registry.yarnpkg.com/preact-render-to-string/-/preact-render-to-string-3.7.0.tgz#7db4177454bc01395e0d01d6ac07bc5e838e31ee" + integrity sha1-fbQXdFS8ATleDQHWrAe8XoOOMe4= + dependencies: + pretty-format "^3.5.1" + +preact-transition-group@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/preact-transition-group/-/preact-transition-group-1.1.1.tgz#f0a49327ea515ece34ea2be864c4a7d29e5d6e10" + integrity sha1-8KSTJ+pRXs406ivoZMSn0p5dbhA= + +preact@^8.1.0: + version "8.2.9" + resolved "https://registry.yarnpkg.com/preact/-/preact-8.2.9.tgz#813ba9dd45e5d97c5ea0d6c86d375b3be711cc40" + integrity sha512-ThuGXBmJS3VsT+jIP+eQufD3L8pRw/PY3FoCys6O9Pu6aF12Pn9zAJDX99TfwRAFOCEKm/P0lwiPTbqKMJp0fA== + +preact@^8.3.1: + version "8.3.1" + resolved "https://registry.yarnpkg.com/preact/-/preact-8.3.1.tgz#ed34f79d09edc5efd32a378a3416ef5dc531e3ac" + integrity sha512-s8H1Y8O9e+mOBo3UP1jvWqArPmjCba2lrrGLlq/0kN1XuIINUbYtf97iiXKxCuG3eYwmppPKnyW2DBrNj/TuTg== + +prepend-http@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" + integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw= + +preserve@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" + integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks= + +pretty-format@^3.5.1: + version "3.8.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-3.8.0.tgz#bfbed56d5e9a776645f4b1ff7aa1a3ac4fa3c385" + integrity sha1-v77VbV6ad2ZF9LH/eqGjrE+jw4U= + +private@^0.1.6, private@^0.1.8: + version "0.1.8" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" + integrity sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg== + +process-nextick-args@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" + integrity sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw== + +process@^0.11.10: + version "0.11.10" + resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" + integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI= + +promise-polyfill@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/promise-polyfill/-/promise-polyfill-8.1.0.tgz#30059da54d1358ce905ac581f287e184aedf995d" + integrity sha512-OzSf6gcCUQ01byV4BgwyUCswlaQQ6gzXc23aLQWhicvfX9kfsUiUhgt3CCQej8jDnl8/PhGF31JdHX2/MzF3WA== + +promise@^7.1.1: + version "7.3.1" + resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" + integrity sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg== + dependencies: + asap "~2.0.3" + +prop-types@^15.5.8, prop-types@^15.6.1: + version "15.6.1" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.1.tgz#36644453564255ddda391191fb3a125cbdf654ca" + integrity sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ== + dependencies: + fbjs "^0.8.16" + loose-envify "^1.3.1" + object-assign "^4.1.1" + +proxy-addr@~2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.3.tgz#355f262505a621646b3130a728eb647e22055341" + integrity sha512-jQTChiCJteusULxjBp8+jftSQE5Obdl3k4cnmLA6WXtK6XFuWRnvVL7aCiBqaLPM8c4ph0S4tKna8XvmIwEnXQ== + dependencies: + forwarded "~0.1.2" + ipaddr.js "1.6.0" + +prr@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" + integrity sha1-0/wRS6BplaRexok/SEzrHXj19HY= + +pseudomap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM= + +public-encrypt@^4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.2.tgz#46eb9107206bf73489f8b85b69d91334c6610994" + integrity sha512-4kJ5Esocg8X3h8YgJsKAuoesBgB7mqH3eowiDzMUPKiRDDE7E/BqqZD1hnTByIaAFiwAw246YEltSq7tdrOH0Q== + dependencies: + bn.js "^4.1.0" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + parse-asn1 "^5.0.0" + randombytes "^2.0.1" + +punycode@1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" + integrity sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0= + +punycode@2.x.x, punycode@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + +punycode@^1.2.4, punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + integrity sha1-wNWmOycYgArY4esPpSachN1BhF4= + +q@^1.1.2: + version "1.5.1" + resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" + integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc= + +qs@6.2.3: + version "6.2.3" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.2.3.tgz#1cfcb25c10a9b2b483053ff39f5dfc9233908cfe" + integrity sha1-HPyyXBCpsrSDBT/zn138kjOQjP4= + +qs@6.5.1: + version "6.5.1" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8" + integrity sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A== + +qs@~6.5.1: + version "6.5.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" + integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== + +query-string@^4.1.0: + version "4.3.4" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb" + integrity sha1-u7aTucqRXCMlFbIosaArYJBD2+s= + dependencies: + object-assign "^4.1.0" + strict-uri-encode "^1.0.0" + +query-string@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-5.1.1.tgz#a78c012b71c17e05f2e3fa2319dd330682efb3cb" + integrity sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw== + dependencies: + decode-uri-component "^0.2.0" + object-assign "^4.1.0" + strict-uri-encode "^1.0.0" + +querystring-es3@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" + integrity sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM= + +querystring@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" + integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA= + +randomatic@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.0.0.tgz#d35490030eb4f7578de292ce6dfb04a91a128923" + integrity sha512-VdxFOIEY3mNO5PtSRkkle/hPJDHvQhK21oa73K4yAc9qmp6N429gAyF1gZMOTMeS0/AYzaV/2Trcef+NaIonSA== + dependencies: + is-number "^4.0.0" + kind-of "^6.0.0" + math-random "^1.0.1" + +randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: + version "2.0.6" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.6.tgz#d302c522948588848a8d300c932b44c24231da80" + integrity sha512-CIQ5OFxf4Jou6uOKe9t1AOgqpeU5fd70A8NPdHSGeYXqXsPe6peOwI0cUl88RWZ6sP1vPMV3avd/R6cZ5/sP1A== + dependencies: + safe-buffer "^5.1.0" + +randomfill@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/randomfill/-/randomfill-1.0.4.tgz#c92196fc86ab42be983f1bf31778224931d61458" + integrity sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw== + dependencies: + randombytes "^2.0.5" + safe-buffer "^5.1.0" + +range-parser@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" + integrity sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4= + +raw-body@2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.3.2.tgz#bcd60c77d3eb93cde0050295c3f379389bc88f89" + integrity sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k= + dependencies: + bytes "3.0.0" + http-errors "1.6.2" + iconv-lite "0.4.19" + unpipe "1.0.0" + +raw-body@^2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.3.3.tgz#1b324ece6b5706e153855bc1148c65bb7f6ea0c3" + integrity sha512-9esiElv1BrZoI3rCDuOuKCBRbuApGGaDPQfjSflGxdy4oyzqghxu6klEkkVIvBje+FF0BX9coEv8KqW6X/7njw== + dependencies: + bytes "3.0.0" + http-errors "1.6.3" + iconv-lite "0.4.23" + unpipe "1.0.0" + +rc@^1.1.7: + version "1.2.8" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" + integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== + dependencies: + deep-extend "^0.6.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + +read-cache@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/read-cache/-/read-cache-1.0.0.tgz#e664ef31161166c9751cdbe8dbcf86b5fb58f774" + integrity sha1-5mTvMRYRZsl1HNvo28+GtftY93Q= + dependencies: + pify "^2.3.0" + +read-file-stdin@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/read-file-stdin/-/read-file-stdin-0.2.1.tgz#25eccff3a153b6809afacb23ee15387db9e0ee61" + integrity sha1-JezP86FTtoCa+ssj7hU4fbng7mE= + dependencies: + gather-stream "^1.0.0" + +read-pkg-up@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" + integrity sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI= + dependencies: + find-up "^1.0.0" + read-pkg "^1.0.0" + +read-pkg-up@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" + integrity sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4= + dependencies: + find-up "^2.0.0" + read-pkg "^2.0.0" + +read-pkg@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" + integrity sha1-9f+qXs0pyzHAR0vKfXVra7KePyg= + dependencies: + load-json-file "^1.0.0" + normalize-package-data "^2.3.2" + path-type "^1.0.0" + +read-pkg@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" + integrity sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg= + dependencies: + load-json-file "^2.0.0" + normalize-package-data "^2.3.2" + path-type "^2.0.0" + +readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.3.3, readable-stream@^2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" + integrity sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + +readdirp@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" + integrity sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg= + dependencies: + graceful-fs "^4.1.2" + minimatch "^3.0.2" + readable-stream "^2.0.2" + set-immediate-shim "^1.0.1" + +reduce-css-calc@^1.2.6, reduce-css-calc@^1.2.7: + version "1.3.0" + resolved "https://registry.yarnpkg.com/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz#747c914e049614a4c9cfbba629871ad1d2927716" + integrity sha1-dHyRTgSWFKTJz7umKYca0dKSdxY= + dependencies: + balanced-match "^0.4.2" + math-expression-evaluator "^1.2.14" + reduce-function-call "^1.0.1" + +reduce-css-calc@^2.0.0: + version "2.1.4" + resolved "https://registry.yarnpkg.com/reduce-css-calc/-/reduce-css-calc-2.1.4.tgz#c20e9cda8445ad73d4ff4bea960c6f8353791708" + integrity sha512-i/vWQbyd3aJRmip9OVSN9V6nIjLf/gg/ctxb0CpvHWtcRysFl/ngDBQD+rqavxdw/doScA3GMBXhzkHQ4GCzFQ== + dependencies: + css-unit-converter "^1.1.1" + postcss-value-parser "^3.3.0" + +reduce-function-call@^1.0.1, reduce-function-call@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/reduce-function-call/-/reduce-function-call-1.0.2.tgz#5a200bf92e0e37751752fe45b0ab330fd4b6be99" + integrity sha1-WiAL+S4ON3UXUv5FsKszD9S2vpk= + dependencies: + balanced-match "^0.4.2" + +regenerate@^1.2.1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" + integrity sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg== + +regenerator-runtime@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" + integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== + +regenerator-transform@^0.10.0: + version "0.10.1" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" + integrity sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q== + dependencies: + babel-runtime "^6.18.0" + babel-types "^6.19.0" + private "^0.1.6" + +regex-cache@^0.4.2: + version "0.4.4" + resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" + integrity sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ== + dependencies: + is-equal-shallow "^0.1.3" + +regex-not@^1.0.0, regex-not@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" + integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== + dependencies: + extend-shallow "^3.0.2" + safe-regex "^1.1.0" + +regexpu-core@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" + integrity sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA= + dependencies: + regenerate "^1.2.1" + regjsgen "^0.2.0" + regjsparser "^0.1.4" + +regjsgen@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" + integrity sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc= + +regjsparser@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" + integrity sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw= + dependencies: + jsesc "~0.5.0" + +remove-trailing-separator@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" + integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= + +repeat-element@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" + integrity sha1-7wiaF40Ug7quTZPrmLT55OEdmQo= + +repeat-string@^1.5.2, repeat-string@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= + +repeating@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" + integrity sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo= + dependencies: + is-finite "^1.0.0" + +request@2.86.0: + version "2.86.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.86.0.tgz#2b9497f449b0a32654c081a5cf426bbfb5bf5b69" + integrity sha512-BQZih67o9r+Ys94tcIW4S7Uu8pthjrQVxhsZ/weOwHbDfACxvIyvnAbzFQxjy1jMtvFSzv5zf4my6cZsJBbVzw== + dependencies: + aws-sign2 "~0.7.0" + aws4 "^1.6.0" + caseless "~0.12.0" + combined-stream "~1.0.5" + extend "~3.0.1" + forever-agent "~0.6.1" + form-data "~2.3.1" + har-validator "~5.0.3" + hawk "~6.0.2" + http-signature "~1.2.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.17" + oauth-sign "~0.8.2" + performance-now "^2.1.0" + qs "~6.5.1" + safe-buffer "^5.1.1" + tough-cookie "~2.3.3" + tunnel-agent "^0.6.0" + uuid "^3.1.0" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + +require-from-string@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + +require-main-filename@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" + integrity sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE= + +requires-port@1.x.x: + version "1.0.0" + resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" + integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8= + +reshape-code-gen@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/reshape-code-gen/-/reshape-code-gen-2.0.0.tgz#ea8876b08fe9dd747035af646ba10c47308ecdee" + integrity sha1-6oh2sI/p3XRwNa9ka6EMRzCOze4= + dependencies: + objectfn "^2.0.0" + with "^6.0.0" + +reshape-include@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/reshape-include/-/reshape-include-1.0.0.tgz#2f75e57e016447c633f48cbb0e2a5ca114275d10" + integrity sha1-L3XlfgFkR8Yz9Iy7DipcoRQnXRA= + dependencies: + reshape-plugin-util "^0.2.0" + +reshape-loader@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/reshape-loader/-/reshape-loader-1.3.0.tgz#752982fd5ec8bd5d86ea620bb2a973fb8cdf7169" + integrity sha1-dSmC/V7IvV2G6mILsqlz+4zfcWk= + dependencies: + reshape "^1.0.0" + reshape-include "^1.0.0" + +reshape-parser@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/reshape-parser/-/reshape-parser-0.2.1.tgz#3d713188c0ae05b899e3528774aacc2aef147368" + integrity sha1-PXExiMCuBbiZ41KHdKrMKu8Uc2g= + dependencies: + parse5 "^2.1.5" + +reshape-parser@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/reshape-parser/-/reshape-parser-1.0.0.tgz#46d204fb20f68bc870bec67096305219c0173874" + integrity sha1-RtIE+yD2i8hwvsZwljBSGcAXOHQ= + dependencies: + parse5 "^4.0.0" + +reshape-plugin-util@^0.2.0, reshape-plugin-util@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/reshape-plugin-util/-/reshape-plugin-util-0.2.1.tgz#29358959d58c9eebca25c35efe0cc627817cf092" + integrity sha1-KTWJWdWMnuvKJcNe/gzGJ4F88JI= + dependencies: + when "^3.7.7" + +reshape-preact-components@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/reshape-preact-components/-/reshape-preact-components-0.6.0.tgz#55361dc6375e607e1a72f1b6287766ae09ebfae3" + integrity sha512-uovZiJI6CfSwPWBmDWY0HOFSmn078CuWBlQrPUn8ToRuohI+mPYboAqVWY8ddiP3+Y8JmpijMzzvfcWr9/A4OQ== + dependencies: + preact "^8.1.0" + preact-render-to-string "^3.6.2" + reshape-parser "^0.2.1" + reshape-plugin-util "^0.2.1" + +reshape@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/reshape/-/reshape-1.0.0.tgz#b739e784b9a89ffde1eac2f928824639d999e29f" + integrity sha1-tznnhLmon/3h6sL5KIJGOdmZ4p8= + dependencies: + code-frame "^5.0.0" + joi "^12.0.0" + lodash.merge "^4.6.1" + reshape-code-gen "^2.0.0" + reshape-parser "^1.0.0" + when "^3.7.8" + +resolve-from@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" + integrity sha1-six699nWiBvItuZTM17rywoYh0g= + +resolve-url@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" + integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= + +resolve@^1.1.7: + version "1.7.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.7.1.tgz#aadd656374fd298aee895bc026b8297418677fd3" + integrity sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw== + dependencies: + path-parse "^1.0.5" + +resp-modifier@6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/resp-modifier/-/resp-modifier-6.0.2.tgz#b124de5c4fbafcba541f48ffa73970f4aa456b4f" + integrity sha1-sSTeXE+6/LpUH0j/pzlw9KpFa08= + dependencies: + debug "^2.2.0" + minimatch "^3.0.2" + +restore-cursor@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" + integrity sha1-n37ih/gv0ybU/RYpI9YhKe7g368= + dependencies: + onetime "^2.0.0" + signal-exit "^3.0.2" + +ret@~0.1.10: + version "0.1.15" + resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" + integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== + +rgb-hex@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/rgb-hex/-/rgb-hex-2.1.0.tgz#c773c5fe2268a25578d92539a82a7a5ce53beda6" + integrity sha1-x3PF/iJoolV42SU5qCp6XOU77aY= + +rgb@~0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/rgb/-/rgb-0.1.0.tgz#be27b291e8feffeac1bd99729721bfa40fc037b5" + integrity sha1-vieykej+/+rBvZlylyG/pA/AN7U= + +right-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" + integrity sha1-YTObci/mo1FWiSENJOFMlhSGE+8= + dependencies: + align-text "^0.1.1" + +rimraf@^2.5.2, rimraf@^2.6.1, rimraf@^2.6.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" + integrity sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w== + dependencies: + glob "^7.0.5" + +ripemd160@^2.0.0, ripemd160@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" + integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA== + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +rucksack-css@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/rucksack-css/-/rucksack-css-1.0.2.tgz#77808b4097b35acfb92e70dc89b65aa232f5169f" + integrity sha512-+ir3KHUb+IfCjqTsUruYZDKf95GZKhqucVridhNSuU9AsC7efqBhKtzJeMNZqc+EOND0LWBenG5ZCodKUPbL6g== + dependencies: + autoprefixer "^7.1.2" + laggard "^2.0.0" + minimist "^1.1.2" + postcss "^6.0.8" + postcss-alias "^2.0.0" + postcss-clearfix "^2.0.1" + postcss-color-rgba-fallback "^3.0.0" + postcss-easings "^1.0.0" + postcss-fontpath "^1.0.0" + postcss-hexrgba "^1.0.0" + postcss-input-style "^1.0.0" + postcss-opacity "^5.0.0" + postcss-position "^1.0.0" + postcss-pseudoelements "^5.0.0" + postcss-quantity-queries "^0.5.0" + postcss-reporter "^5.0.0" + postcss-responsive-type "^1.0.0" + postcss-vmin "^3.0.0" + read-file-stdin "^0.2.0" + write-file-stdout "^0.0.2" + +run-async@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" + integrity sha1-A3GrSuC91yDUFm19/aZP96RFpsA= + dependencies: + is-promise "^2.1.0" + +rx-lite-aggregates@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be" + integrity sha1-dTuHqJoRyVRnxKwWJsTvxOBcZ74= + dependencies: + rx-lite "*" + +rx-lite@*, rx-lite@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444" + integrity sha1-Cx4Rr4vESDbwSmQH6S2kJGe3lEQ= + +rx@4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/rx/-/rx-4.1.0.tgz#a5f13ff79ef3b740fe30aa803fb09f98805d4782" + integrity sha1-pfE/957zt0D+MKqAP7CfmIBdR4I= + +safe-buffer@5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" + integrity sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg== + +safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +safe-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" + integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= + dependencies: + ret "~0.1.10" + +"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +sax@^1.2.4, sax@~1.2.1: + version "1.2.4" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" + integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== + +schema-utils@^0.4.0: + version "0.4.5" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.4.5.tgz#21836f0608aac17b78f9e3e24daff14a5ca13a3e" + integrity sha512-yYrjb9TX2k/J1Y5UNy3KYdZq10xhYcF8nMpAW6o3hy6Q8WSIEf9lJHG/ePnOBfziPM3fvQwfOwa13U/Fh8qTfA== + dependencies: + ajv "^6.1.0" + ajv-keywords "^3.1.0" + +"semver@2 || 3 || 4 || 5", semver@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" + integrity sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA== + +send@0.16.2: + version "0.16.2" + resolved "https://registry.yarnpkg.com/send/-/send-0.16.2.tgz#6ecca1e0f8c156d141597559848df64730a6bbc1" + integrity sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw== + dependencies: + debug "2.6.9" + depd "~1.1.2" + destroy "~1.0.4" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "~1.6.2" + mime "1.4.1" + ms "2.0.0" + on-finished "~2.3.0" + range-parser "~1.2.0" + statuses "~1.4.0" + +serve-index@1.9.1: + version "1.9.1" + resolved "https://registry.yarnpkg.com/serve-index/-/serve-index-1.9.1.tgz#d3768d69b1e7d82e5ce050fff5b453bea12a9239" + integrity sha1-03aNabHn2C5c4FD/9bRTvqEqkjk= + dependencies: + accepts "~1.3.4" + batch "0.6.1" + debug "2.6.9" + escape-html "~1.0.3" + http-errors "~1.6.2" + mime-types "~2.1.17" + parseurl "~1.3.2" + +serve-static@1.13.2: + version "1.13.2" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.13.2.tgz#095e8472fd5b46237db50ce486a43f4b86c6cec1" + integrity sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw== + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.2" + send "0.16.2" + +server-destroy@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/server-destroy/-/server-destroy-1.0.1.tgz#f13bf928e42b9c3e79383e61cc3998b5d14e6cdd" + integrity sha1-8Tv5KOQrnD55OD5hzDmYtdFObN0= + +set-blocking@^2.0.0, set-blocking@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= + +set-immediate-shim@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" + integrity sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E= + +set-value@^0.4.3: + version "0.4.3" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1" + integrity sha1-fbCPnT0i3H945Trzw79GZuzfzPE= + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.1" + to-object-path "^0.3.0" + +set-value@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274" + integrity sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg== + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" + +setimmediate@^1.0.4, setimmediate@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" + integrity sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU= + +setprototypeof@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.3.tgz#66567e37043eeb4f04d91bd658c0cbefb55b8e04" + integrity sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ= + +setprototypeof@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" + integrity sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ== + +sha.js@^2.4.0, sha.js@^2.4.8: + version "2.4.11" + resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" + integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ== + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo= + dependencies: + shebang-regex "^1.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= + +siema@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/siema/-/siema-1.5.1.tgz#eff312b77e8340fa4d81d5d053ebbeb9113ff888" + integrity sha1-7/MSt36DQPpNgdXQU+u+uRE/+Ig= + +signal-exit@^3.0.0, signal-exit@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= + +simple-swizzle@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a" + integrity sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo= + dependencies: + is-arrayish "^0.3.1" + +slash@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" + integrity sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU= + +slugify@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/slugify/-/slugify-1.3.1.tgz#f572127e8535329fbc6c1edb74ab856b61ad7de2" + integrity sha512-6BwyhjF5tG5P8s+0DPNyJmBSBePG6iMyhjvIW5zGdA3tFik9PtK+yNkZgTeiroCRGZYgkHftFA62tGVK1EI9Kw== + +snapdragon-node@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" + integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== + dependencies: + define-property "^1.0.0" + isobject "^3.0.0" + snapdragon-util "^3.0.1" + +snapdragon-util@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" + integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== + dependencies: + kind-of "^3.2.0" + +snapdragon@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" + integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== + dependencies: + base "^0.11.1" + debug "^2.2.0" + define-property "^0.2.5" + extend-shallow "^2.0.1" + map-cache "^0.2.2" + source-map "^0.5.6" + source-map-resolve "^0.5.0" + use "^3.1.0" + +sntp@2.x.x: + version "2.1.0" + resolved "https://registry.yarnpkg.com/sntp/-/sntp-2.1.0.tgz#2c6cec14fedc2222739caf9b5c3d85d1cc5a2cc8" + integrity sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg== + dependencies: + hoek "4.x.x" + +socket.io-adapter@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/socket.io-adapter/-/socket.io-adapter-1.1.1.tgz#2a805e8a14d6372124dd9159ad4502f8cb07f06b" + integrity sha1-KoBeihTWNyEk3ZFZrUUC+MsH8Gs= + +socket.io-client@2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/socket.io-client/-/socket.io-client-2.0.4.tgz#0918a552406dc5e540b380dcd97afc4a64332f8e" + integrity sha1-CRilUkBtxeVAs4Dc2Xr8SmQzL44= + dependencies: + backo2 "1.0.2" + base64-arraybuffer "0.1.5" + component-bind "1.0.0" + component-emitter "1.2.1" + debug "~2.6.4" + engine.io-client "~3.1.0" + has-cors "1.1.0" + indexof "0.0.1" + object-component "0.0.3" + parseqs "0.0.5" + parseuri "0.0.5" + socket.io-parser "~3.1.1" + to-array "0.1.4" + +socket.io-client@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/socket.io-client/-/socket.io-client-2.1.1.tgz#dcb38103436ab4578ddb026638ae2f21b623671f" + integrity sha512-jxnFyhAuFxYfjqIgduQlhzqTcOEQSn+OHKVfAxWaNWa7ecP7xSNk2Dx/3UEsDcY7NcFafxvNvKPmmO7HTwTxGQ== + dependencies: + backo2 "1.0.2" + base64-arraybuffer "0.1.5" + component-bind "1.0.0" + component-emitter "1.2.1" + debug "~3.1.0" + engine.io-client "~3.2.0" + has-binary2 "~1.0.2" + has-cors "1.1.0" + indexof "0.0.1" + object-component "0.0.3" + parseqs "0.0.5" + parseuri "0.0.5" + socket.io-parser "~3.2.0" + to-array "0.1.4" + +socket.io-parser@~3.1.1: + version "3.1.3" + resolved "https://registry.yarnpkg.com/socket.io-parser/-/socket.io-parser-3.1.3.tgz#ed2da5ee79f10955036e3da413bfd7f1e4d86c8e" + integrity sha512-g0a2HPqLguqAczs3dMECuA1RgoGFPyvDqcbaDEdCWY9g59kdUAz3YRmaJBNKXflrHNwB7Q12Gkf/0CZXfdHR7g== + dependencies: + component-emitter "1.2.1" + debug "~3.1.0" + has-binary2 "~1.0.2" + isarray "2.0.1" + +socket.io-parser@~3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/socket.io-parser/-/socket.io-parser-3.2.0.tgz#e7c6228b6aa1f814e6148aea325b51aa9499e077" + integrity sha512-FYiBx7rc/KORMJlgsXysflWx/RIvtqZbyGLlHZvjfmPTPeuD/I8MaW7cfFrj5tRltICJdgwflhfZ3NVVbVLFQA== + dependencies: + component-emitter "1.2.1" + debug "~3.1.0" + isarray "2.0.1" + +socket.io@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/socket.io/-/socket.io-2.1.1.tgz#a069c5feabee3e6b214a75b40ce0652e1cfb9980" + integrity sha512-rORqq9c+7W0DAK3cleWNSyfv/qKXV99hV4tZe+gGLfBECw3XEhBy7x85F3wypA9688LKjtwO9pX9L33/xQI8yA== + dependencies: + debug "~3.1.0" + engine.io "~3.2.0" + has-binary2 "~1.0.2" + socket.io-adapter "~1.1.0" + socket.io-client "2.1.1" + socket.io-parser "~3.2.0" + +sort-keys@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-1.1.2.tgz#441b6d4d346798f1b4e49e8920adfba0e543f9ad" + integrity sha1-RBttTTRnmPG05J6JIK37oOVD+a0= + dependencies: + is-plain-obj "^1.0.0" + +source-list-map@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.0.tgz#aaa47403f7b245a92fbc97ea08f250d6087ed085" + integrity sha512-I2UmuJSRr/T8jisiROLU3A3ltr+swpniSmNPI4Ml3ZCX6tVnDsuZzK7F2hl5jTqbZBWCEKlj5HRQiPExXLgE8A== + +source-loader@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/source-loader/-/source-loader-1.0.0.tgz#dbe890d46c8429fa7ac358c7e648f7f03cbe8738" + integrity sha512-gqPvbDNzfyQPXs1gMqfNV8IlKLpsifCO5J7xNRwv47eNvhOeM8eR0cemEJzmqhvjCap+EnCGk9Ao0b5xbzpNKA== + dependencies: + is-binary-path "^2.0.0" + +source-map-resolve@^0.5.0: + version "0.5.2" + resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" + integrity sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA== + dependencies: + atob "^2.1.1" + decode-uri-component "^0.2.0" + resolve-url "^0.2.1" + source-map-url "^0.4.0" + urix "^0.1.0" + +source-map-support@^0.4.15: + version "0.4.18" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" + integrity sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA== + dependencies: + source-map "^0.5.6" + +source-map-url@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" + integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= + +source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= + +source-map@^0.6.1, source-map@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +spdx-correct@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.0.tgz#05a5b4d7153a195bc92c3c425b69f3b2a9524c82" + integrity sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g== + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz#2c7ae61056c714a5b9b9b2b2af7d311ef5c78fe9" + integrity sha512-4K1NsmrlCU1JJgUrtgEeTVyfx8VaYea9J9LvARxhbHtVtohPs/gFGG5yy49beySjlIMhhXZ4QqujIZEfS4l6Cg== + +spdx-expression-parse@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" + integrity sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz#7a7cd28470cc6d3a1cfe6d66886f6bc430d3ac87" + integrity sha512-2+EPwgbnmOIl8HjGBXXMd9NAu02vLjOO1nWw4kmeRDFyHn+M/ETfHxQUK0oXg8ctgVnl9t3rosNVsZ1jG61nDA== + +spike-core@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/spike-core/-/spike-core-2.3.0.tgz#7de412748d0dbdae63ecad4857104e8262b6779d" + integrity sha1-feQSdI0Nva5j7K1IVxBOgmK2d50= + dependencies: + babel-core "^6.26.0" + babel-loader "^7.1.5" + browser-sync "^2.24.6" + browser-sync-webpack-plugin "^1.2.0" + filewrap "^1.0.0" + glob "^7.1.2" + hygienist-middleware "^0.1.3" + joi "^12.0.0" + lodash.difference "^4.5.0" + lodash.merge "^4.6.0" + lodash.union "^4.6.0" + micromatch "^3.1.4" + mkdirp "^0.5.1" + postcss-loader "^2.1.6" + reshape-loader "^1.3.0" + rimraf "^2.6.2" + source-loader "^1.0.0" + spike-util "^1.3.0" + sprout "^1.2.1" + webpack "^3.12.0" + when "^3.7.8" + +spike-css-standards@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/spike-css-standards/-/spike-css-standards-4.0.0.tgz#e952353f50ee609b8a9c043e43c4c1eb362080bd" + integrity sha1-6VI1P1DuYJuKnAQ+Q8TB6zYggL0= + dependencies: + autoprefixer "^8.3.0" + cssnano "^3.7.4" + postcss-attribute-case-insensitive "^2.0.0" + postcss-calc "^6.0.1" + postcss-color-function "^4.0.1" + postcss-color-gray "^4.1.0" + postcss-color-hex-alpha "^3.0.0" + postcss-color-hsl "^2.0.0" + postcss-color-hwb "^3.0.0" + postcss-color-rebeccapurple "^3.0.0" + postcss-color-rgb "^2.0.0" + postcss-custom-media "^6.0.0" + postcss-custom-properties "^7.0.0" + postcss-custom-selectors "^4.0.1" + postcss-font-family-system-ui "^3.0.0" + postcss-font-variant "^3.0.0" + postcss-image-set-polyfill "^0.4.4" + postcss-import "^11.0.0" + postcss-media-minmax "^3.0.0" + postcss-nesting "^5.0.0" + postcss-property-lookup "^2.0.0" + postcss-pseudo-class-any-link "^4.0.0" + postcss-selector-matches "^3.0.1" + postcss-selector-not "^3.0.1" + rucksack-css "^1.0.2" + +spike-js-standards@^2.0.2: + version "2.1.0" + resolved "https://registry.yarnpkg.com/spike-js-standards/-/spike-js-standards-2.1.0.tgz#948c578b1ed4223aaaa9bc506cf3f7d3c38c3203" + integrity sha1-lIxXix7UIjqqqbxQbPP308OMMgM= + dependencies: + babel-plugin-syntax-dynamic-import "^6.18.0" + babel-preset-env "^1.7.0" + +spike-util@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/spike-util/-/spike-util-1.3.0.tgz#140a141ddb4beb0f02c63192074e24c4eb91d680" + integrity sha512-q53KxrB41Kbyla+lFFyNcYmCygiaDxgr6/XIFvA03VOxmr+NZinNry9+LfkQY61SFhQmtxhPTcxe0gJOzn9iKw== + dependencies: + filewrap "1.0.0" + glob "^7.1.2" + micromatch "^3.0.4" + when "^3.7.7" + +spike@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/spike/-/spike-2.3.0.tgz#012bb7dd8633c9bb74c10fdb69732ce8d5d13049" + integrity sha1-ASu33YYzybt0wQ/baXMs6NXRMEk= + dependencies: + argparse "^1.0.10" + chalk "^2.4.1" + inquirer "^3.2.1" + lodash.reduce "^4.6.0" + spike-core "^2.3.0" + universal-analytics "^0.4.17" + +split-string@^3.0.1, split-string@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" + integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== + dependencies: + extend-shallow "^3.0.0" + +sprintf-js@^1.0.3: + version "1.1.1" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.1.1.tgz#36be78320afe5801f6cea3ee78b6e5aab940ea0c" + integrity sha1-Nr54Mgr+WAH2zqPueLblqrlA6gw= + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + +sprout@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/sprout/-/sprout-1.2.1.tgz#e121e7f7ce894aa75cdacf8c047f609770786dbd" + integrity sha1-4SHn986JSqdc2s+MBH9gl3B4bb0= + dependencies: + argparse "^1.0.2" + ejs "^2.3.1" + isbinaryfile "^3.0.0" + joi "^10.0.0" + js-yaml "^3.4.5" + lodash "^4.12.0" + minimatch "^3.0.0" + mkdirp "^0.5.1" + ncp "^2.0.0" + readdirp "^2.0.0" + rimraf "^2.5.2" + underscore.string "^3.1.1" + when "^3.7.7" + which "^1.2.8" + +sshpk@^1.7.0: + version "1.14.2" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.14.2.tgz#c6fc61648a3d9c4e764fd3fcdf4ea105e492ba98" + integrity sha1-xvxhZIo9nE52T9P8306hBeSSupg= + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + dashdash "^1.12.0" + getpass "^0.1.1" + safer-buffer "^2.0.2" + optionalDependencies: + bcrypt-pbkdf "^1.0.0" + ecc-jsbn "~0.1.1" + jsbn "~0.1.0" + tweetnacl "~0.14.0" + +standalone-react-addons-pure-render-mixin@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/standalone-react-addons-pure-render-mixin/-/standalone-react-addons-pure-render-mixin-0.1.1.tgz#3c7409f4c79c40de9ac72c616cf679a994f37551" + integrity sha1-PHQJ9MecQN6axyxhbPZ5qZTzdVE= + +static-extend@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" + integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= + dependencies: + define-property "^0.2.5" + object-copy "^0.1.0" + +"statuses@>= 1.3.1 < 2", "statuses@>= 1.4.0 < 2": + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= + +statuses@~1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e" + integrity sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4= + +statuses@~1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087" + integrity sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew== + +stream-browserify@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" + integrity sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds= + dependencies: + inherits "~2.0.1" + readable-stream "^2.0.2" + +stream-http@^2.7.2: + version "2.8.3" + resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.8.3.tgz#b2d242469288a5a27ec4fe8933acf623de6514fc" + integrity sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw== + dependencies: + builtin-status-codes "^3.0.0" + inherits "^2.0.1" + readable-stream "^2.3.6" + to-arraybuffer "^1.0.0" + xtend "^4.0.0" + +stream-throttle@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/stream-throttle/-/stream-throttle-0.1.3.tgz#add57c8d7cc73a81630d31cd55d3961cfafba9c3" + integrity sha1-rdV8jXzHOoFjDTHNVdOWHPr7qcM= + dependencies: + commander "^2.2.0" + limiter "^1.0.5" + +strftime@^0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/strftime/-/strftime-0.10.0.tgz#b3f0fa419295202a5a289f6d6be9f4909a617193" + integrity sha1-s/D6QZKVICpaKJ9ta+n0kJphcZM= + +strict-uri-encode@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" + integrity sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM= + +string-width@^1.0.1, string-width@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + integrity sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M= + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" + integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^4.0.0" + +string_decoder@^1.0.0, string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8= + dependencies: + ansi-regex "^2.0.0" + +strip-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" + integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= + dependencies: + ansi-regex "^3.0.0" + +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + integrity sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4= + dependencies: + is-utf8 "^0.2.0" + +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" + integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= + +strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= + +stylis-rule-sheet@^0.0.10: + version "0.0.10" + resolved "https://registry.yarnpkg.com/stylis-rule-sheet/-/stylis-rule-sheet-0.0.10.tgz#44e64a2b076643f4b52e5ff71efc04d8c3c4a430" + integrity sha512-nTbZoaqoBnmK+ptANthb10ZRZOGC+EmTLLUxeYIuHNkEKcmKgXX1XWKkUBT2Ac4es3NybooPe0SmvKdhKJZAuw== + +stylis@^3.5.0: + version "3.5.0" + resolved "https://registry.yarnpkg.com/stylis/-/stylis-3.5.0.tgz#016fa239663d77f868fef5b67cf201c4b7c701e1" + integrity sha512-pP7yXN6dwMzAR29Q0mBrabPCe0/mNO1MSr93bhay+hcZondvMMTpeGyd8nbhYJdyperNT2DRxONQuUGcJr5iPw== + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= + +supports-color@^3.2.3: + version "3.2.3" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" + integrity sha1-ZawFBLOVQXHYpklGsq48u4pfVPY= + dependencies: + has-flag "^1.0.0" + +supports-color@^4.2.1: + version "4.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b" + integrity sha1-vnoN5ITexcXN34s9WRJQRJEvY1s= + dependencies: + has-flag "^2.0.0" + +supports-color@^5.3.0, supports-color@^5.4.0: + version "5.4.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54" + integrity sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w== + dependencies: + has-flag "^3.0.0" + +svgo@^0.7.0: + version "0.7.2" + resolved "https://registry.yarnpkg.com/svgo/-/svgo-0.7.2.tgz#9f5772413952135c6fefbf40afe6a4faa88b4bb5" + integrity sha1-n1dyQTlSE1xv779Ar+ak+qiLS7U= + dependencies: + coa "~1.0.1" + colors "~1.1.2" + csso "~2.3.1" + js-yaml "~3.7.0" + mkdirp "~0.5.1" + sax "~1.2.1" + whet.extend "~0.9.9" + +tapable@^0.2.7: + version "0.2.8" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.8.tgz#99372a5c999bf2df160afc0d74bed4f47948cd22" + integrity sha1-mTcqXJmb8t8WCvwNdL7U9HlIzSI= + +tar@^4: + version "4.4.4" + resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.4.tgz#ec8409fae9f665a4355cc3b4087d0820232bb8cd" + integrity sha512-mq9ixIYfNF9SK0IS/h2HKMu8Q2iaCuhDDsZhdEag/FHv8fOaYld4vN7ouMgcSSt5WKZzPs8atclTcJm36OTh4w== + dependencies: + chownr "^1.0.1" + fs-minipass "^1.2.5" + minipass "^2.3.3" + minizlib "^1.1.0" + mkdirp "^0.5.0" + safe-buffer "^5.1.2" + yallist "^3.0.2" + +tcomb@^3.2.21: + version "3.2.27" + resolved "https://registry.yarnpkg.com/tcomb/-/tcomb-3.2.27.tgz#f4928bfc536b959d21a47e5f5f1ca2b2e4b7188a" + integrity sha512-XWdJW7F/M3YzXhDEUP8ycmNWoYymBtsHwCHoda0YF44RthJsls95TqDrmpAlC1sB/KXaCvkdBlcNRq+AaV6klA== + +tfunk@^3.0.1: + version "3.1.0" + resolved "https://registry.yarnpkg.com/tfunk/-/tfunk-3.1.0.tgz#38e4414fc64977d87afdaa72facb6d29f82f7b5b" + integrity sha1-OORBT8ZJd9h6/apy+sttKfgve1s= + dependencies: + chalk "^1.1.1" + object-path "^0.9.0" + +through@^2.3.6: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= + +timers-browserify@^2.0.4: + version "2.0.10" + resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.10.tgz#1d28e3d2aadf1d5a5996c4e9f95601cd053480ae" + integrity sha512-YvC1SV1XdOUaL6gx5CoGroT3Gu49pK9+TZ38ErPldOWW4j49GI1HKs9DV+KGq/w6y+LZ72W1c8cKz2vzY+qpzg== + dependencies: + setimmediate "^1.0.4" + +tippy.js@^3.0.6: + version "3.0.6" + resolved "https://registry.yarnpkg.com/tippy.js/-/tippy.js-3.0.6.tgz#ad29361e96129de582bf4088f00ea8413632ceb4" + integrity sha512-/paH+Kf3Caj0J+AlB1Kdg2KFAZ8yJeXZ8hPiwDBfxOLZg3YxDUa2OpMi3ODK8TXSMoPqcGUExCVcc46AmGCxjQ== + dependencies: + popper.js "^1.14.4" + +tmp@^0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + +to-array@0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/to-array/-/to-array-0.1.4.tgz#17e6c11f73dd4f3d74cda7a4ff3238e9ad9bf890" + integrity sha1-F+bBH3PdTz10zaek/zI46a2b+JA= + +to-arraybuffer@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" + integrity sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M= + +to-fast-properties@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" + integrity sha1-uDVx+k2MJbguIxsG46MFXeTKGkc= + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= + +to-object-path@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" + integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= + dependencies: + kind-of "^3.0.2" + +to-regex-range@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" + integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= + dependencies: + is-number "^3.0.0" + repeat-string "^1.6.1" + +to-regex@^3.0.1, to-regex@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" + integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== + dependencies: + define-property "^2.0.2" + extend-shallow "^3.0.2" + regex-not "^1.0.2" + safe-regex "^1.1.0" + +topo@2.x.x: + version "2.0.2" + resolved "https://registry.yarnpkg.com/topo/-/topo-2.0.2.tgz#cd5615752539057c0dc0491a621c3bc6fbe1d182" + integrity sha1-zVYVdSU5BXwNwEkaYhw7xvvh0YI= + dependencies: + hoek "4.x.x" + +touch@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/touch/-/touch-1.0.0.tgz#449cbe2dbae5a8c8038e30d71fa0ff464947c4de" + integrity sha1-RJy+LbrlqMgDjjDXH6D/RklHxN4= + dependencies: + nopt "~1.0.10" + +tough-cookie@~2.3.3: + version "2.3.4" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655" + integrity sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA== + dependencies: + punycode "^1.4.1" + +trim-right@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" + integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM= + +tryer@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/tryer/-/tryer-1.0.0.tgz#027b69fa823225e551cace3ef03b11f6ab37c1d7" + integrity sha1-Antp+oIyJeVRys4+8DsR9qs3wdc= + +tty-browserify@0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" + integrity sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY= + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + integrity sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0= + dependencies: + safe-buffer "^5.0.1" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= + +type-is@~1.6.15, type-is@~1.6.16: + version "1.6.16" + resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.16.tgz#f89ce341541c672b25ee7ae3c73dee3b2be50194" + integrity sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q== + dependencies: + media-typer "0.3.0" + mime-types "~2.1.18" + +ua-parser-js@0.7.17: + version "0.7.17" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.17.tgz#e9ec5f9498b9ec910e7ae3ac626a805c4d09ecac" + integrity sha512-uRdSdu1oA1rncCQL7sCj8vSyZkgtL7faaw9Tc9rZ3mGgraQ7+Pdx7w5mnOSF3gw9ZNG6oc+KXfkon3bKuROm0g== + +ua-parser-js@^0.7.9: + version "0.7.18" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.18.tgz#a7bfd92f56edfb117083b69e31d2aa8882d4b1ed" + integrity sha512-LtzwHlVHwFGTptfNSgezHp7WUlwiqb0gA9AALRbKaERfxwJoiX0A73QbTToxteIAuIaFshhgIZfqK8s7clqgnA== + +uglify-js@^2.8.29: + version "2.8.29" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" + integrity sha1-KcVzMUgFe7Th913zW3qcty5qWd0= + dependencies: + source-map "~0.5.1" + yargs "~3.10.0" + optionalDependencies: + uglify-to-browserify "~1.0.0" + +uglify-to-browserify@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" + integrity sha1-bgkk1r2mta/jSeOabWMoUKD4grc= + +uglifyjs-webpack-plugin@^0.4.6: + version "0.4.6" + resolved "https://registry.yarnpkg.com/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz#b951f4abb6bd617e66f63eb891498e391763e309" + integrity sha1-uVH0q7a9YX5m9j64kUmOORdj4wk= + dependencies: + source-map "^0.5.6" + uglify-js "^2.8.29" + webpack-sources "^1.0.1" + +ultron@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.1.1.tgz#9fe1536a10a664a65266a1e3ccf85fd36302bc9c" + integrity sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og== + +underscore.string@^3.1.1: + version "3.3.4" + resolved "https://registry.yarnpkg.com/underscore.string/-/underscore.string-3.3.4.tgz#2c2a3f9f83e64762fdc45e6ceac65142864213db" + integrity sha1-LCo/n4PmR2L9xF5s6sZRQoZCE9s= + dependencies: + sprintf-js "^1.0.3" + util-deprecate "^1.0.2" + +unfetch@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/unfetch/-/unfetch-4.0.1.tgz#8750c4c7497ade75d40387d7dbc4ba024416b8f6" + integrity sha512-HzDM9NgldcRvHVDb/O9vKoUszVij30Yw5ePjOZJig8nF/YisG7QN/9CBXZ8dsHLouXMeLZ82r+Jod9M2wFkEbQ== + +union-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" + integrity sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ= + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^0.4.3" + +uniq@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" + integrity sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8= + +uniqs@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/uniqs/-/uniqs-2.0.0.tgz#ffede4b36b25290696e6e165d4a59edb998e6b02" + integrity sha1-/+3ks2slKQaW5uFl1KWe25mOawI= + +units-css@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/units-css/-/units-css-0.4.0.tgz#d6228653a51983d7c16ff28f8b9dc3b1ffed3a07" + integrity sha1-1iKGU6UZg9fBb/KPi53Dsf/tOgc= + dependencies: + isnumeric "^0.2.0" + viewport-dimensions "^0.2.0" + +universal-analytics@^0.4.17: + version "0.4.17" + resolved "https://registry.yarnpkg.com/universal-analytics/-/universal-analytics-0.4.17.tgz#b57a07e37446ebe4f32872b2152a44cbc5cc4b73" + integrity sha512-N2JFymxv4q2N5Wmftc5JCcM5t1tp+sc1kqeDRhDL4XLY5X6PBZ0kav2wvVUZJJMvmSq3WXrmzDu062p+cSFYfQ== + dependencies: + debug "^3.0.0" + request "2.86.0" + uuid "^3.0.0" + +universalify@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7" + integrity sha1-+nG63UQ3r0wUiEHjs7Fl+enlkLc= + +unpipe@1.0.0, unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= + +unset-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" + integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= + dependencies: + has-value "^0.3.1" + isobject "^3.0.0" + +upath@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/upath/-/upath-1.1.0.tgz#35256597e46a581db4793d0ce47fa9aebfc9fabd" + integrity sha512-bzpH/oBhoS/QI/YtbkqCg6VEiPYjSZtrHQM6/QnJS6OL9pKUFLqb3aFh4Scvwm45+7iAgiMkLhSbaZxUqmrprw== + +uri-js@^4.2.1: + version "4.2.2" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" + integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== + dependencies: + punycode "^2.1.0" + +urix@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" + integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= + +url@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" + integrity sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE= + dependencies: + punycode "1.3.2" + querystring "0.2.0" + +use@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/use/-/use-3.1.0.tgz#14716bf03fdfefd03040aef58d8b4b85f3a7c544" + integrity sha512-6UJEQM/L+mzC3ZJNM56Q4DFGLX/evKGRg15UJHGB9X5j5Z3AFbgZvjUh2yq/UJUY4U5dh7Fal++XbNg1uzpRAw== + dependencies: + kind-of "^6.0.2" + +util-deprecate@^1.0.2, util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +util@0.10.3: + version "0.10.3" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" + integrity sha1-evsa/lCAUkZInj23/g7TeTNqwPk= + dependencies: + inherits "2.0.1" + +util@^0.10.3: + version "0.10.4" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901" + integrity sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A== + dependencies: + inherits "2.0.3" + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" + integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= + +uuid@^3.0.0, uuid@^3.1.0: + version "3.2.1" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14" + integrity sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA== + +validate-npm-package-license@^3.0.1: + version "3.0.3" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz#81643bcbef1bdfecd4623793dc4648948ba98338" + integrity sha512-63ZOUnL4SIXj4L0NixR3L1lcjO38crAbgrTpl28t8jjrfuiOBL5Iygm+60qPs/KsZGzPNg6Smnc/oY16QTjF0g== + dependencies: + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" + +vary@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" + integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= + +vendors@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/vendors/-/vendors-1.0.2.tgz#7fcb5eef9f5623b156bcea89ec37d63676f21801" + integrity sha512-w/hry/368nO21AN9QljsaIhb9ZiZtZARoVH5f3CsFbawdLdayCgKRPup7CggujvySMxx0I91NOyxdVENohprLQ== + +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + integrity sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA= + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + +viewport-dimensions@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/viewport-dimensions/-/viewport-dimensions-0.2.0.tgz#de740747db5387fd1725f5175e91bac76afdf36c" + integrity sha1-3nQHR9tTh/0XJfUXXpG6x2r982w= + +vm-browserify@0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73" + integrity sha1-XX6kW7755Kb/ZflUOOCofDV9WnM= + dependencies: + indexof "0.0.1" + +watchpack@^1.4.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.6.0.tgz#4bc12c2ebe8aa277a71f1d3f14d685c7b446cd00" + integrity sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA== + dependencies: + chokidar "^2.0.2" + graceful-fs "^4.1.2" + neo-async "^2.5.0" + +webpack-bundle-analyzer@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.0.3.tgz#dbc7fff8f52058b6714a20fddf309d0790e3e0a0" + integrity sha512-naLWiRfmtH4UJgtUktRTLw6FdoZJ2RvCR9ePbwM9aRMsS/KjFerkPZG9epEvXRAw5d5oPdrs9+3p+afNjxW8Xw== + dependencies: + acorn "^5.7.3" + bfj "^6.1.1" + chalk "^2.4.1" + commander "^2.18.0" + ejs "^2.6.1" + express "^4.16.3" + filesize "^3.6.1" + gzip-size "^5.0.0" + lodash "^4.17.10" + mkdirp "^0.5.1" + opener "^1.5.1" + ws "^6.0.0" + +webpack-sources@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.1.0.tgz#a101ebae59d6507354d71d8013950a3a8b7a5a54" + integrity sha512-aqYp18kPphgoO5c/+NaUvEeACtZjMESmDChuD3NBciVpah3XpMEU9VAAtIaB1BsfJWWTSdv8Vv1m3T0aRk2dUw== + dependencies: + source-list-map "^2.0.0" + source-map "~0.6.1" + +webpack@^3.12.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.12.0.tgz#3f9e34360370602fcf639e97939db486f4ec0d74" + integrity sha512-Sw7MdIIOv/nkzPzee4o0EdvCuPmxT98+vVpIvwtcwcF1Q4SDSNp92vwcKc4REe7NItH9f1S4ra9FuQ7yuYZ8bQ== + dependencies: + acorn "^5.0.0" + acorn-dynamic-import "^2.0.0" + ajv "^6.1.0" + ajv-keywords "^3.1.0" + async "^2.1.2" + enhanced-resolve "^3.4.0" + escope "^3.6.0" + interpret "^1.0.0" + json-loader "^0.5.4" + json5 "^0.5.1" + loader-runner "^2.3.0" + loader-utils "^1.1.0" + memory-fs "~0.4.1" + mkdirp "~0.5.0" + node-libs-browser "^2.0.0" + source-map "^0.5.3" + supports-color "^4.2.1" + tapable "^0.2.7" + uglifyjs-webpack-plugin "^0.4.6" + watchpack "^1.4.0" + webpack-sources "^1.0.1" + yargs "^8.0.2" + +whatwg-fetch@>=0.10.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f" + integrity sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng== + +when@^3.7.7, when@^3.7.8: + version "3.7.8" + resolved "https://registry.yarnpkg.com/when/-/when-3.7.8.tgz#c7130b6a7ea04693e842cdc9e7a1f2aa39a39f82" + integrity sha1-xxMLan6gRpPoQs3J56Hyqjmjn4I= + +whet.extend@~0.9.9: + version "0.9.9" + resolved "https://registry.yarnpkg.com/whet.extend/-/whet.extend-0.9.9.tgz#f877d5bf648c97e5aa542fadc16d6a259b9c11a1" + integrity sha1-+HfVv2SMl+WqVC+twW1qJZucEaE= + +which-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" + integrity sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8= + +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" + integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= + +which@^1.2.8, which@^1.2.9: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + +wide-align@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" + integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== + dependencies: + string-width "^1.0.2 || 2" + +window-size@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" + integrity sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0= + +window-size@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.2.0.tgz#b4315bb4214a3d7058ebeee892e13fa24d98b075" + integrity sha1-tDFbtCFKPXBY6+7okuE/ok2YsHU= + +with@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/with/-/with-6.0.0.tgz#00223660fa0d0aeb4776965e61f902410c4c9d86" + integrity sha512-FrwIIWGUkHViaUXWmEvcwKy+eI0ajKh/Xq192o2kwFtSI7lS7xE5O1E2VNurhWE9ZLRDwr6GAAkKDsDIyStUuw== + dependencies: + babel-runtime "^6.11.6" + babel-types "^6.15.0" + babylon "^6.9.1" + babylon-walk "^1.0.2" + +wordwrap@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" + integrity sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8= + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + integrity sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU= + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + +write-file-stdout@0.0.2, write-file-stdout@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/write-file-stdout/-/write-file-stdout-0.0.2.tgz#c252d7c7c5b1b402897630e3453c7bfe690d9ca1" + integrity sha1-wlLXx8WxtAKJdjDjRTx7/mkNnKE= + +ws@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-6.0.0.tgz#eaa494aded00ac4289d455bac8d84c7c651cef35" + integrity sha512-c2UlYcAZp1VS8AORtpq6y4RJIkJ9dQz18W32SpR/qXGfLDZ2jU4y4wKvvZwqbi7U6gxFQTeE+urMbXU/tsDy4w== + dependencies: + async-limiter "~1.0.0" + +ws@~3.3.1: + version "3.3.3" + resolved "https://registry.yarnpkg.com/ws/-/ws-3.3.3.tgz#f1cf84fe2d5e901ebce94efaece785f187a228f2" + integrity sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA== + dependencies: + async-limiter "~1.0.0" + safe-buffer "~5.1.0" + ultron "~1.1.0" + +xmlhttprequest-ssl@~1.5.4: + version "1.5.5" + resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz#c2876b06168aadc40e57d97e81191ac8f4398b3e" + integrity sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4= + +xtend@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" + integrity sha1-pcbVMr5lbiPbgg77lDofBJmNY68= + +y18n@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" + integrity sha1-bRX7qITAhnnA136I53WegR4H+kE= + +yallist@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= + +yallist@^3.0.0, yallist@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9" + integrity sha1-hFK0u36Dx8GI2AQcGoN8dz1ti7k= + +yargs-parser@^4.1.0, yargs-parser@^4.2.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-4.2.1.tgz#29cceac0dc4f03c6c87b4a9f217dd18c9f74871c" + integrity sha1-KczqwNxPA8bIe0qfIX3RjJ90hxw= + dependencies: + camelcase "^3.0.0" + +yargs-parser@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9" + integrity sha1-jQrELxbqVd69MyyvTEA4s+P139k= + dependencies: + camelcase "^4.1.0" + +yargs@6.4.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-6.4.0.tgz#816e1a866d5598ccf34e5596ddce22d92da490d4" + integrity sha1-gW4ahm1VmMzzTlWW3c4i2S2kkNQ= + dependencies: + camelcase "^3.0.0" + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + os-locale "^1.4.0" + read-pkg-up "^1.0.1" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^1.0.2" + which-module "^1.0.0" + window-size "^0.2.0" + y18n "^3.2.1" + yargs-parser "^4.1.0" + +yargs@6.6.0: + version "6.6.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-6.6.0.tgz#782ec21ef403345f830a808ca3d513af56065208" + integrity sha1-eC7CHvQDNF+DCoCMo9UTr1YGUgg= + dependencies: + camelcase "^3.0.0" + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + os-locale "^1.4.0" + read-pkg-up "^1.0.1" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^1.0.2" + which-module "^1.0.0" + y18n "^3.2.1" + yargs-parser "^4.2.0" + +yargs@^8.0.2: + version "8.0.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360" + integrity sha1-YpmpBVsc78lp/355wdkY3Osiw2A= + dependencies: + camelcase "^4.1.0" + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + os-locale "^2.0.0" + read-pkg-up "^2.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1" + yargs-parser "^7.0.0" + +yargs@~3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" + integrity sha1-9+572FfdfB0tOMDnTvvWgdFDH9E= + dependencies: + camelcase "^1.0.2" + cliui "^2.1.0" + decamelize "^1.0.0" + window-size "0.1.0" + +yeast@0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419" + integrity sha1-AI4G2AlDIMNy28L47XagymyKxBk= diff --git a/website/bootstrap.sh b/website/bootstrap.sh new file mode 100644 index 0000000000..1b5979f422 --- /dev/null +++ b/website/bootstrap.sh @@ -0,0 +1 @@ +cd assets && npm install diff --git a/website/config.rb b/website/config.rb index 4d436c5009..ce5c2930c2 100644 --- a/website/config.rb +++ b/website/config.rb @@ -1,30 +1,60 @@ +set :product_name, "Vault" set :base_url, "https://www.vaultproject.io/" +# Middleware for rendering preact components +use ReshapeMiddleware, component_file: "assets/reshape.js" + activate :hashicorp do |h| h.name = "vault" h.version = "0.11.3" h.github_slug = "hashicorp/vault" h.website_root = "website" + h.releases_enabled = true + h.datocms_api_key = '78d2968c99a076419fbb' end +# ready do +# dato.tap do |dato| +# sitemap.resources.each do |page| +# if page.path.match(/\.html$/) +# if page.metadata[:options][:layout] && ['docs', 'guides', 'api', 'intro'].include?(page.metadata[:options][:layout]) +# # get the page category from the url +# match = page.path.match(/^(.*?)\//) +# # proxy the page route +# proxy "#{page.path}", "/content", { +# layout: page.metadata[:options][:layout], +# locals: page.metadata[:page].merge({ +# content: render(page), +# sidebar_data: get_sidebar_data(match ? match[1] : nil) +# }) +# }, ignore: true +# end +# end +# end +# end +# end + +# Netlify redirects/headers +proxy '_redirects', 'netlify-redirects', ignore: true + helpers do - # Returns a segment tracking ID such that local development is not - # tracked to production systems. - def segmentId() - if (ENV['ENV'] == 'production') - 'OdSFDq9PfujQpmkZf03dFpcUlywme4sC' - else - '0EXTgkNx0Ydje2PGXVbRhpKKoe5wtzcE' - end + # Formats and filters a category of docs for the sidebar component + def get_sidebar_data(category) + sitemap.resources.select { |resource| + !!Regexp.new("^#{category}").match(resource.path) + }.map { |resource| + { + path: resource.path, + data: resource.data.to_hash.tap { |a| a.delete 'description'; a } + } + } end # Returns the FQDN of the image URL. - # # @param [String] path - # # @return [String] def image_url(path) - File.join(base_url, image_path(path)) + File.join(config[:base_url], "/img/#{path}") end # Get the title for the page. @@ -47,6 +77,7 @@ helpers do # @return [String] def description_for(page) description = (page.data.description || "") + .gsub('"', '') .gsub(/\n+/, ' ') .squeeze(' ') @@ -108,3 +139,42 @@ helpers do return classes.join(" ") end end + +# custom version of middleman's render that renders only a file's contents +# without front matter or layouts +def render(page) + full_path = page.file_descriptor[:full_path] + relative_path = page.file_descriptor[:relative_path] + content = File.read(full_path).to_s + locals = {} + options = {} + + data = @app.extensions[:front_matter].data(relative_path.to_s) + frontmatter = data[0] + content = data[1] + + context = @app.template_context_class.new(@app, locals, options) + _render_with_all_renderers(relative_path.to_s, locals, context, options) +end + +# pirated from middleman source, its protected there sadly +def _render_with_all_renderers(path, locs, context, opts, &block) + # Keep rendering template until we've used up all extensions. This + # handles cases like `style.css.sass.erb` + content = nil + + while ::Middleman::Util.tilt_class(path) + begin + opts[:template_body] = content if content + + content_renderer = ::Middleman::FileRenderer.new(@app, path) + content = content_renderer.render(locs, opts, context, &block) + + path = path.sub(/\.[^.]*\z/, '') + rescue LocalJumpError + raise "Tried to render a layout (calls yield) at #{path} like it was a template. Non-default layouts need to be in #{@app.config[:source]}/#{@app.config[:layouts_dir]}." + end + end + + content +end diff --git a/website/data/api_basic_categories.yml b/website/data/api_basic_categories.yml new file mode 100644 index 0000000000..e7f72a6446 --- /dev/null +++ b/website/data/api_basic_categories.yml @@ -0,0 +1,16 @@ +- + title: "Overview" + description: "Topics related to developing applications with the Vault API, including client libraries and related tools." + link: "/api/overview" +- + title: "Secrets Engines" + description: "Functions related to managing secrets and secrets engines." + link: "/api/secret" +- + title: "Auth Methods" + description: "Functions related to configuring how users and applications authenticate into Vault." + link: "/api/auth" +- + title: "System Backends" + description: "Functions related to managing Vault's configuration, including replication, storage, and managing Vault's unseal processes." + link: "/api/system" diff --git a/website/data/api_detailed_categories.yml b/website/data/api_detailed_categories.yml new file mode 100644 index 0000000000..b1897a72a3 --- /dev/null +++ b/website/data/api_detailed_categories.yml @@ -0,0 +1,83 @@ +- + title: "Auth Methods" + docs: + - api/auth/index.html + - api/auth/approle/index.html + - api/auth/alicloud/index.html + - api/auth/aws/index.html + - api/auth/azure/index.html + - api/auth/github/index.html + - api/auth/gcp/index.html + - api/auth/jwt/index.html + - api/auth/kubernetes/index.html + - api/auth/ldap/index.html + - api/auth/okta/index.html + - api/auth/radius/index.html + - api/auth/cert/index.html + - api/auth/token/index.html + - api/auth/userpass/index.html +- + title: "Secret Engines" + docs: + - api/secret/index.html + - api/secret/ad/index.html + - api/secret/alicloud/index.html + - api/secret/aws/index.html + - api/secret/azure/index.html + - api/secret/consul/index.html + - api/secret/cubbyhole/index.html + - api/secret/databases/index.html + - api/secret/gcp/index.html + - api/secret/kv/index.html + - api/secret/identity/index.html + - api/secret/nomad/index.html + - api/secret/pki/index.html + - api/secret/rabbitmq/index.html + - api/secret/ssh/index.html + - api/secret/totp/index.html + - api/secret/transit/index.html +- + title: "System Backends" + docs: + - api/system/index.html + - api/system/audit.html + - api/system/audit-hash.html + - api/system/auth.html + - api/system/capabilities.html + - api/system/capabilities-accessor.html + - api/system/capabilities-self.html + - api/system/config-auditing.html + - api/system/config-control-group.html + - api/system/config-cors.html + - api/system/config-ui.html + - api/system/control-group.html + - api/system/generate-root.html + - api/system/health.html + - api/system/init.html + - api/system/internal-ui-mounts.html + - api/system/key-status.html + - api/system/leader.html + - api/system/leases.html + - api/system/license.html + - api/system/namespaces.html + - api/system/mfa/index.html + - api/system/mounts.html + - api/system/plugins-reload-backend.html + - api/system/plugins-catalog.html + - api/system/policy.html + - api/system/policies.html + - api/system/raw.html + - api/system/rekey.html + - api/system/rekey-recovery-key.html + - api/system/remount.html + - api/system/replication/index.html + - api/system/rotate.html + - api/system/seal.html + - api/system/seal-status.html + - api/system/step-down.html + - api/system/tools.html + - api/system/unseal.html + - api/system/wrapping-lookup.html + - api/system/wrapping-rewrap.html + - api/system/wrapping-unwrap.html + - api/system/wrapping-wrap.html diff --git a/website/data/docs_basic_categories.yml b/website/data/docs_basic_categories.yml new file mode 100644 index 0000000000..44ac7cd118 --- /dev/null +++ b/website/data/docs_basic_categories.yml @@ -0,0 +1,44 @@ +- + description: "Installing Vault and Vault Enterprise." + link: "/docs/install" + title: "Installing Vault" +- + description: "Technical details about Vault's architecture, cryptographic components, and security model." + link: "/docs/internals" + title: Internals +- + description: "Foundational concepts critical to understanding how Vault operates." + link: "/docs/concepts" + title: "Basic Concepts" +- + description: "Managing Vault via its Command Line Interface (CLI)." + link: "/docs/commands" + title: "Commands (CLI)" +- + description: "Deploying Vault systems and configuring components such as storage and unseal interfaces." + link: "/docs/configuration" + title: Configuration +- + description: "Configuring the Vault binary as a client daemon for performing security operations." + link: "/docs/agent" + title: "Vault Agent" +- + description: "Engines for performing security operations using secrets stored within Vault." + link: "/docs/secrets" + title: "Secret Engines" +- + description: "Methods for configuring how users and applications authenticate into Vault." + link: "/docs/auth" + title: "Auth Methods" +- + description: "Devices for capturing audit logs monitoring activity within Vault." + link: "/docs/audit" + title: "Audit Devices" +- + description: "Configuring how Vault operates with external systems and applications via plugins." + link: "/docs/plugin" + title: "Plugin Backends" +- + description: "Topics related to Vault Enterprise, Vault's premium varient for professional teams and organizations." + link: "/docs/enterprise" + title: "Vault Enterprise" diff --git a/website/data/docs_detailed_categories.yml b/website/data/docs_detailed_categories.yml new file mode 100644 index 0000000000..14e470d158 --- /dev/null +++ b/website/data/docs_detailed_categories.yml @@ -0,0 +1,135 @@ +- + title: "Installing Vault" + docs: + - docs/install/index.html +- + title: Internals + docs: + - docs/internals/index.html + - docs/internals/architecture.html + - docs/internals/high-availability.html + - docs/internals/security.html + - docs/internals/telemetry.html + - docs/internals/token.html + - docs/internals/rotation.html + - docs/internals/replication.html + - docs/internals/plugins.html +- + title: "Basic Concepts" + docs: + - docs/concepts/index.html + - docs/concepts/dev-server.html + - docs/concepts/seal.html + - docs/concepts/lease.html + - docs/concepts/auth.html + - docs/concepts/tokens.html + - docs/concepts/response-wrapping.html + - docs/concepts/policies.html + - docs/concepts/ha.html + - docs/concepts/pgp-gpg-keybase.html +- + title: Configuration + docs: + - docs/configuration/index.html + - docs/configuration/telemetry.html + - docs/configuration/seal/index.html + - docs/configuration/listener/index.html + - docs/configuration/ui/index.html +- + title: "CLI Commands" + docs: + - docs/commands/index.html + - docs/commands/agent.html + - docs/commands/audit/index.html + - docs/commands/auth/index.html + - docs/commands/delete.html + - docs/commands/lease/index.html + - docs/commands/list.html + - docs/commands/login.html + - docs/commands/operator/index.html + - docs/commands/path-help.html + - docs/commands/namespace.html + - docs/commands/plugin/index.html + - docs/commands/policy/index.html + - docs/commands/read.html + - docs/commands/secrets/index.html + - docs/commands/server.html + - docs/commands/ssh.html + - docs/commands/status.html + - docs/commands/token/index.html + - docs/commands/unwrap.html + - docs/commands/write.html + - docs/commands/token-helper.html +- + title: "Vault Agent" + docs: + - docs/agent/index.html + - docs/agent/autoauth/index.html +- + title: "Secret Engines" + docs: + - docs/secrets/index.html + - docs/secrets/ad/index.html + - docs/secrets/alicloud/index.html + - docs/secrets/aws/index.html + - docs/secrets/azure/index.html + - docs/secrets/consul/index.html + - docs/secrets/cubbyhole/index.html + - docs/secrets/databases/index.html + - docs/secrets/gcp/index.html + - docs/secrets/kv/index.html + - docs/secrets/identity/index.html + - docs/secrets/nomad/index.html + - docs/secrets/pki/index.html + - docs/secrets/rabbitmq/index.html + - docs/secrets/ssh/index.html + - docs/secrets/totp/index.html + - docs/secrets/transit/index.html + - docs/secrets/cassandra/index.html + - docs/secrets/mongodb/index.html + - docs/secrets/mssql/index.html + - docs/secrets/mysql/index.html + - docs/secrets/postgresql/index.html +- + title: "Auth Methods" + docs: + - docs/auth/index.html + - docs/auth/approle.html + - docs/auth/alicloud.html + - docs/auth/aws.html + - docs/auth/azure.html + - docs/auth/gcp.html + - docs/auth/jwt.html + - docs/auth/kubernetes.html + - docs/auth/github.html + - docs/auth/ldap.html + - docs/auth/okta.html + - docs/auth/radius.html + - docs/auth/cert.html + - docs/auth/token.html + - docs/auth/userpass.html + - docs/auth/app-id.html + - docs/auth/mfa.html +- + title: "Audit Devices" + docs: + - docs/audit/index.html + - docs/audit/file.html + - docs/audit/syslog.html + - docs/audit/socket.html +- + title: "Plugin Backends" + docs: + - docs/plugin/index.html +- + title: "Vault Enterprise" + docs: + - docs/enterprise/replication/index.html + - docs/enterprise/auto-unseal/index.html + - docs/enterprise/hsm/index.html + - docs/enterprise/sealwrap/index.html + - docs/enterprise/namespaces/index.html + - docs/enterprise/performance-standby/index.html + - docs/enterprise/control-groups/index.html + - docs/enterprise/mfa/index.html + - docs/enterprise/sentinel/index.html diff --git a/website/data/news.yml b/website/data/news.yml deleted file mode 100644 index d3a6131c1d..0000000000 --- a/website/data/news.yml +++ /dev/null @@ -1,24 +0,0 @@ -default_link_text: "Read more" -posts: - - - title: "Vault 0.10 released" - body: >- - We are proud to announce the release of HashiCorp Vault 0.10. This - version includes an open source web UI, versioned key-value secrets, - Azure authentication, Google Cloud Secrets Engine, Root DB credential - rotation, and much more! - link_url: "https://www.hashicorp.com/blog/vault-0-10/" - - - title: "Vault 0.9 released" - body: >- - We are proud to announce the release of HashiCorp Vault 0.9. This - version includes Identity, Seal Wrap (FIPS 140-2 compliance), new - Vault UI, Sentinel integration, cloud auto-unseal, and much more! - link_url: "https://www.hashicorp.com/blog/vault-0-9" - - - title: "Vault 0.8.1 released" - body: >- - We are proud to announce the release of HashiCorp Vault 0.8.1. This - version includes Google Cloud IAM authentication, Oracle database - backends, self-reloading plugins, and much more! - link_url: "https://www.hashicorp.com/blog/vault-0-8-1/" diff --git a/website/deploy/main.tf b/website/deploy/main.tf new file mode 100644 index 0000000000..4f3c8380d8 --- /dev/null +++ b/website/deploy/main.tf @@ -0,0 +1,60 @@ +locals { + github_parts = ["${split("/", var.github_repo)}"] + github_full = "${var.github_repo}" + github_org = "${local.github_parts[0]}" + github_repo = "${local.github_parts[1]}" +} + +/* +------------------------------------------------------------------- +GitHub Resources +------------------------------------------------------------------- +*/ + +provider "github" { + organization = "${local.github_org}" +} + +// Configure the repository with the dynamically created Netlify key. +resource "github_repository_deploy_key" "key" { + title = "Netlify" + repository = "${local.github_repo}" + key = "${netlify_deploy_key.key.public_key}" + read_only = false +} + +// Create a webhook that triggers Netlify builds on push. +resource "github_repository_webhook" "main" { + repository = "${local.github_repo}" + name = "web" + events = ["delete", "push", "pull_request"] + + configuration { + content_type = "json" + url = "https://api.netlify.com/hooks/github" + } + + depends_on = ["netlify_site.main"] +} + +/* +------------------------------------------------------------------- +Netlify Resources +------------------------------------------------------------------- +*/ + +// A new, unique deploy key for this specific website +resource "netlify_deploy_key" "key" {} + +resource "netlify_site" "main" { + name = "${var.name}" + + repo { + repo_branch = "${var.github_branch}" + command = "cd website && bundle && cd assets && npm i && cd .. && middleman build --verbose" + deploy_key_id = "${netlify_deploy_key.key.id}" + dir = "website/build" + provider = "github" + repo_path = "${local.github_full}" + } +} diff --git a/website/deploy/variables.tf b/website/deploy/variables.tf new file mode 100644 index 0000000000..2386d407cf --- /dev/null +++ b/website/deploy/variables.tf @@ -0,0 +1,14 @@ +variable "name" { + default = "vault-www" + description = "Name of the website in slug format." +} + +variable "github_repo" { + default = "hashicorp/packer" + description = "GitHub repository of the provider in 'org/name' format." +} + +variable "github_branch" { + default = "stable-website" + description = "GitHub branch which netlify will continuously deploy." +} diff --git a/website/packer.json b/website/packer.json deleted file mode 100644 index 4ac70d626a..0000000000 --- a/website/packer.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "variables": { - "aws_access_key_id": "{{ env `AWS_ACCESS_KEY_ID` }}", - "aws_secret_access_key": "{{ env `AWS_SECRET_ACCESS_KEY` }}", - "aws_region": "{{ env `AWS_REGION` }}", - "website_environment": "production", - "fastly_api_key": "{{ env `FASTLY_API_KEY` }}" - }, - "builders": [ - { - "type": "docker", - "image": "hashicorp/middleman-hashicorp:0.3.32", - "discard": "true", - "volumes": { - "{{ pwd }}": "/website" - } - } - ], - "provisioners": [ - { - "type": "shell", - "environment_vars": [ - "AWS_ACCESS_KEY_ID={{ user `aws_access_key_id` }}", - "AWS_SECRET_ACCESS_KEY={{ user `aws_secret_access_key` }}", - "AWS_REGION={{ user `aws_region` }}", - "ENV={{ user `website_environment` }}", - "FASTLY_API_KEY={{ user `fastly_api_key` }}" - ], - "inline": [ - "bundle check || bundle install", - "bundle exec middleman build", - "/bin/bash ./scripts/deploy.sh" - ] - } - ] -} diff --git a/website/redirects.txt b/website/redirects.txt index afc78c61e3..ac367ea4fc 100644 --- a/website/redirects.txt +++ b/website/redirects.txt @@ -73,15 +73,15 @@ /docs/guides/index.html /guides/index.html /docs/guides/production.html /guides/operations/production.html /docs/guides/replication.html /guides/operations/replication.html -/docs/guides/upgrading/index.html /guides/upgrading/index.html -/docs/guides/upgrading/upgrade-to-0.5.0.html /guides/upgrading/upgrade-to-0.5.0.html -/docs/guides/upgrading/upgrade-to-0.5.1.html /guides/upgrading/upgrade-to-0.5.1.html -/docs/guides/upgrading/upgrade-to-0.6.0.html /guides/upgrading/upgrade-to-0.6.0.html -/docs/guides/upgrading/upgrade-to-0.6.1.html /guides/upgrading/upgrade-to-0.6.1.html -/docs/guides/upgrading/upgrade-to-0.6.2.html /guides/upgrading/upgrade-to-0.6.2.html -/docs/guides/upgrading/upgrade-to-0.6.3.html /guides/upgrading/upgrade-to-0.6.3.html -/docs/guides/upgrading/upgrade-to-0.6.4.html /guides/upgrading/upgrade-to-0.6.4.html -/docs/guides/upgrading/upgrade-to-0.7.0.html /guides/upgrading/upgrade-to-0.7.0.html +/docs/guides/upgrading/index.html /docs/upgrading/index.html +/docs/guides/upgrading/upgrade-to-0.5.0.html /docs/upgrading/upgrade-to-0.5.0.html +/docs/guides/upgrading/upgrade-to-0.5.1.html /docs/upgrading/upgrade-to-0.5.1.html +/docs/guides/upgrading/upgrade-to-0.6.0.html /docs/upgrading/upgrade-to-0.6.0.html +/docs/guides/upgrading/upgrade-to-0.6.1.html /docs/upgrading/upgrade-to-0.6.1.html +/docs/guides/upgrading/upgrade-to-0.6.2.html /docs/upgrading/upgrade-to-0.6.2.html +/docs/guides/upgrading/upgrade-to-0.6.3.html /docs/upgrading/upgrade-to-0.6.3.html +/docs/guides/upgrading/upgrade-to-0.6.4.html /docs/upgrading/upgrade-to-0.6.4.html +/docs/guides/upgrading/upgrade-to-0.7.0.html /docs/upgrading/upgrade-to-0.7.0.html /guides/production.html /guides/operations/production.html /guides/replication.html /guides/operations/replication.html /guides/policies.html /guides/identity/policies.html diff --git a/website/scripts/deploy.sh b/website/scripts/deploy.sh deleted file mode 100755 index 689ab1c1a7..0000000000 --- a/website/scripts/deploy.sh +++ /dev/null @@ -1,200 +0,0 @@ -#!/usr/bin/env bash -set -e - -PROJECT="vault" -PROJECT_URL="www.vaultproject.io" -FASTLY_SERVICE_ID="7GrxRJP3PVBuqQbyxYQ0MV" -FASTLY_DICTIONARY_ID="4uTFhCUtoa1cV9DuXeC1Fo" - -# Ensure the proper AWS environment variables are set -if [ -z "$AWS_ACCESS_KEY_ID" ]; then - echo "Missing AWS_ACCESS_KEY_ID!" - exit 1 -fi - -if [ -z "$AWS_SECRET_ACCESS_KEY" ]; then - echo "Missing AWS_SECRET_ACCESS_KEY!" - exit 1 -fi - -# Ensure the proper Fastly keys are set -if [ -z "$FASTLY_API_KEY" ]; then - echo "Missing FASTLY_API_KEY!" - exit 1 -fi - -# Ensure we have s3cmd installed -if ! command -v "s3cmd" >/dev/null 2>&1; then - echo "Missing s3cmd!" - exit 1 -fi - -# Get the parent directory of where this script is and cd there -DIR="$(cd "$(dirname "$(readlink -f "$0")")/.." && pwd)" - -# Delete any .DS_Store files for our OS X friends. -find "$DIR" -type f -name '.DS_Store' -delete - -# Upload the files to S3 - we disable mime-type detection by the python library -# and just guess from the file extension because it's surprisingly more -# accurate, especially for CSS and javascript. We also tag the uploaded files -# with the proper Surrogate-Key, which we will later purge in our API call to -# Fastly. -if [ -z "$NO_UPLOAD" ]; then - echo "Uploading to S3..." - - # Check that the site has been built - if [ ! -d "$DIR/build" ]; then - echo "Missing compiled website! Run 'make build' to compile!" - exit 1 - fi - - # Set browser-side cache-control to ~4h, but tell Fastly to cache for much - # longer. We manually purge the Fastly cache, so setting it to a year is more - # than fine. - s3cmd \ - --quiet \ - --delete-removed \ - --guess-mime-type \ - --no-mime-magic \ - --acl-public \ - --recursive \ - --add-header="Cache-Control: max-age=14400" \ - --add-header="x-amz-meta-surrogate-control: max-age=31536000, stale-white-revalidate=86400, stale-if-error=604800" \ - --add-header="x-amz-meta-surrogate-key: site-$PROJECT" \ - sync "$DIR/build/" "s3://hc-sites/$PROJECT/latest/" - - # The s3cmd guessed mime type for text files is often wrong. This is - # problematic for some assets, so force their mime types to be correct. - echo "Overriding javascript mime-types..." - s3cmd \ - --mime-type="application/javascript" \ - --add-header="Cache-Control: max-age=31536000" \ - --exclude "*" \ - --include "*.js" \ - --recursive \ - modify "s3://hc-sites/$PROJECT/latest/" - - echo "Overriding css mime-types..." - s3cmd \ - --mime-type="text/css" \ - --add-header="Cache-Control: max-age=31536000" \ - --exclude "*" \ - --include "*.css" \ - --recursive \ - modify "s3://hc-sites/$PROJECT/latest/" - - echo "Overriding svg mime-types..." - s3cmd \ - --mime-type="image/svg+xml" \ - --add-header="Cache-Control: max-age=31536000" \ - --exclude "*" \ - --include "*.svg" \ - --recursive \ - modify "s3://hc-sites/$PROJECT/latest/" -fi - -# Add redirects if they exist -if [ -z "$NO_REDIRECTS" ] || [ ! test -f "./redirects.txt" ]; then - echo "Adding redirects..." - fields=() - while read -r line; do - [[ "$line" =~ ^#.* ]] && continue - [[ -z "$line" ]] && continue - - # Read fields - IFS=" " read -ra parts <<<"$line" - fields+=("${parts[@]}") - done < "./redirects.txt" - - # Check we have pairs - if [ $((${#fields[@]} % 2)) -ne 0 ]; then - echo "Bad redirects (not an even number)!" - exit 1 - fi - - # Check we don't have more than 1000 entries (yes, it says 2000 below, but that - # is because we've split into multiple lines). - if [ "${#fields}" -gt 2000 ]; then - echo "More than 1000 entries!" - exit 1 - fi - - # Validations - for field in "${fields[@]}"; do - if [ "${#field}" -gt 256 ]; then - echo "'$field' is > 256 characters!" - exit 1 - fi - - if [ "${field:0:1}" != "/" ]; then - echo "'$field' does not start with /!" - exit 1 - fi - done - - # Build the payload for single-request updates. - jq_args=() - jq_query="." - for (( i=0; i<${#fields[@]}; i+=2 )); do - original="${fields[i]}" - redirect="${fields[i+1]}" - echo "Redirecting ${original} -> ${redirect}" - jq_args+=(--arg "key$((i/2))" "${original}") - jq_args+=(--arg "value$((i/2))" "${redirect}") - jq_query+="| .items |= (. + [{op: \"upsert\", item_key: \$key$((i/2)), item_value: \$value$((i/2))}])" - done - - # Do not post empty items (the API gets sad) - if [ "${#jq_args[@]}" -ne 0 ]; then - json="$(jq "${jq_args[@]}" "${jq_query}" <<<'{"items": []}')" - - # Post the JSON body - curl \ - --fail \ - --silent \ - --output /dev/null \ - --request "PATCH" \ - --header "Fastly-Key: $FASTLY_API_KEY" \ - --header "Content-type: application/json" \ - --header "Accept: application/json" \ - --data "$json"\ - "https://api.fastly.com/service/$FASTLY_SERVICE_ID/dictionary/$FASTLY_DICTIONARY_ID/items" - fi -fi - -# Perform a purge of the surrogate key. -if [ -z "$NO_PURGE" ]; then - echo "Purging Fastly cache..." - curl \ - --fail \ - --silent \ - --output /dev/null \ - --request "POST" \ - --header "Accept: application/json" \ - --header "Fastly-Key: $FASTLY_API_KEY" \ - --header "Fastly-Soft-Purge: 1" \ - "https://api.fastly.com/service/$FASTLY_SERVICE_ID/purge/site-$PROJECT" -fi - -# Warm the cache with recursive wget. -if [ -z "$NO_WARM" ]; then - echo "Warming Fastly cache..." - echo "" - echo "If this step fails, there are likely missing or broken assets or links" - echo "on the website. Run the following command manually on your laptop, and" - echo "search for \"ERROR\" in the output:" - echo "" - echo "wget --recursive --delete-after https://$PROJECT_URL/" - echo "" - wget \ - --delete-after \ - --level inf \ - --no-directories \ - --no-host-directories \ - --no-verbose \ - --page-requisites \ - --recursive \ - --spider \ - "https://$PROJECT_URL/" -fi diff --git a/website/source/api/auth/alicloud/index.html.md b/website/source/api/auth/alicloud/index.html.md index c861d01bf5..04a022a662 100644 --- a/website/source/api/auth/alicloud/index.html.md +++ b/website/source/api/auth/alicloud/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "AliCloud - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-alicloud" +sidebar_title: "AliCloud" +sidebar_current: "api-http-auth-alicloud" description: |- This is the API documentation for the Vault AliCloud auth method. --- diff --git a/website/source/api/auth/app-id/index.html.md b/website/source/api/auth/app-id/index.html.md index e242a781c8..0a73c98967 100644 --- a/website/source/api/auth/app-id/index.html.md +++ b/website/source/api/auth/app-id/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "AppID - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-appid" +sidebar_title: "App ID DEPRECATED" +sidebar_current: "api-http-auth-appid" description: |- This is the API documentation for the Vault App ID auth method. --- diff --git a/website/source/api/auth/approle/index.html.md b/website/source/api/auth/approle/index.html.md index 534947ce20..53bbbc81d9 100644 --- a/website/source/api/auth/approle/index.html.md +++ b/website/source/api/auth/approle/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "AppRole - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-approle" +sidebar_title: "AppRole" +sidebar_current: "api-http-auth-approle" description: |- This is the API documentation for the Vault AppRole auth method. --- diff --git a/website/source/api/auth/aws/index.html.md b/website/source/api/auth/aws/index.html.md index 770c56638b..b35a06d510 100644 --- a/website/source/api/auth/aws/index.html.md +++ b/website/source/api/auth/aws/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "AWS - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-aws" +sidebar_title: "AWS" +sidebar_current: "api-http-auth-aws" description: |- This is the API documentation for the Vault AWS auth method. --- diff --git a/website/source/api/auth/azure/index.html.md b/website/source/api/auth/azure/index.html.md index 5640dcdfc1..8d703022ea 100644 --- a/website/source/api/auth/azure/index.html.md +++ b/website/source/api/auth/azure/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Azure - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-azure" +sidebar_title: "Azure" +sidebar_current: "api-http-auth-azure" description: |- This is the API documentation for the Vault Azure authentication method plugin. diff --git a/website/source/api/auth/cert/index.html.md b/website/source/api/auth/cert/index.html.md index adc7e0bd5a..27d7be8c9e 100644 --- a/website/source/api/auth/cert/index.html.md +++ b/website/source/api/auth/cert/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "TLS Certificate - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-cert" +sidebar_title: "TLS Certificates" +sidebar_current: "api-http-auth-cert" description: |- This is the API documentation for the Vault TLS Certificate authentication method. diff --git a/website/source/api/auth/gcp/index.html.md b/website/source/api/auth/gcp/index.html.md index a76210b523..29c2119201 100644 --- a/website/source/api/auth/gcp/index.html.md +++ b/website/source/api/auth/gcp/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Google Cloud - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-gcp" +sidebar_title: "Google Cloud" +sidebar_current: "api-http-auth-gcp" description: |- This is the API documentation for the Vault Google Cloud authentication method. diff --git a/website/source/api/auth/github/index.html.md b/website/source/api/auth/github/index.html.md index 2388c11a7c..d1e3a29828 100644 --- a/website/source/api/auth/github/index.html.md +++ b/website/source/api/auth/github/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "GitHub - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-github" +sidebar_title: "GitHub" +sidebar_current: "api-http-auth-github" description: |- This is the API documentation for the Vault GitHub auth method. --- diff --git a/website/source/api/auth/index.html.md b/website/source/api/auth/index.html.md index 55634f82ce..5155de9f3e 100644 --- a/website/source/api/auth/index.html.md +++ b/website/source/api/auth/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Auth Methods - HTTP API" -sidebar_current: "docs-http-auth" +sidebar_title: "Auth Methods" +sidebar_current: "api-http-auth" description: |- Each auth method publishes its own set of API paths and methods. These endpoints are documented in this section. diff --git a/website/source/api/auth/jwt/index.html.md b/website/source/api/auth/jwt/index.html.md index 1a877f0543..45a1553e85 100644 --- a/website/source/api/auth/jwt/index.html.md +++ b/website/source/api/auth/jwt/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "JWT - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-jwt" +sidebar_title: "JWT" +sidebar_current: "api-http-auth-jwt" description: |- This is the API documentation for the Vault JWT authentication method plugin. @@ -109,7 +110,7 @@ entities attempting to login. At least one of the bound values must be set. using this role, in seconds. - `period` `(int: )` - If set, indicates that the token generated using this role should never expire, but instead always use the value set - here as the TTL for every renewal. + here as the TTL for every renewal. - `num_uses` `(int: )` - If set, puts a use-count limitation on the issued token. - `bound_subject` `(string: )` - If set, requires that the `sub` diff --git a/website/source/api/auth/kubernetes/index.html.md b/website/source/api/auth/kubernetes/index.html.md index 3bea3836e2..ccbc4de450 100644 --- a/website/source/api/auth/kubernetes/index.html.md +++ b/website/source/api/auth/kubernetes/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Kubernetes - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-kubernetes" +sidebar_title: "Kubernetes" +sidebar_current: "api-http-auth-kubernetes" description: |- This is the API documentation for the Vault Kubernetes auth method plugin. --- diff --git a/website/source/api/auth/ldap/index.html.md b/website/source/api/auth/ldap/index.html.md index 7761760a87..3057e25b23 100644 --- a/website/source/api/auth/ldap/index.html.md +++ b/website/source/api/auth/ldap/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "LDAP - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-ldap" +sidebar_title: "LDAP" +sidebar_current: "api-http-auth-ldap" description: |- This is the API documentation for the Vault LDAP auth method. --- diff --git a/website/source/api/auth/okta/index.html.md b/website/source/api/auth/okta/index.html.md index 7677c41151..1271f80e1b 100644 --- a/website/source/api/auth/okta/index.html.md +++ b/website/source/api/auth/okta/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Okta - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-okta" +sidebar_title: "Okta" +sidebar_current: "api-http-auth-okta" description: |- This is the API documentation for the Vault Okta auth method. --- diff --git a/website/source/api/auth/radius/index.html.md b/website/source/api/auth/radius/index.html.md index 7475e616c0..0ee4061890 100644 --- a/website/source/api/auth/radius/index.html.md +++ b/website/source/api/auth/radius/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "RADIUS - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-radius" +sidebar_title: "RADIUS" +sidebar_current: "api-http-auth-radius" description: |- This is the API documentation for the Vault RADIUS auth method. --- diff --git a/website/source/api/auth/token/index.html.md b/website/source/api/auth/token/index.html.md index 2c3c7d8636..bc825c93fe 100644 --- a/website/source/api/auth/token/index.html.md +++ b/website/source/api/auth/token/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Token - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-token" +sidebar_title: "Tokens" +sidebar_current: "api-http-auth-token" description: |- This is the API documentation for the Vault token auth method. --- diff --git a/website/source/api/auth/userpass/index.html.md b/website/source/api/auth/userpass/index.html.md index 593975b673..13b87db4d1 100644 --- a/website/source/api/auth/userpass/index.html.md +++ b/website/source/api/auth/userpass/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Userpass - Auth Methods - HTTP API" -sidebar_current: "docs-http-auth-userpass" +sidebar_title: "Username & Password" +sidebar_current: "api-http-auth-userpass" description: |- This is the API documentation for the Vault username and password auth method. diff --git a/website/source/api/index.html.erb b/website/source/api/index.html.erb new file mode 100644 index 0000000000..f5319f92a1 --- /dev/null +++ b/website/source/api/index.html.erb @@ -0,0 +1,86 @@ +--- +page_title: "Vault API Documentation" +description: |- + Vault API reference documentation. +--- + +<% @meganav_title = 'API Docs' %> + + + +
    +
    + + +
    + + +
    +
    + +
    + +
    + +
    +
    + + +
    + +
    +
    +
    + +
    + + + +
    + +
    +
    + + +
    + + +
    +
    +
    + +
    diff --git a/website/source/api/libraries.html.md b/website/source/api/libraries.html.md index e52f1cb889..97fe237603 100644 --- a/website/source/api/libraries.html.md +++ b/website/source/api/libraries.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "HTTP API: Libraries" -sidebar_current: "docs-http-libraries" +sidebar_title: "Client Libraries" +sidebar_current: "api-http-libraries" description: |- List of official and community contributed libraries for interacting with the Vault HTTP API. --- diff --git a/website/source/api/index.html.md b/website/source/api/overview.html.md similarity index 99% rename from website/source/api/index.html.md rename to website/source/api/overview.html.md index e5843c3845..f2bef9704b 100644 --- a/website/source/api/index.html.md +++ b/website/source/api/overview.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "HTTP API" -sidebar_current: "docs-http-overview" +sidebar_title: "Overview" +sidebar_current: "api-http-overview" description: |- Vault has an HTTP API that can be used to control every aspect of Vault. --- diff --git a/website/source/api/relatedtools.html.md b/website/source/api/relatedtools.html.md index 2b8c91f45b..921c965a7a 100644 --- a/website/source/api/relatedtools.html.md +++ b/website/source/api/relatedtools.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Related Tools" -sidebar_current: "docs-http-related" +sidebar_title: "Related Tools" +sidebar_current: "api-http-related" description: |- Short list of third-party tools that work with or are related to Vault. --- diff --git a/website/source/api/secret/ad/index.html.md b/website/source/api/secret/ad/index.html.md index f6ebac61de..93307ee13e 100644 --- a/website/source/api/secret/ad/index.html.md +++ b/website/source/api/secret/ad/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Active Directory - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-active-directory" +sidebar_title: "Active Directory" +sidebar_current: "api-http-secret-active-directory" description: |- This is the API documentation for the Vault Active Directory secrets engine. --- diff --git a/website/source/api/secret/alicloud/index.html.md b/website/source/api/secret/alicloud/index.html.md index 3d886da8a0..0ecbe853d2 100644 --- a/website/source/api/secret/alicloud/index.html.md +++ b/website/source/api/secret/alicloud/index.html.md @@ -1,6 +1,7 @@ --- layout: "api" page_title: "AliCloud - Secrets Engines - HTTP API" +sidebar_title: "AliCloud" sidebar_current: "docs-http-secret-alicloud" description: |- This is the API documentation for the Vault AliCloud secrets engine. @@ -211,4 +212,4 @@ $ curl \ "secret_key": "wyLTSmsyPGP1ohvvw8xYgB29dlGI8KMiH2pKCNZ9", "security_token": "CAESrAIIARKAAShQquMnLIlbvEcIxO6wCoqJufs8sWwieUxu45hS9AvKNEte8KRUWiJWJ6Y+YHAPgNwi7yfRecMFydL2uPOgBI7LDio0RkbYLmJfIxHM2nGBPdml7kYEOXmJp2aDhbvvwVYIyt/8iES/R6N208wQh0Pk2bu+/9dvalp6wOHF4gkFGhhTVFMuTDRhQlNDU0pWTXVLZzVVMXZGRHciBTQzMjc0KgVhbGljZTCpnJjwySk6BlJzYU1ENUJuCgExGmkKBUFsbG93Eh8KDEFjdGlvbkVxdWFscxIGQWN0aW9uGgcKBW9zczoqEj8KDlJlc291cmNlRXF1YWxzEghSZXNvdXJjZRojCiFhY3M6b3NzOio6NDMyNzQ6c2FtcGxlYm94L2FsaWNlLyo=" } -``` \ No newline at end of file +``` diff --git a/website/source/api/secret/aws/index.html.md b/website/source/api/secret/aws/index.html.md index c14aec6fcf..5ce143c257 100644 --- a/website/source/api/secret/aws/index.html.md +++ b/website/source/api/secret/aws/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "AWS - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-aws" +sidebar_title: "AWS" +sidebar_current: "api-http-secret-aws" description: |- This is the API documentation for the Vault AWS secrets engine. --- diff --git a/website/source/api/secret/azure/index.html.md b/website/source/api/secret/azure/index.html.md index f8e8bb4fa9..7fba82016c 100644 --- a/website/source/api/secret/azure/index.html.md +++ b/website/source/api/secret/azure/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Azure - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-azure" +sidebar_title: "Azure" +sidebar_current: "api-http-secret-azure" description: |- This is the API documentation for the Vault Azure secrets engine. --- diff --git a/website/source/api/secret/cassandra/index.html.md b/website/source/api/secret/cassandra/index.html.md index 3d094981cb..8753472f8c 100644 --- a/website/source/api/secret/cassandra/index.html.md +++ b/website/source/api/secret/cassandra/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Cassandra - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-cassandra" +sidebar_title: "Cassandra DEPRECATED" +sidebar_current: "api-http-secret-cassandra" description: |- This is the API documentation for the Vault Cassandra secrets engine. --- diff --git a/website/source/api/secret/consul/index.html.md b/website/source/api/secret/consul/index.html.md index d158063fcb..2817d28898 100644 --- a/website/source/api/secret/consul/index.html.md +++ b/website/source/api/secret/consul/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Consul - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-consul" +sidebar_title: "Consul" +sidebar_current: "api-http-secret-consul" description: |- This is the API documentation for the Vault Consul secrets engine. --- diff --git a/website/source/api/secret/cubbyhole/index.html.md b/website/source/api/secret/cubbyhole/index.html.md index 34970ee635..80428c2086 100644 --- a/website/source/api/secret/cubbyhole/index.html.md +++ b/website/source/api/secret/cubbyhole/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Cubbyhole - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-cubbyhole" +sidebar_title: "Cubbyhole" +sidebar_current: "api-http-secret-cubbyhole" description: |- This is the API documentation for the Vault Cubbyhole secrets engine. --- diff --git a/website/source/api/secret/databases/cassandra.html.md b/website/source/api/secret/databases/cassandra.html.md index c5d5e67579..ba691cccc3 100644 --- a/website/source/api/secret/databases/cassandra.html.md +++ b/website/source/api/secret/databases/cassandra.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Cassandra - Database - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-databases-cassandra" +sidebar_title: "Cassandra" +sidebar_current: "api-http-secret-databases-cassandra" description: |- The Cassandra plugin for Vault's database secrets engine generates database credentials to access Cassandra servers. --- diff --git a/website/source/api/secret/databases/hanadb.html.md b/website/source/api/secret/databases/hanadb.html.md index 28622bab1d..ac93c76627 100644 --- a/website/source/api/secret/databases/hanadb.html.md +++ b/website/source/api/secret/databases/hanadb.html.md @@ -1,7 +1,8 @@ --- layout: "api" -page_title: "HANA - Database - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-databases-hanadb" +page_title: "HANA - Database - Secrets Engines - HTTP API" +sidebar_title: "HanaDB" +sidebar_current: "api-http-secret-databases-hanadb" description: |- The HANA plugin for Vault's database secrets engine generates database credentials to access HANA servers. --- diff --git a/website/source/api/secret/databases/index.html.md b/website/source/api/secret/databases/index.html.md index 22583d2805..e9cad95607 100644 --- a/website/source/api/secret/databases/index.html.md +++ b/website/source/api/secret/databases/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Database - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-databases" +sidebar_title: "Databases" +sidebar_current: "api-http-secret-databases" description: |- Top page for database secrets engine information --- diff --git a/website/source/api/secret/databases/mongodb.html.md b/website/source/api/secret/databases/mongodb.html.md index 26dce1a1cd..da631c3a8e 100644 --- a/website/source/api/secret/databases/mongodb.html.md +++ b/website/source/api/secret/databases/mongodb.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "MongoDB - Database - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-databases-mongodb" +sidebar_title: "MongoDB" +sidebar_current: "api-http-secret-databases-mongodb" description: |- The MongoDB plugin for Vault's database secrets engine generates database credentials to access MongoDB servers. --- diff --git a/website/source/api/secret/databases/mssql.html.md b/website/source/api/secret/databases/mssql.html.md index 2e4e61e261..82c84c1707 100644 --- a/website/source/api/secret/databases/mssql.html.md +++ b/website/source/api/secret/databases/mssql.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "MSSQL - Database - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-databases-mssql" +sidebar_title: "MSSQL" +sidebar_current: "api-http-secret-databases-mssql" description: |- The MSSQL plugin for Vault's database secrets engine generates database credentials to access MSSQL servers. --- diff --git a/website/source/api/secret/databases/mysql-maria.html.md b/website/source/api/secret/databases/mysql-maria.html.md index 24a9f8056d..a1b0942580 100644 --- a/website/source/api/secret/databases/mysql-maria.html.md +++ b/website/source/api/secret/databases/mysql-maria.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "MySQL/MariaDB - Database - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-databases-mysql-maria" +sidebar_title: "MySQL/MariaDB" +sidebar_current: "api-http-secret-databases-mysql-maria" description: |- The MySQL/MariaDB plugin for Vault's database secrets engine generates database credentials to access MySQL and MariaDB servers. --- diff --git a/website/source/api/secret/databases/oracle.html.md b/website/source/api/secret/databases/oracle.html.md index 5f72f79e66..473c1118fc 100644 --- a/website/source/api/secret/databases/oracle.html.md +++ b/website/source/api/secret/databases/oracle.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Oracle - Database - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-databases-oracle-maria" +sidebar_title: "Oracle" +sidebar_current: "api-http-secret-databases-oracle-maria" description: |- The Oracle plugin for Vault's database secrets engine generates database credentials to access Oracle servers. --- diff --git a/website/source/api/secret/databases/postgresql.html.md b/website/source/api/secret/databases/postgresql.html.md index 0efe5e3871..97e4bab10d 100644 --- a/website/source/api/secret/databases/postgresql.html.md +++ b/website/source/api/secret/databases/postgresql.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "PostgreSQL - Database - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-databases-postgresql" +sidebar_title: "PostgreSQL" +sidebar_current: "api-http-secret-databases-postgresql" description: |- The PostgreSQL plugin for Vault's database secrets engine generates database credentials to access PostgreSQL servers. --- diff --git a/website/source/api/secret/gcp/index.html.md b/website/source/api/secret/gcp/index.html.md index 74e944f6c3..291b762b21 100644 --- a/website/source/api/secret/gcp/index.html.md +++ b/website/source/api/secret/gcp/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Google Cloud - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-gcp" +sidebar_title: "Google Cloud" +sidebar_current: "api-http-secret-gcp" description: |- This is the API documentation for the Vault Google Cloud secrets engine. --- diff --git a/website/source/api/secret/identity/entity-alias.html.md b/website/source/api/secret/identity/entity-alias.html.md index d47df2384f..4659c3b10a 100644 --- a/website/source/api/secret/identity/entity-alias.html.md +++ b/website/source/api/secret/identity/entity-alias.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Identity Secret Backend: Entity Alias - HTTP API" -sidebar_current: "docs-http-secret-identity-entity-alias" +sidebar_title: "Entity Alias" +sidebar_current: "api-http-secret-identity-entity-alias" description: |- This is the API documentation for managing entity aliases in the identity store. --- diff --git a/website/source/api/secret/identity/entity.html.md b/website/source/api/secret/identity/entity.html.md index 0f5b2d3304..86dc4b0c01 100644 --- a/website/source/api/secret/identity/entity.html.md +++ b/website/source/api/secret/identity/entity.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Identity Secret Backend: Entity - HTTP API" -sidebar_current: "docs-http-secret-identity-entity" +sidebar_title: "Entity" +sidebar_current: "api-http-secret-identity-entity" description: |- This is the API documentation for managing entities in the identity store. --- diff --git a/website/source/api/secret/identity/group-alias.html.md b/website/source/api/secret/identity/group-alias.html.md index 0b84b69e4d..38f3fea6ac 100644 --- a/website/source/api/secret/identity/group-alias.html.md +++ b/website/source/api/secret/identity/group-alias.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Identity Secret Backend: Group Alias - HTTP API" -sidebar_current: "docs-http-secret-identity-group-alias" +sidebar_title: "Group Alias" +sidebar_current: "api-http-secret-identity-group-alias" description: |- This is the API documentation for managing the group aliases in the identity store. --- diff --git a/website/source/api/secret/identity/group.html.md b/website/source/api/secret/identity/group.html.md index f478d5dde1..c9010f577a 100644 --- a/website/source/api/secret/identity/group.html.md +++ b/website/source/api/secret/identity/group.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Identity Secret Backend: Group - HTTP API" -sidebar_current: "docs-http-secret-identity-group" +sidebar_title: "Group" +sidebar_current: "api-http-secret-identity-group" description: |- This is the API documentation for managing groups in the identity store. --- diff --git a/website/source/api/secret/identity/identity-groups.html.md b/website/source/api/secret/identity/identity-groups.html.md index 1921aeabc7..d4f9d33868 100644 --- a/website/source/api/secret/identity/identity-groups.html.md +++ b/website/source/api/secret/identity/identity-groups.html.md @@ -1,7 +1,7 @@ --- layout: "api" page_title: "/identity/groups - HTTP API" -sidebar_current: "docs-http-secret-identity-groups" +sidebar_current: "api-http-secret-identity-groups" description: |- This is the API documentation for the identity groups. --- diff --git a/website/source/api/secret/identity/index.html.md b/website/source/api/secret/identity/index.html.md index 7a3527da43..3b806d53db 100644 --- a/website/source/api/secret/identity/index.html.md +++ b/website/source/api/secret/identity/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Identity - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-identity" +sidebar_title: "Identity" +sidebar_current: "api-http-secret-identity" description: |- This is the API documentation for the Vault Identity secrets engine. --- diff --git a/website/source/api/secret/identity/lookup.html.md b/website/source/api/secret/identity/lookup.html.md index 0b212c4957..2c514c9287 100644 --- a/website/source/api/secret/identity/lookup.html.md +++ b/website/source/api/secret/identity/lookup.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Identity Secret Backend: Lookup - HTTP API" -sidebar_current: "docs-http-secret-identity-lookup" +sidebar_title: "Lookup" +sidebar_current: "api-http-secret-identity-lookup" description: |- This is the API documentation for entity and group lookups from identity store. diff --git a/website/source/api/secret/index.html.md b/website/source/api/secret/index.html.md index 3398185b80..81ed4ae97b 100644 --- a/website/source/api/secret/index.html.md +++ b/website/source/api/secret/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret" +sidebar_title: "Secrets Engines" +sidebar_current: "api-http-secret" description: |- Each secrets engine publishes its own set of API paths and methods. These endpoints are documented in this section. diff --git a/website/source/api/secret/kv/index.html.md b/website/source/api/secret/kv/index.html.md index 9ba152aed6..68e2620307 100644 --- a/website/source/api/secret/kv/index.html.md +++ b/website/source/api/secret/kv/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "KV - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-kv" +sidebar_title: "Key/Value" +sidebar_current: "api-http-secret-kv" description: |- This is the API documentation for the Vault KV secrets engine. --- diff --git a/website/source/api/secret/kv/kv-v1.html.md b/website/source/api/secret/kv/kv-v1.html.md index b84d79c351..034c38eb36 100644 --- a/website/source/api/secret/kv/kv-v1.html.md +++ b/website/source/api/secret/kv/kv-v1.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "KV - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-kv-v1" +sidebar_title: "K/V Version 1" +sidebar_current: "api-http-secret-kv-v1" description: |- This is the API documentation for the Vault KV secrets engine. --- diff --git a/website/source/api/secret/kv/kv-v2.html.md b/website/source/api/secret/kv/kv-v2.html.md index 1ce6825848..53539f974b 100644 --- a/website/source/api/secret/kv/kv-v2.html.md +++ b/website/source/api/secret/kv/kv-v2.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "KV - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-kv-v2" +sidebar_title: "K/V Version 2" +sidebar_current: "api-http-secret-kv-v2" description: |- This is the API documentation for the Vault KV secrets engine. --- diff --git a/website/source/api/secret/mongodb/index.html.md b/website/source/api/secret/mongodb/index.html.md index 26fa8c6965..2e91021bb4 100644 --- a/website/source/api/secret/mongodb/index.html.md +++ b/website/source/api/secret/mongodb/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "MongoDB - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-mongodb" +sidebar_title: "MongoDB DEPRECATED" +sidebar_current: "api-http-secret-mongodb" description: |- This is the API documentation for the Vault MongoDB secrets engine. --- diff --git a/website/source/api/secret/mssql/index.html.md b/website/source/api/secret/mssql/index.html.md index b438e42634..53456a9068 100644 --- a/website/source/api/secret/mssql/index.html.md +++ b/website/source/api/secret/mssql/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "MSSQL - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-mssql" +sidebar_title: "MSSQL DEPRECATED" +sidebar_current: "api-http-secret-mssql" description: |- This is the API documentation for the Vault MSSQL secrets engine. --- diff --git a/website/source/api/secret/mysql/index.html.md b/website/source/api/secret/mysql/index.html.md index ca2d02e5e9..20b5688de0 100644 --- a/website/source/api/secret/mysql/index.html.md +++ b/website/source/api/secret/mysql/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "MySQL - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-mysql" +sidebar_title: "MySQL DEPRECATED" +sidebar_current: "api-http-secret-mysql" description: |- This is the API documentation for the Vault MySQL secrets engine. --- diff --git a/website/source/api/secret/nomad/index.html.md b/website/source/api/secret/nomad/index.html.md index d7e84c2b47..8a71ac346e 100644 --- a/website/source/api/secret/nomad/index.html.md +++ b/website/source/api/secret/nomad/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Nomad Secret Backend - HTTP API" -sidebar_current: "docs-http-secret-nomad" +sidebar_title: "Nomad" +sidebar_current: "api-http-secret-nomad" description: |- This is the API documentation for the Vault Nomad secret backend. --- diff --git a/website/source/api/secret/pki/index.html.md b/website/source/api/secret/pki/index.html.md index c038c110f4..705c816a7a 100644 --- a/website/source/api/secret/pki/index.html.md +++ b/website/source/api/secret/pki/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "PKI - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-pki" +sidebar_title: "PKI" +sidebar_current: "api-http-secret-pki" description: |- This is the API documentation for the Vault PKI secrets engine. --- diff --git a/website/source/api/secret/postgresql/index.html.md b/website/source/api/secret/postgresql/index.html.md index 3d51eaad05..cd10a7ed67 100644 --- a/website/source/api/secret/postgresql/index.html.md +++ b/website/source/api/secret/postgresql/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "PostgreSQL - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-postgresql" +sidebar_title: "PostgreSQL DEPRECATED" +sidebar_current: "api-http-secret-postgresql" description: |- This is the API documentation for the Vault PostgreSQL secrets engine. --- diff --git a/website/source/api/secret/rabbitmq/index.html.md b/website/source/api/secret/rabbitmq/index.html.md index 66f2069eb3..8ef1976e57 100644 --- a/website/source/api/secret/rabbitmq/index.html.md +++ b/website/source/api/secret/rabbitmq/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "RabbitMQ - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-rabbitmq" +sidebar_title: "RabbitMQ" +sidebar_current: "api-http-secret-rabbitmq" description: |- This is the API documentation for the Vault RabbitMQ secrets engine. --- diff --git a/website/source/api/secret/ssh/index.html.md b/website/source/api/secret/ssh/index.html.md index bdc0b110b8..43ebf026e3 100644 --- a/website/source/api/secret/ssh/index.html.md +++ b/website/source/api/secret/ssh/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "SSH - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-ssh" +sidebar_title: "SSH" +sidebar_current: "api-http-secret-ssh" description: |- This is the API documentation for the Vault SSH secrets engine. --- diff --git a/website/source/api/secret/totp/index.html.md b/website/source/api/secret/totp/index.html.md index f86265f23d..56d87a2017 100644 --- a/website/source/api/secret/totp/index.html.md +++ b/website/source/api/secret/totp/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "TOTP - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-totp" +sidebar_title: "TOTP" +sidebar_current: "api-http-secret-totp" description: |- This is the API documentation for the Vault TOTP secrets engine. --- diff --git a/website/source/api/secret/transit/index.html.md b/website/source/api/secret/transit/index.html.md index 537ee546ed..7ead2315ce 100644 --- a/website/source/api/secret/transit/index.html.md +++ b/website/source/api/secret/transit/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "Transit - Secrets Engines - HTTP API" -sidebar_current: "docs-http-secret-transit" +sidebar_title: "Transit" +sidebar_current: "api-http-secret-transit" description: |- This is the API documentation for the Vault Transit secrets engine. --- diff --git a/website/source/api/system/audit-hash.html.md b/website/source/api/system/audit-hash.html.md index 81688bf252..58c6a564c0 100644 --- a/website/source/api/system/audit-hash.html.md +++ b/website/source/api/system/audit-hash.html.md @@ -1,7 +1,8 @@ --- layout: "api" -page_title: /sys/audit-hash - HTTP API" -sidebar_current: "docs-http-system-audit-hash" +page_title: "/sys/audit-hash - HTTP API" +sidebar_title: "/sys/audit-hash" +sidebar_current: "api-http-system-audit-hash" description: |- The `/sys/audit-hash` endpoint is used to hash data using an audit device's hash function and salt. @@ -25,9 +26,9 @@ any binary data returned from an API call (such as a DER-format certificate) is base64-encoded by the Vault server in the response. As a result such information should also be base64-encoded to supply into the `input` parameter. -| Method | Path | Produces | -| :------- | :---------------------- | :--------------------- | -| `POST` | `/sys/audit-hash/:path` | `204 (empty body)` | +| Method | Path | Produces | +| :----- | :---------------------- | :----------------- | +| `POST` | `/sys/audit-hash/:path` | `204 (empty body)` | ### Parameters diff --git a/website/source/api/system/audit.html.md b/website/source/api/system/audit.html.md index 15e998e653..b1670d375f 100644 --- a/website/source/api/system/audit.html.md +++ b/website/source/api/system/audit.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/audit - HTTP API" -sidebar_current: "docs-http-system-audit/" +sidebar_title: "/sys/audit" +sidebar_current: "api-http-system-audit/" description: |- The `/sys/audit` endpoint is used to enable and disable audit devices. --- diff --git a/website/source/api/system/auth.html.md b/website/source/api/system/auth.html.md index 6647dca986..6bccbe9d29 100644 --- a/website/source/api/system/auth.html.md +++ b/website/source/api/system/auth.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/auth - HTTP API" -sidebar_current: "docs-http-system-auth" +sidebar_title: "/sys/auth" +sidebar_current: "api-http-system-auth" description: |- The `/sys/auth` endpoint is used to manage auth methods in Vault. --- diff --git a/website/source/api/system/capabilities-accessor.html.md b/website/source/api/system/capabilities-accessor.html.md index 12a04e0414..f5bc1c7284 100644 --- a/website/source/api/system/capabilities-accessor.html.md +++ b/website/source/api/system/capabilities-accessor.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/capabilities-accessor - HTTP API" -sidebar_current: "docs-http-system-capabilities-accessor" +sidebar_title: "/sys/capabilities-accessor" +sidebar_current: "api-http-system-capabilities-accessor" description: |- The `/sys/capabilities-accessor` endpoint is used to fetch the capabilities of the token associated with an accessor, on the given paths. diff --git a/website/source/api/system/capabilities-self.html.md b/website/source/api/system/capabilities-self.html.md index 4763dd6be6..6c7acf7584 100644 --- a/website/source/api/system/capabilities-self.html.md +++ b/website/source/api/system/capabilities-self.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/capabilities-self - HTTP API" -sidebar_current: "docs-http-system-capabilities-self" +sidebar_title: "/sys/capabilities-self" +sidebar_current: "api-http-system-capabilities-self" description: |- The `/sys/capabilities-self` endpoint is used to fetch the capabilities of client token on the given paths. diff --git a/website/source/api/system/capabilities.html.md b/website/source/api/system/capabilities.html.md index 3d6c202a64..27dc21c53c 100644 --- a/website/source/api/system/capabilities.html.md +++ b/website/source/api/system/capabilities.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/capabilities - HTTP API" -sidebar_current: "docs-http-system-capabilities/" +sidebar_title: "/sys/capabilities" +sidebar_current: "api-http-system-capabilities/" description: |- The `/sys/capabilities` endpoint is used to fetch the capabilities of a token on the given paths. diff --git a/website/source/api/system/config-auditing.html.md b/website/source/api/system/config-auditing.html.md index c288a3e5c1..9813d54407 100644 --- a/website/source/api/system/config-auditing.html.md +++ b/website/source/api/system/config-auditing.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/config/auditing - HTTP API" -sidebar_current: "docs-http-system-config-auditing" +sidebar_title: "/sys/config/auditing" +sidebar_current: "api-http-system-config-auditing" description: |- The `/sys/config/auditing` endpoint is used to configure auditing settings. --- diff --git a/website/source/api/system/config-control-group.html.md b/website/source/api/system/config-control-group.html.md index 5f26c2763a..7397dda480 100644 --- a/website/source/api/system/config-control-group.html.md +++ b/website/source/api/system/config-control-group.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/config/control-group - HTTP API" -sidebar_current: "docs-http-system-config-control-group" +sidebar_title: "/sys/config/control-group" +sidebar_current: "api-http-system-config-control-group" description: |- The '/sys/config/control-group' endpoint configures control groups. --- diff --git a/website/source/api/system/config-cors.html.md b/website/source/api/system/config-cors.html.md index 34ec5cbb21..2caa89dda4 100644 --- a/website/source/api/system/config-cors.html.md +++ b/website/source/api/system/config-cors.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/config/cors - HTTP API" -sidebar_current: "docs-http-system-config-cors" +sidebar_title: "/sys/config/cors" +sidebar_current: "api-http-system-config-cors" description: |- The '/sys/config/cors' endpoint configures how the Vault server responds to cross-origin requests. --- diff --git a/website/source/api/system/config-ui.html.md b/website/source/api/system/config-ui.html.md index 2b079ab772..2acad87a1c 100644 --- a/website/source/api/system/config-ui.html.md +++ b/website/source/api/system/config-ui.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/config/ui - HTTP API" -sidebar_current: "docs-http-system-config-ui" +sidebar_title: "/sys/config/ui" +sidebar_current: "api-http-system-config-ui" description: |- The '/sys/config/ui' endpoint configures the UI. --- diff --git a/website/source/api/system/control-group.html.md b/website/source/api/system/control-group.html.md index 8623f23eed..1782df4eee 100644 --- a/website/source/api/system/control-group.html.md +++ b/website/source/api/system/control-group.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/control-group - HTTP API" -sidebar_current: "docs-http-system-control-group" +sidebar_title: "/sys/control-group" +sidebar_current: "api-http-system-control-group" description: |- The '/sys/control-group' endpoint handles the Control Group workflow. --- diff --git a/website/source/api/system/generate-root.html.md b/website/source/api/system/generate-root.html.md index eda3efcc4f..4ce18e76d5 100644 --- a/website/source/api/system/generate-root.html.md +++ b/website/source/api/system/generate-root.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/generate-root - HTTP API" -sidebar_current: "docs-http-system-generate-root" +sidebar_title: "/sys/generate-root" +sidebar_current: "api-http-system-generate-root" description: |- The `/sys/generate-root/` endpoints are used to create a new root key for Vault. diff --git a/website/source/api/system/health.html.md b/website/source/api/system/health.html.md index f21095e252..627149e619 100644 --- a/website/source/api/system/health.html.md +++ b/website/source/api/system/health.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/health - HTTP API" -sidebar_current: "docs-http-system-health" +sidebar_title: "/sys/health" +sidebar_current: "api-http-system-health" description: |- The `/sys/health` endpoint is used to check the health status of Vault. --- diff --git a/website/source/api/system/index.html.md b/website/source/api/system/index.html.md index e81c8e9b97..9b269378e7 100644 --- a/website/source/api/system/index.html.md +++ b/website/source/api/system/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "System Backend - HTTP API" -sidebar_current: "docs-http-system" +sidebar_title: "System Backend" +sidebar_current: "api-http-system" description: |- The system backend is a default backend in Vault that is mounted at the `/sys` endpoint. This endpoint cannot be disabled or moved, and is used to configure diff --git a/website/source/api/system/init.html.md b/website/source/api/system/init.html.md index b97df17e35..2de11f2acc 100644 --- a/website/source/api/system/init.html.md +++ b/website/source/api/system/init.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/init - HTTP API" -sidebar_current: "docs-http-system-init" +sidebar_title: "/sys/init" +sidebar_current: "api-http-system-init" description: |- The `/sys/init` endpoint is used to initialize a new Vault. --- diff --git a/website/source/api/system/internal-ui-mounts.html.md b/website/source/api/system/internal-ui-mounts.html.md index 8960eb57b4..941bd99509 100644 --- a/website/source/api/system/internal-ui-mounts.html.md +++ b/website/source/api/system/internal-ui-mounts.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/internal/ui/mounts - HTTP API" -sidebar_current: "docs-http-system-internal-ui-mounts" +sidebar_title: "/sys/internal/ui/mounts" +sidebar_current: "api-http-system-internal-ui-mounts" description: |- The `/sys/internal/ui/mounts` endpoint is used to manage mount listing visibility. --- diff --git a/website/source/api/system/key-status.html.md b/website/source/api/system/key-status.html.md index ac6fea277b..e8b1743919 100644 --- a/website/source/api/system/key-status.html.md +++ b/website/source/api/system/key-status.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/key-status - HTTP API" -sidebar_current: "docs-http-system-key-status" +sidebar_title: "/sys/key-status" +sidebar_current: "api-http-system-key-status" description: |- The `/sys/key-status` endpoint is used to query info about the current encryption key of Vault. diff --git a/website/source/api/system/leader.html.md b/website/source/api/system/leader.html.md index bd4105d205..79d5c13269 100644 --- a/website/source/api/system/leader.html.md +++ b/website/source/api/system/leader.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/leader - HTTP API" -sidebar_current: "docs-http-system-leader" +sidebar_title: "/sys/leader" +sidebar_current: "api-http-system-leader" description: |- The `/sys/leader` endpoint is used to check the high availability status and current leader of Vault. diff --git a/website/source/api/system/leases.html.md b/website/source/api/system/leases.html.md index 2b1ac3e9eb..d6841914b3 100644 --- a/website/source/api/system/leases.html.md +++ b/website/source/api/system/leases.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/leases - HTTP API" -sidebar_current: "docs-http-system-leases" +sidebar_title: "/sys/leases" +sidebar_current: "api-http-system-leases" description: |- The `/sys/leases` endpoints are used to view and manage leases. --- diff --git a/website/source/api/system/license.html.md b/website/source/api/system/license.html.md index 933d277973..038efb65d0 100644 --- a/website/source/api/system/license.html.md +++ b/website/source/api/system/license.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/license - HTTP API" -sidebar_current: "docs-http-system-license" +sidebar_title: "/sys/license" +sidebar_current: "api-http-system-license" description: |- The `/sys/license` endpoint is used to view and update the license used in Vault. diff --git a/website/source/api/system/mfa.html.md b/website/source/api/system/mfa/index.html.md similarity index 55% rename from website/source/api/system/mfa.html.md rename to website/source/api/system/mfa/index.html.md index 7a07f6412a..cb18a74cf1 100644 --- a/website/source/api/system/mfa.html.md +++ b/website/source/api/system/mfa/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/mfa - HTTP API" -sidebar_current: "docs-http-system-mfa" +sidebar_title: "/sys/mfa" +sidebar_current: "api-http-system-mfa" description: |- The '/sys/mfa' endpoint focuses on managing MFA behaviors in Vault Enterprise MFA. --- @@ -12,10 +13,10 @@ description: |- ## Supported MFA types. -- [TOTP](/api/system/mfa-totp.html) +* [TOTP](/api/system/mfa-totp.html) -- [Okta](/api/system/mfa-okta.html) +* [Okta](/api/system/mfa-okta.html) -- [Duo](/api/system/mfa-duo.html) +* [Duo](/api/system/mfa-duo.html) -- [PingID](/api/system/mfa-pingid.html) +* [PingID](/api/system/mfa-pingid.html) diff --git a/website/source/api/system/mfa-duo.html.md b/website/source/api/system/mfa/mfa-duo.html.md similarity index 97% rename from website/source/api/system/mfa-duo.html.md rename to website/source/api/system/mfa/mfa-duo.html.md index b5f604245a..c97279524f 100644 --- a/website/source/api/system/mfa-duo.html.md +++ b/website/source/api/system/mfa/mfa-duo.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/mfa/method/duo - HTTP API" -sidebar_current: "docs-http-system-mfa-duo" +sidebar_title: "/sys/mfa/method/duo" +sidebar_current: "api-http-system-mfa-duo" description: |- The '/sys/mfa/method/duo' endpoint focuses on managing Duo MFA behaviors in Vault Enterprise. --- diff --git a/website/source/api/system/mfa-okta.html.md b/website/source/api/system/mfa/mfa-okta.html.md similarity index 97% rename from website/source/api/system/mfa-okta.html.md rename to website/source/api/system/mfa/mfa-okta.html.md index 4acd822939..4ab178ad13 100644 --- a/website/source/api/system/mfa-okta.html.md +++ b/website/source/api/system/mfa/mfa-okta.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/mfa/method/okta - HTTP API" -sidebar_current: "docs-http-system-mfa-okta" +sidebar_title: "/sys/mfa/method/okta" +sidebar_current: "api-http-system-mfa-okta" description: |- The '/sys/mfa/method/okta' endpoint focuses on managing Okta MFA behaviors in Vault Enterprise. --- diff --git a/website/source/api/system/mfa-pingid.html.md b/website/source/api/system/mfa/mfa-pingid.html.md similarity index 97% rename from website/source/api/system/mfa-pingid.html.md rename to website/source/api/system/mfa/mfa-pingid.html.md index 8764982f18..2680f29640 100644 --- a/website/source/api/system/mfa-pingid.html.md +++ b/website/source/api/system/mfa/mfa-pingid.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/mfa/method/pingid - HTTP API" -sidebar_current: "docs-http-system-mfa-pingid" +sidebar_title: "/sys/mfa/method/pingid" +sidebar_current: "api-http-system-mfa-pingid" description: |- The '/sys/mfa/method/pingid' endpoint focuses on managing PingID MFA behaviors in Vault Enterprise. --- diff --git a/website/source/api/system/mfa-totp.html.md b/website/source/api/system/mfa/mfa-totp.html.md similarity index 99% rename from website/source/api/system/mfa-totp.html.md rename to website/source/api/system/mfa/mfa-totp.html.md index 1e3bc5ebb8..b86c022679 100644 --- a/website/source/api/system/mfa-totp.html.md +++ b/website/source/api/system/mfa/mfa-totp.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/mfa/method/totp - HTTP API" -sidebar_current: "docs-http-system-mfa-totp" +sidebar_title: "/sys/mfa/method/totp" +sidebar_current: "api-http-system-mfa-totp" description: |- The '/sys/mfa/method/totp' endpoint focuses on managing TOTP MFA behaviors in Vault Enterprise. --- diff --git a/website/source/api/system/mounts.html.md b/website/source/api/system/mounts.html.md index d6040aa1a6..c0e7e9695f 100644 --- a/website/source/api/system/mounts.html.md +++ b/website/source/api/system/mounts.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/mounts - HTTP API" -sidebar_current: "docs-http-system-mounts" +sidebar_title: "/sys/mounts" +sidebar_current: "api-http-system-mounts" description: |- The `/sys/mounts` endpoint is used manage secrets engines in Vault. --- diff --git a/website/source/api/system/namespaces.html.md b/website/source/api/system/namespaces.html.md index ca2f3e24ad..bc6755e597 100644 --- a/website/source/api/system/namespaces.html.md +++ b/website/source/api/system/namespaces.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/namespaces - HTTP API" -sidebar_current: "docs-http-system-namespaces" +sidebar_title: "/sys/namespaces" +sidebar_current: "api-http-system-namespaces" description: |- The `/sys/namespaces` endpoint is used manage namespaces in Vault. --- diff --git a/website/source/api/system/plugins-catalog.html.md b/website/source/api/system/plugins-catalog.html.md index 781a1a2baa..72c8f2015f 100644 --- a/website/source/api/system/plugins-catalog.html.md +++ b/website/source/api/system/plugins-catalog.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/plugins/catalog - HTTP API" -sidebar_current: "docs-http-system-plugins-catalog" +sidebar_title: "/sys/plugins/catalog" +sidebar_current: "api-http-system-plugins-catalog" description: |- The `/sys/plugins/catalog` endpoint is used to manage plugins. --- diff --git a/website/source/api/system/plugins-reload-backend.html.md b/website/source/api/system/plugins-reload-backend.html.md index c812879355..12d1771219 100644 --- a/website/source/api/system/plugins-reload-backend.html.md +++ b/website/source/api/system/plugins-reload-backend.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/plugins/reload/backend - HTTP API" -sidebar_current: "docs-http-system-plugins-reload-backend" +sidebar_title: "/sys/plugins/reload/backend" +sidebar_current: "api-http-system-plugins-reload-backend" description: |- The `/sys/plugins/reload/backend` endpoint is used to reload plugin backends. --- diff --git a/website/source/api/system/policies.html.md b/website/source/api/system/policies.html.md index d99a7ea75d..33a7fda616 100644 --- a/website/source/api/system/policies.html.md +++ b/website/source/api/system/policies.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/policies/ - HTTP API" -sidebar_current: "docs-http-system-policies" +sidebar_title: "/sys/policies" +sidebar_current: "api-http-system-policies" description: |- The `/sys/policies/` endpoints are used to manage ACL, RGP, and EGP policies in Vault. --- diff --git a/website/source/api/system/policy.html.md b/website/source/api/system/policy.html.md index f954930d8c..b98951c8a9 100644 --- a/website/source/api/system/policy.html.md +++ b/website/source/api/system/policy.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/policy - HTTP API" -sidebar_current: "docs-http-system-policy" +sidebar_title: "/sys/policy" +sidebar_current: "api-http-system-policy" description: |- The `/sys/policy` endpoint is used to manage ACL policies in Vault. --- diff --git a/website/source/api/system/raw.html.md b/website/source/api/system/raw.html.md index 6d55c15e08..c0499195cd 100644 --- a/website/source/api/system/raw.html.md +++ b/website/source/api/system/raw.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/raw - HTTP API" -sidebar_current: "docs-http-system-raw" +sidebar_title: "/sys/raw" +sidebar_current: "api-http-system-raw" description: |- The `/sys/raw` endpoint is used to access the raw underlying store in Vault. --- diff --git a/website/source/api/system/rekey-recovery-key.html.md b/website/source/api/system/rekey-recovery-key.html.md index edcbf329fa..56fabb7bf2 100644 --- a/website/source/api/system/rekey-recovery-key.html.md +++ b/website/source/api/system/rekey-recovery-key.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/rekey-recovery-key - HTTP API" -sidebar_current: "docs-http-system-rekey-recovery-key" +sidebar_title: "/sys/rekey-recovery-key" +sidebar_current: "api-http-system-rekey-recovery-key" description: |- The `/sys/rekey-recovery-key` endpoints are used to rekey the recovery keys for Vault. --- diff --git a/website/source/api/system/rekey.html.md b/website/source/api/system/rekey.html.md index 6e76fb8728..b983ab8aa2 100644 --- a/website/source/api/system/rekey.html.md +++ b/website/source/api/system/rekey.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/rekey - HTTP API" -sidebar_current: "docs-http-system-rekey" +sidebar_title: "/sys/rekey" +sidebar_current: "api-http-system-rekey" description: |- The `/sys/rekey` endpoints are used to rekey the unseal keys for Vault. --- diff --git a/website/source/api/system/remount.html.md b/website/source/api/system/remount.html.md index 1f17c2cbbc..94baa53993 100644 --- a/website/source/api/system/remount.html.md +++ b/website/source/api/system/remount.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/remount - HTTP API" -sidebar_current: "docs-http-system-remount" +sidebar_title: "/sys/remount" +sidebar_current: "api-http-system-remount" description: |- The '/sys/remount' endpoint is used remount a mounted backend to a new endpoint. --- diff --git a/website/source/api/system/replication.html.md b/website/source/api/system/replication/index.html.md similarity index 97% rename from website/source/api/system/replication.html.md rename to website/source/api/system/replication/index.html.md index 940723283c..11442dbdf8 100644 --- a/website/source/api/system/replication.html.md +++ b/website/source/api/system/replication/index.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/replication - HTTP API" -sidebar_current: "docs-http-system-replication" +sidebar_title: "/sys/replication" +sidebar_current: "api-http-system-replication" description: |- The '/sys/replication' endpoint focuses on managing general operations in Vault Enterprise replication --- diff --git a/website/source/api/system/replication-dr.html.md b/website/source/api/system/replication/replication-dr.html.md similarity index 99% rename from website/source/api/system/replication-dr.html.md rename to website/source/api/system/replication/replication-dr.html.md index 4535f37062..1fd585d233 100644 --- a/website/source/api/system/replication-dr.html.md +++ b/website/source/api/system/replication/replication-dr.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/replication - HTTP API" -sidebar_current: "docs-http-system-replication-dr" +sidebar_title: "/sys/replication/dr" +sidebar_current: "api-http-system-replication-dr" description: |- The '/sys/replication/dr' endpoint focuses on managing general operations in Vault Enterprise Disaster Recovery replication --- diff --git a/website/source/api/system/replication-performance.html.md b/website/source/api/system/replication/replication-performance.html.md similarity index 99% rename from website/source/api/system/replication-performance.html.md rename to website/source/api/system/replication/replication-performance.html.md index 245ee6ab65..45ad54de4a 100644 --- a/website/source/api/system/replication-performance.html.md +++ b/website/source/api/system/replication/replication-performance.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/replication - HTTP API" -sidebar_current: "docs-http-system-replication-performance" +sidebar_title: "/sys/replication/performance" +sidebar_current: "api-http-system-replication-performance" description: |- The '/sys/replication/performance' endpoint focuses on managing general operations in Vault Enterprise Performance Replication --- diff --git a/website/source/api/system/rotate.html.md b/website/source/api/system/rotate.html.md index a3001e3497..f8ac764f13 100644 --- a/website/source/api/system/rotate.html.md +++ b/website/source/api/system/rotate.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/rotate - HTTP API" -sidebar_current: "docs-http-system-rotate" +sidebar_title: "/sys/rotate" +sidebar_current: "api-http-system-rotate" description: |- The `/sys/rotate` endpoint is used to rotate the encryption key. --- diff --git a/website/source/api/system/seal-status.html.md b/website/source/api/system/seal-status.html.md index 1f0f533018..d548648f68 100644 --- a/website/source/api/system/seal-status.html.md +++ b/website/source/api/system/seal-status.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/seal-status - HTTP API" -sidebar_current: "docs-http-system-seal-status" +sidebar_title: "/sys/seal-status" +sidebar_current: "api-http-system-seal-status" description: |- The `/sys/seal-status` endpoint is used to check the seal status of a Vault. --- diff --git a/website/source/api/system/seal.html.md b/website/source/api/system/seal.html.md index 96cc89892f..b33c84b4a8 100644 --- a/website/source/api/system/seal.html.md +++ b/website/source/api/system/seal.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/seal - HTTP API" -sidebar_current: "docs-http-system-seal/" +sidebar_title: "/sys/seal" +sidebar_current: "api-http-system-seal/" description: |- The `/sys/seal` endpoint seals the Vault. --- diff --git a/website/source/api/system/step-down.html.md b/website/source/api/system/step-down.html.md index fbb65f2f01..961b1f91bb 100644 --- a/website/source/api/system/step-down.html.md +++ b/website/source/api/system/step-down.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/step-down - HTTP API" -sidebar_current: "docs-http-system-step-down" +sidebar_title: "/sys/step-down" +sidebar_current: "api-http-system-step-down" description: |- The `/sys/step-down` endpoint causes the node to give up active status. --- diff --git a/website/source/api/system/tools.html.md b/website/source/api/system/tools.html.md index d3db1606c4..4a26313a6c 100644 --- a/website/source/api/system/tools.html.md +++ b/website/source/api/system/tools.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/tools - HTTP API" -sidebar_current: "docs-http-system-tools" +sidebar_title: "/sys/tools" +sidebar_current: "api-http-system-tools" description: |- This is the API documentation for a general set of crypto tools. --- diff --git a/website/source/api/system/unseal.html.md b/website/source/api/system/unseal.html.md index e94052c07f..9655d49d1e 100644 --- a/website/source/api/system/unseal.html.md +++ b/website/source/api/system/unseal.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/unseal - HTTP API" -sidebar_current: "docs-http-system-unseal" +sidebar_title: "/sys/unseal" +sidebar_current: "api-http-system-unseal" description: |- The `/sys/unseal` endpoint is used to unseal the Vault. --- diff --git a/website/source/api/system/wrapping-lookup.html.md b/website/source/api/system/wrapping-lookup.html.md index d888f7ed88..2959edd683 100644 --- a/website/source/api/system/wrapping-lookup.html.md +++ b/website/source/api/system/wrapping-lookup.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/wrapping/lookup - HTTP API" -sidebar_current: "docs-http-system-wrapping-lookup" +sidebar_title: "/sys/wrapping/lookup" +sidebar_current: "api-http-system-wrapping-lookup" description: |- The `/sys/wrapping/lookup` endpoint returns wrapping token properties. --- diff --git a/website/source/api/system/wrapping-rewrap.html.md b/website/source/api/system/wrapping-rewrap.html.md index f95b2af569..7a3955ac1d 100644 --- a/website/source/api/system/wrapping-rewrap.html.md +++ b/website/source/api/system/wrapping-rewrap.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/wrapping/rewrap - HTTP API" -sidebar_current: "docs-http-system-wrapping-rewrap" +sidebar_title: "/sys/wrapping/rewrap" +sidebar_current: "api-http-system-wrapping-rewrap" description: |- The `/sys/wrapping/rewrap` endpoint can be used to rotate a wrapping token and refresh its TTL. --- diff --git a/website/source/api/system/wrapping-unwrap.html.md b/website/source/api/system/wrapping-unwrap.html.md index ea99188377..5024cc8e02 100644 --- a/website/source/api/system/wrapping-unwrap.html.md +++ b/website/source/api/system/wrapping-unwrap.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/wrapping/unwrap - HTTP API" -sidebar_current: "docs-http-system-wrapping-unwrap" +sidebar_title: "/sys/wrapping/unwrap" +sidebar_current: "api-http-system-wrapping-unwrap" description: |- The `/sys/wrapping/unwrap` endpoint unwraps a wrapped response. --- diff --git a/website/source/api/system/wrapping-wrap.html.md b/website/source/api/system/wrapping-wrap.html.md index 1d28256714..ea608dbd00 100644 --- a/website/source/api/system/wrapping-wrap.html.md +++ b/website/source/api/system/wrapping-wrap.html.md @@ -1,7 +1,8 @@ --- layout: "api" page_title: "/sys/wrapping/wrap - HTTP API" -sidebar_current: "docs-http-system-wrapping-wrap" +sidebar_title: "/sys/wrapping/wrap" +sidebar_current: "api-http-system-wrapping-wrap" description: |- The `/sys/wrapping/wrap` endpoint wraps the given values in a response-wrapped token. diff --git a/website/source/assets/files/press-kit.zip b/website/source/assets/files/press-kit.zip deleted file mode 100644 index f38b1e76cd6ab647bdfd2c20537a31c17ebc0dde..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64717 zcmeF(Q;=-Uwqa%%#g%h2MIt)N{&yjlh zU+obP1wj6Z3;yxwhg$ z(Prd4LjMSqM`1&Rnt}_6q=4Xby=(tqhHWh<03FOPc;;ts@TRj#?dSlgv24Zwfa4E0 z#<@vK*!RB}LOWimQp$lr^YVZs89SQpR zH$>%UH^N?Mt)V(Rbpw9Qpyv6s(Nx+#X{`xy+%MpM-m0H}cUv*(hoEB*BrgRH@oTW; zY3Z*df?xpr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/analytics.js deleted file mode 100644 index 993d3d41ec..0000000000 --- a/website/source/assets/javascripts/analytics.js +++ /dev/null @@ -1,16 +0,0 @@ -document.addEventListener('turbolinks:load', function() { - analytics.page() - - track('.downloads .download .details li a', function(el) { - var m = el.href.match(/vault_(.*?)_(.*?)_(.*?)\.zip/) - return { - event: 'Download', - category: 'Button', - label: 'Vault | v' + m[1] + ' | ' + m[2] + ' | ' + m[3], - version: m[1], - os: m[2], - architecture: m[3], - product: 'vault' - } - }) -}) diff --git a/website/source/assets/javascripts/application.js b/website/source/assets/javascripts/application.js deleted file mode 100644 index 51c8914f8f..0000000000 --- a/website/source/assets/javascripts/application.js +++ /dev/null @@ -1,8 +0,0 @@ -//= require turbolinks -//= require jquery - -//= require hashicorp/mega-nav -//= require hashicorp/sidebar -//= require hashicorp/analytics - -//= require analytics diff --git a/website/source/assets/javascripts/demo-app.js b/website/source/assets/javascripts/demo-app.js deleted file mode 100644 index 7d402f5641..0000000000 --- a/website/source/assets/javascripts/demo-app.js +++ /dev/null @@ -1,5 +0,0 @@ -//= require lib/ember-template-compiler -//= require lib/ember-1-10 -//= require lib/ember-data-1-0 -//= require demo -//= require_tree ./demo diff --git a/website/source/assets/javascripts/demo.js b/website/source/assets/javascripts/demo.js deleted file mode 100644 index 24d4bfd144..0000000000 --- a/website/source/assets/javascripts/demo.js +++ /dev/null @@ -1,9 +0,0 @@ -window.Demo = Ember.Application.create({ - rootElement: '#demo-app', -}); - -Demo.deferReadiness(); - -if (document.getElementById('demo-app')) { - Demo.advanceReadiness(); -} diff --git a/website/source/assets/javascripts/demo/controllers/application.js b/website/source/assets/javascripts/demo/controllers/application.js deleted file mode 100644 index 67c6560eb8..0000000000 --- a/website/source/assets/javascripts/demo/controllers/application.js +++ /dev/null @@ -1,2 +0,0 @@ -Demo.ApplicationController = Ember.ObjectController.extend({ -}); diff --git a/website/source/assets/javascripts/demo/controllers/demo.js b/website/source/assets/javascripts/demo/controllers/demo.js deleted file mode 100644 index 15a8c6101c..0000000000 --- a/website/source/assets/javascripts/demo/controllers/demo.js +++ /dev/null @@ -1,58 +0,0 @@ -Demo.DemoController = Ember.ObjectController.extend({ - isLoading: false, - logs: "", - - init: function() { - this._super.apply(this, arguments); - - // connect to the websocket once we enter the application route - // var socket = window.io.connect('http://localhost:8080'); - var socket = new WebSocket("wss://vault-demo-server.herokuapp.com/socket"); - - // Set socket on application controller - this.set('socket', socket); - - socket.onmessage = function(message) { - var data = JSON.parse(message.data), - controller = this; - - // ignore pongs - if (data.pong) { - return - } - - // Add the item - if (data.stdout !== "") { - controller.appendLog(data.stdout, false); - } - - if (data.stderr !== "") { - controller.appendLog(data.stderr, false); - } - - controller.set('isLoading', false); - }.bind(this); - }, - - appendLog: function(data, prefix) { - var newline; - - if (prefix) { - data = '$ ' + data; - } else { - newline = ''; - } - - newline = '\n'; - - this.set('logs', this.get('logs')+data+newline); - - Ember.run.later(function() { - var element = $('.demo-terminal'); - // Scroll to the bottom of the element - element.scrollTop(element[0].scrollHeight); - - element.find('input.shell')[0].focus(); - }, 5); - }, -}); diff --git a/website/source/assets/javascripts/demo/controllers/step.js b/website/source/assets/javascripts/demo/controllers/step.js deleted file mode 100644 index 7329f9a28c..0000000000 --- a/website/source/assets/javascripts/demo/controllers/step.js +++ /dev/null @@ -1,98 +0,0 @@ -Demo.DemoStepController = Ember.ObjectController.extend({ - needs: ['demo'], - socket: Ember.computed.alias('controllers.demo.socket'), - logs: Ember.computed.alias('controllers.demo.logs'), - isLoading: Ember.computed.alias('controllers.demo.isLoading'), - - currentText: "", - commandLog: [], - cursor: 0, - notCleared: true, - fullscreen: false, - - renderedLogs: function() { - return this.get('logs'); - }.property('logs.length'), - - setFromHistory: function() { - var index = this.get('commandLog.length') + this.get('cursor'); - var previousMessage = this.get('commandLog')[index]; - - this.set('currentText', previousMessage); - }.observes('cursor'), - - logCommand: function(command) { - var commandLog = this.get('commandLog'); - - commandLog.push(command); - - this.set('commandLog', commandLog); - }, - - actions: { - submitText: function() { - // Send the actual request (fake for now) - this.sendCommand(); - }, - - close: function() { - this.transitionTo('index'); - }, - - next: function() { - var nextStepNumber = parseInt(this.get('model.id'), 10) + 1; - this.transitionTo('demo.step', nextStepNumber); - }, - - previous: function() { - var prevStepNumber = parseInt(this.get('model.id'), 10) - 1; - this.transitionTo('demo.step', prevStepNumber); - }, - }, - - sendCommand: function() { - var command = this.getWithDefault('currentText', ''); - var log = this.get('log'); - - this.set('currentText', ''); - this.logCommand(command); - this.get('controllers.demo').appendLog(command, true); - - switch(command) { - case "": - break; - case "next": - case "forward": - this.set('notCleared', true); - this.send('next'); - break; - case "previous": - case "back": - case "prev": - this.set('notCleared', true); - this.send('previous'); - break; - case "quit": - case "exit": - this.send('close'); - break; - case "clear": - this.set('logs', ""); - this.set('notCleared', false); - break; - case "fu": - case "fullscreen": - this.set('fullscreen', true); - break; - case "help": - this.get('controllers.demo').appendLog('You can use `vault path-help ` ' + - 'to learn more about specific Vault commands, or `next` ' + - 'and `previous` to navigate. Or, `fu` to go fullscreen.', false); - break; - default: - this.set('isLoading', true); - var data = JSON.stringify({type: "cli", data: {command: command}}); - this.get('socket').send(data); - } - }, -}); diff --git a/website/source/assets/javascripts/demo/initializer/load-steps.js b/website/source/assets/javascripts/demo/initializer/load-steps.js deleted file mode 100644 index 4c0c7d47ee..0000000000 --- a/website/source/assets/javascripts/demo/initializer/load-steps.js +++ /dev/null @@ -1,32 +0,0 @@ -Ember.Application.initializer({ - name: 'load-steps', - after: 'store', - - initialize: function(container, application) { - var store = container.lookup('store:main'); - var steps = { - "steps": [ - { id: 0, name: 'welcome', humanName: "Welcome to the Vault Interactive Tutorial!"}, - { id: 1, name: 'steps', humanName: "Step 1: Overview"}, - { id: 2, name: 'init', humanName: "Step 2: Initialize your Vault"}, - { id: 3, name: 'unseal', humanName: "Step 3: Unsealing your Vault"}, - { id: 4, name: 'auth', humanName: "Step 4: Authorize your requests"}, - { id: 5, name: 'list', humanName: "Step 5: List available secret engines"}, - { id: 6, name: 'secrets', humanName: "Step 6: Read and write secrets"}, - { id: 7, name: 'update', humanName: "Step 7: Update the secret data"}, - { id: 8, name: 'patch', humanName: "Step 8: Update the data without overwriting"}, - { id: 9, name: 'versions', humanName: "Step 9: Work with different data versions"}, - { id: 10, name: 'delete', humanName: "Step 10: Delete the data"}, - { id: 11, name: 'recover', humanName: "Step 11: Recover the deleted data"}, - { id: 12, name: 'destroy', humanName: "Step 12: Permanently delete data"}, - { id: 13, name: 'help', humanName: "Step 13: Get Help"}, - { id: 14, name: 'seal', humanName: "Step 14: Seal your Vault"}, - { id: 15, name: 'finish', humanName: "You're finished!"}, - ] - }; - - application.register('model:step', Demo.Step); - - store.pushPayload('step', steps); - }, -}); diff --git a/website/source/assets/javascripts/demo/model/clock.js b/website/source/assets/javascripts/demo/model/clock.js deleted file mode 100644 index 235af53f68..0000000000 --- a/website/source/assets/javascripts/demo/model/clock.js +++ /dev/null @@ -1,63 +0,0 @@ -Ember.Clock = Ember.Object.extend({ - second: null, - checks: 0, - isPolling: false, - pollImmediately: true, - pollInterval: null, - tickInterval: null, - defaultPollInterval: 10000, - defaultTickInterval: 1000, - - init: function () { - this.scheduleTick(); - this.pollImmediately && this.startPolling(); - }, - - computedPollInterval: function() { - return this.pollInterval || this.defaultPollInterval; // Time between polls (in ms) - }.property().readOnly(), - - computedTickInterval: function() { - return this.tickInterval || this.defaultTickInterval; // Time between ticks (in ms) - }.property().readOnly(), - - // Schedules the function `f` to be executed every `interval` time. - schedulePoll: function(f) { - return Ember.run.later(this, function() { - f.apply(this); - this.incrementProperty('checks') - this.set('timer', this.schedulePoll(f)); - }, this.get('computedPollInterval')); - }, - - scheduleTick: function () { - return Ember.run.later(this, function () { - this.tick(); - this.scheduleTick(); - }, this.get('computedTickInterval')); - }, - - // Stops the polling - stopPolling: function() { - this.set('isPolling', false); - Ember.run.cancel(this.get('timer')); - }, - - // Starts the polling, i.e. executes the `onPoll` function every interval. - startPolling: function() { - this.set('isPolling', true); - this.set('timer', this.schedulePoll(this.get('onPoll'))); - }, - - // Moves the clock - tick: function () { - var now = new Date(); - this.setProperties({ - second: now.getSeconds() - }); - }, - - // Override this while making a new Clock object. - onPoll: function(){ - }, -}); diff --git a/website/source/assets/javascripts/demo/model/step.js b/website/source/assets/javascripts/demo/model/step.js deleted file mode 100644 index 2d17ef0095..0000000000 --- a/website/source/assets/javascripts/demo/model/step.js +++ /dev/null @@ -1,6 +0,0 @@ -Demo.Step = DS.Model.extend({ - name: DS.attr('string'), - humanName: DS.attr('string'), - - instructionTemplate: Ember.computed.alias('name') -}); diff --git a/website/source/assets/javascripts/demo/router.js b/website/source/assets/javascripts/demo/router.js deleted file mode 100644 index 191b380ade..0000000000 --- a/website/source/assets/javascripts/demo/router.js +++ /dev/null @@ -1,5 +0,0 @@ -Demo.Router.map(function() { - this.route('demo', function() { - this.route('step', { path: '/:id' }); - }); -}); diff --git a/website/source/assets/javascripts/demo/routes/step.js b/website/source/assets/javascripts/demo/routes/step.js deleted file mode 100644 index add170d352..0000000000 --- a/website/source/assets/javascripts/demo/routes/step.js +++ /dev/null @@ -1,29 +0,0 @@ -Demo.DemoStepRoute = Ember.Route.extend({ - model: function(params) { - return this.store.find('step', params.id); - }, - - afterModel: function(model) { - var clock = Ember.Clock.create({ - defaultPollInterval: 5000, - pollImmediately: false, - onPoll: function() { - var socket = this.controllerFor('demo').get('socket'); - socket.send(JSON.stringify({type: "ping"})); - }.bind(this) - }); - - this.set('clock', clock); - }, - - activate: function() { - this.get('clock').startPolling(); - }, - - deactivate: function() { - var clock = this.get('clock'); - if(clock.get('isPolling')) { - clock.stopPolling(); - } - }, -}); diff --git a/website/source/assets/javascripts/demo/views/demo.js b/website/source/assets/javascripts/demo/views/demo.js deleted file mode 100644 index 6d25a6d59a..0000000000 --- a/website/source/assets/javascripts/demo/views/demo.js +++ /dev/null @@ -1,56 +0,0 @@ -Demo.DemoView = Ember.View.extend({ - classNames: ['demo-overlay'], - - mouseUp: function(ev) { - var selection = window.getSelection().toString(); - - if (selection.length > 0) { - // Ignore clicks when they are trying to select something - return; - } - - var element = this.$(); - - // Record scroll position - var x = element.scrollX, y = element.scrollY; - // Focus - element.find('input.shell')[0].focus(); - // Scroll back to where you were - element.scrollTop(x, y); - }, - - didInsertElement: function() { - var controller = this.get('controller'), - overlay = $('.sidebar-overlay'), - element = this.$(); - - $('body').addClass('demo-active'); - - overlay.addClass('active'); - - overlay.on('click', function() { - controller.transitionTo('index'); - }); - - // Scroll to the bottom of the element - element.scrollTop(element[0].scrollHeight); - - // Focus - element.find('input.shell')[0].focus(); - }, - - willDestroyElement: function() { - // Remove overlay - $('.sidebar-overlay').removeClass('active'); - - var element = this.$(); - - element.fadeOut(400); - - $('body').removeClass('demo-active'); - - // reset scroll to top after closing demo - window.scrollTo(0, 0); - }, - -}); diff --git a/website/source/assets/javascripts/demo/views/step.js b/website/source/assets/javascripts/demo/views/step.js deleted file mode 100644 index cdd5fcab36..0000000000 --- a/website/source/assets/javascripts/demo/views/step.js +++ /dev/null @@ -1,67 +0,0 @@ -Demo.DemoStepView = Ember.View.extend({ - keyDown: function(ev) { - var cursor = this.get('controller.cursor'), - currentLength = this.get('controller.commandLog.length'); - - switch(ev.keyCode) { - // Down arrow - case 40: - if (cursor === 0) { - return; - } - - this.incrementProperty('controller.cursor'); - break; - - // Up arrow - case 38: - if ((currentLength + cursor) === 0) { - return; - } - - this.decrementProperty('controller.cursor'); - break; - - // command + k - case 75: - if (ev.metaKey) { - this.set('controller.logs', ''); - this.set('controller.notCleared', false); - } - break; - - // escape - case 27: - this.get('controller').transitionTo('index'); - break; - } - }, - - deFocus: function() { - var element = this.$().find('input.shell'); - - // defocus while loading - if (this.get('controller.isLoading')) { - element.blur(); - } - - }.observes('controller.isLoading'), - - focus: function() { - var element = this.$().find('input.shell'); - element.focus(); - }.observes('controller.cursor'), - - submitted: function() { - var element = this.$(); - - // Focus the input - element.find('input.shell')[0].focus(); - - // guarantees that the log is scrolled when updated - Ember.run.scheduleOnce('afterRender', this, function() { - window.scrollTo(0, document.body.scrollHeight); - }); - - }.observes('controller.logs.length') -}); diff --git a/website/source/assets/javascripts/lib/ember-1-10.js b/website/source/assets/javascripts/lib/ember-1-10.js deleted file mode 100644 index e171eb63c1..0000000000 --- a/website/source/assets/javascripts/lib/ember-1-10.js +++ /dev/null @@ -1,52909 +0,0 @@ -/*! - * @overview Ember - JavaScript Application Framework - * @copyright Copyright 2011-2014 Tilde Inc. and contributors - * Portions Copyright 2006-2011 Strobe Inc. - * Portions Copyright 2008-2011 Apple Inc. All rights reserved. - * @license Licensed under MIT license - * See https://raw.github.com/emberjs/ember.js/master/LICENSE - * @version 1.10.1 - */ - -(function() { -var enifed, requireModule, eriuqer, requirejs, Ember; - -(function() { - Ember = this.Ember = this.Ember || {}; - if (typeof Ember === 'undefined') { Ember = {}; }; - function UNDEFINED() { } - - if (typeof Ember.__loader === 'undefined') { - var registry = {}, seen = {}; - - enifed = function(name, deps, callback) { - registry[name] = { deps: deps, callback: callback }; - }; - - requirejs = eriuqer = requireModule = function(name) { - var s = seen[name]; - - if (s !== undefined) { return seen[name]; } - if (s === UNDEFINED) { return undefined; } - - seen[name] = {}; - - if (!registry[name]) { - throw new Error('Could not find module ' + name); - } - - var mod = registry[name]; - var deps = mod.deps; - var callback = mod.callback; - var reified = []; - var exports; - var length = deps.length; - - for (var i=0; i 3) { - args = new Array(length - 3); - for (var i = 3; i < length; i++) { - args[i-3] = arguments[i]; - } - } else { - args = undefined; - } - - if (!this.currentInstance) { createAutorun(this); } - return this.currentInstance.schedule(queueName, target, method, args, false, stack); - }, - - deferOnce: function(queueName, target, method /* , args */) { - if (!method) { - method = target; - target = null; - } - - if (isString(method)) { - method = target[method]; - } - - var stack = this.DEBUG ? new Error() : undefined; - var length = arguments.length; - var args; - - if (length > 3) { - args = new Array(length - 3); - for (var i = 3; i < length; i++) { - args[i-3] = arguments[i]; - } - } else { - args = undefined; - } - - if (!this.currentInstance) { - createAutorun(this); - } - return this.currentInstance.schedule(queueName, target, method, args, true, stack); - }, - - setTimeout: function() { - var l = arguments.length; - var args = new Array(l); - - for (var x = 0; x < l; x++) { - args[x] = arguments[x]; - } - - var length = args.length, - method, wait, target, - methodOrTarget, methodOrWait, methodOrArgs; - - if (length === 0) { - return; - } else if (length === 1) { - method = args.shift(); - wait = 0; - } else if (length === 2) { - methodOrTarget = args[0]; - methodOrWait = args[1]; - - if (isFunction(methodOrWait) || isFunction(methodOrTarget[methodOrWait])) { - target = args.shift(); - method = args.shift(); - wait = 0; - } else if (isCoercableNumber(methodOrWait)) { - method = args.shift(); - wait = args.shift(); - } else { - method = args.shift(); - wait = 0; - } - } else { - var last = args[args.length - 1]; - - if (isCoercableNumber(last)) { - wait = args.pop(); - } else { - wait = 0; - } - - methodOrTarget = args[0]; - methodOrArgs = args[1]; - - if (isFunction(methodOrArgs) || (isString(methodOrArgs) && - methodOrTarget !== null && - methodOrArgs in methodOrTarget)) { - target = args.shift(); - method = args.shift(); - } else { - method = args.shift(); - } - } - - var executeAt = now() + parseInt(wait, 10); - - if (isString(method)) { - method = target[method]; - } - - var onError = getOnError(this.options); - - function fn() { - if (onError) { - try { - method.apply(target, args); - } catch (e) { - onError(e); - } - } else { - method.apply(target, args); - } - } - - // find position to insert - var i = searchTimer(executeAt, this._timers); - - this._timers.splice(i, 0, executeAt, fn); - - updateLaterTimer(this, executeAt, wait); - - return fn; - }, - - throttle: function(target, method /* , args, wait, [immediate] */) { - var backburner = this; - var args = arguments; - var immediate = pop.call(args); - var wait, throttler, index, timer; - - if (isNumber(immediate) || isString(immediate)) { - wait = immediate; - immediate = true; - } else { - wait = pop.call(args); - } - - wait = parseInt(wait, 10); - - index = findThrottler(target, method, this._throttlers); - if (index > -1) { return this._throttlers[index]; } // throttled - - timer = global.setTimeout(function() { - if (!immediate) { - backburner.run.apply(backburner, args); - } - var index = findThrottler(target, method, backburner._throttlers); - if (index > -1) { - backburner._throttlers.splice(index, 1); - } - }, wait); - - if (immediate) { - this.run.apply(this, args); - } - - throttler = [target, method, timer]; - - this._throttlers.push(throttler); - - return throttler; - }, - - debounce: function(target, method /* , args, wait, [immediate] */) { - var backburner = this; - var args = arguments; - var immediate = pop.call(args); - var wait, index, debouncee, timer; - - if (isNumber(immediate) || isString(immediate)) { - wait = immediate; - immediate = false; - } else { - wait = pop.call(args); - } - - wait = parseInt(wait, 10); - // Remove debouncee - index = findDebouncee(target, method, this._debouncees); - - if (index > -1) { - debouncee = this._debouncees[index]; - this._debouncees.splice(index, 1); - clearTimeout(debouncee[2]); - } - - timer = global.setTimeout(function() { - if (!immediate) { - backburner.run.apply(backburner, args); - } - var index = findDebouncee(target, method, backburner._debouncees); - if (index > -1) { - backburner._debouncees.splice(index, 1); - } - }, wait); - - if (immediate && index === -1) { - backburner.run.apply(backburner, args); - } - - debouncee = [ - target, - method, - timer - ]; - - backburner._debouncees.push(debouncee); - - return debouncee; - }, - - cancelTimers: function() { - var clearItems = function(item) { - clearTimeout(item[2]); - }; - - each(this._throttlers, clearItems); - this._throttlers = []; - - each(this._debouncees, clearItems); - this._debouncees = []; - - if (this._laterTimer) { - clearTimeout(this._laterTimer); - this._laterTimer = null; - } - this._timers = []; - - if (this._autorun) { - clearTimeout(this._autorun); - this._autorun = null; - } - }, - - hasTimers: function() { - return !!this._timers.length || !!this._debouncees.length || !!this._throttlers.length || this._autorun; - }, - - cancel: function(timer) { - var timerType = typeof timer; - - if (timer && timerType === 'object' && timer.queue && timer.method) { // we're cancelling a deferOnce - return timer.queue.cancel(timer); - } else if (timerType === 'function') { // we're cancelling a setTimeout - for (var i = 0, l = this._timers.length; i < l; i += 2) { - if (this._timers[i + 1] === timer) { - this._timers.splice(i, 2); // remove the two elements - if (i === 0) { - if (this._laterTimer) { // Active timer? Then clear timer and reset for future timer - clearTimeout(this._laterTimer); - this._laterTimer = null; - } - if (this._timers.length > 0) { // Update to next available timer when available - updateLaterTimer(this, this._timers[0], this._timers[0] - now()); - } - } - return true; - } - } - } else if (Object.prototype.toString.call(timer) === "[object Array]"){ // we're cancelling a throttle or debounce - return this._cancelItem(findThrottler, this._throttlers, timer) || - this._cancelItem(findDebouncee, this._debouncees, timer); - } else { - return; // timer was null or not a timer - } - }, - - _cancelItem: function(findMethod, array, timer){ - var item, index; - - if (timer.length < 3) { return false; } - - index = findMethod(timer[0], timer[1], array); - - if (index > -1) { - - item = array[index]; - - if (item[2] === timer[2]) { - array.splice(index, 1); - clearTimeout(timer[2]); - return true; - } - } - - return false; - } - }; - - Backburner.prototype.schedule = Backburner.prototype.defer; - Backburner.prototype.scheduleOnce = Backburner.prototype.deferOnce; - Backburner.prototype.later = Backburner.prototype.setTimeout; - - if (needsIETryCatchFix) { - var originalRun = Backburner.prototype.run; - Backburner.prototype.run = wrapInTryCatch(originalRun); - - var originalEnd = Backburner.prototype.end; - Backburner.prototype.end = wrapInTryCatch(originalEnd); - } - - function getOnError(options) { - return options.onError || (options.onErrorTarget && options.onErrorTarget[options.onErrorMethod]); - } - - function createAutorun(backburner) { - backburner.begin(); - backburner._autorun = global.setTimeout(function() { - backburner._autorun = null; - backburner.end(); - }); - } - - function updateLaterTimer(backburner, executeAt, wait) { - var n = now(); - if (!backburner._laterTimer || executeAt < backburner._laterTimerExpiresAt || backburner._laterTimerExpiresAt < n) { - - if (backburner._laterTimer) { - // Clear when: - // - Already expired - // - New timer is earlier - clearTimeout(backburner._laterTimer); - - if (backburner._laterTimerExpiresAt < n) { // If timer was never triggered - // Calculate the left-over wait-time - wait = Math.max(0, executeAt - n); - } - } - - backburner._laterTimer = global.setTimeout(function() { - backburner._laterTimer = null; - backburner._laterTimerExpiresAt = null; - executeTimers(backburner); - }, wait); - - backburner._laterTimerExpiresAt = n + wait; - } - } - - function executeTimers(backburner) { - var n = now(); - var fns, i, l; - - backburner.run(function() { - i = searchTimer(n, backburner._timers); - - fns = backburner._timers.splice(0, i); - - for (i = 1, l = fns.length; i < l; i += 2) { - backburner.schedule(backburner.options.defaultQueue, null, fns[i]); - } - }); - - if (backburner._timers.length) { - updateLaterTimer(backburner, backburner._timers[0], backburner._timers[0] - n); - } - } - - function findDebouncee(target, method, debouncees) { - return findItem(target, method, debouncees); - } - - function findThrottler(target, method, throttlers) { - return findItem(target, method, throttlers); - } - - function findItem(target, method, collection) { - var item; - var index = -1; - - for (var i = 0, l = collection.length; i < l; i++) { - item = collection[i]; - if (item[0] === target && item[1] === method) { - index = i; - break; - } - } - - return index; - } - - __exports__["default"] = Backburner; - }); -enifed("backburner.umd", - ["./backburner"], - function(__dependency1__) { - "use strict"; - var Backburner = __dependency1__["default"]; - - /* global define:true module:true window: true */ - if (typeof enifed === 'function' && enifed.amd) { - enifed(function() { return Backburner; }); - } else if (typeof module !== 'undefined' && module.exports) { - module.exports = Backburner; - } else if (typeof this !== 'undefined') { - this['Backburner'] = Backburner; - } - }); -enifed("backburner/binary-search", - ["exports"], - function(__exports__) { - "use strict"; - __exports__["default"] = function binarySearch(time, timers) { - var start = 0; - var end = timers.length - 2; - var middle, l; - - while (start < end) { - // since timers is an array of pairs 'l' will always - // be an integer - l = (end - start) / 2; - - // compensate for the index in case even number - // of pairs inside timers - middle = start + l - (l % 2); - - if (time >= timers[middle]) { - start = middle + 2; - } else { - end = middle; - } - } - - return (time >= timers[start]) ? start + 2 : start; - } - }); -enifed("backburner/deferred-action-queues", - ["./utils","./queue","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var each = __dependency1__.each; - var Queue = __dependency2__["default"]; - - function DeferredActionQueues(queueNames, options) { - var queues = this.queues = Object.create(null); - this.queueNames = queueNames = queueNames || []; - - this.options = options; - - each(queueNames, function(queueName) { - queues[queueName] = new Queue(queueName, options[queueName], options); - }); - } - - function noSuchQueue(name) { - throw new Error("You attempted to schedule an action in a queue (" + name + ") that doesn't exist"); - } - - DeferredActionQueues.prototype = { - schedule: function(name, target, method, args, onceFlag, stack) { - var queues = this.queues; - var queue = queues[name]; - - if (!queue) { - noSuchQueue(name); - } - - if (onceFlag) { - return queue.pushUnique(target, method, args, stack); - } else { - return queue.push(target, method, args, stack); - } - }, - - flush: function() { - var queues = this.queues; - var queueNames = this.queueNames; - var queueName, queue, queueItems, priorQueueNameIndex; - var queueNameIndex = 0; - var numberOfQueues = queueNames.length; - var options = this.options; - - while (queueNameIndex < numberOfQueues) { - queueName = queueNames[queueNameIndex]; - queue = queues[queueName]; - - var numberOfQueueItems = queue._queue.length; - - if (numberOfQueueItems === 0) { - queueNameIndex++; - } else { - queue.flush(false /* async */); - queueNameIndex = 0; - } - } - } - }; - - __exports__["default"] = DeferredActionQueues; - }); -enifed("backburner/platform", - ["exports"], - function(__exports__) { - "use strict"; - // In IE 6-8, try/finally doesn't work without a catch. - // Unfortunately, this is impossible to test for since wrapping it in a parent try/catch doesn't trigger the bug. - // This tests for another broken try/catch behavior that only exhibits in the same versions of IE. - var needsIETryCatchFix = (function(e,x){ - try{ x(); } - catch(e) { } // jshint ignore:line - return !!e; - })(); - __exports__.needsIETryCatchFix = needsIETryCatchFix; - }); -enifed("backburner/queue", - ["./utils","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var isString = __dependency1__.isString; - - function Queue(name, options, globalOptions) { - this.name = name; - this.globalOptions = globalOptions || {}; - this.options = options; - this._queue = []; - this.targetQueues = Object.create(null); - this._queueBeingFlushed = undefined; - } - - Queue.prototype = { - push: function(target, method, args, stack) { - var queue = this._queue; - queue.push(target, method, args, stack); - - return { - queue: this, - target: target, - method: method - }; - }, - - pushUniqueWithoutGuid: function(target, method, args, stack) { - var queue = this._queue; - - for (var i = 0, l = queue.length; i < l; i += 4) { - var currentTarget = queue[i]; - var currentMethod = queue[i+1]; - - if (currentTarget === target && currentMethod === method) { - queue[i+2] = args; // replace args - queue[i+3] = stack; // replace stack - return; - } - } - - queue.push(target, method, args, stack); - }, - - targetQueue: function(targetQueue, target, method, args, stack) { - var queue = this._queue; - - for (var i = 0, l = targetQueue.length; i < l; i += 4) { - var currentMethod = targetQueue[i]; - var currentIndex = targetQueue[i + 1]; - - if (currentMethod === method) { - queue[currentIndex + 2] = args; // replace args - queue[currentIndex + 3] = stack; // replace stack - return; - } - } - - targetQueue.push( - method, - queue.push(target, method, args, stack) - 4 - ); - }, - - pushUniqueWithGuid: function(guid, target, method, args, stack) { - var hasLocalQueue = this.targetQueues[guid]; - - if (hasLocalQueue) { - this.targetQueue(hasLocalQueue, target, method, args, stack); - } else { - this.targetQueues[guid] = [ - method, - this._queue.push(target, method, args, stack) - 4 - ]; - } - - return { - queue: this, - target: target, - method: method - }; - }, - - pushUnique: function(target, method, args, stack) { - var queue = this._queue, currentTarget, currentMethod, i, l; - var KEY = this.globalOptions.GUID_KEY; - - if (target && KEY) { - var guid = target[KEY]; - if (guid) { - return this.pushUniqueWithGuid(guid, target, method, args, stack); - } - } - - this.pushUniqueWithoutGuid(target, method, args, stack); - - return { - queue: this, - target: target, - method: method - }; - }, - - invoke: function(target, method, args, _, _errorRecordedForStack) { - if (args && args.length > 0) { - method.apply(target, args); - } else { - method.call(target); - } - }, - - invokeWithOnError: function(target, method, args, onError, errorRecordedForStack) { - try { - if (args && args.length > 0) { - method.apply(target, args); - } else { - method.call(target); - } - } catch(error) { - onError(error, errorRecordedForStack); - } - }, - - flush: function(sync) { - var queue = this._queue; - var length = queue.length; - - if (length === 0) { - return; - } - - var globalOptions = this.globalOptions; - var options = this.options; - var before = options && options.before; - var after = options && options.after; - var onError = globalOptions.onError || (globalOptions.onErrorTarget && - globalOptions.onErrorTarget[globalOptions.onErrorMethod]); - var target, method, args, errorRecordedForStack; - var invoke = onError ? this.invokeWithOnError : this.invoke; - - this.targetQueues = Object.create(null); - var queueItems = this._queueBeingFlushed = this._queue.slice(); - this._queue = []; - - if (before) { - before(); - } - - for (var i = 0; i < length; i += 4) { - target = queueItems[i]; - method = queueItems[i+1]; - args = queueItems[i+2]; - errorRecordedForStack = queueItems[i+3]; // Debugging assistance - - if (isString(method)) { - method = target[method]; - } - - // method could have been nullified / canceled during flush - if (method) { - // - // ** Attention intrepid developer ** - // - // To find out the stack of this task when it was scheduled onto - // the run loop, add the following to your app.js: - // - // Ember.run.backburner.DEBUG = true; // NOTE: This slows your app, don't leave it on in production. - // - // Once that is in place, when you are at a breakpoint and navigate - // here in the stack explorer, you can look at `errorRecordedForStack.stack`, - // which will be the captured stack when this job was scheduled. - // - invoke(target, method, args, onError, errorRecordedForStack); - } - } - - if (after) { - after(); - } - - this._queueBeingFlushed = undefined; - - if (sync !== false && - this._queue.length > 0) { - // check if new items have been added - this.flush(true); - } - }, - - cancel: function(actionToCancel) { - var queue = this._queue, currentTarget, currentMethod, i, l; - var target = actionToCancel.target; - var method = actionToCancel.method; - var GUID_KEY = this.globalOptions.GUID_KEY; - - if (GUID_KEY && this.targetQueues && target) { - var targetQueue = this.targetQueues[target[GUID_KEY]]; - - if (targetQueue) { - for (i = 0, l = targetQueue.length; i < l; i++) { - if (targetQueue[i] === method) { - targetQueue.splice(i, 1); - } - } - } - } - - for (i = 0, l = queue.length; i < l; i += 4) { - currentTarget = queue[i]; - currentMethod = queue[i+1]; - - if (currentTarget === target && - currentMethod === method) { - queue.splice(i, 4); - return true; - } - } - - // if not found in current queue - // could be in the queue that is being flushed - queue = this._queueBeingFlushed; - - if (!queue) { - return; - } - - for (i = 0, l = queue.length; i < l; i += 4) { - currentTarget = queue[i]; - currentMethod = queue[i+1]; - - if (currentTarget === target && - currentMethod === method) { - // don't mess with array during flush - // just nullify the method - queue[i+1] = null; - return true; - } - } - } - }; - - __exports__["default"] = Queue; - }); -enifed("backburner/utils", - ["exports"], - function(__exports__) { - "use strict"; - var NUMBER = /\d+/; - - function each(collection, callback) { - for (var i = 0; i < collection.length; i++) { - callback(collection[i]); - } - } - - __exports__.each = each;// Date.now is not available in browsers < IE9 - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility - var now = Date.now || function() { return new Date().getTime(); }; - __exports__.now = now; - function isString(suspect) { - return typeof suspect === 'string'; - } - - __exports__.isString = isString;function isFunction(suspect) { - return typeof suspect === 'function'; - } - - __exports__.isFunction = isFunction;function isNumber(suspect) { - return typeof suspect === 'number'; - } - - __exports__.isNumber = isNumber;function isCoercableNumber(number) { - return isNumber(number) || NUMBER.test(number); - } - - __exports__.isCoercableNumber = isCoercableNumber;function wrapInTryCatch(func) { - return function () { - try { - return func.apply(this, arguments); - } catch (e) { - throw e; - } - }; - } - - __exports__.wrapInTryCatch = wrapInTryCatch; - }); -enifed("calculateVersion", - [], - function() { - "use strict"; - 'use strict'; - - var fs = eriuqer('fs'); - var path = eriuqer('path'); - - module.exports = function () { - var packageVersion = eriuqer('../package.json').version; - var output = [packageVersion]; - var gitPath = path.join(__dirname,'..','.git'); - var headFilePath = path.join(gitPath, 'HEAD'); - - if (packageVersion.indexOf('+') > -1) { - try { - if (fs.existsSync(headFilePath)) { - var headFile = fs.readFileSync(headFilePath, {encoding: 'utf8'}); - var branchName = headFile.split('/').slice(-1)[0].trim(); - var refPath = headFile.split(' ')[1]; - var branchSHA; - - if (refPath) { - var branchPath = path.join(gitPath, refPath.trim()); - branchSHA = fs.readFileSync(branchPath); - } else { - branchSHA = branchName; - } - - output.push(branchSHA.slice(0,10)); - } - } catch (err) { - console.error(err.stack); - } - return output.join('.'); - } else { - return packageVersion; - } - }; - }); -enifed("container", - ["container/container","exports"], - function(__dependency1__, __exports__) { - "use strict"; - /* - Public api for the container is still in flux. - The public api, specified on the application namespace should be considered the stable api. - // @module container - @private - */ - - /* - Flag to enable/disable model factory injections (disabled by default) - If model factory injections are enabled, models should not be - accessed globally (only through `container.lookupFactory('model:modelName'))`); - */ - Ember.MODEL_FACTORY_INJECTIONS = false; - - if (Ember.ENV && typeof Ember.ENV.MODEL_FACTORY_INJECTIONS !== 'undefined') { - Ember.MODEL_FACTORY_INJECTIONS = !!Ember.ENV.MODEL_FACTORY_INJECTIONS; - } - - - var Container = __dependency1__["default"]; - - __exports__["default"] = Container; - }); -enifed("container/container", - ["ember-metal/core","ember-metal/keys","ember-metal/dictionary","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // Ember.assert - var emberKeys = __dependency2__["default"]; - var dictionary = __dependency3__["default"]; - - // A lightweight container that helps to assemble and decouple components. - // Public api for the container is still in flux. - // The public api, specified on the application namespace should be considered the stable api. - function Container(parent) { - this.parent = parent; - this.children = []; - - this.resolver = parent && parent.resolver || function() {}; - - this.registry = dictionary(parent ? parent.registry : null); - this.cache = dictionary(parent ? parent.cache : null); - this.factoryCache = dictionary(parent ? parent.factoryCache : null); - this.resolveCache = dictionary(parent ? parent.resolveCache : null); - this.typeInjections = dictionary(parent ? parent.typeInjections : null); - this.injections = dictionary(null); - this.normalizeCache = dictionary(null); - - this.validationCache = dictionary(parent ? parent.validationCache : null); - - - this.factoryTypeInjections = dictionary(parent ? parent.factoryTypeInjections : null); - this.factoryInjections = dictionary(null); - - this._options = dictionary(parent ? parent._options : null); - this._typeOptions = dictionary(parent ? parent._typeOptions : null); - } - - Container.prototype = { - - /** - @property parent - @type Container - @default null - */ - parent: null, - - /** - @property children - @type Array - @default [] - */ - children: null, - - /** - @property resolver - @type function - */ - resolver: null, - - /** - @property registry - @type InheritingDict - */ - registry: null, - - /** - @property cache - @type InheritingDict - */ - cache: null, - - /** - @property typeInjections - @type InheritingDict - */ - typeInjections: null, - - /** - @property injections - @type Object - @default {} - */ - injections: null, - - /** - @private - - @property _options - @type InheritingDict - @default null - */ - _options: null, - - /** - @private - - @property _typeOptions - @type InheritingDict - */ - _typeOptions: null, - - /** - Returns a new child of the current container. These children are configured - to correctly inherit from the current container. - - @method child - @return {Container} - */ - child: function() { - var container = new Container(this); - this.children.push(container); - return container; - }, - - /** - Registers a factory for later injection. - - Example: - - ```javascript - var container = new Container(); - - container.register('model:user', Person, {singleton: false }); - container.register('fruit:favorite', Orange); - container.register('communication:main', Email, {singleton: false}); - ``` - - @method register - @param {String} fullName - @param {Function} factory - @param {Object} options - */ - register: function(fullName, factory, options) { - Ember.assert('fullName must be a proper full name', validateFullName(fullName)); - - if (factory === undefined) { - throw new TypeError('Attempting to register an unknown factory: `' + fullName + '`'); - } - - var normalizedName = this.normalize(fullName); - - if (normalizedName in this.cache) { - throw new Error('Cannot re-register: `' + fullName +'`, as it has already been looked up.'); - } - - this.registry[normalizedName] = factory; - this._options[normalizedName] = (options || {}); - }, - - /** - Unregister a fullName - - ```javascript - var container = new Container(); - container.register('model:user', User); - - container.lookup('model:user') instanceof User //=> true - - container.unregister('model:user') - container.lookup('model:user') === undefined //=> true - ``` - - @method unregister - @param {String} fullName - */ - unregister: function(fullName) { - Ember.assert('fullName must be a proper full name', validateFullName(fullName)); - - var normalizedName = this.normalize(fullName); - - delete this.registry[normalizedName]; - delete this.cache[normalizedName]; - delete this.factoryCache[normalizedName]; - delete this.resolveCache[normalizedName]; - delete this._options[normalizedName]; - - delete this.validationCache[normalizedName]; - - }, - - /** - Given a fullName return the corresponding factory. - - By default `resolve` will retrieve the factory from - its container's registry. - - ```javascript - var container = new Container(); - container.register('api:twitter', Twitter); - - container.resolve('api:twitter') // => Twitter - ``` - - Optionally the container can be provided with a custom resolver. - If provided, `resolve` will first provide the custom resolver - the opportunity to resolve the fullName, otherwise it will fallback - to the registry. - - ```javascript - var container = new Container(); - container.resolver = function(fullName) { - // lookup via the module system of choice - }; - - // the twitter factory is added to the module system - container.resolve('api:twitter') // => Twitter - ``` - - @method resolve - @param {String} fullName - @return {Function} fullName's factory - */ - resolve: function(fullName) { - Ember.assert('fullName must be a proper full name', validateFullName(fullName)); - return resolve(this, this.normalize(fullName)); - }, - - /** - A hook that can be used to describe how the resolver will - attempt to find the factory. - - For example, the default Ember `.describe` returns the full - class name (including namespace) where Ember's resolver expects - to find the `fullName`. - - @method describe - @param {String} fullName - @return {string} described fullName - */ - describe: function(fullName) { - return fullName; - }, - - /** - A hook to enable custom fullName normalization behaviour - - @method normalizeFullName - @param {String} fullName - @return {string} normalized fullName - */ - normalizeFullName: function(fullName) { - return fullName; - }, - - /** - normalize a fullName based on the applications conventions - - @method normalize - @param {String} fullName - @return {string} normalized fullName - */ - normalize: function(fullName) { - return this.normalizeCache[fullName] || ( - this.normalizeCache[fullName] = this.normalizeFullName(fullName) - ); - }, - - /** - @method makeToString - - @param {any} factory - @param {string} fullName - @return {function} toString function - */ - makeToString: function(factory, fullName) { - return factory.toString(); - }, - - /** - Given a fullName return a corresponding instance. - - The default behaviour is for lookup to return a singleton instance. - The singleton is scoped to the container, allowing multiple containers - to all have their own locally scoped singletons. - - ```javascript - var container = new Container(); - container.register('api:twitter', Twitter); - - var twitter = container.lookup('api:twitter'); - - twitter instanceof Twitter; // => true - - // by default the container will return singletons - var twitter2 = container.lookup('api:twitter'); - twitter2 instanceof Twitter; // => true - - twitter === twitter2; //=> true - ``` - - If singletons are not wanted an optional flag can be provided at lookup. - - ```javascript - var container = new Container(); - container.register('api:twitter', Twitter); - - var twitter = container.lookup('api:twitter', { singleton: false }); - var twitter2 = container.lookup('api:twitter', { singleton: false }); - - twitter === twitter2; //=> false - ``` - - @method lookup - @param {String} fullName - @param {Object} options - @return {any} - */ - lookup: function(fullName, options) { - Ember.assert('fullName must be a proper full name', validateFullName(fullName)); - return lookup(this, this.normalize(fullName), options); - }, - - /** - Given a fullName return the corresponding factory. - - @method lookupFactory - @param {String} fullName - @return {any} - */ - lookupFactory: function(fullName) { - Ember.assert('fullName must be a proper full name', validateFullName(fullName)); - return factoryFor(this, this.normalize(fullName)); - }, - - /** - Given a fullName check if the container is aware of its factory - or singleton instance. - - @method has - @param {String} fullName - @return {Boolean} - */ - has: function(fullName) { - Ember.assert('fullName must be a proper full name', validateFullName(fullName)); - return has(this, this.normalize(fullName)); - }, - - /** - Allow registering options for all factories of a type. - - ```javascript - var container = new Container(); - - // if all of type `connection` must not be singletons - container.optionsForType('connection', { singleton: false }); - - container.register('connection:twitter', TwitterConnection); - container.register('connection:facebook', FacebookConnection); - - var twitter = container.lookup('connection:twitter'); - var twitter2 = container.lookup('connection:twitter'); - - twitter === twitter2; // => false - - var facebook = container.lookup('connection:facebook'); - var facebook2 = container.lookup('connection:facebook'); - - facebook === facebook2; // => false - ``` - - @method optionsForType - @param {String} type - @param {Object} options - */ - optionsForType: function(type, options) { - if (this.parent) { illegalChildOperation('optionsForType'); } - - this._typeOptions[type] = options; - }, - - /** - @method options - @param {String} fullName - @param {Object} options - */ - options: function(fullName, options) { - options = options || {}; - var normalizedName = this.normalize(fullName); - this._options[normalizedName] = options; - }, - - /** - Used only via `injection`. - - Provides a specialized form of injection, specifically enabling - all objects of one type to be injected with a reference to another - object. - - For example, provided each object of type `controller` needed a `router`. - one would do the following: - - ```javascript - var container = new Container(); - - container.register('router:main', Router); - container.register('controller:user', UserController); - container.register('controller:post', PostController); - - container.typeInjection('controller', 'router', 'router:main'); - - var user = container.lookup('controller:user'); - var post = container.lookup('controller:post'); - - user.router instanceof Router; //=> true - post.router instanceof Router; //=> true - - // both controllers share the same router - user.router === post.router; //=> true - ``` - - @private - @method typeInjection - @param {String} type - @param {String} property - @param {String} fullName - */ - typeInjection: function(type, property, fullName) { - Ember.assert('fullName must be a proper full name', validateFullName(fullName)); - - if (this.parent) { illegalChildOperation('typeInjection'); } - - var fullNameType = fullName.split(':')[0]; - if (fullNameType === type) { - throw new Error('Cannot inject a `' + fullName + - '` on other ' + type + - '(s). Register the `' + fullName + - '` as a different type and perform the typeInjection.'); - } - - addTypeInjection(this.typeInjections, type, property, fullName); - }, - - /** - Defines injection rules. - - These rules are used to inject dependencies onto objects when they - are instantiated. - - Two forms of injections are possible: - - * Injecting one fullName on another fullName - * Injecting one fullName on a type - - Example: - - ```javascript - var container = new Container(); - - container.register('source:main', Source); - container.register('model:user', User); - container.register('model:post', Post); - - // injecting one fullName on another fullName - // eg. each user model gets a post model - container.injection('model:user', 'post', 'model:post'); - - // injecting one fullName on another type - container.injection('model', 'source', 'source:main'); - - var user = container.lookup('model:user'); - var post = container.lookup('model:post'); - - user.source instanceof Source; //=> true - post.source instanceof Source; //=> true - - user.post instanceof Post; //=> true - - // and both models share the same source - user.source === post.source; //=> true - ``` - - @method injection - @param {String} factoryName - @param {String} property - @param {String} injectionName - */ - injection: function(fullName, property, injectionName) { - if (this.parent) { illegalChildOperation('injection'); } - - validateFullName(injectionName); - var normalizedInjectionName = this.normalize(injectionName); - - if (fullName.indexOf(':') === -1) { - return this.typeInjection(fullName, property, normalizedInjectionName); - } - - Ember.assert('fullName must be a proper full name', validateFullName(fullName)); - var normalizedName = this.normalize(fullName); - - if (this.cache[normalizedName]) { - throw new Error("Attempted to register an injection for a type that has already been looked up. ('" + - normalizedName + "', '" + - property + "', '" + - injectionName + "')"); - } - - addInjection(initRules(this.injections, normalizedName), property, normalizedInjectionName); - }, - - - /** - Used only via `factoryInjection`. - - Provides a specialized form of injection, specifically enabling - all factory of one type to be injected with a reference to another - object. - - For example, provided each factory of type `model` needed a `store`. - one would do the following: - - ```javascript - var container = new Container(); - - container.register('store:main', SomeStore); - - container.factoryTypeInjection('model', 'store', 'store:main'); - - var store = container.lookup('store:main'); - var UserFactory = container.lookupFactory('model:user'); - - UserFactory.store instanceof SomeStore; //=> true - ``` - - @private - @method factoryTypeInjection - @param {String} type - @param {String} property - @param {String} fullName - */ - factoryTypeInjection: function(type, property, fullName) { - if (this.parent) { illegalChildOperation('factoryTypeInjection'); } - - addTypeInjection(this.factoryTypeInjections, type, property, this.normalize(fullName)); - }, - - /** - Defines factory injection rules. - - Similar to regular injection rules, but are run against factories, via - `Container#lookupFactory`. - - These rules are used to inject objects onto factories when they - are looked up. - - Two forms of injections are possible: - - * Injecting one fullName on another fullName - * Injecting one fullName on a type - - Example: - - ```javascript - var container = new Container(); - - container.register('store:main', Store); - container.register('store:secondary', OtherStore); - container.register('model:user', User); - container.register('model:post', Post); - - // injecting one fullName on another type - container.factoryInjection('model', 'store', 'store:main'); - - // injecting one fullName on another fullName - container.factoryInjection('model:post', 'secondaryStore', 'store:secondary'); - - var UserFactory = container.lookupFactory('model:user'); - var PostFactory = container.lookupFactory('model:post'); - var store = container.lookup('store:main'); - - UserFactory.store instanceof Store; //=> true - UserFactory.secondaryStore instanceof OtherStore; //=> false - - PostFactory.store instanceof Store; //=> true - PostFactory.secondaryStore instanceof OtherStore; //=> true - - // and both models share the same source instance - UserFactory.store === PostFactory.store; //=> true - ``` - - @method factoryInjection - @param {String} factoryName - @param {String} property - @param {String} injectionName - */ - factoryInjection: function(fullName, property, injectionName) { - if (this.parent) { illegalChildOperation('injection'); } - - var normalizedName = this.normalize(fullName); - var normalizedInjectionName = this.normalize(injectionName); - - validateFullName(injectionName); - - if (fullName.indexOf(':') === -1) { - return this.factoryTypeInjection(normalizedName, property, normalizedInjectionName); - } - - Ember.assert('fullName must be a proper full name', validateFullName(fullName)); - - if (this.factoryCache[normalizedName]) { - throw new Error('Attempted to register a factoryInjection for a type that has already ' + - 'been looked up. (\'' + normalizedName + '\', \'' + property + '\', \'' + injectionName + '\')'); - } - - addInjection(initRules(this.factoryInjections, normalizedName), property, normalizedInjectionName); - }, - - /** - A depth first traversal, destroying the container, its descendant containers and all - their managed objects. - - @method destroy - */ - destroy: function() { - for (var i = 0, length = this.children.length; i < length; i++) { - this.children[i].destroy(); - } - - this.children = []; - - eachDestroyable(this, function(item) { - item.destroy(); - }); - - this.parent = undefined; - this.isDestroyed = true; - }, - - /** - @method reset - */ - reset: function() { - for (var i = 0, length = this.children.length; i < length; i++) { - resetCache(this.children[i]); - } - - resetCache(this); - } - }; - - function resolve(container, normalizedName) { - var cached = container.resolveCache[normalizedName]; - if (cached) { return cached; } - - var resolved = container.resolver(normalizedName) || container.registry[normalizedName]; - container.resolveCache[normalizedName] = resolved; - - return resolved; - } - - function has(container, fullName){ - if (container.cache[fullName]) { - return true; - } - - return container.resolve(fullName) !== undefined; - } - - function lookup(container, fullName, options) { - options = options || {}; - - if (container.cache[fullName] && options.singleton !== false) { - return container.cache[fullName]; - } - - var value = instantiate(container, fullName); - - if (value === undefined) { return; } - - if (isSingleton(container, fullName) && options.singleton !== false) { - container.cache[fullName] = value; - } - - return value; - } - - function illegalChildOperation(operation) { - throw new Error(operation + ' is not currently supported on child containers'); - } - - function isSingleton(container, fullName) { - var singleton = option(container, fullName, 'singleton'); - - return singleton !== false; - } - - function buildInjections(container, injections) { - var hash = {}; - - if (!injections) { return hash; } - - validateInjections(container, injections); - - var injection; - - for (var i = 0, length = injections.length; i < length; i++) { - injection = injections[i]; - hash[injection.property] = lookup(container, injection.fullName); - } - - return hash; - } - - function validateInjections(container, injections) { - if (!injections) { return; } - - var fullName; - - for (var i = 0, length = injections.length; i < length; i++) { - fullName = injections[i].fullName; - - if (!container.has(fullName)) { - throw new Error('Attempting to inject an unknown injection: `' + fullName + '`'); - } - } - } - - function option(container, fullName, optionName) { - var options = container._options[fullName]; - - if (options && options[optionName] !== undefined) { - return options[optionName]; - } - - var type = fullName.split(':')[0]; - options = container._typeOptions[type]; - - if (options) { - return options[optionName]; - } - } - - function factoryFor(container, fullName) { - var cache = container.factoryCache; - if (cache[fullName]) { - return cache[fullName]; - } - var factory = container.resolve(fullName); - if (factory === undefined) { return; } - - var type = fullName.split(':')[0]; - if (!factory || typeof factory.extend !== 'function' || (!Ember.MODEL_FACTORY_INJECTIONS && type === 'model')) { - if (factory && typeof factory._onLookup === 'function') { - factory._onLookup(fullName); - } - - // TODO: think about a 'safe' merge style extension - // for now just fallback to create time injection - cache[fullName] = factory; - return factory; - } else { - var injections = injectionsFor(container, fullName); - var factoryInjections = factoryInjectionsFor(container, fullName); - - factoryInjections._toString = container.makeToString(factory, fullName); - - var injectedFactory = factory.extend(injections); - injectedFactory.reopenClass(factoryInjections); - - if (factory && typeof factory._onLookup === 'function') { - factory._onLookup(fullName); - } - - cache[fullName] = injectedFactory; - - return injectedFactory; - } - } - - function injectionsFor(container, fullName) { - var splitName = fullName.split(':'); - var type = splitName[0]; - var injections = []; - - injections = injections.concat(container.typeInjections[type] || []); - injections = injections.concat(container.injections[fullName] || []); - - injections = buildInjections(container, injections); - injections._debugContainerKey = fullName; - injections.container = container; - - return injections; - } - - function factoryInjectionsFor(container, fullName) { - var splitName = fullName.split(':'); - var type = splitName[0]; - var factoryInjections = []; - - factoryInjections = factoryInjections.concat(container.factoryTypeInjections[type] || []); - factoryInjections = factoryInjections.concat(container.factoryInjections[fullName] || []); - - factoryInjections = buildInjections(container, factoryInjections); - factoryInjections._debugContainerKey = fullName; - - return factoryInjections; - } - - function normalizeInjectionsHash(hash) { - var injections = []; - - for (var key in hash) { - if (hash.hasOwnProperty(key)) { - Ember.assert("Expected a proper full name, given '" + hash[key] + "'", validateFullName(hash[key])); - - addInjection(injections, key, hash[key]); - } - } - - return injections; - } - - function instantiate(container, fullName) { - var factory = factoryFor(container, fullName); - var lazyInjections, validationCache; - - if (option(container, fullName, 'instantiate') === false) { - return factory; - } - - if (factory) { - if (typeof factory.create !== 'function') { - throw new Error('Failed to create an instance of \'' + fullName + '\'. ' + - 'Most likely an improperly defined class or an invalid module export.'); - } - - - validationCache = container.validationCache; - - // Ensure that all lazy injections are valid at instantiation time - if (!validationCache[fullName] && typeof factory._lazyInjections === 'function') { - lazyInjections = factory._lazyInjections(); - - validateInjections(container, normalizeInjectionsHash(lazyInjections)); - } - - validationCache[fullName] = true; - - - if (typeof factory.extend === 'function') { - // assume the factory was extendable and is already injected - return factory.create(); - } else { - // assume the factory was extendable - // to create time injections - // TODO: support new'ing for instantiation and merge injections for pure JS Functions - return factory.create(injectionsFor(container, fullName)); - } - } - } - - function eachDestroyable(container, callback) { - var cache = container.cache; - var keys = emberKeys(cache); - var key, value; - - for (var i = 0, l = keys.length; i < l; i++) { - key = keys[i]; - value = cache[key]; - - if (option(container, key, 'instantiate') !== false) { - callback(value); - } - } - } - - function resetCache(container) { - eachDestroyable(container, function(value) { - value.destroy(); - }); - - container.cache.dict = dictionary(null); - } - - function addTypeInjection(rules, type, property, fullName) { - var injections = rules[type]; - - if (!injections) { - injections = []; - rules[type] = injections; - } - - injections.push({ - property: property, - fullName: fullName - }); - } - - var VALID_FULL_NAME_REGEXP = /^[^:]+.+:[^:]+$/; - function validateFullName(fullName) { - if (!VALID_FULL_NAME_REGEXP.test(fullName)) { - throw new TypeError('Invalid Fullname, expected: `type:name` got: ' + fullName); - } - return true; - } - - function initRules(rules, factoryName) { - return rules[factoryName] || (rules[factoryName] = []); - } - - function addInjection(injections, property, injectionName) { - injections.push({ - property: property, - fullName: injectionName - }); - } - - __exports__["default"] = Container; - }); -enifed("dag-map", - ["exports"], - function(__exports__) { - "use strict"; - function visit(vertex, fn, visited, path) { - var name = vertex.name; - var vertices = vertex.incoming; - var names = vertex.incomingNames; - var len = names.length; - var i; - - if (!visited) { - visited = {}; - } - if (!path) { - path = []; - } - if (visited.hasOwnProperty(name)) { - return; - } - path.push(name); - visited[name] = true; - for (i = 0; i < len; i++) { - visit(vertices[names[i]], fn, visited, path); - } - fn(vertex, path); - path.pop(); - } - - - /** - * DAG stands for Directed acyclic graph. - * - * It is used to build a graph of dependencies checking that there isn't circular - * dependencies. p.e Registering initializers with a certain precedence order. - * - * @class DAG - * @constructor - */ - function DAG() { - this.names = []; - this.vertices = Object.create(null); - } - - /** - * DAG Vertex - * - * @class Vertex - * @constructor - */ - - function Vertex(name) { - this.name = name; - this.incoming = {}; - this.incomingNames = []; - this.hasOutgoing = false; - this.value = null; - } - - /** - * Adds a vertex entry to the graph unless it is already added. - * - * @private - * @method add - * @param {String} name The name of the vertex to add - */ - DAG.prototype.add = function(name) { - if (!name) { - throw new Error("Can't add Vertex without name"); - } - if (this.vertices[name] !== undefined) { - return this.vertices[name]; - } - var vertex = new Vertex(name); - this.vertices[name] = vertex; - this.names.push(name); - return vertex; - }; - - /** - * Adds a vertex to the graph and sets its value. - * - * @private - * @method map - * @param {String} name The name of the vertex. - * @param value The value to put in the vertex. - */ - DAG.prototype.map = function(name, value) { - this.add(name).value = value; - }; - - /** - * Connects the vertices with the given names, adding them to the graph if - * necessary, only if this does not produce is any circular dependency. - * - * @private - * @method addEdge - * @param {String} fromName The name the vertex where the edge starts. - * @param {String} toName The name the vertex where the edge ends. - */ - DAG.prototype.addEdge = function(fromName, toName) { - if (!fromName || !toName || fromName === toName) { - return; - } - var from = this.add(fromName); - var to = this.add(toName); - if (to.incoming.hasOwnProperty(fromName)) { - return; - } - function checkCycle(vertex, path) { - if (vertex.name === toName) { - throw new Error("cycle detected: " + toName + " <- " + path.join(" <- ")); - } - } - visit(from, checkCycle); - from.hasOutgoing = true; - to.incoming[fromName] = from; - to.incomingNames.push(fromName); - }; - - /** - * Visits all the vertex of the graph calling the given function with each one, - * ensuring that the vertices are visited respecting their precedence. - * - * @method topsort - * @param {Function} fn The function to be invoked on each vertex. - */ - DAG.prototype.topsort = function(fn) { - var visited = {}; - var vertices = this.vertices; - var names = this.names; - var len = names.length; - var i, vertex; - - for (i = 0; i < len; i++) { - vertex = vertices[names[i]]; - if (!vertex.hasOutgoing) { - visit(vertex, fn, visited); - } - } - }; - - /** - * Adds a vertex with the given name and value to the graph and joins it with the - * vertices referenced in _before_ and _after_. If there isn't vertices with those - * names, they are added too. - * - * If either _before_ or _after_ are falsy/empty, the added vertex will not have - * an incoming/outgoing edge. - * - * @method addEdges - * @param {String} name The name of the vertex to be added. - * @param value The value of that vertex. - * @param before An string or array of strings with the names of the vertices before - * which this vertex must be visited. - * @param after An string or array of strings with the names of the vertex after - * which this vertex must be visited. - * - */ - DAG.prototype.addEdges = function(name, value, before, after) { - var i; - this.map(name, value); - if (before) { - if (typeof before === 'string') { - this.addEdge(name, before); - } else { - for (i = 0; i < before.length; i++) { - this.addEdge(name, before[i]); - } - } - } - if (after) { - if (typeof after === 'string') { - this.addEdge(after, name); - } else { - for (i = 0; i < after.length; i++) { - this.addEdge(after[i], name); - } - } - } - }; - - __exports__["default"] = DAG; - }); -enifed("dag-map.umd", - ["./dag-map"], - function(__dependency1__) { - "use strict"; - var DAG = __dependency1__["default"]; - - /* global define:true module:true window: true */ - if (typeof enifed === 'function' && enifed.amd) { - enifed(function() { return DAG; }); - } else if (typeof module !== 'undefined' && module.exports) { - module.exports = DAG; - } else if (typeof this !== 'undefined') { - this['DAG'] = DAG; - } - }); -enifed("ember-application", - ["ember-metal/core","ember-runtime/system/lazy_load","ember-application/system/resolver","ember-application/system/application","ember-application/ext/controller"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__) { - "use strict"; - var Ember = __dependency1__["default"]; - var runLoadHooks = __dependency2__.runLoadHooks; - - /** - Ember Application - - @module ember - @submodule ember-application - @requires ember-views, ember-routing - */ - - var Resolver = __dependency3__.Resolver; - var DefaultResolver = __dependency3__["default"]; - var Application = __dependency4__["default"]; - // side effect of extending ControllerMixin - - Ember.Application = Application; - Ember.Resolver = Resolver; - Ember.DefaultResolver = DefaultResolver; - - runLoadHooks('Ember.Application', Application); - }); -enifed("ember-application/ext/controller", - ["ember-metal/core","ember-metal/property_get","ember-metal/error","ember-metal/utils","ember-metal/computed","ember-runtime/mixins/controller","ember-routing/system/controller_for","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-application - */ - - var Ember = __dependency1__["default"]; - // Ember.assert - var get = __dependency2__.get; - var EmberError = __dependency3__["default"]; - var inspect = __dependency4__.inspect; - var computed = __dependency5__.computed; - var ControllerMixin = __dependency6__["default"]; - var meta = __dependency4__.meta; - var controllerFor = __dependency7__["default"]; - - function verifyNeedsDependencies(controller, container, needs) { - var dependency, i, l; - var missing = []; - - for (i=0, l=needs.length; i 1 ? 'they' : 'it') + " could not be found"); - } - } - - var defaultControllersComputedProperty = computed(function() { - var controller = this; - - return { - needs: get(controller, 'needs'), - container: get(controller, 'container'), - unknownProperty: function(controllerName) { - var needs = this.needs; - var dependency, i, l; - - for (i=0, l=needs.length; i 0) { - Ember.assert(' `' + inspect(this) + ' specifies `needs`, but does ' + - "not have a container. Please ensure this controller was " + - "instantiated with a container.", - this.container || meta(this, false).descs.controllers !== defaultControllersComputedProperty); - - if (this.container) { - verifyNeedsDependencies(this, this.container, needs); - } - - // if needs then initialize controllers proxy - get(this, 'controllers'); - } - - this._super.apply(this, arguments); - }, - - /** - @method controllerFor - @see {Ember.Route#controllerFor} - @deprecated Use `needs` instead - */ - controllerFor: function(controllerName) { - Ember.deprecate("Controller#controllerFor is deprecated, please use Controller#needs instead"); - return controllerFor(get(this, 'container'), controllerName); - }, - - /** - Stores the instances of other controllers available from within - this controller. Any controller listed by name in the `needs` - property will be accessible by name through this property. - - ```javascript - App.CommentsController = Ember.ArrayController.extend({ - needs: ['post'], - postTitle: function(){ - var currentPost = this.get('controllers.post'); // instance of App.PostController - return currentPost.get('title'); - }.property('controllers.post.title') - }); - ``` - - @see {Ember.ControllerMixin#needs} - @property {Object} controllers - @default null - */ - controllers: defaultControllersComputedProperty - }); - - __exports__["default"] = ControllerMixin; - }); -enifed("ember-application/system/application", - ["dag-map","container/container","ember-metal","ember-metal/property_get","ember-metal/property_set","ember-runtime/system/lazy_load","ember-runtime/system/namespace","ember-runtime/mixins/deferred","ember-application/system/resolver","ember-metal/platform","ember-metal/run_loop","ember-metal/utils","ember-runtime/controllers/controller","ember-metal/enumerable_utils","ember-runtime/controllers/object_controller","ember-runtime/controllers/array_controller","ember-views/views/select","ember-views/system/event_dispatcher","ember-views/system/jquery","ember-routing/system/route","ember-routing/system/router","ember-routing/location/hash_location","ember-routing/location/history_location","ember-routing/location/auto_location","ember-routing/location/none_location","ember-routing/system/cache","ember-extension-support/container_debug_adapter","ember-metal/core","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __dependency18__, __dependency19__, __dependency20__, __dependency21__, __dependency22__, __dependency23__, __dependency24__, __dependency25__, __dependency26__, __dependency27__, __dependency28__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-application - */ - var DAG = __dependency1__["default"]; - var Container = __dependency2__["default"]; - - - var Ember = __dependency3__["default"]; - // Ember.FEATURES, Ember.deprecate, Ember.assert, Ember.libraries, LOG_VERSION, Namespace, BOOTED - var get = __dependency4__.get; - var set = __dependency5__.set; - var runLoadHooks = __dependency6__.runLoadHooks; - var Namespace = __dependency7__["default"]; - var DeferredMixin = __dependency8__["default"]; - var DefaultResolver = __dependency9__["default"]; - var create = __dependency10__.create; - var run = __dependency11__["default"]; - var canInvoke = __dependency12__.canInvoke; - var Controller = __dependency13__["default"]; - var EnumerableUtils = __dependency14__["default"]; - var ObjectController = __dependency15__["default"]; - var ArrayController = __dependency16__["default"]; - var SelectView = __dependency17__["default"]; - var EventDispatcher = __dependency18__["default"]; - var jQuery = __dependency19__["default"]; - var Route = __dependency20__["default"]; - var Router = __dependency21__["default"]; - var HashLocation = __dependency22__["default"]; - var HistoryLocation = __dependency23__["default"]; - var AutoLocation = __dependency24__["default"]; - var NoneLocation = __dependency25__["default"]; - var BucketCache = __dependency26__["default"]; - - // this is technically incorrect (per @wycats) - // it should work properly with: - // `import ContainerDebugAdapter from 'ember-extension-support/container_debug_adapter';` but - // es6-module-transpiler 0.4.0 eagerly grabs the module (which is undefined) - - var ContainerDebugAdapter = __dependency27__["default"]; - - var K = __dependency28__.K; - - function props(obj) { - var properties = []; - - for (var key in obj) { - properties.push(key); - } - - return properties; - } - - var librariesRegistered = false; - - /** - An instance of `Ember.Application` is the starting point for every Ember - application. It helps to instantiate, initialize and coordinate the many - objects that make up your app. - - Each Ember app has one and only one `Ember.Application` object. In fact, the - very first thing you should do in your application is create the instance: - - ```javascript - window.App = Ember.Application.create(); - ``` - - Typically, the application object is the only global variable. All other - classes in your app should be properties on the `Ember.Application` instance, - which highlights its first role: a global namespace. - - For example, if you define a view class, it might look like this: - - ```javascript - App.MyView = Ember.View.extend(); - ``` - - By default, calling `Ember.Application.create()` will automatically initialize - your application by calling the `Ember.Application.initialize()` method. If - you need to delay initialization, you can call your app's `deferReadiness()` - method. When you are ready for your app to be initialized, call its - `advanceReadiness()` method. - - You can define a `ready` method on the `Ember.Application` instance, which - will be run by Ember when the application is initialized. - - Because `Ember.Application` inherits from `Ember.Namespace`, any classes - you create will have useful string representations when calling `toString()`. - See the `Ember.Namespace` documentation for more information. - - While you can think of your `Ember.Application` as a container that holds the - other classes in your application, there are several other responsibilities - going on under-the-hood that you may want to understand. - - ### Event Delegation - - Ember uses a technique called _event delegation_. This allows the framework - to set up a global, shared event listener instead of requiring each view to - do it manually. For example, instead of each view registering its own - `mousedown` listener on its associated element, Ember sets up a `mousedown` - listener on the `body`. - - If a `mousedown` event occurs, Ember will look at the target of the event and - start walking up the DOM node tree, finding corresponding views and invoking - their `mouseDown` method as it goes. - - `Ember.Application` has a number of default events that it listens for, as - well as a mapping from lowercase events to camel-cased view method names. For - example, the `keypress` event causes the `keyPress` method on the view to be - called, the `dblclick` event causes `doubleClick` to be called, and so on. - - If there is a bubbling browser event that Ember does not listen for by - default, you can specify custom events and their corresponding view method - names by setting the application's `customEvents` property: - - ```javascript - var App = Ember.Application.create({ - customEvents: { - // add support for the paste event - paste: 'paste' - } - }); - ``` - - By default, the application sets up these event listeners on the document - body. However, in cases where you are embedding an Ember application inside - an existing page, you may want it to set up the listeners on an element - inside the body. - - For example, if only events inside a DOM element with the ID of `ember-app` - should be delegated, set your application's `rootElement` property: - - ```javascript - var App = Ember.Application.create({ - rootElement: '#ember-app' - }); - ``` - - The `rootElement` can be either a DOM element or a jQuery-compatible selector - string. Note that *views appended to the DOM outside the root element will - not receive events.* If you specify a custom root element, make sure you only - append views inside it! - - To learn more about the advantages of event delegation and the Ember view - layer, and a list of the event listeners that are setup by default, visit the - [Ember View Layer guide](http://emberjs.com/guides/understanding-ember/the-view-layer/#toc_event-delegation). - - ### Initializers - - Libraries on top of Ember can add initializers, like so: - - ```javascript - Ember.Application.initializer({ - name: 'api-adapter', - - initialize: function(container, application) { - application.register('api-adapter:main', ApiAdapter); - } - }); - ``` - - Initializers provide an opportunity to access the container, which - organizes the different components of an Ember application. Additionally - they provide a chance to access the instantiated application. Beyond - being used for libraries, initializers are also a great way to organize - dependency injection or setup in your own application. - - ### Routing - - In addition to creating your application's router, `Ember.Application` is - also responsible for telling the router when to start routing. Transitions - between routes can be logged with the `LOG_TRANSITIONS` flag, and more - detailed intra-transition logging can be logged with - the `LOG_TRANSITIONS_INTERNAL` flag: - - ```javascript - var App = Ember.Application.create({ - LOG_TRANSITIONS: true, // basic logging of successful transitions - LOG_TRANSITIONS_INTERNAL: true // detailed logging of all routing steps - }); - ``` - - By default, the router will begin trying to translate the current URL into - application state once the browser emits the `DOMContentReady` event. If you - need to defer routing, you can call the application's `deferReadiness()` - method. Once routing can begin, call the `advanceReadiness()` method. - - If there is any setup required before routing begins, you can implement a - `ready()` method on your app that will be invoked immediately before routing - begins. - - @class Application - @namespace Ember - @extends Ember.Namespace - */ - - var Application = Namespace.extend(DeferredMixin, { - _suppressDeferredDeprecation: true, - - /** - The root DOM element of the Application. This can be specified as an - element or a - [jQuery-compatible selector string](http://api.jquery.com/category/selectors/). - - This is the element that will be passed to the Application's, - `eventDispatcher`, which sets up the listeners for event delegation. Every - view in your application should be a child of the element you specify here. - - @property rootElement - @type DOMElement - @default 'body' - */ - rootElement: 'body', - - /** - The `Ember.EventDispatcher` responsible for delegating events to this - application's views. - - The event dispatcher is created by the application at initialization time - and sets up event listeners on the DOM element described by the - application's `rootElement` property. - - See the documentation for `Ember.EventDispatcher` for more information. - - @property eventDispatcher - @type Ember.EventDispatcher - @default null - */ - eventDispatcher: null, - - /** - The DOM events for which the event dispatcher should listen. - - By default, the application's `Ember.EventDispatcher` listens - for a set of standard DOM events, such as `mousedown` and - `keyup`, and delegates them to your application's `Ember.View` - instances. - - If you would like additional bubbling events to be delegated to your - views, set your `Ember.Application`'s `customEvents` property - to a hash containing the DOM event name as the key and the - corresponding view method name as the value. For example: - - ```javascript - var App = Ember.Application.create({ - customEvents: { - // add support for the paste event - paste: 'paste' - } - }); - ``` - - @property customEvents - @type Object - @default null - */ - customEvents: null, - - init: function() { - // Start off the number of deferrals at 1. This will be - // decremented by the Application's own `initialize` method. - this._readinessDeferrals = 1; - - if (!this.$) { - this.$ = jQuery; - } - this.__container__ = this.buildContainer(); - - this.Router = this.defaultRouter(); - - this._super(); - - this.scheduleInitialize(); - - if (!librariesRegistered) { - librariesRegistered = true; - Ember.libraries.registerCoreLibrary('jQuery', jQuery().jquery); - } - - if (Ember.LOG_VERSION) { - // we only need to see this once per Application#init - Ember.LOG_VERSION = false; - var libs = Ember.libraries._registry; - - var nameLengths = EnumerableUtils.map(libs, function(item) { - return get(item, 'name.length'); - }); - - var maxNameLength = Math.max.apply(this, nameLengths); - - Ember.debug('-------------------------------'); - for (var i = 0, l = libs.length; i < l; i++) { - var lib = libs[i]; - var spaces = new Array(maxNameLength - lib.name.length + 1).join(' '); - Ember.debug([lib.name, spaces, ' : ', lib.version].join('')); - } - Ember.debug('-------------------------------'); - } - }, - - /** - Build the container for the current application. - - Also register a default application view in case the application - itself does not. - - @private - @method buildContainer - @return {Ember.Container} the configured container - */ - buildContainer: function() { - var container = this.__container__ = Application.buildContainer(this); - - return container; - }, - - /** - If the application has not opted out of routing and has not explicitly - defined a router, supply a default router for the application author - to configure. - - This allows application developers to do: - - ```javascript - var App = Ember.Application.create(); - - App.Router.map(function() { - this.resource('posts'); - }); - ``` - - @private - @method defaultRouter - @return {Ember.Router} the default router - */ - - defaultRouter: function() { - if (this.Router === false) { return; } - var container = this.__container__; - - if (this.Router) { - container.unregister('router:main'); - container.register('router:main', this.Router); - } - - return container.lookupFactory('router:main'); - }, - - /** - Automatically initialize the application once the DOM has - become ready. - - The initialization itself is scheduled on the actions queue - which ensures that application loading finishes before - booting. - - If you are asynchronously loading code, you should call - `deferReadiness()` to defer booting, and then call - `advanceReadiness()` once all of your code has finished - loading. - - @private - @method scheduleInitialize - */ - scheduleInitialize: function() { - if (!this.$ || this.$.isReady) { - run.schedule('actions', this, '_initialize'); - } else { - this.$().ready(Ember.run.bind(this, '_initialize')); - } - }, - - /** - Use this to defer readiness until some condition is true. - - Example: - - ```javascript - var App = Ember.Application.create(); - - App.deferReadiness(); - // Ember.$ is a reference to the jQuery object/function - Ember.$.getJSON('/auth-token', function(token) { - App.token = token; - App.advanceReadiness(); - }); - ``` - - This allows you to perform asynchronous setup logic and defer - booting your application until the setup has finished. - - However, if the setup requires a loading UI, it might be better - to use the router for this purpose. - - @method deferReadiness - */ - deferReadiness: function() { - Ember.assert("You must call deferReadiness on an instance of Ember.Application", this instanceof Application); - Ember.assert("You cannot defer readiness since the `ready()` hook has already been called.", this._readinessDeferrals > 0); - this._readinessDeferrals++; - }, - - /** - Call `advanceReadiness` after any asynchronous setup logic has completed. - Each call to `deferReadiness` must be matched by a call to `advanceReadiness` - or the application will never become ready and routing will not begin. - - @method advanceReadiness - @see {Ember.Application#deferReadiness} - */ - advanceReadiness: function() { - Ember.assert("You must call advanceReadiness on an instance of Ember.Application", this instanceof Application); - this._readinessDeferrals--; - - if (this._readinessDeferrals === 0) { - run.once(this, this.didBecomeReady); - } - }, - - /** - Registers a factory that can be used for dependency injection (with - `App.inject`) or for service lookup. Each factory is registered with - a full name including two parts: `type:name`. - - A simple example: - - ```javascript - var App = Ember.Application.create(); - - App.Orange = Ember.Object.extend(); - App.register('fruit:favorite', App.Orange); - ``` - - Ember will resolve factories from the `App` namespace automatically. - For example `App.CarsController` will be discovered and returned if - an application requests `controller:cars`. - - An example of registering a controller with a non-standard name: - - ```javascript - var App = Ember.Application.create(); - var Session = Ember.Controller.extend(); - - App.register('controller:session', Session); - - // The Session controller can now be treated like a normal controller, - // despite its non-standard name. - App.ApplicationController = Ember.Controller.extend({ - needs: ['session'] - }); - ``` - - Registered factories are **instantiated** by having `create` - called on them. Additionally they are **singletons**, each time - they are looked up they return the same instance. - - Some examples modifying that default behavior: - - ```javascript - var App = Ember.Application.create(); - - App.Person = Ember.Object.extend(); - App.Orange = Ember.Object.extend(); - App.Email = Ember.Object.extend(); - App.session = Ember.Object.create(); - - App.register('model:user', App.Person, { singleton: false }); - App.register('fruit:favorite', App.Orange); - App.register('communication:main', App.Email, { singleton: false }); - App.register('session', App.session, { instantiate: false }); - ``` - - @method register - @param fullName {String} type:name (e.g., 'model:user') - @param factory {Function} (e.g., App.Person) - @param options {Object} (optional) disable instantiation or singleton usage - **/ - register: function() { - var container = this.__container__; - container.register.apply(container, arguments); - }, - - /** - Define a dependency injection onto a specific factory or all factories - of a type. - - When Ember instantiates a controller, view, or other framework component - it can attach a dependency to that component. This is often used to - provide services to a set of framework components. - - An example of providing a session object to all controllers: - - ```javascript - var App = Ember.Application.create(); - var Session = Ember.Object.extend({ isAuthenticated: false }); - - // A factory must be registered before it can be injected - App.register('session:main', Session); - - // Inject 'session:main' onto all factories of the type 'controller' - // with the name 'session' - App.inject('controller', 'session', 'session:main'); - - App.IndexController = Ember.Controller.extend({ - isLoggedIn: Ember.computed.alias('session.isAuthenticated') - }); - ``` - - Injections can also be performed on specific factories. - - ```javascript - App.inject(, , ) - App.inject('route', 'source', 'source:main') - App.inject('route:application', 'email', 'model:email') - ``` - - It is important to note that injections can only be performed on - classes that are instantiated by Ember itself. Instantiating a class - directly (via `create` or `new`) bypasses the dependency injection - system. - - **Note:** Ember-Data instantiates its models in a unique manner, and consequently - injections onto models (or all models) will not work as expected. Injections - on models can be enabled by setting `Ember.MODEL_FACTORY_INJECTIONS` - to `true`. - - @method inject - @param factoryNameOrType {String} - @param property {String} - @param injectionName {String} - **/ - inject: function() { - var container = this.__container__; - container.injection.apply(container, arguments); - }, - - /** - Calling initialize manually is not supported. - - Please see Ember.Application#advanceReadiness and - Ember.Application#deferReadiness. - - @private - @deprecated - @method initialize - **/ - initialize: function() { - Ember.deprecate('Calling initialize manually is not supported. Please see Ember.Application#advanceReadiness and Ember.Application#deferReadiness'); - }, - - /** - Initialize the application. This happens automatically. - - Run any initializers and run the application load hook. These hooks may - choose to defer readiness. For example, an authentication hook might want - to defer readiness until the auth token has been retrieved. - - @private - @method _initialize - */ - _initialize: function() { - if (this.isDestroyed) { return; } - - // At this point, the App.Router must already be assigned - if (this.Router) { - var container = this.__container__; - container.unregister('router:main'); - container.register('router:main', this.Router); - } - - this.runInitializers(); - runLoadHooks('application', this); - - // At this point, any initializers or load hooks that would have wanted - // to defer readiness have fired. In general, advancing readiness here - // will proceed to didBecomeReady. - this.advanceReadiness(); - - return this; - }, - - /** - Reset the application. This is typically used only in tests. It cleans up - the application in the following order: - - 1. Deactivate existing routes - 2. Destroy all objects in the container - 3. Create a new application container - 4. Re-route to the existing url - - Typical Example: - - ```javascript - var App; - - run(function() { - App = Ember.Application.create(); - }); - - module('acceptance test', { - setup: function() { - App.reset(); - } - }); - - test('first test', function() { - // App is freshly reset - }); - - test('second test', function() { - // App is again freshly reset - }); - ``` - - Advanced Example: - - Occasionally you may want to prevent the app from initializing during - setup. This could enable extra configuration, or enable asserting prior - to the app becoming ready. - - ```javascript - var App; - - run(function() { - App = Ember.Application.create(); - }); - - module('acceptance test', { - setup: function() { - run(function() { - App.reset(); - App.deferReadiness(); - }); - } - }); - - test('first test', function() { - ok(true, 'something before app is initialized'); - - run(function() { - App.advanceReadiness(); - }); - - ok(true, 'something after app is initialized'); - }); - ``` - - @method reset - **/ - reset: function() { - this._readinessDeferrals = 1; - - function handleReset() { - var router = this.__container__.lookup('router:main'); - router.reset(); - - run(this.__container__, 'destroy'); - - this.buildContainer(); - - run.schedule('actions', this, '_initialize'); - } - - run.join(this, handleReset); - }, - - /** - @private - @method runInitializers - */ - runInitializers: function() { - var initializersByName = get(this.constructor, 'initializers'); - var initializers = props(initializersByName); - var container = this.__container__; - var graph = new DAG(); - var namespace = this; - var initializer; - - for (var i = 0; i < initializers.length; i++) { - initializer = initializersByName[initializers[i]]; - graph.addEdges(initializer.name, initializer.initialize, initializer.before, initializer.after); - } - - graph.topsort(function (vertex) { - var initializer = vertex.value; - Ember.assert("No application initializer named '" + vertex.name + "'", !!initializer); - initializer(container, namespace); - }); - }, - - /** - @private - @method didBecomeReady - */ - didBecomeReady: function() { - this.setupEventDispatcher(); - this.ready(); // user hook - this.startRouting(); - - if (!Ember.testing) { - // Eagerly name all classes that are already loaded - Ember.Namespace.processAll(); - Ember.BOOTED = true; - } - - this.resolve(this); - }, - - /** - Setup up the event dispatcher to receive events on the - application's `rootElement` with any registered - `customEvents`. - - @private - @method setupEventDispatcher - */ - setupEventDispatcher: function() { - var customEvents = get(this, 'customEvents'); - var rootElement = get(this, 'rootElement'); - var dispatcher = this.__container__.lookup('event_dispatcher:main'); - - set(this, 'eventDispatcher', dispatcher); - dispatcher.setup(customEvents, rootElement); - }, - - /** - If the application has a router, use it to route to the current URL, and - trigger a new call to `route` whenever the URL changes. - - @private - @method startRouting - @property router {Ember.Router} - */ - startRouting: function() { - var router = this.__container__.lookup('router:main'); - if (!router) { return; } - - router.startRouting(); - }, - - handleURL: function(url) { - var router = this.__container__.lookup('router:main'); - - router.handleURL(url); - }, - - /** - Called when the Application has become ready. - The call will be delayed until the DOM has become ready. - - @event ready - */ - ready: K, - - /** - @deprecated Use 'Resolver' instead - Set this to provide an alternate class to `Ember.DefaultResolver` - - - @property resolver - */ - resolver: null, - - /** - Set this to provide an alternate class to `Ember.DefaultResolver` - - @property resolver - */ - Resolver: null, - - willDestroy: function() { - Ember.BOOTED = false; - // Ensure deactivation of routes before objects are destroyed - this.__container__.lookup('router:main').reset(); - - this.__container__.destroy(); - }, - - initializer: function(options) { - this.constructor.initializer(options); - }, - - /** - @method then - @private - @deprecated - */ - then: function() { - Ember.deprecate('Do not use `.then` on an instance of Ember.Application. Please use the `.ready` hook instead.', false, { url: 'http://emberjs.com/guides/deprecations/#toc_deprecate-code-then-code-on-ember-application' }); - - this._super.apply(this, arguments); - } - }); - - Application.reopenClass({ - initializers: create(null), - - /** - Initializer receives an object which has the following attributes: - `name`, `before`, `after`, `initialize`. The only required attribute is - `initialize, all others are optional. - - * `name` allows you to specify under which name the initializer is registered. - This must be a unique name, as trying to register two initializers with the - same name will result in an error. - - ```javascript - Ember.Application.initializer({ - name: 'namedInitializer', - - initialize: function(container, application) { - Ember.debug('Running namedInitializer!'); - } - }); - ``` - - * `before` and `after` are used to ensure that this initializer is ran prior - or after the one identified by the value. This value can be a single string - or an array of strings, referencing the `name` of other initializers. - - An example of ordering initializers, we create an initializer named `first`: - - ```javascript - Ember.Application.initializer({ - name: 'first', - - initialize: function(container, application) { - Ember.debug('First initializer!'); - } - }); - - // DEBUG: First initializer! - ``` - - We add another initializer named `second`, specifying that it should run - after the initializer named `first`: - - ```javascript - Ember.Application.initializer({ - name: 'second', - after: 'first', - - initialize: function(container, application) { - Ember.debug('Second initializer!'); - } - }); - - // DEBUG: First initializer! - // DEBUG: Second initializer! - ``` - - Afterwards we add a further initializer named `pre`, this time specifying - that it should run before the initializer named `first`: - - ```javascript - Ember.Application.initializer({ - name: 'pre', - before: 'first', - - initialize: function(container, application) { - Ember.debug('Pre initializer!'); - } - }); - - // DEBUG: Pre initializer! - // DEBUG: First initializer! - // DEBUG: Second initializer! - ``` - - Finally we add an initializer named `post`, specifying it should run after - both the `first` and the `second` initializers: - - ```javascript - Ember.Application.initializer({ - name: 'post', - after: ['first', 'second'], - - initialize: function(container, application) { - Ember.debug('Post initializer!'); - } - }); - - // DEBUG: Pre initializer! - // DEBUG: First initializer! - // DEBUG: Second initializer! - // DEBUG: Post initializer! - ``` - - * `initialize` is a callback function that receives two arguments, `container` - and `application` on which you can operate. - - Example of using `container` to preload data into the store: - - ```javascript - Ember.Application.initializer({ - name: 'preload-data', - - initialize: function(container, application) { - var store = container.lookup('store:main'); - - store.pushPayload(preloadedData); - } - }); - ``` - - Example of using `application` to register an adapter: - - ```javascript - Ember.Application.initializer({ - name: 'api-adapter', - - initialize: function(container, application) { - application.register('api-adapter:main', ApiAdapter); - } - }); - ``` - - @method initializer - @param initializer {Object} - */ - initializer: function(initializer) { - // If this is the first initializer being added to a subclass, we are going to reopen the class - // to make sure we have a new `initializers` object, which extends from the parent class' using - // prototypal inheritance. Without this, attempting to add initializers to the subclass would - // pollute the parent class as well as other subclasses. - if (this.superclass.initializers !== undefined && this.superclass.initializers === this.initializers) { - this.reopenClass({ - initializers: create(this.initializers) - }); - } - - Ember.assert("The initializer '" + initializer.name + "' has already been registered", !this.initializers[initializer.name]); - Ember.assert("An initializer cannot be registered without an initialize function", canInvoke(initializer, 'initialize')); - Ember.assert("An initializer cannot be registered without a name property", initializer.name !== undefined); - - this.initializers[initializer.name] = initializer; - }, - - /** - This creates a container with the default Ember naming conventions. - - It also configures the container: - - * registered views are created every time they are looked up (they are - not singletons) - * registered templates are not factories; the registered value is - returned directly. - * the router receives the application as its `namespace` property - * all controllers receive the router as their `target` and `controllers` - properties - * all controllers receive the application as their `namespace` property - * the application view receives the application controller as its - `controller` property - * the application view receives the application template as its - `defaultTemplate` property - - @private - @method buildContainer - @static - @param {Ember.Application} namespace the application to build the - container for. - @return {Ember.Container} the built container - */ - buildContainer: function(namespace) { - var container = new Container(); - - container.set = set; - container.resolver = resolverFor(namespace); - container.normalizeFullName = container.resolver.normalize; - container.describe = container.resolver.describe; - container.makeToString = container.resolver.makeToString; - - container.optionsForType('component', { singleton: false }); - container.optionsForType('view', { singleton: false }); - container.optionsForType('template', { instantiate: false }); - container.optionsForType('helper', { instantiate: false }); - - container.register('application:main', namespace, { instantiate: false }); - - container.register('controller:basic', Controller, { instantiate: false }); - container.register('controller:object', ObjectController, { instantiate: false }); - container.register('controller:array', ArrayController, { instantiate: false }); - - container.register('view:select', SelectView); - - container.register('route:basic', Route, { instantiate: false }); - container.register('event_dispatcher:main', EventDispatcher); - - container.register('router:main', Router); - container.injection('router:main', 'namespace', 'application:main'); - - container.register('location:auto', AutoLocation); - container.register('location:hash', HashLocation); - container.register('location:history', HistoryLocation); - container.register('location:none', NoneLocation); - - container.injection('controller', 'target', 'router:main'); - container.injection('controller', 'namespace', 'application:main'); - - container.register('-bucket-cache:main', BucketCache); - container.injection('router', '_bucketCache', '-bucket-cache:main'); - container.injection('route', '_bucketCache', '-bucket-cache:main'); - container.injection('controller', '_bucketCache', '-bucket-cache:main'); - - container.injection('route', 'router', 'router:main'); - container.injection('location', 'rootURL', '-location-setting:root-url'); - - // DEBUGGING - container.register('resolver-for-debugging:main', container.resolver.__resolver__, { instantiate: false }); - container.injection('container-debug-adapter:main', 'resolver', 'resolver-for-debugging:main'); - container.injection('data-adapter:main', 'containerDebugAdapter', 'container-debug-adapter:main'); - // Custom resolver authors may want to register their own ContainerDebugAdapter with this key - - container.register('container-debug-adapter:main', ContainerDebugAdapter); - - return container; - } - }); - - /** - This function defines the default lookup rules for container lookups: - - * templates are looked up on `Ember.TEMPLATES` - * other names are looked up on the application after classifying the name. - For example, `controller:post` looks up `App.PostController` by default. - * if the default lookup fails, look for registered classes on the container - - This allows the application to register default injections in the container - that could be overridden by the normal naming convention. - - @private - @method resolverFor - @param {Ember.Namespace} namespace the namespace to look for classes - @return {*} the resolved value for a given lookup - */ - function resolverFor(namespace) { - Ember.deprecate('Application.resolver is deprecated in favor of Application.Resolver', !namespace.get('resolver')); - - var ResolverClass = namespace.get('resolver') || namespace.get('Resolver') || DefaultResolver; - var resolver = ResolverClass.create({ - namespace: namespace - }); - - function resolve(fullName) { - return resolver.resolve(fullName); - } - - resolve.describe = function(fullName) { - return resolver.lookupDescription(fullName); - }; - - resolve.makeToString = function(factory, fullName) { - return resolver.makeToString(factory, fullName); - }; - - resolve.normalize = function(fullName) { - if (resolver.normalize) { - return resolver.normalize(fullName); - } else { - Ember.deprecate('The Resolver should now provide a \'normalize\' function', false); - return fullName; - } - }; - - resolve.__resolver__ = resolver; - - return resolve; - } - - __exports__["default"] = Application; - }); -enifed("ember-application/system/resolver", - ["ember-metal/core","ember-metal/property_get","ember-metal/logger","ember-runtime/system/string","ember-runtime/system/object","ember-runtime/system/namespace","ember-htmlbars/helpers","ember-metal/dictionary","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-application - */ - - var Ember = __dependency1__["default"]; - // Ember.TEMPLATES, Ember.assert - var get = __dependency2__.get; - var Logger = __dependency3__["default"]; - var classify = __dependency4__.classify; - var capitalize = __dependency4__.capitalize; - var decamelize = __dependency4__.decamelize; - var EmberObject = __dependency5__["default"]; - var Namespace = __dependency6__["default"]; - var helpers = __dependency7__["default"]; - - var Resolver = EmberObject.extend({ - /** - This will be set to the Application instance when it is - created. - - @property namespace - */ - namespace: null, - normalize: Ember.required(Function), - resolve: Ember.required(Function), - parseName: Ember.required(Function), - lookupDescription: Ember.required(Function), - makeToString: Ember.required(Function), - resolveOther: Ember.required(Function), - _logLookup: Ember.required(Function) - }); - __exports__.Resolver = Resolver; - /** - The DefaultResolver defines the default lookup rules to resolve - container lookups before consulting the container for registered - items: - - * templates are looked up on `Ember.TEMPLATES` - * other names are looked up on the application after converting - the name. For example, `controller:post` looks up - `App.PostController` by default. - * there are some nuances (see examples below) - - ### How Resolving Works - - The container calls this object's `resolve` method with the - `fullName` argument. - - It first parses the fullName into an object using `parseName`. - - Then it checks for the presence of a type-specific instance - method of the form `resolve[Type]` and calls it if it exists. - For example if it was resolving 'template:post', it would call - the `resolveTemplate` method. - - Its last resort is to call the `resolveOther` method. - - The methods of this object are designed to be easy to override - in a subclass. For example, you could enhance how a template - is resolved like so: - - ```javascript - App = Ember.Application.create({ - Resolver: Ember.DefaultResolver.extend({ - resolveTemplate: function(parsedName) { - var resolvedTemplate = this._super(parsedName); - if (resolvedTemplate) { return resolvedTemplate; } - return Ember.TEMPLATES['not_found']; - } - }) - }); - ``` - - Some examples of how names are resolved: - - ``` - 'template:post' //=> Ember.TEMPLATES['post'] - 'template:posts/byline' //=> Ember.TEMPLATES['posts/byline'] - 'template:posts.byline' //=> Ember.TEMPLATES['posts/byline'] - 'template:blogPost' //=> Ember.TEMPLATES['blogPost'] - // OR - // Ember.TEMPLATES['blog_post'] - 'controller:post' //=> App.PostController - 'controller:posts.index' //=> App.PostsIndexController - 'controller:blog/post' //=> Blog.PostController - 'controller:basic' //=> Ember.Controller - 'route:post' //=> App.PostRoute - 'route:posts.index' //=> App.PostsIndexRoute - 'route:blog/post' //=> Blog.PostRoute - 'route:basic' //=> Ember.Route - 'view:post' //=> App.PostView - 'view:posts.index' //=> App.PostsIndexView - 'view:blog/post' //=> Blog.PostView - 'view:basic' //=> Ember.View - 'foo:post' //=> App.PostFoo - 'model:post' //=> App.Post - ``` - - @class DefaultResolver - @namespace Ember - @extends Ember.Object - */ - var dictionary = __dependency8__["default"]; - - __exports__["default"] = EmberObject.extend({ - /** - This will be set to the Application instance when it is - created. - - @property namespace - */ - namespace: null, - - init: function() { - this._parseNameCache = dictionary(null); - }, - normalize: function(fullName) { - var split = fullName.split(':', 2); - var type = split[0]; - var name = split[1]; - - Ember.assert("Tried to normalize a container name without a colon (:) in it." + - " You probably tried to lookup a name that did not contain a type," + - " a colon, and a name. A proper lookup name would be `view:post`.", split.length === 2); - - if (type !== 'template') { - var result = name; - - if (result.indexOf('.') > -1) { - result = result.replace(/\.(.)/g, function(m) { - return m.charAt(1).toUpperCase(); - }); - } - - if (name.indexOf('_') > -1) { - result = result.replace(/_(.)/g, function(m) { - return m.charAt(1).toUpperCase(); - }); - } - - return type + ':' + result; - } else { - return fullName; - } - }, - - - /** - This method is called via the container's resolver method. - It parses the provided `fullName` and then looks up and - returns the appropriate template or class. - - @method resolve - @param {String} fullName the lookup string - @return {Object} the resolved factory - */ - resolve: function(fullName) { - var parsedName = this.parseName(fullName); - var resolveMethodName = parsedName.resolveMethodName; - var resolved; - - if (!(parsedName.name && parsedName.type)) { - throw new TypeError('Invalid fullName: `' + fullName + '`, must be of the form `type:name` '); - } - - if (this[resolveMethodName]) { - resolved = this[resolveMethodName](parsedName); - } - - if (!resolved) { - resolved = this.resolveOther(parsedName); - } - - if (parsedName.root && parsedName.root.LOG_RESOLVER) { - this._logLookup(resolved, parsedName); - } - - return resolved; - }, - /** - Convert the string name of the form 'type:name' to - a Javascript object with the parsed aspects of the name - broken out. - - @protected - @param {String} fullName the lookup string - @method parseName - */ - - parseName: function(fullName) { - return this._parseNameCache[fullName] || ( - this._parseNameCache[fullName] = this._parseName(fullName) - ); - }, - - _parseName: function(fullName) { - var nameParts = fullName.split(':'); - var type = nameParts[0], fullNameWithoutType = nameParts[1]; - var name = fullNameWithoutType; - var namespace = get(this, 'namespace'); - var root = namespace; - - if (type !== 'template' && name.indexOf('/') !== -1) { - var parts = name.split('/'); - name = parts[parts.length - 1]; - var namespaceName = capitalize(parts.slice(0, -1).join('.')); - root = Namespace.byName(namespaceName); - - Ember.assert('You are looking for a ' + name + ' ' + type + - ' in the ' + namespaceName + - ' namespace, but the namespace could not be found', root); - } - - return { - fullName: fullName, - type: type, - fullNameWithoutType: fullNameWithoutType, - name: name, - root: root, - resolveMethodName: 'resolve' + classify(type) - }; - }, - - /** - Returns a human-readable description for a fullName. Used by the - Application namespace in assertions to describe the - precise name of the class that Ember is looking for, rather than - container keys. - - @protected - @param {String} fullName the lookup string - @method lookupDescription - */ - lookupDescription: function(fullName) { - var parsedName = this.parseName(fullName); - var description; - - if (parsedName.type === 'template') { - return 'template at ' + parsedName.fullNameWithoutType.replace(/\./g, '/'); - } - - description = parsedName.root + '.' + classify(parsedName.name).replace(/\./g, ''); - - if (parsedName.type !== 'model') { - description += classify(parsedName.type); - } - - return description; - }, - - makeToString: function(factory, fullName) { - return factory.toString(); - }, - /** - Given a parseName object (output from `parseName`), apply - the conventions expected by `Ember.Router` - - @protected - @param {Object} parsedName a parseName object with the parsed - fullName lookup string - @method useRouterNaming - */ - useRouterNaming: function(parsedName) { - parsedName.name = parsedName.name.replace(/\./g, '_'); - if (parsedName.name === 'basic') { - parsedName.name = ''; - } - }, - /** - Look up the template in Ember.TEMPLATES - - @protected - @param {Object} parsedName a parseName object with the parsed - fullName lookup string - @method resolveTemplate - */ - resolveTemplate: function(parsedName) { - var templateName = parsedName.fullNameWithoutType.replace(/\./g, '/'); - - if (Ember.TEMPLATES[templateName]) { - return Ember.TEMPLATES[templateName]; - } - - templateName = decamelize(templateName); - if (Ember.TEMPLATES[templateName]) { - return Ember.TEMPLATES[templateName]; - } - }, - - /** - Lookup the view using `resolveOther` - - @protected - @param {Object} parsedName a parseName object with the parsed - fullName lookup string - @method resolveView - */ - resolveView: function(parsedName) { - this.useRouterNaming(parsedName); - return this.resolveOther(parsedName); - }, - - /** - Lookup the controller using `resolveOther` - - @protected - @param {Object} parsedName a parseName object with the parsed - fullName lookup string - @method resolveController - */ - resolveController: function(parsedName) { - this.useRouterNaming(parsedName); - return this.resolveOther(parsedName); - }, - /** - Lookup the route using `resolveOther` - - @protected - @param {Object} parsedName a parseName object with the parsed - fullName lookup string - @method resolveRoute - */ - resolveRoute: function(parsedName) { - this.useRouterNaming(parsedName); - return this.resolveOther(parsedName); - }, - - /** - Lookup the model on the Application namespace - - @protected - @param {Object} parsedName a parseName object with the parsed - fullName lookup string - @method resolveModel - */ - resolveModel: function(parsedName) { - var className = classify(parsedName.name); - var factory = get(parsedName.root, className); - - if (factory) { return factory; } - }, - /** - Look up the specified object (from parsedName) on the appropriate - namespace (usually on the Application) - - @protected - @param {Object} parsedName a parseName object with the parsed - fullName lookup string - @method resolveHelper - */ - resolveHelper: function(parsedName) { - return this.resolveOther(parsedName) || helpers[parsedName.fullNameWithoutType]; - }, - /** - Look up the specified object (from parsedName) on the appropriate - namespace (usually on the Application) - - @protected - @param {Object} parsedName a parseName object with the parsed - fullName lookup string - @method resolveOther - */ - resolveOther: function(parsedName) { - var className = classify(parsedName.name) + classify(parsedName.type); - var factory = get(parsedName.root, className); - if (factory) { return factory; } - }, - - /** - @method _logLookup - @param {Boolean} found - @param {Object} parsedName - @private - */ - _logLookup: function(found, parsedName) { - var symbol, padding; - - if (found) { symbol = '[✓]'; } - else { symbol = '[ ]'; } - - if (parsedName.fullName.length > 60) { - padding = '.'; - } else { - padding = new Array(60 - parsedName.fullName.length).join('.'); - } - - Logger.info(symbol, parsedName.fullName, padding, this.lookupDescription(parsedName.fullName)); - } - }); - }); -enifed("ember-debug", - ["ember-metal/core","ember-metal/error","ember-metal/logger","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - /*global __fail__*/ - - var Ember = __dependency1__["default"]; - var EmberError = __dependency2__["default"]; - var Logger = __dependency3__["default"]; - - /** - Ember Debug - - @module ember - @submodule ember-debug - */ - - /** - @class Ember - */ - - /** - Define an assertion that will throw an exception if the condition is not - met. Ember build tools will remove any calls to `Ember.assert()` when - doing a production build. Example: - - ```javascript - // Test for truthiness - Ember.assert('Must pass a valid object', obj); - - // Fail unconditionally - Ember.assert('This code path should never be run'); - ``` - - @method assert - @param {String} desc A description of the assertion. This will become - the text of the Error thrown if the assertion fails. - @param {Boolean} test Must be truthy for the assertion to pass. If - falsy, an exception will be thrown. - */ - Ember.assert = function(desc, test) { - var throwAssertion; - - if (Ember.typeOf(test) === 'function') { - throwAssertion = !test(); - } else { - throwAssertion = !test; - } - - if (throwAssertion) { - throw new EmberError("Assertion Failed: " + desc); - } - }; - - - /** - Display a warning with the provided message. Ember build tools will - remove any calls to `Ember.warn()` when doing a production build. - - @method warn - @param {String} message A warning to display. - @param {Boolean} test An optional boolean. If falsy, the warning - will be displayed. - */ - Ember.warn = function(message, test) { - if (!test) { - Logger.warn("WARNING: "+message); - if ('trace' in Logger) { - Logger.trace(); - } - } - }; - - /** - Display a debug notice. Ember build tools will remove any calls to - `Ember.debug()` when doing a production build. - - ```javascript - Ember.debug('I\'m a debug notice!'); - ``` - - @method debug - @param {String} message A debug message to display. - */ - Ember.debug = function(message) { - Logger.debug("DEBUG: "+message); - }; - - /** - Display a deprecation warning with the provided message and a stack trace - (Chrome and Firefox only). Ember build tools will remove any calls to - `Ember.deprecate()` when doing a production build. - - @method deprecate - @param {String} message A description of the deprecation. - @param {Boolean} test An optional boolean. If falsy, the deprecation - will be displayed. - @param {Object} options An optional object that can be used to pass - in a `url` to the transition guide on the emberjs.com website. - */ - Ember.deprecate = function(message, test, options) { - var noDeprecation; - - if (typeof test === 'function') { - noDeprecation = test(); - } else { - noDeprecation = test; - } - - if (noDeprecation) { return; } - - if (Ember.ENV.RAISE_ON_DEPRECATION) { throw new EmberError(message); } - - var error; - - // When using new Error, we can't do the arguments check for Chrome. Alternatives are welcome - try { __fail__.fail(); } catch (e) { error = e; } - - if (arguments.length === 3) { - Ember.assert('options argument to Ember.deprecate should be an object', options && typeof options === 'object'); - if (options.url) { - message += ' See ' + options.url + ' for more details.'; - } - } - - if (Ember.LOG_STACKTRACE_ON_DEPRECATION && error.stack) { - var stack; - var stackStr = ''; - - if (error['arguments']) { - // Chrome - stack = error.stack.replace(/^\s+at\s+/gm, ''). - replace(/^([^\(]+?)([\n$])/gm, '{anonymous}($1)$2'). - replace(/^Object.\s*\(([^\)]+)\)/gm, '{anonymous}($1)').split('\n'); - stack.shift(); - } else { - // Firefox - stack = error.stack.replace(/(?:\n@:0)?\s+$/m, ''). - replace(/^\(/gm, '{anonymous}(').split('\n'); - } - - stackStr = "\n " + stack.slice(2).join("\n "); - message = message + stackStr; - } - - Logger.warn("DEPRECATION: "+message); - }; - - - - /** - Alias an old, deprecated method with its new counterpart. - - Display a deprecation warning with the provided message and a stack trace - (Chrome and Firefox only) when the assigned method is called. - - Ember build tools will not remove calls to `Ember.deprecateFunc()`, though - no warnings will be shown in production. - - ```javascript - Ember.oldMethod = Ember.deprecateFunc('Please use the new, updated method', Ember.newMethod); - ``` - - @method deprecateFunc - @param {String} message A description of the deprecation. - @param {Function} func The new function called to replace its deprecated counterpart. - @return {Function} a new function that wrapped the original function with a deprecation warning - */ - Ember.deprecateFunc = function(message, func) { - return function() { - Ember.deprecate(message); - return func.apply(this, arguments); - }; - }; - - - /** - Run a function meant for debugging. Ember build tools will remove any calls to - `Ember.runInDebug()` when doing a production build. - - ```javascript - Ember.runInDebug(function() { - Ember.Handlebars.EachView.reopen({ - didInsertElement: function() { - console.log('I\'m happy'); - } - }); - }); - ``` - - @method runInDebug - @param {Function} func The function to be executed. - @since 1.5.0 - */ - Ember.runInDebug = function(func) { - func(); - }; - - /** - Will call `Ember.warn()` if ENABLE_ALL_FEATURES, ENABLE_OPTIONAL_FEATURES, or - any specific FEATURES flag is truthy. - - This method is called automatically in debug canary builds. - - @private - @method _warnIfUsingStrippedFeatureFlags - @return {void} - */ - function _warnIfUsingStrippedFeatureFlags(FEATURES, featuresWereStripped) { - if (featuresWereStripped) { - Ember.warn('Ember.ENV.ENABLE_ALL_FEATURES is only available in canary builds.', !Ember.ENV.ENABLE_ALL_FEATURES); - Ember.warn('Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.', !Ember.ENV.ENABLE_OPTIONAL_FEATURES); - - for (var key in FEATURES) { - if (FEATURES.hasOwnProperty(key) && key !== 'isEnabled') { - Ember.warn('FEATURE["' + key + '"] is set as enabled, but FEATURE flags are only available in canary builds.', !FEATURES[key]); - } - } - } - } - - __exports__._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags;if (!Ember.testing) { - // Complain if they're using FEATURE flags in builds other than canary - Ember.FEATURES['features-stripped-test'] = true; - var featuresWereStripped = true; - - - delete Ember.FEATURES['features-stripped-test']; - _warnIfUsingStrippedFeatureFlags(Ember.ENV.FEATURES, featuresWereStripped); - - // Inform the developer about the Ember Inspector if not installed. - var isFirefox = typeof InstallTrigger !== 'undefined'; - var isChrome = !!window.chrome && !window.opera; - - if (typeof window !== 'undefined' && (isFirefox || isChrome) && window.addEventListener) { - window.addEventListener("load", function() { - if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset.emberExtension) { - var downloadURL; - - if(isChrome) { - downloadURL = 'https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi'; - } else if(isFirefox) { - downloadURL = 'https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/'; - } - - Ember.debug('For more advanced debugging, install the Ember Inspector from ' + downloadURL); - } - }, false); - } - } - - /* - We are transitioning away from `ember.js` to `ember.debug.js` to make - it much clearer that it is only for local development purposes. - - This flag value is changed by the tooling (by a simple string replacement) - so that if `ember.js` (which must be output for backwards compat reasons) is - used a nice helpful warning message will be printed out. - */ - var runningNonEmberDebugJS = true; - __exports__.runningNonEmberDebugJS = runningNonEmberDebugJS;if (runningNonEmberDebugJS) { - Ember.warn('Please use `ember.debug.js` instead of `ember.js` for development and debugging.'); - } - }); -enifed("ember-extension-support", - ["ember-metal/core","ember-extension-support/data_adapter","ember-extension-support/container_debug_adapter"], - function(__dependency1__, __dependency2__, __dependency3__) { - "use strict"; - /** - Ember Extension Support - - @module ember - @submodule ember-extension-support - @requires ember-application - */ - - var Ember = __dependency1__["default"]; - var DataAdapter = __dependency2__["default"]; - var ContainerDebugAdapter = __dependency3__["default"]; - - Ember.DataAdapter = DataAdapter; - Ember.ContainerDebugAdapter = ContainerDebugAdapter; - }); -enifed("ember-extension-support/container_debug_adapter", - ["ember-metal/core","ember-runtime/system/native_array","ember-metal/utils","ember-runtime/system/string","ember-runtime/system/namespace","ember-runtime/system/object","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - var emberA = __dependency2__.A; - var typeOf = __dependency3__.typeOf; - var dasherize = __dependency4__.dasherize; - var classify = __dependency4__.classify; - var Namespace = __dependency5__["default"]; - var EmberObject = __dependency6__["default"]; - - /** - @module ember - @submodule ember-extension-support - */ - - /** - The `ContainerDebugAdapter` helps the container and resolver interface - with tools that debug Ember such as the - [Ember Extension](https://github.com/tildeio/ember-extension) - for Chrome and Firefox. - - This class can be extended by a custom resolver implementer - to override some of the methods with library-specific code. - - The methods likely to be overridden are: - - * `canCatalogEntriesByType` - * `catalogEntriesByType` - - The adapter will need to be registered - in the application's container as `container-debug-adapter:main` - - Example: - - ```javascript - Application.initializer({ - name: "containerDebugAdapter", - - initialize: function(container, application) { - application.register('container-debug-adapter:main', require('app/container-debug-adapter')); - } - }); - ``` - - @class ContainerDebugAdapter - @namespace Ember - @extends Ember.Object - @since 1.5.0 - */ - __exports__["default"] = EmberObject.extend({ - /** - The container of the application being debugged. - This property will be injected - on creation. - - @property container - @default null - */ - container: null, - - /** - The resolver instance of the application - being debugged. This property will be injected - on creation. - - @property resolver - @default null - */ - resolver: null, - - /** - Returns true if it is possible to catalog a list of available - classes in the resolver for a given type. - - @method canCatalogEntriesByType - @param {String} type The type. e.g. "model", "controller", "route" - @return {boolean} whether a list is available for this type. - */ - canCatalogEntriesByType: function(type) { - if (type === 'model' || type === 'template') return false; - return true; - }, - - /** - Returns the available classes a given type. - - @method catalogEntriesByType - @param {String} type The type. e.g. "model", "controller", "route" - @return {Array} An array of strings. - */ - catalogEntriesByType: function(type) { - var namespaces = emberA(Namespace.NAMESPACES), types = emberA(); - var typeSuffixRegex = new RegExp(classify(type) + "$"); - - namespaces.forEach(function(namespace) { - if (namespace !== Ember) { - for (var key in namespace) { - if (!namespace.hasOwnProperty(key)) { continue; } - if (typeSuffixRegex.test(key)) { - var klass = namespace[key]; - if (typeOf(klass) === 'class') { - types.push(dasherize(key.replace(typeSuffixRegex, ''))); - } - } - } - } - }); - return types; - } - }); - }); -enifed("ember-extension-support/data_adapter", - ["ember-metal/property_get","ember-metal/run_loop","ember-runtime/system/string","ember-runtime/system/namespace","ember-runtime/system/object","ember-runtime/system/native_array","ember-application/system/application","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) { - "use strict"; - var get = __dependency1__.get; - var run = __dependency2__["default"]; - var dasherize = __dependency3__.dasherize; - var Namespace = __dependency4__["default"]; - var EmberObject = __dependency5__["default"]; - var emberA = __dependency6__.A; - var Application = __dependency7__["default"]; - - /** - @module ember - @submodule ember-extension-support - */ - - /** - The `DataAdapter` helps a data persistence library - interface with tools that debug Ember such - as the [Ember Extension](https://github.com/tildeio/ember-extension) - for Chrome and Firefox. - - This class will be extended by a persistence library - which will override some of the methods with - library-specific code. - - The methods likely to be overridden are: - - * `getFilters` - * `detect` - * `columnsForType` - * `getRecords` - * `getRecordColumnValues` - * `getRecordKeywords` - * `getRecordFilterValues` - * `getRecordColor` - * `observeRecord` - - The adapter will need to be registered - in the application's container as `dataAdapter:main` - - Example: - - ```javascript - Application.initializer({ - name: "data-adapter", - - initialize: function(container, application) { - application.register('data-adapter:main', DS.DataAdapter); - } - }); - ``` - - @class DataAdapter - @namespace Ember - @extends EmberObject - */ - __exports__["default"] = EmberObject.extend({ - init: function() { - this._super(); - this.releaseMethods = emberA(); - }, - - /** - The container of the application being debugged. - This property will be injected - on creation. - - @property container - @default null - @since 1.3.0 - */ - container: null, - - - /** - The container-debug-adapter which is used - to list all models. - - @property containerDebugAdapter - @default undefined - @since 1.5.0 - **/ - containerDebugAdapter: undefined, - - /** - Number of attributes to send - as columns. (Enough to make the record - identifiable). - - @private - @property attributeLimit - @default 3 - @since 1.3.0 - */ - attributeLimit: 3, - - /** - Stores all methods that clear observers. - These methods will be called on destruction. - - @private - @property releaseMethods - @since 1.3.0 - */ - releaseMethods: emberA(), - - /** - Specifies how records can be filtered. - Records returned will need to have a `filterValues` - property with a key for every name in the returned array. - - @public - @method getFilters - @return {Array} List of objects defining filters. - The object should have a `name` and `desc` property. - */ - getFilters: function() { - return emberA(); - }, - - /** - Fetch the model types and observe them for changes. - - @public - @method watchModelTypes - - @param {Function} typesAdded Callback to call to add types. - Takes an array of objects containing wrapped types (returned from `wrapModelType`). - - @param {Function} typesUpdated Callback to call when a type has changed. - Takes an array of objects containing wrapped types. - - @return {Function} Method to call to remove all observers - */ - watchModelTypes: function(typesAdded, typesUpdated) { - var modelTypes = this.getModelTypes(); - var self = this; - var releaseMethods = emberA(); - var typesToSend; - - typesToSend = modelTypes.map(function(type) { - var klass = type.klass; - var wrapped = self.wrapModelType(klass, type.name); - releaseMethods.push(self.observeModelType(klass, typesUpdated)); - return wrapped; - }); - - typesAdded(typesToSend); - - var release = function() { - releaseMethods.forEach(function(fn) { fn(); }); - self.releaseMethods.removeObject(release); - }; - this.releaseMethods.pushObject(release); - return release; - }, - - _nameToClass: function(type) { - if (typeof type === 'string') { - type = this.container.lookupFactory('model:' + type); - } - return type; - }, - - /** - Fetch the records of a given type and observe them for changes. - - @public - @method watchRecords - - @param {Function} recordsAdded Callback to call to add records. - Takes an array of objects containing wrapped records. - The object should have the following properties: - columnValues: {Object} key and value of a table cell - object: {Object} the actual record object - - @param {Function} recordsUpdated Callback to call when a record has changed. - Takes an array of objects containing wrapped records. - - @param {Function} recordsRemoved Callback to call when a record has removed. - Takes the following parameters: - index: the array index where the records were removed - count: the number of records removed - - @return {Function} Method to call to remove all observers - */ - watchRecords: function(type, recordsAdded, recordsUpdated, recordsRemoved) { - var self = this, releaseMethods = emberA(), records = this.getRecords(type), release; - - var recordUpdated = function(updatedRecord) { - recordsUpdated([updatedRecord]); - }; - - var recordsToSend = records.map(function(record) { - releaseMethods.push(self.observeRecord(record, recordUpdated)); - return self.wrapRecord(record); - }); - - - var contentDidChange = function(array, idx, removedCount, addedCount) { - for (var i = idx; i < idx + addedCount; i++) { - var record = array.objectAt(i); - var wrapped = self.wrapRecord(record); - releaseMethods.push(self.observeRecord(record, recordUpdated)); - recordsAdded([wrapped]); - } - - if (removedCount) { - recordsRemoved(idx, removedCount); - } - }; - - var observer = { didChange: contentDidChange, willChange: function() { return this; } }; - records.addArrayObserver(self, observer); - - release = function() { - releaseMethods.forEach(function(fn) { fn(); }); - records.removeArrayObserver(self, observer); - self.releaseMethods.removeObject(release); - }; - - recordsAdded(recordsToSend); - - this.releaseMethods.pushObject(release); - return release; - }, - - /** - Clear all observers before destruction - @private - @method willDestroy - */ - willDestroy: function() { - this._super(); - this.releaseMethods.forEach(function(fn) { - fn(); - }); - }, - - /** - Detect whether a class is a model. - - Test that against the model class - of your persistence library - - @private - @method detect - @param {Class} klass The class to test - @return boolean Whether the class is a model class or not - */ - detect: function(klass) { - return false; - }, - - /** - Get the columns for a given model type. - - @private - @method columnsForType - @param {Class} type The model type - @return {Array} An array of columns of the following format: - name: {String} name of the column - desc: {String} Humanized description (what would show in a table column name) - */ - columnsForType: function(type) { - return emberA(); - }, - - /** - Adds observers to a model type class. - - @private - @method observeModelType - @param {Class} type The model type class - @param {Function} typesUpdated Called when a type is modified. - @return {Function} The function to call to remove observers - */ - - observeModelType: function(type, typesUpdated) { - var self = this; - var records = this.getRecords(type); - - var onChange = function() { - typesUpdated([self.wrapModelType(type)]); - }; - var observer = { - didChange: function() { - run.scheduleOnce('actions', this, onChange); - }, - willChange: function() { return this; } - }; - - records.addArrayObserver(this, observer); - - var release = function() { - records.removeArrayObserver(self, observer); - }; - - return release; - }, - - - /** - Wraps a given model type and observes changes to it. - - @private - @method wrapModelType - @param {Class} type A model class - @param {String} Optional name of the class - @return {Object} contains the wrapped type and the function to remove observers - Format: - type: {Object} the wrapped type - The wrapped type has the following format: - name: {String} name of the type - count: {Integer} number of records available - columns: {Columns} array of columns to describe the record - object: {Class} the actual Model type class - release: {Function} The function to remove observers - */ - wrapModelType: function(type, name) { - var records = this.getRecords(type); - var typeToSend; - - typeToSend = { - name: name || type.toString(), - count: get(records, 'length'), - columns: this.columnsForType(type), - object: type - }; - - - return typeToSend; - }, - - - /** - Fetches all models defined in the application. - - @private - @method getModelTypes - @return {Array} Array of model types - */ - getModelTypes: function() { - var self = this; - var containerDebugAdapter = this.get('containerDebugAdapter'); - var types; - - if (containerDebugAdapter.canCatalogEntriesByType('model')) { - types = containerDebugAdapter.catalogEntriesByType('model'); - } else { - types = this._getObjectsOnNamespaces(); - } - - // New adapters return strings instead of classes - types = emberA(types).map(function(name) { - return { - klass: self._nameToClass(name), - name: name - }; - }); - types = emberA(types).filter(function(type) { - return self.detect(type.klass); - }); - - return emberA(types); - }, - - /** - Loops over all namespaces and all objects - attached to them - - @private - @method _getObjectsOnNamespaces - @return {Array} Array of model type strings - */ - _getObjectsOnNamespaces: function() { - var namespaces = emberA(Namespace.NAMESPACES); - var types = emberA(); - var self = this; - - namespaces.forEach(function(namespace) { - for (var key in namespace) { - if (!namespace.hasOwnProperty(key)) { continue; } - // Even though we will filter again in `getModelTypes`, - // we should not call `lookupContainer` on non-models - // (especially when `Ember.MODEL_FACTORY_INJECTIONS` is `true`) - if (!self.detect(namespace[key])) { continue; } - var name = dasherize(key); - if (!(namespace instanceof Application) && namespace.toString()) { - name = namespace + '/' + name; - } - types.push(name); - } - }); - return types; - }, - - /** - Fetches all loaded records for a given type. - - @private - @method getRecords - @return {Array} An array of records. - This array will be observed for changes, - so it should update when new records are added/removed. - */ - getRecords: function(type) { - return emberA(); - }, - - /** - Wraps a record and observers changes to it. - - @private - @method wrapRecord - @param {Object} record The record instance. - @return {Object} The wrapped record. Format: - columnValues: {Array} - searchKeywords: {Array} - */ - wrapRecord: function(record) { - var recordToSend = { object: record }; - - recordToSend.columnValues = this.getRecordColumnValues(record); - recordToSend.searchKeywords = this.getRecordKeywords(record); - recordToSend.filterValues = this.getRecordFilterValues(record); - recordToSend.color = this.getRecordColor(record); - - return recordToSend; - }, - - /** - Gets the values for each column. - - @private - @method getRecordColumnValues - @return {Object} Keys should match column names defined - by the model type. - */ - getRecordColumnValues: function(record) { - return {}; - }, - - /** - Returns keywords to match when searching records. - - @private - @method getRecordKeywords - @return {Array} Relevant keywords for search. - */ - getRecordKeywords: function(record) { - return emberA(); - }, - - /** - Returns the values of filters defined by `getFilters`. - - @private - @method getRecordFilterValues - @param {Object} record The record instance - @return {Object} The filter values - */ - getRecordFilterValues: function(record) { - return {}; - }, - - /** - Each record can have a color that represents its state. - - @private - @method getRecordColor - @param {Object} record The record instance - @return {String} The record's color - Possible options: black, red, blue, green - */ - getRecordColor: function(record) { - return null; - }, - - /** - Observes all relevant properties and re-sends the wrapped record - when a change occurs. - - @private - @method observerRecord - @param {Object} record The record instance - @param {Function} recordUpdated The callback to call when a record is updated. - @return {Function} The function to call to remove all observers. - */ - observeRecord: function(record, recordUpdated) { - return function(){}; - } - }); - }); -enifed("ember-htmlbars", - ["ember-metal/core","ember-template-compiler","ember-htmlbars/hooks/inline","ember-htmlbars/hooks/content","ember-htmlbars/hooks/component","ember-htmlbars/hooks/block","ember-htmlbars/hooks/element","ember-htmlbars/hooks/subexpr","ember-htmlbars/hooks/attribute","ember-htmlbars/hooks/concat","ember-htmlbars/hooks/get","ember-htmlbars/hooks/set","morph","ember-htmlbars/system/make-view-helper","ember-htmlbars/system/make_bound_helper","ember-htmlbars/helpers","ember-htmlbars/helpers/binding","ember-htmlbars/helpers/view","ember-htmlbars/helpers/yield","ember-htmlbars/helpers/with","ember-htmlbars/helpers/log","ember-htmlbars/helpers/debugger","ember-htmlbars/helpers/bind-attr","ember-htmlbars/helpers/if_unless","ember-htmlbars/helpers/loc","ember-htmlbars/helpers/partial","ember-htmlbars/helpers/template","ember-htmlbars/helpers/input","ember-htmlbars/helpers/text_area","ember-htmlbars/helpers/collection","ember-htmlbars/helpers/each","ember-htmlbars/helpers/unbound","ember-htmlbars/system/bootstrap","ember-htmlbars/compat","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __dependency18__, __dependency19__, __dependency20__, __dependency21__, __dependency22__, __dependency23__, __dependency24__, __dependency25__, __dependency26__, __dependency27__, __dependency28__, __dependency29__, __dependency30__, __dependency31__, __dependency32__, __dependency33__, __dependency34__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - - var precompile = __dependency2__.precompile; - var compile = __dependency2__.compile; - var template = __dependency2__.template; - var registerPlugin = __dependency2__.registerPlugin; - - var inline = __dependency3__["default"]; - var content = __dependency4__["default"]; - var component = __dependency5__["default"]; - var block = __dependency6__["default"]; - var element = __dependency7__["default"]; - var subexpr = __dependency8__["default"]; - var attribute = __dependency9__["default"]; - var concat = __dependency10__["default"]; - var get = __dependency11__["default"]; - var set = __dependency12__["default"]; - var DOMHelper = __dependency13__.DOMHelper; - var makeViewHelper = __dependency14__["default"]; - var makeBoundHelper = __dependency15__["default"]; - - var registerHelper = __dependency16__.registerHelper; - var helpers = __dependency16__["default"]; - var bindHelper = __dependency17__.bindHelper; - var viewHelper = __dependency18__.viewHelper; - var yieldHelper = __dependency19__.yieldHelper; - var withHelper = __dependency20__.withHelper; - var logHelper = __dependency21__.logHelper; - var debuggerHelper = __dependency22__.debuggerHelper; - var bindAttrHelper = __dependency23__.bindAttrHelper; - var bindAttrHelperDeprecated = __dependency23__.bindAttrHelperDeprecated; - var ifHelper = __dependency24__.ifHelper; - var unlessHelper = __dependency24__.unlessHelper; - var unboundIfHelper = __dependency24__.unboundIfHelper; - var boundIfHelper = __dependency24__.boundIfHelper; - var locHelper = __dependency25__.locHelper; - var partialHelper = __dependency26__.partialHelper; - var templateHelper = __dependency27__.templateHelper; - var inputHelper = __dependency28__.inputHelper; - var textareaHelper = __dependency29__.textareaHelper; - var collectionHelper = __dependency30__.collectionHelper; - var eachHelper = __dependency31__.eachHelper; - var unboundHelper = __dependency32__.unboundHelper; - - // importing adds template bootstrapping - // initializer to enable embedded templates - - // importing ember-htmlbars/compat updates the - // Ember.Handlebars global if htmlbars is enabled - - registerHelper('bindHelper', bindHelper); - registerHelper('bind', bindHelper); - registerHelper('view', viewHelper); - registerHelper('yield', yieldHelper); - registerHelper('with', withHelper); - registerHelper('if', ifHelper); - registerHelper('unless', unlessHelper); - registerHelper('unboundIf', unboundIfHelper); - registerHelper('boundIf', boundIfHelper); - registerHelper('log', logHelper); - registerHelper('debugger', debuggerHelper); - registerHelper('loc', locHelper); - registerHelper('partial', partialHelper); - registerHelper('template', templateHelper); - registerHelper('bind-attr', bindAttrHelper); - registerHelper('bindAttr', bindAttrHelperDeprecated); - registerHelper('input', inputHelper); - registerHelper('textarea', textareaHelper); - registerHelper('collection', collectionHelper); - registerHelper('each', eachHelper); - registerHelper('unbound', unboundHelper); - registerHelper('concat', concat); - - - Ember.HTMLBars = { - _registerHelper: registerHelper, - template: template, - compile: compile, - precompile: precompile, - makeViewHelper: makeViewHelper, - makeBoundHelper: makeBoundHelper, - registerPlugin: registerPlugin - }; - - - - var defaultEnv = { - dom: new DOMHelper(), - - hooks: { - get: get, - set: set, - inline: inline, - content: content, - block: block, - element: element, - subexpr: subexpr, - component: component, - attribute: attribute, - concat: concat - }, - - helpers: helpers, - useFragmentCache: true - }; - __exports__.defaultEnv = defaultEnv; - }); -enifed("ember-htmlbars/compat", - ["ember-metal/core","ember-htmlbars/helpers","ember-htmlbars/compat/helper","ember-htmlbars/compat/handlebars-get","ember-htmlbars/compat/make-bound-helper","ember-htmlbars/compat/register-bound-helper","ember-htmlbars/system/make-view-helper","ember-htmlbars/utils/string","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - var helpers = __dependency2__["default"]; - var compatRegisterHelper = __dependency3__.registerHandlebarsCompatibleHelper; - var compatHandlebarsHelper = __dependency3__.handlebarsHelper; - var compatHandlebarsGet = __dependency4__["default"]; - var compatMakeBoundHelper = __dependency5__["default"]; - var compatRegisterBoundHelper = __dependency6__["default"]; - var makeViewHelper = __dependency7__["default"]; - var SafeString = __dependency8__.SafeString; - var escapeExpression = __dependency8__.escapeExpression; - - var EmberHandlebars; - - EmberHandlebars = Ember.Handlebars = Ember.Handlebars || {}; - EmberHandlebars.helpers = helpers; - EmberHandlebars.helper = compatHandlebarsHelper; - EmberHandlebars.registerHelper = compatRegisterHelper; - EmberHandlebars.registerBoundHelper = compatRegisterBoundHelper; - EmberHandlebars.makeBoundHelper = compatMakeBoundHelper; - EmberHandlebars.get = compatHandlebarsGet; - EmberHandlebars.makeViewHelper = makeViewHelper; - - EmberHandlebars.SafeString = SafeString; - EmberHandlebars.Utils = { - escapeExpression: escapeExpression - }; - - - __exports__["default"] = EmberHandlebars; - }); -enifed("ember-htmlbars/compat/handlebars-get", - ["exports"], - function(__exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - /** - Lookup both on root and on window. If the path starts with - a keyword, the corresponding object will be looked up in the - template's data hash and used to resolve the path. - - @method get - @for Ember.Handlebars - @param {Object} root The object to look up the property on - @param {String} path The path to be lookedup - @param {Object} options The template's option hash - @deprecated - */ - __exports__["default"] = function handlebarsGet(root, path, options) { - Ember.deprecate('Usage of Ember.Handlebars.get is deprecated, use a Component or Ember.Handlebars.makeBoundHelper instead.'); - - return options.data.view.getStream(path).value(); - } - }); -enifed("ember-htmlbars/compat/helper", - ["ember-metal/merge","ember-htmlbars/helpers","ember-views/views/view","ember-views/views/component","ember-htmlbars/system/make-view-helper","ember-htmlbars/compat/make-bound-helper","ember-metal/streams/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var merge = __dependency1__["default"]; - var helpers = __dependency2__["default"]; - var View = __dependency3__["default"]; - var Component = __dependency4__["default"]; - var makeViewHelper = __dependency5__["default"]; - var makeBoundHelper = __dependency6__["default"]; - var isStream = __dependency7__.isStream; - - var slice = [].slice; - - function calculateCompatType(item) { - if (isStream(item)) { - return 'ID'; - } else { - var itemType = typeof item; - - return itemType.toUpperCase(); - } - } - - /** - Wraps an Handlebars helper with an HTMLBars helper for backwards compatibility. - - @class HandlebarsCompatibleHelper - @constructor - @private - */ - function HandlebarsCompatibleHelper(fn) { - this.helperFunction = function helperFunc(params, hash, options, env) { - var param, blockResult, fnResult; - var context = this; - var handlebarsOptions = { - hash: { }, - types: new Array(params.length), - hashTypes: { } - }; - - merge(handlebarsOptions, options); - merge(handlebarsOptions, env); - - handlebarsOptions.hash = {}; - - if (options.isBlock) { - handlebarsOptions.fn = function() { - blockResult = options.template.render(context, env, options.morph.contextualElement); - }; - } - - for (var prop in hash) { - param = hash[prop]; - - handlebarsOptions.hashTypes[prop] = calculateCompatType(param); - - if (isStream(param)) { - handlebarsOptions.hash[prop] = param._label; - } else { - handlebarsOptions.hash[prop] = param; - } - } - - var args = new Array(params.length); - for (var i = 0, l = params.length; i < l; i++) { - param = params[i]; - - handlebarsOptions.types[i] = calculateCompatType(param); - - if (isStream(param)) { - args[i] = param._label; - } else { - args[i] = param; - } - } - args.push(handlebarsOptions); - - fnResult = fn.apply(this, args); - - return options.isBlock ? blockResult : fnResult; - }; - - this.isHTMLBars = true; - } - - HandlebarsCompatibleHelper.prototype = { - preprocessArguments: function() { } - }; - - function registerHandlebarsCompatibleHelper(name, value) { - var helper; - - if (value && value.isHTMLBars) { - helper = value; - } else { - helper = new HandlebarsCompatibleHelper(value); - } - - helpers[name] = helper; - } - - __exports__.registerHandlebarsCompatibleHelper = registerHandlebarsCompatibleHelper;function handlebarsHelper(name, value) { - Ember.assert("You tried to register a component named '" + name + - "', but component names must include a '-'", !Component.detect(value) || name.match(/-/)); - - if (View.detect(value)) { - helpers[name] = makeViewHelper(value); - } else { - var boundHelperArgs = slice.call(arguments, 1); - var boundFn = makeBoundHelper.apply(this, boundHelperArgs); - - helpers[name] = boundFn; - } - } - - __exports__.handlebarsHelper = handlebarsHelper;__exports__["default"] = HandlebarsCompatibleHelper; - }); -enifed("ember-htmlbars/compat/make-bound-helper", - ["ember-metal/core","ember-metal/mixin","ember-htmlbars/system/helper","ember-metal/streams/stream","ember-metal/streams/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - // Ember.FEATURES, Ember.assert, Ember.Handlebars, Ember.lookup - var IS_BINDING = __dependency2__.IS_BINDING; - var Helper = __dependency3__["default"]; - - var Stream = __dependency4__["default"]; - var readArray = __dependency5__.readArray; - var scanArray = __dependency5__.scanArray; - var scanHash = __dependency5__.scanHash; - var readHash = __dependency5__.readHash; - var isStream = __dependency5__.isStream; - - /** - A helper function used by `registerBoundHelper`. Takes the - provided Handlebars helper function fn and returns it in wrapped - bound helper form. - - The main use case for using this outside of `registerBoundHelper` - is for registering helpers on the container: - - ```js - var boundHelperFn = Ember.Handlebars.makeBoundHelper(function(word) { - return word.toUpperCase(); - }); - - container.register('helper:my-bound-helper', boundHelperFn); - ``` - - In the above example, if the helper function hadn't been wrapped in - `makeBoundHelper`, the registered helper would be unbound. - - @method makeBoundHelper - @for Ember.Handlebars - @param {Function} function - @param {String} dependentKeys* - @since 1.2.0 - @deprecated - */ - __exports__["default"] = function makeBoundHelper(fn, compatMode) { - var dependentKeys = []; - for (var i = 1; i < arguments.length; i++) { - dependentKeys.push(arguments[i]); - } - - function helperFunc(params, hash, options, env) { - var view = this; - var numParams = params.length; - var param; - - Ember.assert("registerBoundHelper-generated helpers do not support use with Handlebars blocks.", !options.template); - - for (var prop in hash) { - if (IS_BINDING.test(prop)) { - hash[prop.slice(0, -7)] = view.getStream(hash[prop]); - delete hash[prop]; - } - } - - function valueFn() { - var args = readArray(params); - var properties = new Array(params.length); - for (var i = 0, l = params.length; i < l; i++) { - param = params[i]; - - if (isStream(param)) { - properties[i] = param._label; - } else { - properties[i] = param; - } - } - - args.push({ - hash: readHash(hash), - data: { properties: properties } - }); - return fn.apply(view, args); - } - - // If none of the hash parameters are bound, act as an unbound helper. - // This prevents views from being unnecessarily created - var hasStream = scanArray(params) || scanHash(hash); - - if (env.data.isUnbound || !hasStream){ - return valueFn(); - } else { - var lazyValue = new Stream(valueFn); - - for (i = 0; i < numParams; i++) { - param = params[i]; - if (isStream(param)) { - param.subscribe(lazyValue.notify, lazyValue); - } - } - - for (prop in hash) { - param = hash[prop]; - if (isStream(param)) { - param.subscribe(lazyValue.notify, lazyValue); - } - } - - if (numParams > 0) { - var firstParam = params[0]; - // Only bother with subscriptions if the first argument - // is a stream itself, and not a primitive. - if (isStream(firstParam)) { - var onDependentKeyNotify = function onDependentKeyNotify(stream) { - stream.value(); - lazyValue.notify(); - }; - for (i = 0; i < dependentKeys.length; i++) { - var childParam = firstParam.get(dependentKeys[i]); - childParam.value(); - childParam.subscribe(onDependentKeyNotify); - } - } - } - - return lazyValue; - } - } - - return new Helper(helperFunc); - } - }); -enifed("ember-htmlbars/compat/register-bound-helper", - ["ember-htmlbars/helpers","ember-htmlbars/compat/make-bound-helper","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var helpers = __dependency1__["default"]; - var makeBoundHelper = __dependency2__["default"]; - - var slice = [].slice; - - /** - Register a bound handlebars helper. Bound helpers behave similarly to regular - handlebars helpers, with the added ability to re-render when the underlying data - changes. - - ## Simple example - - ```javascript - Ember.Handlebars.registerBoundHelper('capitalize', function(value) { - return Ember.String.capitalize(value); - }); - ``` - - The above bound helper can be used inside of templates as follows: - - ```handlebars - {{capitalize name}} - ``` - - In this case, when the `name` property of the template's context changes, - the rendered value of the helper will update to reflect this change. - - ## Example with options - - Like normal handlebars helpers, bound helpers have access to the options - passed into the helper call. - - ```javascript - Ember.Handlebars.registerBoundHelper('repeat', function(value, options) { - var count = options.hash.count; - var a = []; - while(a.length < count) { - a.push(value); - } - return a.join(''); - }); - ``` - - This helper could be used in a template as follows: - - ```handlebars - {{repeat text count=3}} - ``` - - ## Example with bound options - - Bound hash options are also supported. Example: - - ```handlebars - {{repeat text count=numRepeats}} - ``` - - In this example, count will be bound to the value of - the `numRepeats` property on the context. If that property - changes, the helper will be re-rendered. - - ## Example with extra dependencies - - The `Ember.Handlebars.registerBoundHelper` method takes a variable length - third parameter which indicates extra dependencies on the passed in value. - This allows the handlebars helper to update when these dependencies change. - - ```javascript - Ember.Handlebars.registerBoundHelper('capitalizeName', function(value) { - return value.get('name').toUpperCase(); - }, 'name'); - ``` - - ## Example with multiple bound properties - - `Ember.Handlebars.registerBoundHelper` supports binding to - multiple properties, e.g.: - - ```javascript - Ember.Handlebars.registerBoundHelper('concatenate', function() { - var values = Array.prototype.slice.call(arguments, 0, -1); - return values.join('||'); - }); - ``` - - Which allows for template syntax such as `{{concatenate prop1 prop2}}` or - `{{concatenate prop1 prop2 prop3}}`. If any of the properties change, - the helper will re-render. Note that dependency keys cannot be - using in conjunction with multi-property helpers, since it is ambiguous - which property the dependent keys would belong to. - - ## Use with unbound helper - - The `{{unbound}}` helper can be used with bound helper invocations - to render them in their unbound form, e.g. - - ```handlebars - {{unbound capitalize name}} - ``` - - In this example, if the name property changes, the helper - will not re-render. - - ## Use with blocks not supported - - Bound helpers do not support use with Handlebars blocks or - the addition of child views of any kind. - - @method registerBoundHelper - @for Ember.Handlebars - @param {String} name - @param {Function} function - @param {String} dependentKeys* - */ - __exports__["default"] = function registerBoundHelper(name, fn) { - var boundHelperArgs = slice.call(arguments, 1); - var boundFn = makeBoundHelper.apply(this, boundHelperArgs); - - helpers[name] = boundFn; - } - }); -enifed("ember-htmlbars/helpers", - ["ember-metal/platform","ember-htmlbars/system/helper","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var o_create = __dependency1__.create; - - /** - @private - @property helpers - */ - var helpers = o_create(null); - - /** - @module ember - @submodule ember-htmlbars - */ - - var Helper = __dependency2__["default"]; - - /** - @private - @method _registerHelper - @for Ember.HTMLBars - @param {String} name - @param {Object|Function} helperFunc the helper function to add - */ - function registerHelper(name, helperFunc) { - var helper; - - if (helperFunc && helperFunc.isHelper) { - helper = helperFunc; - } else { - helper = new Helper(helperFunc); - } - - helpers[name] = helper; - } - - __exports__.registerHelper = registerHelper;__exports__["default"] = helpers; - }); -enifed("ember-htmlbars/helpers/bind-attr", - ["ember-metal/core","ember-runtime/system/string","ember-views/attr_nodes/attr_node","ember-views/attr_nodes/legacy_bind","ember-metal/keys","ember-htmlbars/helpers","ember-metal/enumerable_utils","ember-metal/streams/utils","ember-views/streams/class_name_binding","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - // Ember.assert - - var fmt = __dependency2__.fmt; - var AttrNode = __dependency3__["default"]; - var LegacyBindAttrNode = __dependency4__["default"]; - var keys = __dependency5__["default"]; - var helpers = __dependency6__["default"]; - var map = __dependency7__.map; - var isStream = __dependency8__.isStream; - var concat = __dependency8__.concat; - var streamifyClassNameBinding = __dependency9__.streamifyClassNameBinding; - - /** - `bind-attr` allows you to create a binding between DOM element attributes and - Ember objects. For example: - - ```handlebars - imageTitle}} - ``` - - The above handlebars template will fill the ``'s `src` attribute with - the value of the property referenced with `imageUrl` and its `alt` - attribute with the value of the property referenced with `imageTitle`. - - If the rendering context of this template is the following object: - - ```javascript - { - imageUrl: 'http://lolcats.info/haz-a-funny', - imageTitle: 'A humorous image of a cat' - } - ``` - - The resulting HTML output will be: - - ```html - A humorous image of a cat - ``` - - `bind-attr` cannot redeclare existing DOM element attributes. The use of `src` - in the following `bind-attr` example will be ignored and the hard coded value - of `src="/failwhale.gif"` will take precedence: - - ```handlebars - imageTitle}} - ``` - - ### `bind-attr` and the `class` attribute - - `bind-attr` supports a special syntax for handling a number of cases unique - to the `class` DOM element attribute. The `class` attribute combines - multiple discrete values into a single attribute as a space-delimited - list of strings. Each string can be: - - * a string return value of an object's property. - * a boolean return value of an object's property - * a hard-coded value - - A string return value works identically to other uses of `bind-attr`. The - return value of the property will become the value of the attribute. For - example, the following view and template: - - ```javascript - AView = View.extend({ - someProperty: function() { - return "aValue"; - }.property() - }) - ``` - - ```handlebars - - ``` - - Result in the following rendered output: - - ```html - - ``` - - A boolean return value will insert a specified class name if the property - returns `true` and remove the class name if the property returns `false`. - - A class name is provided via the syntax - `somePropertyName:class-name-if-true`. - - ```javascript - AView = View.extend({ - someBool: true - }) - ``` - - ```handlebars - - ``` - - Result in the following rendered output: - - ```html - - ``` - - An additional section of the binding can be provided if you want to - replace the existing class instead of removing it when the boolean - value changes: - - ```handlebars - - ``` - - A hard-coded value can be used by prepending `:` to the desired - class name: `:class-name-to-always-apply`. - - ```handlebars - - ``` - - Results in the following rendered output: - - ```html - - ``` - - All three strategies - string return value, boolean return value, and - hard-coded value – can be combined in a single declaration: - - ```handlebars - - ``` - - @method bind-attr - @for Ember.Handlebars.helpers - @param {Hash} options - @return {String} HTML string - */ - function bindAttrHelper(params, hash, options, env) { - var element = options.element; - - Ember.assert("You must specify at least one hash argument to bind-attr", !!keys(hash).length); - - var view = this; - - // Handle classes differently, as we can bind multiple classes - var classNameBindings = hash['class']; - if (classNameBindings !== null && classNameBindings !== undefined) { - if (!isStream(classNameBindings)) { - classNameBindings = applyClassNameBindings(classNameBindings, view); - } - - var classView = new AttrNode('class', classNameBindings); - classView._morph = env.dom.createAttrMorph(element, 'class'); - - Ember.assert( - 'You cannot set `class` manually and via `{{bind-attr}}` helper on the same element. ' + - 'Please use `{{bind-attr}}`\'s `:static-class` syntax instead.', - !element.getAttribute('class') - ); - - view.appendChild(classView); - } - - var attrKeys = keys(hash); - - var attr, path, lazyValue, attrView; - for (var i=0, l=attrKeys.length;i` the following template: - - ```handlebars - {{! application.hbs }} - {{#collection content=model}} - Hi {{view.content.name}} - {{/collection}} - ``` - - And the following application code - - ```javascript - App = Ember.Application.create(); - App.ApplicationRoute = Ember.Route.extend({ - model: function(){ - return [{name: 'Yehuda'},{name: 'Tom'},{name: 'Peter'}]; - } - }); - ``` - - The following HTML will result: - - ```html -
    -
    Hi Yehuda
    -
    Hi Tom
    -
    Hi Peter
    -
    - ``` - - ### Non-block version of collection - - If you provide an `itemViewClass` option that has its own `template` you may - omit the block. - - The following template: - - ```handlebars - {{! application.hbs }} - {{collection content=model itemViewClass="an-item"}} - ``` - - And application code - - ```javascript - App = Ember.Application.create(); - App.ApplicationRoute = Ember.Route.extend({ - model: function(){ - return [{name: 'Yehuda'},{name: 'Tom'},{name: 'Peter'}]; - } - }); - - App.AnItemView = Ember.View.extend({ - template: Ember.Handlebars.compile("Greetings {{view.content.name}}") - }); - ``` - - Will result in the HTML structure below - - ```html -
    -
    Greetings Yehuda
    -
    Greetings Tom
    -
    Greetings Peter
    -
    - ``` - - ### Specifying a CollectionView subclass - - By default the `{{collection}}` helper will create an instance of - `Ember.CollectionView`. You can supply a `Ember.CollectionView` subclass to - the helper by passing it as the first argument: - - ```handlebars - {{#collection "my-custom-collection" content=model}} - Hi {{view.content.name}} - {{/collection}} - ``` - - This example would look for the class `App.MyCustomCollection`. - - ### Forwarded `item.*`-named Options - - As with the `{{view}}`, helper options passed to the `{{collection}}` will be - set on the resulting `Ember.CollectionView` as properties. Additionally, - options prefixed with `item` will be applied to the views rendered for each - item (note the camelcasing): - - ```handlebars - {{#collection content=model - itemTagName="p" - itemClassNames="greeting"}} - Howdy {{view.content.name}} - {{/collection}} - ``` - - Will result in the following HTML structure: - - ```html -
    -

    Howdy Yehuda

    -

    Howdy Tom

    -

    Howdy Peter

    -
    - ``` - - @method collection - @for Ember.Handlebars.helpers - @param {String} path - @param {Hash} options - @return {String} HTML string - @deprecated Use `{{each}}` helper instead. - */ - function collectionHelper(params, hash, options, env) { - var path = params[0]; - - Ember.deprecate("Using the {{collection}} helper without specifying a class has been" + - " deprecated as the {{each}} helper now supports the same functionality.", path !== 'collection'); - - Ember.assert("You cannot pass more than one argument to the collection helper", params.length <= 1); - - var data = env.data; - var template = options.template; - var inverse = options.inverse; - var view = data.view; - - // This should be deterministic, and should probably come from a - // parent view and not the controller. - var controller = get(view, 'controller'); - var container = (controller && controller.container ? controller.container : view.container); - - // If passed a path string, convert that into an object. - // Otherwise, just default to the standard class. - var collectionClass; - if (path) { - collectionClass = readViewFactory(path, container); - Ember.assert(fmt("%@ #collection: Could not find collection class %@", [data.view, path]), !!collectionClass); - } - else { - collectionClass = CollectionView; - } - - var itemHash = {}; - var match; - - // Extract item view class if provided else default to the standard class - var collectionPrototype = collectionClass.proto(); - var itemViewClass; - - if (hash.itemView) { - itemViewClass = readViewFactory(hash.itemView, container); - } else if (hash.itemViewClass) { - itemViewClass = readViewFactory(hash.itemViewClass, container); - } else { - itemViewClass = collectionPrototype.itemViewClass; - } - - if (typeof itemViewClass === 'string') { - itemViewClass = container.lookupFactory('view:'+itemViewClass); - } - - Ember.assert(fmt("%@ #collection: Could not find itemViewClass %@", [data.view, itemViewClass]), !!itemViewClass); - - delete hash.itemViewClass; - delete hash.itemView; - - // Go through options passed to the {{collection}} helper and extract options - // that configure item views instead of the collection itself. - for (var prop in hash) { - if (prop === 'itemController' || prop === 'itemClassBinding') { - continue; - } - if (hash.hasOwnProperty(prop)) { - match = prop.match(/^item(.)(.*)$/); - if (match) { - var childProp = match[1].toLowerCase() + match[2]; - - if (IS_BINDING.test(prop)) { - itemHash[childProp] = view._getBindingForStream(hash[prop]); - } else { - itemHash[childProp] = hash[prop]; - } - delete hash[prop]; - } - } - } - - if (template) { - itemHash.template = template; - delete options.template; - } - - var emptyViewClass; - if (inverse) { - emptyViewClass = get(collectionPrototype, 'emptyViewClass'); - emptyViewClass = emptyViewClass.extend({ - template: inverse, - tagName: itemHash.tagName - }); - } else if (hash.emptyViewClass) { - emptyViewClass = readViewFactory(hash.emptyViewClass, container); - } - if (emptyViewClass) { hash.emptyView = emptyViewClass; } - - if (hash.keyword) { - itemHash._contextBinding = Binding.oneWay('_parentView.context'); - } else { - itemHash._contextBinding = Binding.oneWay('content'); - } - - var viewOptions = ViewHelper.propertiesFromHTMLOptions(itemHash, {}, { data: data }); - - if (hash.itemClassBinding) { - var itemClassBindings = hash.itemClassBinding.split(' '); - viewOptions.classNameBindings = map(itemClassBindings, function(classBinding){ - return streamifyClassNameBinding(view, classBinding); - }); - } - - hash.itemViewClass = itemViewClass; - hash._itemViewProps = viewOptions; - - options.helperName = options.helperName || 'collection'; - - return env.helpers.view.helperFunction.call(this, [collectionClass], hash, options, env); - } - - __exports__.collectionHelper = collectionHelper; - }); -enifed("ember-htmlbars/helpers/debugger", - ["ember-metal/logger","exports"], - function(__dependency1__, __exports__) { - "use strict"; - /*jshint debug:true*/ - - /** - @module ember - @submodule ember-htmlbars - */ - var Logger = __dependency1__["default"]; - - /** - Execute the `debugger` statement in the current context. - - ```handlebars - {{debugger}} - ``` - - Before invoking the `debugger` statement, there - are a few helpful variables defined in the - body of this helper that you can inspect while - debugging that describe how and where this - helper was invoked: - - - templateContext: this is most likely a controller - from which this template looks up / displays properties - - typeOfTemplateContext: a string description of - what the templateContext is - - For example, if you're wondering why a value `{{foo}}` - isn't rendering as expected within a template, you - could place a `{{debugger}}` statement, and when - the `debugger;` breakpoint is hit, you can inspect - `templateContext`, determine if it's the object you - expect, and/or evaluate expressions in the console - to perform property lookups on the `templateContext`: - - ``` - > templateContext.get('foo') // -> "" - ``` - - @method debugger - @for Ember.Handlebars.helpers - @param {String} property - */ - function debuggerHelper() { - - // These are helpful values you can inspect while debugging. - /* jshint unused: false */ - var view = this; - Logger.info('Use `this` to access the view context.'); - - debugger; - } - - __exports__.debuggerHelper = debuggerHelper; - }); -enifed("ember-htmlbars/helpers/each", - ["ember-metal/core","ember-views/views/each","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - - /** - @module ember - @submodule ember-htmlbars - */ - var Ember = __dependency1__["default"]; - // Ember.assert; - var EachView = __dependency2__["default"]; - - /** - The `{{#each}}` helper loops over elements in a collection. It is an extension - of the base Handlebars `{{#each}}` helper. - - The default behavior of `{{#each}}` is to yield its inner block once for every - item in an array. - - ```javascript - var developers = [{name: 'Yehuda'},{name: 'Tom'}, {name: 'Paul'}]; - ``` - - ```handlebars - {{#each person in developers}} - {{person.name}} - {{! `this` is whatever it was outside the #each }} - {{/each}} - ``` - - The same rules apply to arrays of primitives, but the items may need to be - references with `{{this}}`. - - ```javascript - var developerNames = ['Yehuda', 'Tom', 'Paul'] - ``` - - ```handlebars - {{#each name in developerNames}} - {{name}} - {{/each}} - ``` - - ### {{else}} condition - - `{{#each}}` can have a matching `{{else}}`. The contents of this block will render - if the collection is empty. - - ``` - {{#each person in developers}} - {{person.name}} - {{else}} -

    Sorry, nobody is available for this task.

    - {{/each}} - ``` - - ### Specifying an alternative view for each item - - `itemViewClass` can control which view will be used during the render of each - item's template. - - The following template: - - ```handlebars -
      - {{#each developer in developers itemViewClass="person"}} - {{developer.name}} - {{/each}} -
    - ``` - - Will use the following view for each item - - ```javascript - App.PersonView = Ember.View.extend({ - tagName: 'li' - }); - ``` - - Resulting in HTML output that looks like the following: - - ```html -
      -
    • Yehuda
    • -
    • Tom
    • -
    • Paul
    • -
    - ``` - - `itemViewClass` also enables a non-block form of `{{each}}`. The view - must {{#crossLink "Ember.View/toc_templates"}}provide its own template{{/crossLink}}, - and then the block should be dropped. An example that outputs the same HTML - as the previous one: - - ```javascript - App.PersonView = Ember.View.extend({ - tagName: 'li', - template: '{{developer.name}}' - }); - ``` - - ```handlebars -
      - {{each developer in developers itemViewClass="person"}} -
    - ``` - - ### Specifying an alternative view for no items (else) - - The `emptyViewClass` option provides the same flexibility to the `{{else}}` - case of the each helper. - - ```javascript - App.NoPeopleView = Ember.View.extend({ - tagName: 'li', - template: 'No person is available, sorry' - }); - ``` - - ```handlebars -
      - {{#each developer in developers emptyViewClass="no-people"}} -
    • {{developer.name}}
    • - {{/each}} -
    - ``` - - ### Wrapping each item in a controller - - Controllers in Ember manage state and decorate data. In many cases, - providing a controller for each item in a list can be useful. - Specifically, an {{#crossLink "Ember.ObjectController"}}Ember.ObjectController{{/crossLink}} - should probably be used. Item controllers are passed the item they - will present as a `model` property, and an object controller will - proxy property lookups to `model` for us. - - This allows state and decoration to be added to the controller - while any other property lookups are delegated to the model. An example: - - ```javascript - App.RecruitController = Ember.ObjectController.extend({ - isAvailableForHire: function() { - return !this.get('isEmployed') && this.get('isSeekingWork'); - }.property('isEmployed', 'isSeekingWork') - }) - ``` - - ```handlebars - {{#each person in developers itemController="recruit"}} - {{person.name}} {{#if person.isAvailableForHire}}Hire me!{{/if}} - {{/each}} - ``` - - @method each - @for Ember.Handlebars.helpers - @param [name] {String} name for item (used with `in`) - @param [path] {String} path - @param [options] {Object} Handlebars key/value pairs of options - @param [options.itemViewClass] {String} a path to a view class used for each item - @param [options.emptyViewClass] {String} a path to a view class used for each item - @param [options.itemController] {String} name of a controller to be created for each item - */ - function eachHelper(params, hash, options, env) { - var helperName = 'each'; - var path = params[0] || this.getStream(''); - - Ember.assert( - "If you pass more than one argument to the each helper, " + - "it must be in the form #each foo in bar", - params.length <= 1 - ); - - if (options.template && options.template.blockParams) { - hash.keyword = true; - } - - Ember.deprecate( - "Using the context switching form of {{each}} is deprecated. " + - "Please use the keyword form (`{{#each foo in bar}}`) instead.", - hash.keyword === true || typeof hash.keyword === 'string', - { url: 'http://emberjs.com/guides/deprecations/#toc_more-consistent-handlebars-scope' } - ); - - hash.dataSource = path; - options.helperName = options.helperName || helperName; - - return env.helpers.collection.helperFunction.call(this, [EachView], hash, options, env); - } - - __exports__.EachView = EachView; - __exports__.eachHelper = eachHelper; - }); -enifed("ember-htmlbars/helpers/if_unless", - ["ember-metal/core","ember-htmlbars/helpers/binding","ember-metal/property_get","ember-metal/utils","ember-views/streams/conditional_stream","ember-metal/streams/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - // Ember.assert - var bind = __dependency2__.bind; - - var get = __dependency3__.get; - var isArray = __dependency4__.isArray; - var ConditionalStream = __dependency5__["default"]; - var isStream = __dependency6__.isStream; - - function shouldDisplayIfHelperContent(result) { - var truthy = result && get(result, 'isTruthy'); - if (typeof truthy === 'boolean') { return truthy; } - - if (isArray(result)) { - return get(result, 'length') !== 0; - } else { - return !!result; - } - } - - var EMPTY_TEMPLATE = { - isHTMLBars: true, - render: function() { - return ''; - } - }; - /** - Use the `boundIf` helper to create a conditional that re-evaluates - whenever the truthiness of the bound value changes. - - ```handlebars - {{#boundIf "content.shouldDisplayTitle"}} - {{content.title}} - {{/boundIf}} - ``` - - @private - @method boundIf - @for Ember.Handlebars.helpers - @param {String} property Property to bind - @param {Function} fn Context to provide for rendering - @return {String} HTML string - */ - function boundIfHelper(params, hash, options, env) { - options.helperName = options.helperName || 'boundIf'; - return bind.call(this, params[0], hash, options, env, true, shouldDisplayIfHelperContent, shouldDisplayIfHelperContent, [ - 'isTruthy', - 'length' - ]); - } - - /** - @private - - Use the `unboundIf` helper to create a conditional that evaluates once. - - ```handlebars - {{#unboundIf "content.shouldDisplayTitle"}} - {{content.title}} - {{/unboundIf}} - ``` - - @method unboundIf - @for Ember.Handlebars.helpers - @param {String} property Property to bind - @param {Function} fn Context to provide for rendering - @return {String} HTML string - @since 1.4.0 - */ - function unboundIfHelper(params, hash, options, env) { - var template = options.template; - var value = params[0]; - - if (isStream(params[0])) { - value = params[0].value(); - } - - if (!shouldDisplayIfHelperContent(value)) { - template = options.inverse || EMPTY_TEMPLATE; - } - - return template.render(this, env, options.morph.contextualElement); - } - - function _inlineIfAssertion(params) { - Ember.assert("If helper in inline form expects between two and three arguments", params.length === 2 || params.length === 3); - } - - /** - See [boundIf](/api/classes/Ember.Handlebars.helpers.html#method_boundIf) - and [unboundIf](/api/classes/Ember.Handlebars.helpers.html#method_unboundIf) - - @method if - @for Ember.Handlebars.helpers - @param {Function} context - @param {Hash} options - @return {String} HTML string - */ - function ifHelper(params, hash, options, env) { - Ember.assert("If helper in block form expect exactly one argument", !options.template || params.length === 1); - - options.inverse = options.inverse || EMPTY_TEMPLATE; - - options.helperName = options.helperName || ('if '); - - if (env.data.isUnbound) { - env.data.isUnbound = false; - return env.helpers.unboundIf.helperFunction.call(this, params, hash, options, env); - } else { - return env.helpers.boundIf.helperFunction.call(this, params, hash, options, env); - } - } - - /** - @method unless - @for Ember.Handlebars.helpers - @param {Function} context - @param {Hash} options - @return {String} HTML string - */ - function unlessHelper(params, hash, options, env) { - Ember.assert("You must pass exactly one argument to the unless helper", params.length === 1); - Ember.assert("You must pass a block to the unless helper", !!options.template); - - var template = options.template; - var inverse = options.inverse || EMPTY_TEMPLATE; - var helperName = 'unless'; - - options.template = inverse; - options.inverse = template; - - options.helperName = options.helperName || helperName; - - if (env.data.isUnbound) { - env.data.isUnbound = false; - return env.helpers.unboundIf.helperFunction.call(this, params, hash, options, env); - } else { - return env.helpers.boundIf.helperFunction.call(this, params, hash, options, env); - } - } - - __exports__.ifHelper = ifHelper; - __exports__.boundIfHelper = boundIfHelper; - __exports__.unboundIfHelper = unboundIfHelper; - __exports__.unlessHelper = unlessHelper; - }); -enifed("ember-htmlbars/helpers/input", - ["ember-views/views/checkbox","ember-views/views/text_field","ember-metal/streams/utils","ember-metal/core","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var Checkbox = __dependency1__["default"]; - var TextField = __dependency2__["default"]; - var read = __dependency3__.read; - - var Ember = __dependency4__["default"]; - // Ember.assert - - /** - @module ember - @submodule ember-htmlbars - */ - - /** - - The `{{input}}` helper inserts an HTML `` tag into the template, - with a `type` value of either `text` or `checkbox`. If no `type` is provided, - `text` will be the default value applied. The attributes of `{{input}}` - match those of the native HTML tag as closely as possible for these two types. - - ## Use as text field - An `{{input}}` with no `type` or a `type` of `text` will render an HTML text input. - The following HTML attributes can be set via the helper: - - - - - - - - - - - - -
    `readonly``required``autofocus`
    `value``placeholder``disabled`
    `size``tabindex``maxlength`
    `name``min``max`
    `pattern``accept``autocomplete`
    `autosave``formaction``formenctype`
    `formmethod``formnovalidate``formtarget`
    `height``inputmode``multiple`
    `step``width``form`
    `selectionDirection``spellcheck` 
    - - - When set to a quoted string, these values will be directly applied to the HTML - element. When left unquoted, these values will be bound to a property on the - template's current rendering context (most typically a controller instance). - - ## Unbound: - - ```handlebars - {{input value="http://www.facebook.com"}} - ``` - - - ```html - - ``` - - ## Bound: - - ```javascript - App.ApplicationController = Ember.Controller.extend({ - firstName: "Stanley", - entryNotAllowed: true - }); - ``` - - - ```handlebars - {{input type="text" value=firstName disabled=entryNotAllowed size="50"}} - ``` - - - ```html - - ``` - - ## Actions - - The helper can send multiple actions based on user events. - - The action property defines the action which is sent when - the user presses the return key. - - ```handlebars - {{input action="submit"}} - ``` - - The helper allows some user events to send actions. - - * `enter` - * `insert-newline` - * `escape-press` - * `focus-in` - * `focus-out` - * `key-press` - - - For example, if you desire an action to be sent when the input is blurred, - you only need to setup the action name to the event name property. - - ```handlebars - {{input focus-in="alertMessage"}} - ``` - - See more about [Text Support Actions](/api/classes/Ember.TextField.html) - - ## Extension - - Internally, `{{input type="text"}}` creates an instance of `Ember.TextField`, passing - arguments from the helper to `Ember.TextField`'s `create` method. You can extend the - capabilities of text inputs in your applications by reopening this class. For example, - if you are building a Bootstrap project where `data-*` attributes are used, you - can add one to the `TextField`'s `attributeBindings` property: - - - ```javascript - Ember.TextField.reopen({ - attributeBindings: ['data-error'] - }); - ``` - - Keep in mind when writing `Ember.TextField` subclasses that `Ember.TextField` - itself extends `Ember.Component`, meaning that it does NOT inherit - the `controller` of the parent view. - - See more about [Ember components](/api/classes/Ember.Component.html) - - - ## Use as checkbox - - An `{{input}}` with a `type` of `checkbox` will render an HTML checkbox input. - The following HTML attributes can be set via the helper: - - * `checked` - * `disabled` - * `tabindex` - * `indeterminate` - * `name` - * `autofocus` - * `form` - - - When set to a quoted string, these values will be directly applied to the HTML - element. When left unquoted, these values will be bound to a property on the - template's current rendering context (most typically a controller instance). - - ## Unbound: - - ```handlebars - {{input type="checkbox" name="isAdmin"}} - ``` - - ```html - - ``` - - ## Bound: - - ```javascript - App.ApplicationController = Ember.Controller.extend({ - isAdmin: true - }); - ``` - - - ```handlebars - {{input type="checkbox" checked=isAdmin }} - ``` - - - ```html - - ``` - - ## Extension - - Internally, `{{input type="checkbox"}}` creates an instance of `Ember.Checkbox`, passing - arguments from the helper to `Ember.Checkbox`'s `create` method. You can extend the - capablilties of checkbox inputs in your applications by reopening this class. For example, - if you wanted to add a css class to all checkboxes in your application: - - - ```javascript - Ember.Checkbox.reopen({ - classNames: ['my-app-checkbox'] - }); - ``` - - - @method input - @for Ember.Handlebars.helpers - @param {Hash} options - */ - function inputHelper(params, hash, options, env) { - Ember.assert('You can only pass attributes to the `input` helper, not arguments', params.length === 0); - - var onEvent = hash.on; - var inputType; - - inputType = read(hash.type); - - if (inputType === 'checkbox') { - delete hash.type; - - Ember.assert("{{input type='checkbox'}} does not support setting `value=someBooleanValue`;" + - " you must use `checked=someBooleanValue` instead.", !hash.hasOwnProperty('value')); - - env.helpers.view.helperFunction.call(this, [Checkbox], hash, options, env); - } else { - delete hash.on; - - hash.onEvent = onEvent || 'enter'; - env.helpers.view.helperFunction.call(this, [TextField], hash, options, env); - } - } - - __exports__.inputHelper = inputHelper; - }); -enifed("ember-htmlbars/helpers/loc", - ["ember-metal/core","ember-runtime/system/string","ember-metal/streams/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - var loc = __dependency2__.loc; - var isStream = __dependency3__.isStream; - - /** - @module ember - @submodule ember-htmlbars - */ - - /** - Calls [Ember.String.loc](/api/classes/Ember.String.html#method_loc) with the - provided string. - - This is a convenient way to localize text within a template: - - ```javascript - Ember.STRINGS = { - '_welcome_': 'Bonjour' - }; - ``` - - ```handlebars -
    - {{loc '_welcome_'}} -
    - ``` - - ```html -
    - Bonjour -
    - ``` - - See [Ember.String.loc](/api/classes/Ember.String.html#method_loc) for how to - set up localized string references. - - @method loc - @for Ember.Handlebars.helpers - @param {String} str The string to format - @see {Ember.String#loc} - */ - function locHelper(params, hash, options, env) { - Ember.assert('You cannot pass bindings to `loc` helper', (function ifParamsContainBindings() { - for (var i = 0, l = params.length; i < l; i++) { - if (isStream(params[i])) { - return false; - } - } - return true; - })()); - - return loc.apply(this, params); - } - - __exports__.locHelper = locHelper; - }); -enifed("ember-htmlbars/helpers/log", - ["ember-metal/logger","ember-metal/streams/utils","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - var Logger = __dependency1__["default"]; - var read = __dependency2__.read; - - /** - `log` allows you to output the value of variables in the current rendering - context. `log` also accepts primitive types such as strings or numbers. - - ```handlebars - {{log "myVariable:" myVariable }} - ``` - - @method log - @for Ember.Handlebars.helpers - @param {String} property - */ - function logHelper(params, hash, options, env) { - var logger = Logger.log; - var values = []; - - for (var i = 0; i < params.length; i++) { - values.push(read(params[i])); - } - - logger.apply(logger, values); - } - - __exports__.logHelper = logHelper; - }); -enifed("ember-htmlbars/helpers/partial", - ["ember-metal/core","ember-metal/is_none","./binding","ember-metal/streams/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // Ember.assert - - var isNone = __dependency2__["default"]; - var bind = __dependency3__.bind; - var isStream = __dependency4__.isStream; - - /** - @module ember - @submodule ember-htmlbars - */ - - /** - The `partial` helper renders another template without - changing the template context: - - ```handlebars - {{foo}} - {{partial "nav"}} - ``` - - The above example template will render a template named - "_nav", which has the same context as the parent template - it's rendered into, so if the "_nav" template also referenced - `{{foo}}`, it would print the same thing as the `{{foo}}` - in the above example. - - If a "_nav" template isn't found, the `partial` helper will - fall back to a template named "nav". - - ## Bound template names - - The parameter supplied to `partial` can also be a path - to a property containing a template name, e.g.: - - ```handlebars - {{partial someTemplateName}} - ``` - - The above example will look up the value of `someTemplateName` - on the template context (e.g. a controller) and use that - value as the name of the template to render. If the resolved - value is falsy, nothing will be rendered. If `someTemplateName` - changes, the partial will be re-rendered using the new template - name. - - - @method partial - @for Ember.Handlebars.helpers - @param {String} partialName the name of the template to render minus the leading underscore - */ - - function partialHelper(params, hash, options, env) { - options.helperName = options.helperName || 'partial'; - - var name = params[0]; - - if (isStream(name)) { - options.template = createPartialTemplate(name); - bind.call(this, name, hash, options, env, true, exists); - } else { - return renderPartial(name, this, env, options.morph.contextualElement); - } - } - - __exports__.partialHelper = partialHelper;function exists(value) { - return !isNone(value); - } - - function lookupPartial(view, templateName) { - var nameParts = templateName.split("/"); - var lastPart = nameParts[nameParts.length - 1]; - - nameParts[nameParts.length - 1] = "_" + lastPart; - - var underscoredName = nameParts.join('/'); - var template = view.templateForName(underscoredName); - if (!template) { - template = view.templateForName(templateName); - } - - Ember.assert('Unable to find partial with name "'+templateName+'"', !!template); - - return template; - } - - function renderPartial(name, view, env, contextualElement) { - var template = lookupPartial(view, name); - return template.render(view, env, contextualElement); - } - - function createPartialTemplate(nameStream) { - return { - isHTMLBars: true, - render: function(view, env, contextualElement) { - return renderPartial(nameStream.value(), view, env, contextualElement); - } - }; - } - }); -enifed("ember-htmlbars/helpers/template", - ["ember-metal/core","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // Ember.deprecate; - - /** - @module ember - @submodule ember-htmlbars - */ - - /** - @deprecated - @method template - @for Ember.Handlebars.helpers - @param {String} templateName the template to render - */ - function templateHelper(params, hash, options, env) { - Ember.deprecate("The `template` helper has been deprecated in favor of the `partial` helper." + - " Please use `partial` instead, which will work the same way."); - - options.helperName = options.helperName || 'template'; - - return env.helpers.partial.helperFunction.call(this, params, hash, options, env); - } - - __exports__.templateHelper = templateHelper; - }); -enifed("ember-htmlbars/helpers/text_area", - ["ember-metal/core","ember-views/views/text_area","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - // Ember.assert - var TextArea = __dependency2__["default"]; - - /** - `{{textarea}}` inserts a new instance of ` - ``` - - Bound: - - In the following example, the `writtenWords` property on `App.ApplicationController` - will be updated live as the user types 'Lots of text that IS bound' into - the text area of their browser's window. - - ```javascript - App.ApplicationController = Ember.Controller.extend({ - writtenWords: "Lots of text that IS bound" - }); - ``` - - ```handlebars - {{textarea value=writtenWords}} - ``` - - Would result in the following HTML: - - ```html - - ``` - - If you wanted a one way binding between the text area and a div tag - somewhere else on your screen, you could use `Ember.computed.oneWay`: - - ```javascript - App.ApplicationController = Ember.Controller.extend({ - writtenWords: "Lots of text that IS bound", - outputWrittenWords: Ember.computed.oneWay("writtenWords") - }); - ``` - - ```handlebars - {{textarea value=writtenWords}} - -
    - {{outputWrittenWords}} -
    - ``` - - Would result in the following HTML: - - ```html - - - <-- the following div will be updated in real time as you type --> - -
    - Lots of text that IS bound -
    - ``` - - Finally, this example really shows the power and ease of Ember when two - properties are bound to eachother via `Ember.computed.alias`. Type into - either text area box and they'll both stay in sync. Note that - `Ember.computed.alias` costs more in terms of performance, so only use it when - your really binding in both directions: - - ```javascript - App.ApplicationController = Ember.Controller.extend({ - writtenWords: "Lots of text that IS bound", - twoWayWrittenWords: Ember.computed.alias("writtenWords") - }); - ``` - - ```handlebars - {{textarea value=writtenWords}} - {{textarea value=twoWayWrittenWords}} - ``` - - ```html - - - <-- both updated in real time --> - - - ``` - - ## Actions - - The helper can send multiple actions based on user events. - - The action property defines the action which is send when - the user presses the return key. - - ```handlebars - {{input action="submit"}} - ``` - - The helper allows some user events to send actions. - - * `enter` - * `insert-newline` - * `escape-press` - * `focus-in` - * `focus-out` - * `key-press` - - For example, if you desire an action to be sent when the input is blurred, - you only need to setup the action name to the event name property. - - ```handlebars - {{textarea focus-in="alertMessage"}} - ``` - - See more about [Text Support Actions](/api/classes/Ember.TextArea.html) - - ## Extension - - Internally, `{{textarea}}` creates an instance of `Ember.TextArea`, passing - arguments from the helper to `Ember.TextArea`'s `create` method. You can - extend the capabilities of text areas in your application by reopening this - class. For example, if you are building a Bootstrap project where `data-*` - attributes are used, you can globally add support for a `data-*` attribute - on all `{{textarea}}`s' in your app by reopening `Ember.TextArea` or - `Ember.TextSupport` and adding it to the `attributeBindings` concatenated - property: - - ```javascript - Ember.TextArea.reopen({ - attributeBindings: ['data-error'] - }); - ``` - - Keep in mind when writing `Ember.TextArea` subclasses that `Ember.TextArea` - itself extends `Ember.Component`, meaning that it does NOT inherit - the `controller` of the parent view. - - See more about [Ember components](/api/classes/Ember.Component.html) - - @method textarea - @for Ember.Handlebars.helpers - @param {Hash} options - */ - function textareaHelper(params, hash, options, env) { - Ember.assert('You can only pass attributes to the `textarea` helper, not arguments', params.length === 0); - - return env.helpers.view.helperFunction.call(this, [TextArea], hash, options, env); - } - - __exports__.textareaHelper = textareaHelper; - }); -enifed("ember-htmlbars/helpers/unbound", - ["ember-htmlbars/system/lookup-helper","ember-metal/streams/utils","ember-metal/error","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var lookupHelper = __dependency1__["default"]; - var read = __dependency2__.read; - var EmberError = __dependency3__["default"]; - - /** - @module ember - @submodule ember-htmlbars - */ - - /** - `unbound` allows you to output a property without binding. *Important:* The - output will not be updated if the property changes. Use with caution. - - ```handlebars -
    {{unbound somePropertyThatDoesntChange}}
    - ``` - - `unbound` can also be used in conjunction with a bound helper to - render it in its unbound form: - - ```handlebars -
    {{unbound helperName somePropertyThatDoesntChange}}
    - ``` - - @method unbound - @for Ember.Handlebars.helpers - @param {String} property - @return {String} HTML string - */ - function unboundHelper(params, hash, options, env) { - var length = params.length; - var result; - - options.helperName = options.helperName || 'unbound'; - - if (length === 1) { - result = read(params[0]); - } else if (length >= 2) { - env.data.isUnbound = true; - - var helperName = params[0]._label; - var args = []; - - for (var i = 1, l = params.length; i < l; i++) { - var value = read(params[i]); - - args.push(value); - } - - var helper = lookupHelper(helperName, this, env); - - if (!helper) { - throw new EmberError('HTMLBars error: Could not find component or helper named ' + helperName + '.'); - } - - result = helper.helperFunction.call(this, args, hash, options, env); - - delete env.data.isUnbound; - } - - return result; - } - - __exports__.unboundHelper = unboundHelper; - }); -enifed("ember-htmlbars/helpers/view", - ["ember-metal/core","ember-runtime/system/object","ember-metal/property_get","ember-metal/streams/simple","ember-metal/keys","ember-metal/mixin","ember-metal/streams/utils","ember-views/streams/utils","ember-views/views/view","ember-metal/enumerable_utils","ember-views/streams/class_name_binding","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - // Ember.warn, Ember.assert - var EmberObject = __dependency2__["default"]; - var get = __dependency3__.get; - var SimpleStream = __dependency4__["default"]; - var keys = __dependency5__["default"]; - var IS_BINDING = __dependency6__.IS_BINDING; - var read = __dependency7__.read; - var isStream = __dependency7__.isStream; - var readViewFactory = __dependency8__.readViewFactory; - var View = __dependency9__["default"]; - - var map = __dependency10__.map; - var streamifyClassNameBinding = __dependency11__.streamifyClassNameBinding; - - function makeBindings(hash, options, view) { - for (var prop in hash) { - var value = hash[prop]; - - // Classes are processed separately - if (prop === 'class' && isStream(value)) { - hash.classBinding = value._label; - delete hash['class']; - continue; - } - - if (prop === 'classBinding') { - continue; - } - - if (IS_BINDING.test(prop)) { - if (isStream(value)) { - Ember.warn("You're attempting to render a view by passing " + - prop + " " + - "to a view helper without a quoted value, " + - "but this syntax is ambiguous. You should either surround " + - prop + "'s value in quotes or remove `Binding` " + - "from " + prop + "."); - } else if (typeof value === 'string') { - hash[prop] = view._getBindingForStream(value); - } - } else { - if (isStream(value) && prop !== 'id') { - hash[prop + 'Binding'] = view._getBindingForStream(value); - delete hash[prop]; - } - } - } - } - - var ViewHelper = EmberObject.create({ - propertiesFromHTMLOptions: function(hash, options, env) { - var view = env.data.view; - var classes = read(hash['class']); - - var extensions = { - helperName: options.helperName || '' - }; - - if (hash.id) { - extensions.elementId = read(hash.id); - } - - if (hash.tag) { - extensions.tagName = hash.tag; - } - - if (classes) { - classes = classes.split(' '); - extensions.classNames = classes; - } - - if (hash.classBinding) { - extensions.classNameBindings = hash.classBinding.split(' '); - } - - if (hash.classNameBindings) { - if (extensions.classNameBindings === undefined) { - extensions.classNameBindings = []; - } - extensions.classNameBindings = extensions.classNameBindings.concat(hash.classNameBindings.split(' ')); - } - - if (hash.attributeBindings) { - Ember.assert("Setting 'attributeBindings' via template helpers is not allowed." + - " Please subclass Ember.View and set it there instead."); - extensions.attributeBindings = null; - } - - // Set the proper context for all bindings passed to the helper. This applies to regular attribute bindings - // as well as class name bindings. If the bindings are local, make them relative to the current context - // instead of the view. - - var hashKeys = keys(hash); - - for (var i = 0, l = hashKeys.length; i < l; i++) { - var prop = hashKeys[i]; - - if (prop !== 'classNameBindings') { - extensions[prop] = hash[prop]; - } - } - - if (extensions.classNameBindings) { - extensions.classNameBindings = map(extensions.classNameBindings, function(classNameBinding){ - var binding = streamifyClassNameBinding(view, classNameBinding); - if (isStream(binding)) { - return binding; - } else { - // returning a stream informs the classNameBindings logic - // in views/view that this value is already processed. - return new SimpleStream(binding); - } - }); - } - - return extensions; - }, - - helper: function(newView, hash, options, env) { - var data = env.data; - var template = options.template; - var newViewProto; - - makeBindings(hash, options, env.data.view); - - var viewOptions = this.propertiesFromHTMLOptions(hash, options, env); - var currentView = data.view; - - if (View.detectInstance(newView)) { - newViewProto = newView; - } else { - newViewProto = newView.proto(); - } - - if (template) { - Ember.assert( - "You cannot provide a template block if you also specified a templateName", - !get(viewOptions, 'templateName') && !get(newViewProto, 'templateName') - ); - viewOptions.template = template; - } - - // We only want to override the `_context` computed property if there is - // no specified controller. See View#_context for more information. - if (!newViewProto.controller && !newViewProto.controllerBinding && !viewOptions.controller && !viewOptions.controllerBinding) { - viewOptions._context = get(currentView, 'context'); // TODO: is this right?! - } - - viewOptions._morph = options.morph; - - currentView.appendChild(newView, viewOptions); - }, - - instanceHelper: function(newView, hash, options, env) { - var data = env.data; - var template = options.template; - - makeBindings(hash, options, env.data.view); - - Ember.assert( - 'Only a instance of a view may be passed to the ViewHelper.instanceHelper', - View.detectInstance(newView) - ); - - var viewOptions = this.propertiesFromHTMLOptions(hash, options, env); - var currentView = data.view; - - if (template) { - Ember.assert( - "You cannot provide a template block if you also specified a templateName", - !get(viewOptions, 'templateName') && !get(newView, 'templateName') - ); - viewOptions.template = template; - } - - // We only want to override the `_context` computed property if there is - // no specified controller. See View#_context for more information. - if (!newView.controller && !newView.controllerBinding && - !viewOptions.controller && !viewOptions.controllerBinding) { - viewOptions._context = get(currentView, 'context'); // TODO: is this right?! - } - - viewOptions._morph = options.morph; - - currentView.appendChild(newView, viewOptions); - } - }); - __exports__.ViewHelper = ViewHelper; - /** - `{{view}}` inserts a new instance of an `Ember.View` into a template passing its - options to the `Ember.View`'s `create` method and using the supplied block as - the view's own template. - - An empty `` and the following template: - - ```handlebars - A span: - {{#view tagName="span"}} - hello. - {{/view}} - ``` - - Will result in HTML structure: - - ```html - - - -
    - A span: - - Hello. - -
    - - ``` - - ### `parentView` setting - - The `parentView` property of the new `Ember.View` instance created through - `{{view}}` will be set to the `Ember.View` instance of the template where - `{{view}}` was called. - - ```javascript - aView = Ember.View.create({ - template: Ember.Handlebars.compile("{{#view}} my parent: {{parentView.elementId}} {{/view}}") - }); - - aView.appendTo('body'); - ``` - - Will result in HTML structure: - - ```html -
    -
    - my parent: ember1 -
    -
    - ``` - - ### Setting CSS id and class attributes - - The HTML `id` attribute can be set on the `{{view}}`'s resulting element with - the `id` option. This option will _not_ be passed to `Ember.View.create`. - - ```handlebars - {{#view tagName="span" id="a-custom-id"}} - hello. - {{/view}} - ``` - - Results in the following HTML structure: - - ```html -
    - - hello. - -
    - ``` - - The HTML `class` attribute can be set on the `{{view}}`'s resulting element - with the `class` or `classNameBindings` options. The `class` option will - directly set the CSS `class` attribute and will not be passed to - `Ember.View.create`. `classNameBindings` will be passed to `create` and use - `Ember.View`'s class name binding functionality: - - ```handlebars - {{#view tagName="span" class="a-custom-class"}} - hello. - {{/view}} - ``` - - Results in the following HTML structure: - - ```html -
    - - hello. - -
    - ``` - - ### Supplying a different view class - - `{{view}}` can take an optional first argument before its supplied options to - specify a path to a custom view class. - - ```handlebars - {{#view "custom"}}{{! will look up App.CustomView }} - hello. - {{/view}} - ``` - - The first argument can also be a relative path accessible from the current - context. - - ```javascript - MyApp = Ember.Application.create({}); - MyApp.OuterView = Ember.View.extend({ - innerViewClass: Ember.View.extend({ - classNames: ['a-custom-view-class-as-property'] - }), - template: Ember.Handlebars.compile('{{#view view.innerViewClass}} hi {{/view}}') - }); - - MyApp.OuterView.create().appendTo('body'); - ``` - - Will result in the following HTML: - - ```html -
    -
    - hi -
    -
    - ``` - - ### Blockless use - - If you supply a custom `Ember.View` subclass that specifies its own template - or provide a `templateName` option to `{{view}}` it can be used without - supplying a block. Attempts to use both a `templateName` option and supply a - block will throw an error. - - ```javascript - var App = Ember.Application.create(); - App.WithTemplateDefinedView = Ember.View.extend({ - templateName: 'defined-template' - }); - ``` - - ```handlebars - {{! application.hbs }} - {{view 'with-template-defined'}} - ``` - - ```handlebars - {{! defined-template.hbs }} - Some content for the defined template view. - ``` - - ### `viewName` property - - You can supply a `viewName` option to `{{view}}`. The `Ember.View` instance - will be referenced as a property of its parent view by this name. - - ```javascript - aView = Ember.View.create({ - template: Ember.Handlebars.compile('{{#view viewName="aChildByName"}} hi {{/view}}') - }); - - aView.appendTo('body'); - aView.get('aChildByName') // the instance of Ember.View created by {{view}} helper - ``` - - @method view - @for Ember.Handlebars.helpers - @param {String} path - @param {Hash} options - @return {String} HTML string - */ - function viewHelper(params, hash, options, env) { - Ember.assert("The view helper only takes a single argument", params.length <= 2); - - var container = this.container || read(this._keywords.view).container; - var viewClass; - - if (params.length === 0) { - if (container) { - viewClass = container.lookupFactory('view:toplevel'); - } else { - viewClass = View; - } - } else { - var pathStream = params[0]; - viewClass = readViewFactory(pathStream, container); - } - - options.helperName = options.helperName || 'view'; - - return ViewHelper.helper(viewClass, hash, options, env); - } - - __exports__.viewHelper = viewHelper; - }); -enifed("ember-htmlbars/helpers/with", - ["ember-metal/core","ember-metal/is_none","ember-htmlbars/helpers/binding","ember-views/views/with_view","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - // Ember.assert - var isNone = __dependency2__["default"]; - var bind = __dependency3__.bind; - var WithView = __dependency4__["default"]; - - /** - Use the `{{with}}` helper when you want to aliases the to a new name. It's helpful - for semantic clarity and to retain default scope or to reference from another - `{{with}}` block. - - ```handlebars - // posts might not be - {{#with user.posts as blogPosts}} -
    - There are {{blogPosts.length}} blog posts written by {{user.name}}. -
    - - {{#each post in blogPosts}} -
  • {{post.title}}
  • - {{/each}} - {{/with}} - ``` - - Without the `as` operator, it would be impossible to reference `user.name` in the example above. - - NOTE: The alias should not reuse a name from the bound property path. - For example: `{{#with foo.bar as foo}}` is not supported because it attempts to alias using - the first part of the property path, `foo`. Instead, use `{{#with foo.bar as baz}}`. - - ### `controller` option - - Adding `controller='something'` instructs the `{{with}}` helper to create and use an instance of - the specified controller wrapping the aliased keyword. - - This is very similar to using an `itemController` option with the `{{each}}` helper. - - ```handlebars - {{#with users.posts as posts controller='userBlogPosts'}} - {{!- `posts` is wrapped in our controller instance }} - {{/with}} - ``` - - In the above example, the `posts` keyword is now wrapped in the `userBlogPost` controller, - which provides an elegant way to decorate the context with custom - functions/properties. - - @method with - @for Ember.Handlebars.helpers - @param {Function} context - @param {Hash} options - @return {String} HTML string - */ - function withHelper(params, hash, options, env) { - Ember.assert( - "{{#with foo}} must be called with a single argument or the use the " + - "{{#with foo as bar}} syntax", - params.length === 1 - ); - - Ember.assert( - "The {{#with}} helper must be called with a block", - !!options.template - ); - - var preserveContext; - - if (options.template.blockParams) { - preserveContext = true; - } else { - Ember.deprecate( - "Using the context switching form of `{{with}}` is deprecated. " + - "Please use the keyword form (`{{with foo as bar}}`) instead.", - false, - { url: 'http://emberjs.com/guides/deprecations/#toc_more-consistent-handlebars-scope' } - ); - preserveContext = false; - } - - bind.call(this, params[0], hash, options, env, preserveContext, exists, undefined, undefined, WithView); - } - - __exports__.withHelper = withHelper;function exists(value) { - return !isNone(value); - } - }); -enifed("ember-htmlbars/helpers/yield", - ["ember-metal/core","ember-metal/property_get","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - - var get = __dependency2__.get; - - /** - `{{yield}}` denotes an area of a template that will be rendered inside - of another template. It has two main uses: - - ### Use with `layout` - When used in a Handlebars template that is assigned to an `Ember.View` - instance's `layout` property Ember will render the layout template first, - inserting the view's own rendered output at the `{{yield}}` location. - - An empty `` and the following application code: - - ```javascript - AView = Ember.View.extend({ - classNames: ['a-view-with-layout'], - layout: Ember.Handlebars.compile('
    {{yield}}
    '), - template: Ember.Handlebars.compile('I am wrapped') - }); - - aView = AView.create(); - aView.appendTo('body'); - ``` - - Will result in the following HTML output: - - ```html - -
    -
    - I am wrapped -
    -
    - - ``` - - The `yield` helper cannot be used outside of a template assigned to an - `Ember.View`'s `layout` property and will throw an error if attempted. - - ```javascript - BView = Ember.View.extend({ - classNames: ['a-view-with-layout'], - template: Ember.Handlebars.compile('{{yield}}') - }); - - bView = BView.create(); - bView.appendTo('body'); - - // throws - // Uncaught Error: assertion failed: - // You called yield in a template that was not a layout - ``` - - ### Use with Ember.Component - When designing components `{{yield}}` is used to denote where, inside the component's - template, an optional block passed to the component should render: - - ```handlebars - - {{#labeled-textfield value=someProperty}} - First name: - {{/labeled-textfield}} - ``` - - ```handlebars - - - ``` - - Result: - - ```html - - ``` - - @method yield - @for Ember.Handlebars.helpers - @param {Hash} options - @return {String} HTML string - */ - function yieldHelper(params, hash, options, env) { - var view = this; - - // Yea gods - while (view && !get(view, 'layout')) { - if (view._contextView) { - view = view._contextView; - } else { - view = get(view, '_parentView'); - } - } - - Ember.assert("You called yield in a template that was not a layout", !!view); - - return view._yield(null, env, options.morph, params); - } - - __exports__.yieldHelper = yieldHelper; - }); -enifed("ember-htmlbars/hooks/attribute", - ["ember-views/attr_nodes/attr_node","ember-metal/error","ember-metal/streams/utils","ember-views/system/sanitize_attribute_value","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var AttrNode = __dependency1__["default"]; - var EmberError = __dependency2__["default"]; - var isStream = __dependency3__.isStream; - var sanitizeAttributeValue = __dependency4__["default"]; - - var boundAttributesEnabled = false; - - - __exports__["default"] = function attribute(env, morph, element, attrName, attrValue) { - if (boundAttributesEnabled) { - var attrNode = new AttrNode(attrName, attrValue); - attrNode._morph = morph; - env.data.view.appendChild(attrNode); - } else { - if (isStream(attrValue)) { - throw new EmberError('Bound attributes are not yet supported in Ember.js'); - } else { - var sanitizedValue = sanitizeAttributeValue(element, attrName, attrValue); - env.dom.setProperty(element, attrName, sanitizedValue); - } - } - } - }); -enifed("ember-htmlbars/hooks/block", - ["ember-views/views/simple_bound_view","ember-metal/streams/utils","ember-htmlbars/system/lookup-helper","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var appendSimpleBoundView = __dependency1__.appendSimpleBoundView; - var isStream = __dependency2__.isStream; - var lookupHelper = __dependency3__["default"]; - - __exports__["default"] = function block(env, morph, view, path, params, hash, template, inverse) { - var helper = lookupHelper(path, view, env); - - Ember.assert("A helper named `"+path+"` could not be found", helper); - - var options = { - morph: morph, - template: template, - inverse: inverse, - isBlock: true - }; - var result = helper.helperFunction.call(view, params, hash, options, env); - - if (isStream(result)) { - appendSimpleBoundView(view, morph, result); - } else { - morph.setContent(result); - } - } - }); -enifed("ember-htmlbars/hooks/component", - ["ember-metal/core","ember-htmlbars/system/lookup-helper","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - var lookupHelper = __dependency2__["default"]; - - __exports__["default"] = function component(env, morph, view, tagName, attrs, template) { - var helper = lookupHelper(tagName, view, env); - - Ember.assert('You specified `' + tagName + '` in your template, but a component for `' + tagName + '` could not be found.', !!helper); - - return helper.helperFunction.call(view, [], attrs, {morph: morph, template: template}, env); - } - }); -enifed("ember-htmlbars/hooks/concat", - ["ember-metal/streams/utils","exports"], - function(__dependency1__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var streamConcat = __dependency1__.concat; - - __exports__["default"] = function concat(env, parts) { - return streamConcat(parts, ''); - } - }); -enifed("ember-htmlbars/hooks/content", - ["ember-views/views/simple_bound_view","ember-metal/streams/utils","ember-htmlbars/system/lookup-helper","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var appendSimpleBoundView = __dependency1__.appendSimpleBoundView; - var isStream = __dependency2__.isStream; - var lookupHelper = __dependency3__["default"]; - - __exports__["default"] = function content(env, morph, view, path) { - var helper = lookupHelper(path, view, env); - var result; - - if (helper) { - var options = { - morph: morph, - isInline: true - }; - result = helper.helperFunction.call(view, [], {}, options, env); - } else { - result = view.getStream(path); - } - - if (isStream(result)) { - appendSimpleBoundView(view, morph, result); - } else { - morph.setContent(result); - } - } - }); -enifed("ember-htmlbars/hooks/element", - ["ember-metal/core","ember-metal/streams/utils","ember-htmlbars/system/lookup-helper","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - var read = __dependency2__.read; - var lookupHelper = __dependency3__["default"]; - - __exports__["default"] = function element(env, domElement, view, path, params, hash) { //jshint ignore:line - var helper = lookupHelper(path, view, env); - var valueOrLazyValue; - - if (helper) { - var options = { - element: domElement - }; - valueOrLazyValue = helper.helperFunction.call(view, params, hash, options, env); - } else { - valueOrLazyValue = view.getStream(path); - } - - var value = read(valueOrLazyValue); - if (value) { - Ember.deprecate('Returning a string of attributes from a helper inside an element is deprecated.'); - - var parts = value.toString().split(/\s+/); - for (var i = 0, l = parts.length; i < l; i++) { - var attrParts = parts[i].split('='); - var attrName = attrParts[0]; - var attrValue = attrParts[1]; - - attrValue = attrValue.replace(/^['"]/, '').replace(/['"]$/, ''); - - env.dom.setAttribute(domElement, attrName, attrValue); - } - } - } - }); -enifed("ember-htmlbars/hooks/get", - ["exports"], - function(__exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - __exports__["default"] = function get(env, view, path) { - return view.getStream(path); - } - }); -enifed("ember-htmlbars/hooks/inline", - ["ember-views/views/simple_bound_view","ember-metal/streams/utils","ember-htmlbars/system/lookup-helper","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var appendSimpleBoundView = __dependency1__.appendSimpleBoundView; - var isStream = __dependency2__.isStream; - var lookupHelper = __dependency3__["default"]; - - __exports__["default"] = function inline(env, morph, view, path, params, hash) { - var helper = lookupHelper(path, view, env); - - Ember.assert("A helper named '"+path+"' could not be found", helper); - - var result = helper.helperFunction.call(view, params, hash, {morph: morph}, env); - - if (isStream(result)) { - appendSimpleBoundView(view, morph, result); - } else { - morph.setContent(result); - } - } - }); -enifed("ember-htmlbars/hooks/set", - ["ember-metal/core","ember-metal/error","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - var EmberError = __dependency2__["default"]; - - __exports__["default"] = function set(env, view, name, value) { - - view._keywords[name] = value; - } - }); -enifed("ember-htmlbars/hooks/subexpr", - ["ember-htmlbars/system/lookup-helper","exports"], - function(__dependency1__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var lookupHelper = __dependency1__["default"]; - - __exports__["default"] = function subexpr(env, view, path, params, hash) { - var helper = lookupHelper(path, view, env); - - Ember.assert("A helper named '"+path+"' could not be found", helper); - - var options = { - isInline: true - }; - return helper.helperFunction.call(view, params, hash, options, env); - } - }); -enifed("ember-htmlbars/system/bootstrap", - ["ember-metal/core","ember-views/component_lookup","ember-views/system/jquery","ember-metal/error","ember-runtime/system/lazy_load","ember-template-compiler/system/compile","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) { - "use strict"; - /*globals Handlebars */ - - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - var ComponentLookup = __dependency2__["default"]; - var jQuery = __dependency3__["default"]; - var EmberError = __dependency4__["default"]; - var onLoad = __dependency5__.onLoad; - var htmlbarsCompile = __dependency6__["default"]; - - /** - @module ember - @submodule ember-handlebars - */ - - /** - Find templates stored in the head tag as script tags and make them available - to `Ember.CoreView` in the global `Ember.TEMPLATES` object. This will be run - as as jQuery DOM-ready callback. - - Script tags with `text/x-handlebars` will be compiled - with Ember's Handlebars and are suitable for use as a view's template. - Those with type `text/x-raw-handlebars` will be compiled with regular - Handlebars and are suitable for use in views' computed properties. - - @private - @method bootstrap - @for Ember.Handlebars - @static - @param ctx - */ - function bootstrap(ctx) { - var selectors = 'script[type="text/x-handlebars"], script[type="text/x-raw-handlebars"]'; - - jQuery(selectors, ctx) - .each(function() { - // Get a reference to the script tag - var script = jQuery(this); - - var compile = (script.attr('type') === 'text/x-raw-handlebars') ? - jQuery.proxy(Handlebars.compile, Handlebars) : - htmlbarsCompile; - // Get the name of the script, used by Ember.View's templateName property. - // First look for data-template-name attribute, then fall back to its - // id if no name is found. - var templateName = script.attr('data-template-name') || script.attr('id') || 'application'; - var template = compile(script.html()); - - // Check if template of same name already exists - if (Ember.TEMPLATES[templateName] !== undefined) { - throw new EmberError('Template named "' + templateName + '" already exists.'); - } - - // For templates which have a name, we save them and then remove them from the DOM - Ember.TEMPLATES[templateName] = template; - - // Remove script tag from DOM - script.remove(); - }); - } - - function _bootstrap() { - bootstrap( jQuery(document) ); - } - - function registerComponentLookup(container) { - container.register('component-lookup:main', ComponentLookup); - } - - /* - We tie this to application.load to ensure that we've at least - attempted to bootstrap at the point that the application is loaded. - - We also tie this to document ready since we're guaranteed that all - the inline templates are present at this point. - - There's no harm to running this twice, since we remove the templates - from the DOM after processing. - */ - - onLoad('Ember.Application', function(Application) { - - - Application.initializer({ - name: 'domTemplates', - initialize: _bootstrap - }); - - Application.initializer({ - name: 'registerComponentLookup', - after: 'domTemplates', - initialize: registerComponentLookup - }); - - - }); - - __exports__["default"] = bootstrap; - }); -enifed("ember-htmlbars/system/helper", - ["exports"], - function(__exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - /** - @class Helper - @namespace Ember.HTMLBars - */ - function Helper(helper) { - this.helperFunction = helper; - - this.isHelper = true; - this.isHTMLBars = true; - } - - __exports__["default"] = Helper; - }); -enifed("ember-htmlbars/system/lookup-helper", - ["ember-metal/core","ember-metal/cache","ember-htmlbars/system/make-view-helper","ember-htmlbars/compat/helper","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - var Cache = __dependency2__["default"]; - var makeViewHelper = __dependency3__["default"]; - var HandlebarsCompatibleHelper = __dependency4__["default"]; - - var ISNT_HELPER_CACHE = new Cache(1000, function(key) { - return key.indexOf('-') === -1; - }); - __exports__.ISNT_HELPER_CACHE = ISNT_HELPER_CACHE; - /** - Used to lookup/resolve handlebars helpers. The lookup order is: - - * Look for a registered helper - * If a dash exists in the name: - * Look for a helper registed in the container - * Use Ember.ComponentLookup to find an Ember.Component that resolves - to the given name - - @private - @method resolveHelper - @param {Container} container - @param {String} name the name of the helper to lookup - @return {Handlebars Helper} - */ - __exports__["default"] = function lookupHelper(name, view, env) { - var helper = env.helpers[name]; - if (helper) { - return helper; - } - - var container = view.container; - - if (!container || ISNT_HELPER_CACHE.get(name)) { - return; - } - - var helperName = 'helper:' + name; - helper = container.lookup(helperName); - if (!helper) { - var componentLookup = container.lookup('component-lookup:main'); - Ember.assert("Could not find 'component-lookup:main' on the provided container," + - " which is necessary for performing component lookups", componentLookup); - - var Component = componentLookup.lookupFactory(name, container); - if (Component) { - helper = makeViewHelper(Component); - container.register(helperName, helper); - } - } - - if (helper && !helper.isHTMLBars) { - helper = new HandlebarsCompatibleHelper(helper); - container.unregister(helperName); - container.register(helperName, helper); - } - - return helper; - } - }); -enifed("ember-htmlbars/system/make-view-helper", - ["ember-metal/core","ember-htmlbars/system/helper","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - // Ember.assert - var Helper = __dependency2__["default"]; - - /** - Returns a helper function that renders the provided ViewClass. - - Used internally by Ember.Handlebars.helper and other methods - involving helper/component registration. - - @private - @method makeViewHelper - @param {Function} ViewClass view class constructor - @since 1.2.0 - */ - __exports__["default"] = function makeViewHelper(ViewClass) { - function helperFunc(params, hash, options, env) { - Ember.assert("You can only pass attributes (such as name=value) not bare " + - "values to a helper for a View found in '" + ViewClass.toString() + "'", params.length === 0); - - return env.helpers.view.helperFunction.call(this, [ViewClass], hash, options, env); - } - - return new Helper(helperFunc); - } - }); -enifed("ember-htmlbars/system/make_bound_helper", - ["ember-metal/core","ember-htmlbars/system/helper","ember-metal/streams/stream","ember-metal/streams/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var Ember = __dependency1__["default"]; - // Ember.FEATURES, Ember.assert, Ember.Handlebars, Ember.lookup - var Helper = __dependency2__["default"]; - - var Stream = __dependency3__["default"]; - var readArray = __dependency4__.readArray; - var readHash = __dependency4__.readHash; - var subscribe = __dependency4__.subscribe; - var scanHash = __dependency4__.scanHash; - var scanArray = __dependency4__.scanArray; - - /** - Create a bound helper. Accepts a function that receives the ordered and hash parameters - from the template. If a bound property was provided in the template it will be resolved to its - value and any changes to the bound property cause the helper function to be re-ran with the updated - values. - - * `params` - An array of resolved ordered parameters. - * `hash` - An object containing the hash parameters. - - For example: - - * With an unqouted ordered parameter: - - ```javascript - {{x-capitalize foo}} - ``` - - Assuming `foo` was set to `"bar"`, the bound helper would receive `["bar"]` as its first argument, and - an empty hash as its second. - - * With a quoted ordered parameter: - - ```javascript - {{x-capitalize "foo"}} - ``` - - The bound helper would receive `["foo"]` as its first argument, and an empty hash as its second. - - * With an unquoted hash parameter: - - ```javascript - {{x-repeat "foo" count=repeatCount}} - ``` - - Assuming that `repeatCount` resolved to 2, the bound helper would receive `["foo"]` as its first argument, - and { count: 2 } as its second. - - @private - @method makeBoundHelper - @for Ember.HTMLBars - @param {Function} function - @since 1.10.0 - */ - __exports__["default"] = function makeBoundHelper(fn) { - function helperFunc(params, hash, options, env) { - var view = this; - var numParams = params.length; - var param, prop; - - Ember.assert("makeBoundHelper generated helpers do not support use with blocks", !options.template); - - function valueFn() { - return fn.call(view, readArray(params), readHash(hash), options, env); - } - - // If none of the hash parameters are bound, act as an unbound helper. - // This prevents views from being unnecessarily created - var hasStream = scanArray(params) || scanHash(hash); - - if (env.data.isUnbound || !hasStream) { - return valueFn(); - } else { - var lazyValue = new Stream(valueFn); - - for (var i = 0; i < numParams; i++) { - param = params[i]; - subscribe(param, lazyValue.notify, lazyValue); - } - - for (prop in hash) { - param = hash[prop]; - subscribe(param, lazyValue.notify, lazyValue); - } - - return lazyValue; - } - } - - return new Helper(helperFunc); - } - }); -enifed("ember-htmlbars/templates/component", - ["ember-template-compiler/system/template","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var template = __dependency1__["default"]; - var t = (function() { - return { - isHTMLBars: true, - blockParams: 0, - cachedFragment: null, - hasRendered: false, - build: function build(dom) { - var el0 = dom.createDocumentFragment(); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - return el0; - }, - render: function render(context, env, contextualElement) { - var dom = env.dom; - var hooks = env.hooks, content = hooks.content; - dom.detectNamespace(contextualElement); - var fragment; - if (env.useFragmentCache && dom.canClone) { - if (this.cachedFragment === null) { - fragment = this.build(dom); - if (this.hasRendered) { - this.cachedFragment = fragment; - } else { - this.hasRendered = true; - } - } - if (this.cachedFragment) { - fragment = dom.cloneNode(this.cachedFragment, true); - } - } else { - fragment = this.build(dom); - } - if (this.cachedFragment) { dom.repairClonedNode(fragment,[0,1]); } - var morph0 = dom.createMorphAt(fragment,0,1,contextualElement); - content(env, morph0, context, "yield"); - return fragment; - } - }; - }()); - __exports__["default"] = template(t); - }); -enifed("ember-htmlbars/templates/select-option", - ["ember-template-compiler/system/template","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var template = __dependency1__["default"]; - var t = (function() { - return { - isHTMLBars: true, - blockParams: 0, - cachedFragment: null, - hasRendered: false, - build: function build(dom) { - var el0 = dom.createDocumentFragment(); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - return el0; - }, - render: function render(context, env, contextualElement) { - var dom = env.dom; - var hooks = env.hooks, content = hooks.content; - dom.detectNamespace(contextualElement); - var fragment; - if (env.useFragmentCache && dom.canClone) { - if (this.cachedFragment === null) { - fragment = this.build(dom); - if (this.hasRendered) { - this.cachedFragment = fragment; - } else { - this.hasRendered = true; - } - } - if (this.cachedFragment) { - fragment = dom.cloneNode(this.cachedFragment, true); - } - } else { - fragment = this.build(dom); - } - if (this.cachedFragment) { dom.repairClonedNode(fragment,[0,1]); } - var morph0 = dom.createMorphAt(fragment,0,1,contextualElement); - content(env, morph0, context, "view.label"); - return fragment; - } - }; - }()); - __exports__["default"] = template(t); - }); -enifed("ember-htmlbars/templates/select", - ["ember-template-compiler/system/template","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var template = __dependency1__["default"]; - var t = (function() { - var child0 = (function() { - return { - isHTMLBars: true, - blockParams: 0, - cachedFragment: null, - hasRendered: false, - build: function build(dom) { - var el0 = dom.createElement("option"); - dom.setAttribute(el0,"value",""); - return el0; - }, - render: function render(context, env, contextualElement) { - var dom = env.dom; - var hooks = env.hooks, content = hooks.content; - dom.detectNamespace(contextualElement); - var fragment; - if (env.useFragmentCache && dom.canClone) { - if (this.cachedFragment === null) { - fragment = this.build(dom); - if (this.hasRendered) { - this.cachedFragment = fragment; - } else { - this.hasRendered = true; - } - } - if (this.cachedFragment) { - fragment = dom.cloneNode(this.cachedFragment, true); - } - } else { - fragment = this.build(dom); - } - var morph0 = dom.createMorphAt(fragment,-1,-1); - content(env, morph0, context, "view.prompt"); - return fragment; - } - }; - }()); - var child1 = (function() { - var child0 = (function() { - return { - isHTMLBars: true, - blockParams: 0, - cachedFragment: null, - hasRendered: false, - build: function build(dom) { - var el0 = dom.createDocumentFragment(); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - return el0; - }, - render: function render(context, env, contextualElement) { - var dom = env.dom; - var hooks = env.hooks, get = hooks.get, inline = hooks.inline; - dom.detectNamespace(contextualElement); - var fragment; - if (env.useFragmentCache && dom.canClone) { - if (this.cachedFragment === null) { - fragment = this.build(dom); - if (this.hasRendered) { - this.cachedFragment = fragment; - } else { - this.hasRendered = true; - } - } - if (this.cachedFragment) { - fragment = dom.cloneNode(this.cachedFragment, true); - } - } else { - fragment = this.build(dom); - } - if (this.cachedFragment) { dom.repairClonedNode(fragment,[0,1]); } - var morph0 = dom.createMorphAt(fragment,0,1,contextualElement); - inline(env, morph0, context, "view", [get(env, context, "view.groupView")], {"content": get(env, context, "group.content"), "label": get(env, context, "group.label")}); - return fragment; - } - }; - }()); - return { - isHTMLBars: true, - blockParams: 0, - cachedFragment: null, - hasRendered: false, - build: function build(dom) { - var el0 = dom.createDocumentFragment(); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - return el0; - }, - render: function render(context, env, contextualElement) { - var dom = env.dom; - var hooks = env.hooks, get = hooks.get, block = hooks.block; - dom.detectNamespace(contextualElement); - var fragment; - if (env.useFragmentCache && dom.canClone) { - if (this.cachedFragment === null) { - fragment = this.build(dom); - if (this.hasRendered) { - this.cachedFragment = fragment; - } else { - this.hasRendered = true; - } - } - if (this.cachedFragment) { - fragment = dom.cloneNode(this.cachedFragment, true); - } - } else { - fragment = this.build(dom); - } - if (this.cachedFragment) { dom.repairClonedNode(fragment,[0,1]); } - var morph0 = dom.createMorphAt(fragment,0,1,contextualElement); - block(env, morph0, context, "each", [get(env, context, "view.groupedContent")], {"keyword": "group"}, child0, null); - return fragment; - } - }; - }()); - var child2 = (function() { - var child0 = (function() { - return { - isHTMLBars: true, - blockParams: 0, - cachedFragment: null, - hasRendered: false, - build: function build(dom) { - var el0 = dom.createDocumentFragment(); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - return el0; - }, - render: function render(context, env, contextualElement) { - var dom = env.dom; - var hooks = env.hooks, get = hooks.get, inline = hooks.inline; - dom.detectNamespace(contextualElement); - var fragment; - if (env.useFragmentCache && dom.canClone) { - if (this.cachedFragment === null) { - fragment = this.build(dom); - if (this.hasRendered) { - this.cachedFragment = fragment; - } else { - this.hasRendered = true; - } - } - if (this.cachedFragment) { - fragment = dom.cloneNode(this.cachedFragment, true); - } - } else { - fragment = this.build(dom); - } - if (this.cachedFragment) { dom.repairClonedNode(fragment,[0,1]); } - var morph0 = dom.createMorphAt(fragment,0,1,contextualElement); - inline(env, morph0, context, "view", [get(env, context, "view.optionView")], {"content": get(env, context, "item")}); - return fragment; - } - }; - }()); - return { - isHTMLBars: true, - blockParams: 0, - cachedFragment: null, - hasRendered: false, - build: function build(dom) { - var el0 = dom.createDocumentFragment(); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - return el0; - }, - render: function render(context, env, contextualElement) { - var dom = env.dom; - var hooks = env.hooks, get = hooks.get, block = hooks.block; - dom.detectNamespace(contextualElement); - var fragment; - if (env.useFragmentCache && dom.canClone) { - if (this.cachedFragment === null) { - fragment = this.build(dom); - if (this.hasRendered) { - this.cachedFragment = fragment; - } else { - this.hasRendered = true; - } - } - if (this.cachedFragment) { - fragment = dom.cloneNode(this.cachedFragment, true); - } - } else { - fragment = this.build(dom); - } - if (this.cachedFragment) { dom.repairClonedNode(fragment,[0,1]); } - var morph0 = dom.createMorphAt(fragment,0,1,contextualElement); - block(env, morph0, context, "each", [get(env, context, "view.content")], {"keyword": "item"}, child0, null); - return fragment; - } - }; - }()); - return { - isHTMLBars: true, - blockParams: 0, - cachedFragment: null, - hasRendered: false, - build: function build(dom) { - var el0 = dom.createDocumentFragment(); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - var el1 = dom.createTextNode(""); - dom.appendChild(el0, el1); - var el1 = dom.createTextNode("\n"); - dom.appendChild(el0, el1); - return el0; - }, - render: function render(context, env, contextualElement) { - var dom = env.dom; - var hooks = env.hooks, get = hooks.get, block = hooks.block; - dom.detectNamespace(contextualElement); - var fragment; - if (env.useFragmentCache && dom.canClone) { - if (this.cachedFragment === null) { - fragment = this.build(dom); - if (this.hasRendered) { - this.cachedFragment = fragment; - } else { - this.hasRendered = true; - } - } - if (this.cachedFragment) { - fragment = dom.cloneNode(this.cachedFragment, true); - } - } else { - fragment = this.build(dom); - } - if (this.cachedFragment) { dom.repairClonedNode(fragment,[0,1]); } - var morph0 = dom.createMorphAt(fragment,0,1,contextualElement); - var morph1 = dom.createMorphAt(fragment,1,2,contextualElement); - block(env, morph0, context, "if", [get(env, context, "view.prompt")], {}, child0, null); - block(env, morph1, context, "if", [get(env, context, "view.optionGroupPath")], {}, child1, child2); - return fragment; - } - }; - }()); - __exports__["default"] = template(t); - }); -enifed("ember-htmlbars/utils/string", - ["htmlbars-util","ember-runtime/system/string","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - // required so we can extend this object. - var SafeString = __dependency1__.SafeString; - var escapeExpression = __dependency1__.escapeExpression; - var EmberStringUtils = __dependency2__["default"]; - - /** - Mark a string as safe for unescaped output with Handlebars. If you - return HTML from a Handlebars helper, use this function to - ensure Handlebars does not escape the HTML. - - ```javascript - Ember.String.htmlSafe('
    someString
    ') - ``` - - @method htmlSafe - @for Ember.String - @static - @return {Handlebars.SafeString} a string that will not be html escaped by Handlebars - */ - function htmlSafe(str) { - if (str === null || str === undefined) { - return ""; - } - - if (typeof str !== 'string') { - str = ''+str; - } - return new SafeString(str); - } - - EmberStringUtils.htmlSafe = htmlSafe; - if (Ember.EXTEND_PROTOTYPES === true || Ember.EXTEND_PROTOTYPES.String) { - - /** - Mark a string as being safe for unescaped output with Handlebars. - - ```javascript - '
    someString
    '.htmlSafe() - ``` - - See [Ember.String.htmlSafe](/api/classes/Ember.String.html#method_htmlSafe). - - @method htmlSafe - @for String - @return {Handlebars.SafeString} a string that will not be html escaped by Handlebars - */ - String.prototype.htmlSafe = function() { - return htmlSafe(this); - }; - } - - __exports__.SafeString = SafeString; - __exports__.htmlSafe = htmlSafe; - __exports__.escapeExpression = escapeExpression; - }); -enifed("ember-metal-views", - ["ember-metal-views/renderer","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Renderer = __dependency1__["default"]; - __exports__.Renderer = Renderer; - }); -enifed("ember-metal-views/renderer", - ["morph","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var DOMHelper = __dependency1__.DOMHelper; - - function Renderer() { - this._uuid = 0; - this._views = new Array(2000); - this._queue = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]; - this._parents = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]; - this._elements = new Array(17); - this._inserts = {}; - this._dom = new DOMHelper(); - } - - function Renderer_renderTree(_view, _parentView, _insertAt) { - var views = this._views; - views[0] = _view; - var insertAt = _insertAt === undefined ? -1 : _insertAt; - var index = 0; - var total = 1; - var levelBase = _parentView ? _parentView._level+1 : 0; - - var root = _parentView == null ? _view : _parentView._root; - - // if root view has a _morph assigned - var willInsert = !!root._morph; - - var queue = this._queue; - queue[0] = 0; - var length = 1; - - var parentIndex = -1; - var parents = this._parents; - var parent = _parentView || null; - var elements = this._elements; - var element = null; - var contextualElement = null; - var level = 0; - - var view = _view; - var children, i, child; - while (length) { - elements[level] = element; - if (!view._morph) { - // ensure props we add are in same order - view._morph = null; - } - view._root = root; - this.uuid(view); - view._level = levelBase + level; - if (view._elementCreated) { - this.remove(view, false, true); - } - - this.willCreateElement(view); - - contextualElement = view._morph && view._morph.contextualElement; - if (!contextualElement && parent && parent._childViewsMorph) { - contextualElement = parent._childViewsMorph.contextualElement; - } - if (!contextualElement && view._didCreateElementWithoutMorph) { - // This code path is only used by createElement and rerender when createElement - // was previously called on a view. - contextualElement = document.body; - } - element = this.createElement(view, contextualElement); - - parents[level++] = parentIndex; - parentIndex = index; - parent = view; - - // enqueue for end - queue[length++] = index; - // enqueue children - children = this.childViews(view); - if (children) { - for (i=children.length-1;i>=0;i--) { - child = children[i]; - index = total++; - views[index] = child; - queue[length++] = index; - view = child; - } - } - - index = queue[--length]; - view = views[index]; - - while (parentIndex === index) { - level--; - view._elementCreated = true; - this.didCreateElement(view); - if (willInsert) { - this.willInsertElement(view); - } - - if (level === 0) { - length--; - break; - } - - parentIndex = parents[level]; - parent = parentIndex === -1 ? _parentView : views[parentIndex]; - this.insertElement(view, parent, element, -1); - index = queue[--length]; - view = views[index]; - element = elements[level]; - elements[level] = null; - } - } - - this.insertElement(view, _parentView, element, insertAt); - - for (i=total-1; i>=0; i--) { - if (willInsert) { - views[i]._elementInserted = true; - this.didInsertElement(views[i]); - } - views[i] = null; - } - - return element; - } - - Renderer.prototype.uuid = function Renderer_uuid(view) { - if (view._uuid === undefined) { - view._uuid = ++this._uuid; - view._renderer = this; - } // else assert(view._renderer === this) - return view._uuid; - }; - - Renderer.prototype.scheduleInsert = - function Renderer_scheduleInsert(view, morph) { - if (view._morph || view._elementCreated) { - throw new Error("You cannot insert a View that has already been rendered"); - } - Ember.assert("You cannot insert a View without a morph", morph); - view._morph = morph; - var viewId = this.uuid(view); - this._inserts[viewId] = this.scheduleRender(this, function scheduledRenderTree() { - this._inserts[viewId] = null; - this.renderTree(view); - }); - }; - - Renderer.prototype.appendTo = - function Renderer_appendTo(view, target) { - var morph = this._dom.appendMorph(target); - this.scheduleInsert(view, morph); - }; - - Renderer.prototype.replaceIn = - function Renderer_replaceIn(view, target) { - var morph = this._dom.createMorph(target, null, null); - this.scheduleInsert(view, morph); - }; - - function Renderer_remove(_view, shouldDestroy, reset) { - var viewId = this.uuid(_view); - - if (this._inserts[viewId]) { - this.cancelRender(this._inserts[viewId]); - this._inserts[viewId] = undefined; - } - - if (!_view._elementCreated) { - return; - } - - var removeQueue = []; - var destroyQueue = []; - var morph = _view._morph; - var idx, len, view, queue, childViews, i, l; - - removeQueue.push(_view); - - for (idx=0; idx -1; - }; - - var defineNativeShim = function(nativeFunc, shim) { - if (isNativeFunc(nativeFunc)) { - return nativeFunc; - } - return shim; - }; - - // From: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/array/map - var map = defineNativeShim(ArrayPrototype.map, function(fun /*, thisp */) { - //"use strict"; - - if (this === void 0 || this === null || typeof fun !== "function") { - throw new TypeError(); - } - - var t = Object(this); - var len = t.length >>> 0; - var res = new Array(len); - var thisp = arguments[1]; - - for (var i = 0; i < len; i++) { - if (i in t) { - res[i] = fun.call(thisp, t[i], i, t); - } - } - - return res; - }); - - // From: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/array/foreach - var forEach = defineNativeShim(ArrayPrototype.forEach, function(fun /*, thisp */) { - //"use strict"; - - if (this === void 0 || this === null || typeof fun !== "function") { - throw new TypeError(); - } - - var t = Object(this); - var len = t.length >>> 0; - var thisp = arguments[1]; - - for (var i = 0; i < len; i++) { - if (i in t) { - fun.call(thisp, t[i], i, t); - } - } - }); - - var indexOf = defineNativeShim(ArrayPrototype.indexOf, function (obj, fromIndex) { - if (fromIndex === null || fromIndex === undefined) { - fromIndex = 0; - } - else if (fromIndex < 0) { - fromIndex = Math.max(0, this.length + fromIndex); - } - - for (var i = fromIndex, j = this.length; i < j; i++) { - if (this[i] === obj) { - return i; - } - } - return -1; - }); - - var lastIndexOf = defineNativeShim(ArrayPrototype.lastIndexOf, function(obj, fromIndex) { - var len = this.length; - var idx; - - if (fromIndex === undefined) fromIndex = len-1; - else fromIndex = (fromIndex < 0) ? Math.ceil(fromIndex) : Math.floor(fromIndex); - if (fromIndex < 0) fromIndex += len; - - for(idx = fromIndex;idx>=0;idx--) { - if (this[idx] === obj) return idx ; - } - return -1; - }); - - var filter = defineNativeShim(ArrayPrototype.filter, function (fn, context) { - var i, value; - var result = []; - var length = this.length; - - for (i = 0; i < length; i++) { - if (this.hasOwnProperty(i)) { - value = this[i]; - if (fn.call(context, value, i, this)) { - result.push(value); - } - } - } - return result; - }); - - if (Ember.SHIM_ES5) { - ArrayPrototype.map = ArrayPrototype.map || map; - ArrayPrototype.forEach = ArrayPrototype.forEach || forEach; - ArrayPrototype.filter = ArrayPrototype.filter || filter; - ArrayPrototype.indexOf = ArrayPrototype.indexOf || indexOf; - ArrayPrototype.lastIndexOf = ArrayPrototype.lastIndexOf || lastIndexOf; - } - - /** - Array polyfills to support ES5 features in older browsers. - - @namespace Ember - @property ArrayPolyfills - */ - __exports__.map = map; - __exports__.forEach = forEach; - __exports__.filter = filter; - __exports__.indexOf = indexOf; - __exports__.lastIndexOf = lastIndexOf; - }); -enifed("ember-metal/binding", - ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/observer","ember-metal/run_loop","ember-metal/path_cache","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // Ember.Logger, Ember.LOG_BINDINGS, assert - var get = __dependency2__.get; - var trySet = __dependency3__.trySet; - var guidFor = __dependency4__.guidFor; - var addObserver = __dependency5__.addObserver; - var removeObserver = __dependency5__.removeObserver; - var _suspendObserver = __dependency5__._suspendObserver; - var run = __dependency6__["default"]; - var isGlobalPath = __dependency7__.isGlobal; - - - // ES6TODO: where is Ember.lookup defined? - /** - @module ember-metal - */ - - // .......................................................... - // CONSTANTS - // - - /** - Debug parameter you can turn on. This will log all bindings that fire to - the console. This should be disabled in production code. Note that you - can also enable this from the console or temporarily. - - @property LOG_BINDINGS - @for Ember - @type Boolean - @default false - */ - Ember.LOG_BINDINGS = false || !!Ember.ENV.LOG_BINDINGS; - - /** - Returns true if the provided path is global (e.g., `MyApp.fooController.bar`) - instead of local (`foo.bar.baz`). - - @method isGlobalPath - @for Ember - @private - @param {String} path - @return Boolean - */ - - function getWithGlobals(obj, path) { - return get(isGlobalPath(path) ? Ember.lookup : obj, path); - } - - // .......................................................... - // BINDING - // - - function Binding(toPath, fromPath) { - this._direction = undefined; - this._from = fromPath; - this._to = toPath; - this._readyToSync = undefined; - this._oneWay = undefined; - } - - /** - @class Binding - @namespace Ember - */ - - Binding.prototype = { - /** - This copies the Binding so it can be connected to another object. - - @method copy - @return {Ember.Binding} `this` - */ - copy: function () { - var copy = new Binding(this._to, this._from); - if (this._oneWay) { copy._oneWay = true; } - return copy; - }, - - // .......................................................... - // CONFIG - // - - /** - This will set `from` property path to the specified value. It will not - attempt to resolve this property path to an actual object until you - connect the binding. - - The binding will search for the property path starting at the root object - you pass when you `connect()` the binding. It follows the same rules as - `get()` - see that method for more information. - - @method from - @param {String} path the property path to connect to - @return {Ember.Binding} `this` - */ - from: function(path) { - this._from = path; - return this; - }, - - /** - This will set the `to` property path to the specified value. It will not - attempt to resolve this property path to an actual object until you - connect the binding. - - The binding will search for the property path starting at the root object - you pass when you `connect()` the binding. It follows the same rules as - `get()` - see that method for more information. - - @method to - @param {String|Tuple} path A property path or tuple - @return {Ember.Binding} `this` - */ - to: function(path) { - this._to = path; - return this; - }, - - /** - Configures the binding as one way. A one-way binding will relay changes - on the `from` side to the `to` side, but not the other way around. This - means that if you change the `to` side directly, the `from` side may have - a different value. - - @method oneWay - @return {Ember.Binding} `this` - */ - oneWay: function() { - this._oneWay = true; - return this; - }, - - /** - @method toString - @return {String} string representation of binding - */ - toString: function() { - var oneWay = this._oneWay ? '[oneWay]' : ''; - return "Ember.Binding<" + guidFor(this) + ">(" + this._from + " -> " + this._to + ")" + oneWay; - }, - - // .......................................................... - // CONNECT AND SYNC - // - - /** - Attempts to connect this binding instance so that it can receive and relay - changes. This method will raise an exception if you have not set the - from/to properties yet. - - @method connect - @param {Object} obj The root object for this binding. - @return {Ember.Binding} `this` - */ - connect: function(obj) { - Ember.assert('Must pass a valid object to Ember.Binding.connect()', !!obj); - - var fromPath = this._from; - var toPath = this._to; - trySet(obj, toPath, getWithGlobals(obj, fromPath)); - - // add an observer on the object to be notified when the binding should be updated - addObserver(obj, fromPath, this, this.fromDidChange); - - // if the binding is a two-way binding, also set up an observer on the target - if (!this._oneWay) { - addObserver(obj, toPath, this, this.toDidChange); - } - - this._readyToSync = true; - - return this; - }, - - /** - Disconnects the binding instance. Changes will no longer be relayed. You - will not usually need to call this method. - - @method disconnect - @param {Object} obj The root object you passed when connecting the binding. - @return {Ember.Binding} `this` - */ - disconnect: function(obj) { - Ember.assert('Must pass a valid object to Ember.Binding.disconnect()', !!obj); - - var twoWay = !this._oneWay; - - // remove an observer on the object so we're no longer notified of - // changes that should update bindings. - removeObserver(obj, this._from, this, this.fromDidChange); - - // if the binding is two-way, remove the observer from the target as well - if (twoWay) { - removeObserver(obj, this._to, this, this.toDidChange); - } - - this._readyToSync = false; // disable scheduled syncs... - return this; - }, - - // .......................................................... - // PRIVATE - // - - /* called when the from side changes */ - fromDidChange: function(target) { - this._scheduleSync(target, 'fwd'); - }, - - /* called when the to side changes */ - toDidChange: function(target) { - this._scheduleSync(target, 'back'); - }, - - _scheduleSync: function(obj, dir) { - var existingDir = this._direction; - - // if we haven't scheduled the binding yet, schedule it - if (existingDir === undefined) { - run.schedule('sync', this, this._sync, obj); - this._direction = dir; - } - - // If both a 'back' and 'fwd' sync have been scheduled on the same object, - // default to a 'fwd' sync so that it remains deterministic. - if (existingDir === 'back' && dir === 'fwd') { - this._direction = 'fwd'; - } - }, - - _sync: function(obj) { - var log = Ember.LOG_BINDINGS; - - // don't synchronize destroyed objects or disconnected bindings - if (obj.isDestroyed || !this._readyToSync) { return; } - - // get the direction of the binding for the object we are - // synchronizing from - var direction = this._direction; - - var fromPath = this._from; - var toPath = this._to; - - this._direction = undefined; - - // if we're synchronizing from the remote object... - if (direction === 'fwd') { - var fromValue = getWithGlobals(obj, this._from); - if (log) { - Ember.Logger.log(' ', this.toString(), '->', fromValue, obj); - } - if (this._oneWay) { - trySet(obj, toPath, fromValue); - } else { - _suspendObserver(obj, toPath, this, this.toDidChange, function () { - trySet(obj, toPath, fromValue); - }); - } - // if we're synchronizing *to* the remote object - } else if (direction === 'back') { - var toValue = get(obj, this._to); - if (log) { - Ember.Logger.log(' ', this.toString(), '<-', toValue, obj); - } - _suspendObserver(obj, fromPath, this, this.fromDidChange, function () { - trySet(isGlobalPath(fromPath) ? Ember.lookup : obj, fromPath, toValue); - }); - } - } - - }; - - function mixinProperties(to, from) { - for (var key in from) { - if (from.hasOwnProperty(key)) { - to[key] = from[key]; - } - } - } - - mixinProperties(Binding, { - - /* - See `Ember.Binding.from`. - - @method from - @static - */ - from: function(from) { - var C = this; - return new C(undefined, from); - }, - - /* - See `Ember.Binding.to`. - - @method to - @static - */ - to: function(to) { - var C = this; - return new C(to, undefined); - }, - - /** - Creates a new Binding instance and makes it apply in a single direction. - A one-way binding will relay changes on the `from` side object (supplied - as the `from` argument) the `to` side, but not the other way around. - This means that if you change the "to" side directly, the "from" side may have - a different value. - - See `Binding.oneWay`. - - @method oneWay - @param {String} from from path. - @param {Boolean} [flag] (Optional) passing nothing here will make the - binding `oneWay`. You can instead pass `false` to disable `oneWay`, making the - binding two way again. - @return {Ember.Binding} `this` - */ - oneWay: function(from, flag) { - var C = this; - return new C(undefined, from).oneWay(flag); - } - - }); - /** - An `Ember.Binding` connects the properties of two objects so that whenever - the value of one property changes, the other property will be changed also. - - ## Automatic Creation of Bindings with `/^*Binding/`-named Properties - - You do not usually create Binding objects directly but instead describe - bindings in your class or object definition using automatic binding - detection. - - Properties ending in a `Binding` suffix will be converted to `Ember.Binding` - instances. The value of this property should be a string representing a path - to another object or a custom binding instance created using Binding helpers - (see "One Way Bindings"): - - ``` - valueBinding: "MyApp.someController.title" - ``` - - This will create a binding from `MyApp.someController.title` to the `value` - property of your object instance automatically. Now the two values will be - kept in sync. - - ## One Way Bindings - - One especially useful binding customization you can use is the `oneWay()` - helper. This helper tells Ember that you are only interested in - receiving changes on the object you are binding from. For example, if you - are binding to a preference and you want to be notified if the preference - has changed, but your object will not be changing the preference itself, you - could do: - - ``` - bigTitlesBinding: Ember.Binding.oneWay("MyApp.preferencesController.bigTitles") - ``` - - This way if the value of `MyApp.preferencesController.bigTitles` changes the - `bigTitles` property of your object will change also. However, if you - change the value of your `bigTitles` property, it will not update the - `preferencesController`. - - One way bindings are almost twice as fast to setup and twice as fast to - execute because the binding only has to worry about changes to one side. - - You should consider using one way bindings anytime you have an object that - may be created frequently and you do not intend to change a property; only - to monitor it for changes (such as in the example above). - - ## Adding Bindings Manually - - All of the examples above show you how to configure a custom binding, but the - result of these customizations will be a binding template, not a fully active - Binding instance. The binding will actually become active only when you - instantiate the object the binding belongs to. It is useful however, to - understand what actually happens when the binding is activated. - - For a binding to function it must have at least a `from` property and a `to` - property. The `from` property path points to the object/key that you want to - bind from while the `to` path points to the object/key you want to bind to. - - When you define a custom binding, you are usually describing the property - you want to bind from (such as `MyApp.someController.value` in the examples - above). When your object is created, it will automatically assign the value - you want to bind `to` based on the name of your binding key. In the - examples above, during init, Ember objects will effectively call - something like this on your binding: - - ```javascript - binding = Ember.Binding.from("valueBinding").to("value"); - ``` - - This creates a new binding instance based on the template you provide, and - sets the to path to the `value` property of the new object. Now that the - binding is fully configured with a `from` and a `to`, it simply needs to be - connected to become active. This is done through the `connect()` method: - - ```javascript - binding.connect(this); - ``` - - Note that when you connect a binding you pass the object you want it to be - connected to. This object will be used as the root for both the from and - to side of the binding when inspecting relative paths. This allows the - binding to be automatically inherited by subclassed objects as well. - - This also allows you to bind between objects using the paths you declare in - `from` and `to`: - - ```javascript - // Example 1 - binding = Ember.Binding.from("App.someObject.value").to("value"); - binding.connect(this); - - // Example 2 - binding = Ember.Binding.from("parentView.value").to("App.someObject.value"); - binding.connect(this); - ``` - - Now that the binding is connected, it will observe both the from and to side - and relay changes. - - If you ever needed to do so (you almost never will, but it is useful to - understand this anyway), you could manually create an active binding by - using the `Ember.bind()` helper method. (This is the same method used by - to setup your bindings on objects): - - ```javascript - Ember.bind(MyApp.anotherObject, "value", "MyApp.someController.value"); - ``` - - Both of these code fragments have the same effect as doing the most friendly - form of binding creation like so: - - ```javascript - MyApp.anotherObject = Ember.Object.create({ - valueBinding: "MyApp.someController.value", - - // OTHER CODE FOR THIS OBJECT... - }); - ``` - - Ember's built in binding creation method makes it easy to automatically - create bindings for you. You should always use the highest-level APIs - available, even if you understand how it works underneath. - - @class Binding - @namespace Ember - @since Ember 0.9 - */ - // Ember.Binding = Binding; ES6TODO: where to put this? - - - /** - Global helper method to create a new binding. Just pass the root object - along with a `to` and `from` path to create and connect the binding. - - @method bind - @for Ember - @param {Object} obj The root object of the transform. - @param {String} to The path to the 'to' side of the binding. - Must be relative to obj. - @param {String} from The path to the 'from' side of the binding. - Must be relative to obj or a global path. - @return {Ember.Binding} binding instance - */ - function bind(obj, to, from) { - return new Binding(to, from).connect(obj); - } - - __exports__.bind = bind;/** - @method oneWay - @for Ember - @param {Object} obj The root object of the transform. - @param {String} to The path to the 'to' side of the binding. - Must be relative to obj. - @param {String} from The path to the 'from' side of the binding. - Must be relative to obj or a global path. - @return {Ember.Binding} binding instance - */ - function oneWay(obj, to, from) { - return new Binding(to, from).oneWay().connect(obj); - } - - __exports__.oneWay = oneWay;__exports__.Binding = Binding; - __exports__.isGlobalPath = isGlobalPath; - }); -enifed("ember-metal/cache", - ["ember-metal/dictionary","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var dictionary = __dependency1__["default"]; - __exports__["default"] = Cache; - - function Cache(limit, func) { - this.store = dictionary(null); - this.size = 0; - this.misses = 0; - this.hits = 0; - this.limit = limit; - this.func = func; - } - - var UNDEFINED = function() { }; - - Cache.prototype = { - set: function(key, value) { - if (this.limit > this.size) { - this.size ++; - if (value === undefined) { - this.store[key] = UNDEFINED; - } else { - this.store[key] = value; - } - } - - return value; - }, - - get: function(key) { - var value = this.store[key]; - - if (value === undefined) { - this.misses ++; - value = this.set(key, this.func(key)); - } else if (value === UNDEFINED) { - this.hits ++; - value = undefined; - } else { - this.hits ++; - // nothing to translate - } - - return value; - }, - - purge: function() { - this.store = dictionary(null); - this.size = 0; - this.hits = 0; - this.misses = 0; - } - }; - }); -enifed("ember-metal/chains", - ["ember-metal/core","ember-metal/property_get","ember-metal/utils","ember-metal/array","ember-metal/watch_key","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // warn, assert, etc; - var get = __dependency2__.get; - var normalizeTuple = __dependency2__.normalizeTuple; - var metaFor = __dependency3__.meta; - var forEach = __dependency4__.forEach; - var watchKey = __dependency5__.watchKey; - var unwatchKey = __dependency5__.unwatchKey; - - var warn = Ember.warn; - var FIRST_KEY = /^([^\.]+)/; - - function firstKey(path) { - return path.match(FIRST_KEY)[0]; - } - - var pendingQueue = []; - - // attempts to add the pendingQueue chains again. If some of them end up - // back in the queue and reschedule is true, schedules a timeout to try - // again. - function flushPendingChains() { - if (pendingQueue.length === 0) { return; } // nothing to do - - var queue = pendingQueue; - pendingQueue = []; - - forEach.call(queue, function(q) { - q[0].add(q[1]); - }); - - warn('Watching an undefined global, Ember expects watched globals to be' + - ' setup by the time the run loop is flushed, check for typos', pendingQueue.length === 0); - } - - __exports__.flushPendingChains = flushPendingChains;function addChainWatcher(obj, keyName, node) { - if (!obj || ('object' !== typeof obj)) { return; } // nothing to do - - var m = metaFor(obj); - var nodes = m.chainWatchers; - - if (!m.hasOwnProperty('chainWatchers')) { - nodes = m.chainWatchers = {}; - } - - if (!nodes[keyName]) { - nodes[keyName] = []; - } - nodes[keyName].push(node); - watchKey(obj, keyName, m); - } - - function removeChainWatcher(obj, keyName, node) { - if (!obj || 'object' !== typeof obj) { return; } // nothing to do - - var m = obj['__ember_meta__']; - if (m && !m.hasOwnProperty('chainWatchers')) { return; } // nothing to do - - var nodes = m && m.chainWatchers; - - if (nodes && nodes[keyName]) { - nodes = nodes[keyName]; - for (var i = 0, l = nodes.length; i < l; i++) { - if (nodes[i] === node) { - nodes.splice(i, 1); - break; - } - } - } - unwatchKey(obj, keyName, m); - } - - // A ChainNode watches a single key on an object. If you provide a starting - // value for the key then the node won't actually watch it. For a root node - // pass null for parent and key and object for value. - function ChainNode(parent, key, value) { - this._parent = parent; - this._key = key; - - // _watching is true when calling get(this._parent, this._key) will - // return the value of this node. - // - // It is false for the root of a chain (because we have no parent) - // and for global paths (because the parent node is the object with - // the observer on it) - this._watching = value===undefined; - - this._value = value; - this._paths = {}; - if (this._watching) { - this._object = parent.value(); - if (this._object) { - addChainWatcher(this._object, this._key, this); - } - } - - // Special-case: the EachProxy relies on immediate evaluation to - // establish its observers. - // - // TODO: Replace this with an efficient callback that the EachProxy - // can implement. - if (this._parent && this._parent._key === '@each') { - this.value(); - } - } - - var ChainNodePrototype = ChainNode.prototype; - - function lazyGet(obj, key) { - if (!obj) return undefined; - - var meta = obj['__ember_meta__']; - // check if object meant only to be a prototype - if (meta && meta.proto === obj) { - return undefined; - } - - if (key === "@each") { - return get(obj, key); - } - - // if a CP only return cached value - var desc = meta && meta.descs[key]; - if (desc && desc._cacheable) { - if (key in meta.cache) { - return meta.cache[key]; - } else { - return undefined; - } - } - - return get(obj, key); - } - - ChainNodePrototype.value = function() { - if (this._value === undefined && this._watching) { - var obj = this._parent.value(); - this._value = lazyGet(obj, this._key); - } - return this._value; - }; - - ChainNodePrototype.destroy = function() { - if (this._watching) { - var obj = this._object; - if (obj) { - removeChainWatcher(obj, this._key, this); - } - this._watching = false; // so future calls do nothing - } - }; - - // copies a top level object only - ChainNodePrototype.copy = function(obj) { - var ret = new ChainNode(null, null, obj); - var paths = this._paths; - var path; - - for (path in paths) { - // this check will also catch non-number vals. - if (paths[path] <= 0) { - continue; - } - ret.add(path); - } - return ret; - }; - - // called on the root node of a chain to setup watchers on the specified - // path. - ChainNodePrototype.add = function(path) { - var obj, tuple, key, src, paths; - - paths = this._paths; - paths[path] = (paths[path] || 0) + 1; - - obj = this.value(); - tuple = normalizeTuple(obj, path); - - // the path was a local path - if (tuple[0] && tuple[0] === obj) { - path = tuple[1]; - key = firstKey(path); - path = path.slice(key.length+1); - - // global path, but object does not exist yet. - // put into a queue and try to connect later. - } else if (!tuple[0]) { - pendingQueue.push([this, path]); - tuple.length = 0; - return; - - // global path, and object already exists - } else { - src = tuple[0]; - key = path.slice(0, 0-(tuple[1].length+1)); - path = tuple[1]; - } - - tuple.length = 0; - this.chain(key, path, src); - }; - - // called on the root node of a chain to teardown watcher on the specified - // path - ChainNodePrototype.remove = function(path) { - var obj, tuple, key, src, paths; - - paths = this._paths; - if (paths[path] > 0) { - paths[path]--; - } - - obj = this.value(); - tuple = normalizeTuple(obj, path); - if (tuple[0] === obj) { - path = tuple[1]; - key = firstKey(path); - path = path.slice(key.length+1); - } else { - src = tuple[0]; - key = path.slice(0, 0-(tuple[1].length+1)); - path = tuple[1]; - } - - tuple.length = 0; - this.unchain(key, path); - }; - - ChainNodePrototype.count = 0; - - ChainNodePrototype.chain = function(key, path, src) { - var chains = this._chains; - var node; - if (!chains) { - chains = this._chains = {}; - } - - node = chains[key]; - if (!node) { - node = chains[key] = new ChainNode(this, key, src); - } - node.count++; // count chains... - - // chain rest of path if there is one - if (path) { - key = firstKey(path); - path = path.slice(key.length+1); - node.chain(key, path); // NOTE: no src means it will observe changes... - } - }; - - ChainNodePrototype.unchain = function(key, path) { - var chains = this._chains; - var node = chains[key]; - - // unchain rest of path first... - if (path && path.length > 1) { - var nextKey = firstKey(path); - var nextPath = path.slice(nextKey.length + 1); - node.unchain(nextKey, nextPath); - } - - // delete node if needed. - node.count--; - if (node.count<=0) { - delete chains[node._key]; - node.destroy(); - } - - }; - - ChainNodePrototype.willChange = function(events) { - var chains = this._chains; - if (chains) { - for(var key in chains) { - if (!chains.hasOwnProperty(key)) { - continue; - } - chains[key].willChange(events); - } - } - - if (this._parent) { - this._parent.chainWillChange(this, this._key, 1, events); - } - }; - - ChainNodePrototype.chainWillChange = function(chain, path, depth, events) { - if (this._key) { - path = this._key + '.' + path; - } - - if (this._parent) { - this._parent.chainWillChange(this, path, depth+1, events); - } else { - if (depth > 1) { - events.push(this.value(), path); - } - path = 'this.' + path; - if (this._paths[path] > 0) { - events.push(this.value(), path); - } - } - }; - - ChainNodePrototype.chainDidChange = function(chain, path, depth, events) { - if (this._key) { - path = this._key + '.' + path; - } - - if (this._parent) { - this._parent.chainDidChange(this, path, depth+1, events); - } else { - if (depth > 1) { - events.push(this.value(), path); - } - path = 'this.' + path; - if (this._paths[path] > 0) { - events.push(this.value(), path); - } - } - }; - - ChainNodePrototype.didChange = function(events) { - // invalidate my own value first. - if (this._watching) { - var obj = this._parent.value(); - if (obj !== this._object) { - removeChainWatcher(this._object, this._key, this); - this._object = obj; - addChainWatcher(obj, this._key, this); - } - this._value = undefined; - - // Special-case: the EachProxy relies on immediate evaluation to - // establish its observers. - if (this._parent && this._parent._key === '@each') { - this.value(); - } - } - - // then notify chains... - var chains = this._chains; - if (chains) { - for(var key in chains) { - if (!chains.hasOwnProperty(key)) { continue; } - chains[key].didChange(events); - } - } - - // if no events are passed in then we only care about the above wiring update - if (events === null) { - return; - } - - // and finally tell parent about my path changing... - if (this._parent) { - this._parent.chainDidChange(this, this._key, 1, events); - } - }; - - function finishChains(obj) { - // We only create meta if we really have to - var m = obj['__ember_meta__']; - var chains, chainWatchers, chainNodes; - - if (m) { - // finish any current chains node watchers that reference obj - chainWatchers = m.chainWatchers; - if (chainWatchers) { - for(var key in chainWatchers) { - if (!chainWatchers.hasOwnProperty(key)) { - continue; - } - - chainNodes = chainWatchers[key]; - if (chainNodes) { - for (var i=0,l=chainNodes.length;i 1) { - args = a_slice.call(arguments); - func = args.pop(); - } - - if (typeof func !== "function") { - throw new EmberError("Computed Property declared without a property function"); - } - - var cp = new ComputedProperty(func); - - if (args) { - cp.property.apply(cp, args); - } - - return cp; - } - - /** - Returns the cached value for a property, if one exists. - This can be useful for peeking at the value of a computed - property that is generated lazily, without accidentally causing - it to be created. - - @method cacheFor - @for Ember - @param {Object} obj the object whose property you want to check - @param {String} key the name of the property whose cached value you want - to return - @return {Object} the cached value - */ - function cacheFor(obj, key) { - var meta = obj['__ember_meta__']; - var cache = meta && meta.cache; - var ret = cache && cache[key]; - - if (ret === UNDEFINED) { - return undefined; - } - return ret; - } - - cacheFor.set = function(cache, key, value) { - if (value === undefined) { - cache[key] = UNDEFINED; - } else { - cache[key] = value; - } - }; - - cacheFor.get = function(cache, key) { - var ret = cache[key]; - if (ret === UNDEFINED) { - return undefined; - } - return ret; - }; - - cacheFor.remove = function(cache, key) { - cache[key] = undefined; - }; - - __exports__.ComputedProperty = ComputedProperty; - __exports__.computed = computed; - __exports__.cacheFor = cacheFor; - }); -enifed("ember-metal/computed_macros", - ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/computed","ember-metal/is_empty","ember-metal/is_none","ember-metal/alias"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__) { - "use strict"; - var Ember = __dependency1__["default"]; - var get = __dependency2__.get; - var set = __dependency3__.set; - var computed = __dependency4__.computed; - var isEmpty = __dependency5__["default"]; - var isNone = __dependency6__["default"]; - var alias = __dependency7__["default"]; - - /** - @module ember-metal - */ - - var a_slice = [].slice; - - function getProperties(self, propertyNames) { - var ret = {}; - for(var i = 0; i < propertyNames.length; i++) { - ret[propertyNames[i]] = get(self, propertyNames[i]); - } - return ret; - } - - function registerComputed(name, macro) { - computed[name] = function(dependentKey) { - var args = a_slice.call(arguments); - return computed(dependentKey, function() { - return macro.apply(this, args); - }); - }; - } - - function registerComputedWithProperties(name, macro) { - computed[name] = function() { - var properties = a_slice.call(arguments); - - var computedFunc = computed(function() { - return macro.apply(this, [getProperties(this, properties)]); - }); - - return computedFunc.property.apply(computedFunc, properties); - }; - } - - /** - A computed property that returns true if the value of the dependent - property is null, an empty string, empty array, or empty function. - - Example - - ```javascript - var ToDoList = Ember.Object.extend({ - isDone: Ember.computed.empty('todos') - }); - - var todoList = ToDoList.create({ - todos: ['Unit Test', 'Documentation', 'Release'] - }); - - todoList.get('isDone'); // false - todoList.get('todos').clear(); - todoList.get('isDone'); // true - ``` - - @since 1.6.0 - @method computed.empty - @for Ember - @param {String} dependentKey - @return {Ember.ComputedProperty} computed property which negate - the original value for property - */ - computed.empty = function (dependentKey) { - return computed(dependentKey + '.length', function () { - return isEmpty(get(this, dependentKey)); - }); - }; - - /** - A computed property that returns true if the value of the dependent - property is NOT null, an empty string, empty array, or empty function. - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - hasStuff: Ember.computed.notEmpty('backpack') - }); - - var hamster = Hamster.create({ backpack: ['Food', 'Sleeping Bag', 'Tent'] }); - - hamster.get('hasStuff'); // true - hamster.get('backpack').clear(); // [] - hamster.get('hasStuff'); // false - ``` - - @method computed.notEmpty - @for Ember - @param {String} dependentKey - @return {Ember.ComputedProperty} computed property which returns true if - original value for property is not empty. - */ - computed.notEmpty = function(dependentKey) { - return computed(dependentKey + '.length', function () { - return !isEmpty(get(this, dependentKey)); - }); - }; - - /** - A computed property that returns true if the value of the dependent - property is null or undefined. This avoids errors from JSLint complaining - about use of ==, which can be technically confusing. - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - isHungry: Ember.computed.none('food') - }); - - var hamster = Hamster.create(); - - hamster.get('isHungry'); // true - hamster.set('food', 'Banana'); - hamster.get('isHungry'); // false - hamster.set('food', null); - hamster.get('isHungry'); // true - ``` - - @method computed.none - @for Ember - @param {String} dependentKey - @return {Ember.ComputedProperty} computed property which - returns true if original value for property is null or undefined. - */ - registerComputed('none', function(dependentKey) { - return isNone(get(this, dependentKey)); - }); - - /** - A computed property that returns the inverse boolean value - of the original value for the dependent property. - - Example - - ```javascript - var User = Ember.Object.extend({ - isAnonymous: Ember.computed.not('loggedIn') - }); - - var user = User.create({loggedIn: false}); - - user.get('isAnonymous'); // true - user.set('loggedIn', true); - user.get('isAnonymous'); // false - ``` - - @method computed.not - @for Ember - @param {String} dependentKey - @return {Ember.ComputedProperty} computed property which returns - inverse of the original value for property - */ - registerComputed('not', function(dependentKey) { - return !get(this, dependentKey); - }); - - /** - A computed property that converts the provided dependent property - into a boolean value. - - ```javascript - var Hamster = Ember.Object.extend({ - hasBananas: Ember.computed.bool('numBananas') - }); - - var hamster = Hamster.create(); - - hamster.get('hasBananas'); // false - hamster.set('numBananas', 0); - hamster.get('hasBananas'); // false - hamster.set('numBananas', 1); - hamster.get('hasBananas'); // true - hamster.set('numBananas', null); - hamster.get('hasBananas'); // false - ``` - - @method computed.bool - @for Ember - @param {String} dependentKey - @return {Ember.ComputedProperty} computed property which converts - to boolean the original value for property - */ - registerComputed('bool', function(dependentKey) { - return !!get(this, dependentKey); - }); - - /** - A computed property which matches the original value for the - dependent property against a given RegExp, returning `true` - if they values matches the RegExp and `false` if it does not. - - Example - - ```javascript - var User = Ember.Object.extend({ - hasValidEmail: Ember.computed.match('email', /^.+@.+\..+$/) - }); - - var user = User.create({loggedIn: false}); - - user.get('hasValidEmail'); // false - user.set('email', ''); - user.get('hasValidEmail'); // false - user.set('email', 'ember_hamster@example.com'); - user.get('hasValidEmail'); // true - ``` - - @method computed.match - @for Ember - @param {String} dependentKey - @param {RegExp} regexp - @return {Ember.ComputedProperty} computed property which match - the original value for property against a given RegExp - */ - registerComputed('match', function(dependentKey, regexp) { - var value = get(this, dependentKey); - return typeof value === 'string' ? regexp.test(value) : false; - }); - - /** - A computed property that returns true if the provided dependent property - is equal to the given value. - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - napTime: Ember.computed.equal('state', 'sleepy') - }); - - var hamster = Hamster.create(); - - hamster.get('napTime'); // false - hamster.set('state', 'sleepy'); - hamster.get('napTime'); // true - hamster.set('state', 'hungry'); - hamster.get('napTime'); // false - ``` - - @method computed.equal - @for Ember - @param {String} dependentKey - @param {String|Number|Object} value - @return {Ember.ComputedProperty} computed property which returns true if - the original value for property is equal to the given value. - */ - registerComputed('equal', function(dependentKey, value) { - return get(this, dependentKey) === value; - }); - - /** - A computed property that returns true if the provided dependent property - is greater than the provided value. - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - hasTooManyBananas: Ember.computed.gt('numBananas', 10) - }); - - var hamster = Hamster.create(); - - hamster.get('hasTooManyBananas'); // false - hamster.set('numBananas', 3); - hamster.get('hasTooManyBananas'); // false - hamster.set('numBananas', 11); - hamster.get('hasTooManyBananas'); // true - ``` - - @method computed.gt - @for Ember - @param {String} dependentKey - @param {Number} value - @return {Ember.ComputedProperty} computed property which returns true if - the original value for property is greater than given value. - */ - registerComputed('gt', function(dependentKey, value) { - return get(this, dependentKey) > value; - }); - - /** - A computed property that returns true if the provided dependent property - is greater than or equal to the provided value. - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - hasTooManyBananas: Ember.computed.gte('numBananas', 10) - }); - - var hamster = Hamster.create(); - - hamster.get('hasTooManyBananas'); // false - hamster.set('numBananas', 3); - hamster.get('hasTooManyBananas'); // false - hamster.set('numBananas', 10); - hamster.get('hasTooManyBananas'); // true - ``` - - @method computed.gte - @for Ember - @param {String} dependentKey - @param {Number} value - @return {Ember.ComputedProperty} computed property which returns true if - the original value for property is greater or equal then given value. - */ - registerComputed('gte', function(dependentKey, value) { - return get(this, dependentKey) >= value; - }); - - /** - A computed property that returns true if the provided dependent property - is less than the provided value. - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - needsMoreBananas: Ember.computed.lt('numBananas', 3) - }); - - var hamster = Hamster.create(); - - hamster.get('needsMoreBananas'); // true - hamster.set('numBananas', 3); - hamster.get('needsMoreBananas'); // false - hamster.set('numBananas', 2); - hamster.get('needsMoreBananas'); // true - ``` - - @method computed.lt - @for Ember - @param {String} dependentKey - @param {Number} value - @return {Ember.ComputedProperty} computed property which returns true if - the original value for property is less then given value. - */ - registerComputed('lt', function(dependentKey, value) { - return get(this, dependentKey) < value; - }); - - /** - A computed property that returns true if the provided dependent property - is less than or equal to the provided value. - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - needsMoreBananas: Ember.computed.lte('numBananas', 3) - }); - - var hamster = Hamster.create(); - - hamster.get('needsMoreBananas'); // true - hamster.set('numBananas', 5); - hamster.get('needsMoreBananas'); // false - hamster.set('numBananas', 3); - hamster.get('needsMoreBananas'); // true - ``` - - @method computed.lte - @for Ember - @param {String} dependentKey - @param {Number} value - @return {Ember.ComputedProperty} computed property which returns true if - the original value for property is less or equal than given value. - */ - registerComputed('lte', function(dependentKey, value) { - return get(this, dependentKey) <= value; - }); - - /** - A computed property that performs a logical `and` on the - original values for the provided dependent properties. - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - readyForCamp: Ember.computed.and('hasTent', 'hasBackpack') - }); - - var hamster = Hamster.create(); - - hamster.get('readyForCamp'); // false - hamster.set('hasTent', true); - hamster.get('readyForCamp'); // false - hamster.set('hasBackpack', true); - hamster.get('readyForCamp'); // true - ``` - - @method computed.and - @for Ember - @param {String} dependentKey* - @return {Ember.ComputedProperty} computed property which performs - a logical `and` on the values of all the original values for properties. - */ - registerComputedWithProperties('and', function(properties) { - for (var key in properties) { - if (properties.hasOwnProperty(key) && !properties[key]) { - return false; - } - } - return true; - }); - - /** - A computed property which performs a logical `or` on the - original values for the provided dependent properties. - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - readyForRain: Ember.computed.or('hasJacket', 'hasUmbrella') - }); - - var hamster = Hamster.create(); - - hamster.get('readyForRain'); // false - hamster.set('hasJacket', true); - hamster.get('readyForRain'); // true - ``` - - @method computed.or - @for Ember - @param {String} dependentKey* - @return {Ember.ComputedProperty} computed property which performs - a logical `or` on the values of all the original values for properties. - */ - registerComputedWithProperties('or', function(properties) { - for (var key in properties) { - if (properties.hasOwnProperty(key) && properties[key]) { - return true; - } - } - return false; - }); - - /** - A computed property that returns the first truthy value - from a list of dependent properties. - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - hasClothes: Ember.computed.any('hat', 'shirt') - }); - - var hamster = Hamster.create(); - - hamster.get('hasClothes'); // null - hamster.set('shirt', 'Hawaiian Shirt'); - hamster.get('hasClothes'); // 'Hawaiian Shirt' - ``` - - @method computed.any - @for Ember - @param {String} dependentKey* - @return {Ember.ComputedProperty} computed property which returns - the first truthy value of given list of properties. - */ - registerComputedWithProperties('any', function(properties) { - for (var key in properties) { - if (properties.hasOwnProperty(key) && properties[key]) { - return properties[key]; - } - } - return null; - }); - - /** - A computed property that returns the array of values - for the provided dependent properties. - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - clothes: Ember.computed.collect('hat', 'shirt') - }); - - var hamster = Hamster.create(); - - hamster.get('clothes'); // [null, null] - hamster.set('hat', 'Camp Hat'); - hamster.set('shirt', 'Camp Shirt'); - hamster.get('clothes'); // ['Camp Hat', 'Camp Shirt'] - ``` - - @method computed.collect - @for Ember - @param {String} dependentKey* - @return {Ember.ComputedProperty} computed property which maps - values of all passed in properties to an array. - */ - registerComputedWithProperties('collect', function(properties) { - var res = Ember.A(); - for (var key in properties) { - if (properties.hasOwnProperty(key)) { - if (isNone(properties[key])) { - res.push(null); - } else { - res.push(properties[key]); - } - } - } - return res; - }); - - /** - Creates a new property that is an alias for another property - on an object. Calls to `get` or `set` this property behave as - though they were called on the original property. - - ```javascript - var Person = Ember.Object.extend({ - name: 'Alex Matchneer', - nomen: Ember.computed.alias('name') - }); - - var alex = Person.create(); - - alex.get('nomen'); // 'Alex Matchneer' - alex.get('name'); // 'Alex Matchneer' - - alex.set('nomen', '@machty'); - alex.get('name'); // '@machty' - ``` - - @method computed.alias - @for Ember - @param {String} dependentKey - @return {Ember.ComputedProperty} computed property which creates an - alias to the original value for property. - */ - computed.alias = alias; - - /** - Where `computed.alias` aliases `get` and `set`, and allows for bidirectional - data flow, `computed.oneWay` only provides an aliased `get`. The `set` will - not mutate the upstream property, rather causes the current property to - become the value set. This causes the downstream property to permanently - diverge from the upstream property. - - Example - - ```javascript - var User = Ember.Object.extend({ - firstName: null, - lastName: null, - nickName: Ember.computed.oneWay('firstName') - }); - - var teddy = User.create({ - firstName: 'Teddy', - lastName: 'Zeenny' - }); - - teddy.get('nickName'); // 'Teddy' - teddy.set('nickName', 'TeddyBear'); // 'TeddyBear' - teddy.get('firstName'); // 'Teddy' - ``` - - @method computed.oneWay - @for Ember - @param {String} dependentKey - @return {Ember.ComputedProperty} computed property which creates a - one way computed property to the original value for property. - */ - computed.oneWay = function(dependentKey) { - return alias(dependentKey).oneWay(); - }; - - /** - This is a more semantically meaningful alias of `computed.oneWay`, - whose name is somewhat ambiguous as to which direction the data flows. - - @method computed.reads - @for Ember - @param {String} dependentKey - @return {Ember.ComputedProperty} computed property which creates a - one way computed property to the original value for property. - */ - computed.reads = computed.oneWay; - - /** - Where `computed.oneWay` provides oneWay bindings, `computed.readOnly` provides - a readOnly one way binding. Very often when using `computed.oneWay` one does - not also want changes to propagate back up, as they will replace the value. - - This prevents the reverse flow, and also throws an exception when it occurs. - - Example - - ```javascript - var User = Ember.Object.extend({ - firstName: null, - lastName: null, - nickName: Ember.computed.readOnly('firstName') - }); - - var teddy = User.create({ - firstName: 'Teddy', - lastName: 'Zeenny' - }); - - teddy.get('nickName'); // 'Teddy' - teddy.set('nickName', 'TeddyBear'); // throws Exception - // throw new Ember.Error('Cannot Set: nickName on: ' );` - teddy.get('firstName'); // 'Teddy' - ``` - - @method computed.readOnly - @for Ember - @param {String} dependentKey - @return {Ember.ComputedProperty} computed property which creates a - one way computed property to the original value for property. - @since 1.5.0 - */ - computed.readOnly = function(dependentKey) { - return alias(dependentKey).readOnly(); - }; - /** - A computed property that acts like a standard getter and setter, - but returns the value at the provided `defaultPath` if the - property itself has not been set to a value - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - wishList: Ember.computed.defaultTo('favoriteFood') - }); - - var hamster = Hamster.create({ favoriteFood: 'Banana' }); - - hamster.get('wishList'); // 'Banana' - hamster.set('wishList', 'More Unit Tests'); - hamster.get('wishList'); // 'More Unit Tests' - hamster.get('favoriteFood'); // 'Banana' - ``` - - @method computed.defaultTo - @for Ember - @param {String} defaultPath - @return {Ember.ComputedProperty} computed property which acts like - a standard getter and setter, but defaults to the value from `defaultPath`. - @deprecated Use `Ember.computed.oneWay` or custom CP with default instead. - */ - // ES6TODO: computed should have its own export path so you can do import {defaultTo} from computed - computed.defaultTo = function(defaultPath) { - return computed(function(key, newValue, cachedValue) { - Ember.deprecate('Usage of Ember.computed.defaultTo is deprecated, use `Ember.computed.oneWay` instead.'); - - if (arguments.length === 1) { - return get(this, defaultPath); - } - return newValue != null ? newValue : get(this, defaultPath); - }); - }; - - /** - Creates a new property that is an alias for another property - on an object. Calls to `get` or `set` this property behave as - though they were called on the original property, but also - print a deprecation warning. - - @method computed.deprecatingAlias - @for Ember - @param {String} dependentKey - @return {Ember.ComputedProperty} computed property which creates an - alias with a deprecation to the original value for property. - @since 1.7.0 - */ - computed.deprecatingAlias = function(dependentKey) { - return computed(dependentKey, function(key, value) { - Ember.deprecate('Usage of `' + key + '` is deprecated, use `' + dependentKey + '` instead.'); - - if (arguments.length > 1) { - set(this, dependentKey, value); - return value; - } else { - return get(this, dependentKey); - } - }); - }; - }); -enifed("ember-metal/core", - ["exports"], - function(__exports__) { - "use strict"; - /*globals Ember:true,ENV,EmberENV,MetamorphENV:true */ - - /** - @module ember - @submodule ember-metal - */ - - /** - All Ember methods and functions are defined inside of this namespace. You - generally should not add new properties to this namespace as it may be - overwritten by future versions of Ember. - - You can also use the shorthand `Em` instead of `Ember`. - - Ember-Runtime is a framework that provides core functions for Ember including - cross-platform functions, support for property observing and objects. Its - focus is on small size and performance. You can use this in place of or - along-side other cross-platform libraries such as jQuery. - - The core Runtime framework is based on the jQuery API with a number of - performance optimizations. - - @class Ember - @static - @version 1.10.1 - */ - - if ('undefined' === typeof Ember) { - // Create core object. Make it act like an instance of Ember.Namespace so that - // objects assigned to it are given a sane string representation. - Ember = {}; - } - - // Default imports, exports and lookup to the global object; - Ember.imports = Ember.imports || this; - Ember.lookup = Ember.lookup || this; - var exports = Ember.exports = Ember.exports || this; - - // aliases needed to keep minifiers from removing the global context - exports.Em = exports.Ember = Ember; - - // Make sure these are set whether Ember was already defined or not - - Ember.isNamespace = true; - - Ember.toString = function() { return "Ember"; }; - - - /** - @property VERSION - @type String - @default '1.10.1' - @static - */ - Ember.VERSION = '1.10.1'; - - /** - Standard environmental variables. You can define these in a global `EmberENV` - variable before loading Ember to control various configuration settings. - - For backwards compatibility with earlier versions of Ember the global `ENV` - variable will be used if `EmberENV` is not defined. - - @property ENV - @type Hash - */ - - if (Ember.ENV) { - // do nothing if Ember.ENV is already setup - } else if ('undefined' !== typeof EmberENV) { - Ember.ENV = EmberENV; - } else if('undefined' !== typeof ENV) { - Ember.ENV = ENV; - } else { - Ember.ENV = {}; - } - - Ember.config = Ember.config || {}; - - // We disable the RANGE API by default for performance reasons - if ('undefined' === typeof Ember.ENV.DISABLE_RANGE_API) { - Ember.ENV.DISABLE_RANGE_API = true; - } - - if ("undefined" === typeof MetamorphENV) { - exports.MetamorphENV = {}; - } - - MetamorphENV.DISABLE_RANGE_API = Ember.ENV.DISABLE_RANGE_API; - - /** - Hash of enabled Canary features. Add to this before creating your application. - - You can also define `EmberENV.FEATURES` if you need to enable features flagged at runtime. - - @class FEATURES - @namespace Ember - @static - @since 1.1.0 - */ - - Ember.FEATURES = Ember.ENV.FEATURES || {}; - - /** - Test that a feature is enabled. Parsed by Ember's build tools to leave - experimental features out of beta/stable builds. - - You can define the following configuration options: - - * `EmberENV.ENABLE_ALL_FEATURES` - force all features to be enabled. - * `EmberENV.ENABLE_OPTIONAL_FEATURES` - enable any features that have not been explicitly - enabled/disabled. - - @method isEnabled - @param {String} feature - @return {Boolean} - @for Ember.FEATURES - @since 1.1.0 - */ - - Ember.FEATURES.isEnabled = function(feature) { - var featureValue = Ember.FEATURES[feature]; - - if (Ember.ENV.ENABLE_ALL_FEATURES) { - return true; - } else if (featureValue === true || featureValue === false || featureValue === undefined) { - return featureValue; - } else if (Ember.ENV.ENABLE_OPTIONAL_FEATURES) { - return true; - } else { - return false; - } - }; - - // .......................................................... - // BOOTSTRAP - // - - /** - Determines whether Ember should enhance some built-in object prototypes to - provide a more friendly API. If enabled, a few methods will be added to - `Function`, `String`, and `Array`. `Object.prototype` will not be enhanced, - which is the one that causes most trouble for people. - - In general we recommend leaving this option set to true since it rarely - conflicts with other code. If you need to turn it off however, you can - define an `EmberENV.EXTEND_PROTOTYPES` config to disable it. - - @property EXTEND_PROTOTYPES - @type Boolean - @default true - @for Ember - */ - Ember.EXTEND_PROTOTYPES = Ember.ENV.EXTEND_PROTOTYPES; - - if (typeof Ember.EXTEND_PROTOTYPES === 'undefined') { - Ember.EXTEND_PROTOTYPES = true; - } - - /** - Determines whether Ember logs a full stack trace during deprecation warnings - - @property LOG_STACKTRACE_ON_DEPRECATION - @type Boolean - @default true - */ - Ember.LOG_STACKTRACE_ON_DEPRECATION = (Ember.ENV.LOG_STACKTRACE_ON_DEPRECATION !== false); - - /** - Determines whether Ember should add ECMAScript 5 Array shims to older browsers. - - @property SHIM_ES5 - @type Boolean - @default Ember.EXTEND_PROTOTYPES - */ - Ember.SHIM_ES5 = (Ember.ENV.SHIM_ES5 === false) ? false : Ember.EXTEND_PROTOTYPES; - - /** - Determines whether Ember logs info about version of used libraries - - @property LOG_VERSION - @type Boolean - @default true - */ - Ember.LOG_VERSION = (Ember.ENV.LOG_VERSION === false) ? false : true; - - /** - Empty function. Useful for some operations. Always returns `this`. - - @method K - @private - @return {Object} - */ - function K() { return this; } - __exports__.K = K; - Ember.K = K; - //TODO: ES6 GLOBAL TODO - - // Stub out the methods defined by the ember-debug package in case it's not loaded - - if ('undefined' === typeof Ember.assert) { Ember.assert = K; } - if ('undefined' === typeof Ember.warn) { Ember.warn = K; } - if ('undefined' === typeof Ember.debug) { Ember.debug = K; } - if ('undefined' === typeof Ember.runInDebug) { Ember.runInDebug = K; } - if ('undefined' === typeof Ember.deprecate) { Ember.deprecate = K; } - if ('undefined' === typeof Ember.deprecateFunc) { - Ember.deprecateFunc = function(_, func) { return func; }; - } - - __exports__["default"] = Ember; - }); -enifed("ember-metal/dependent_keys", - ["ember-metal/platform","ember-metal/watching","exports"], - function(__dependency1__, __dependency2__, __exports__) { - // Remove "use strict"; from transpiled module until - // https://bugs.webkit.org/show_bug.cgi?id=138038 is fixed - // - // REMOVE_USE_STRICT: true - - var o_create = __dependency1__.create; - var watch = __dependency2__.watch; - var unwatch = __dependency2__.unwatch; - - /** - @module ember-metal - */ - - // .......................................................... - // DEPENDENT KEYS - // - - // data structure: - // meta.deps = { - // 'depKey': { - // 'keyName': count, - // } - // } - - /* - This function returns a map of unique dependencies for a - given object and key. - */ - function keysForDep(depsMeta, depKey) { - var keys = depsMeta[depKey]; - if (!keys) { - // if there are no dependencies yet for a the given key - // create a new empty list of dependencies for the key - keys = depsMeta[depKey] = {}; - } else if (!depsMeta.hasOwnProperty(depKey)) { - // otherwise if the dependency list is inherited from - // a superclass, clone the hash - keys = depsMeta[depKey] = o_create(keys); - } - return keys; - } - - function metaForDeps(meta) { - return keysForDep(meta, 'deps'); - } - - function addDependentKeys(desc, obj, keyName, meta) { - // the descriptor has a list of dependent keys, so - // add all of its dependent keys. - var depKeys = desc._dependentKeys, depsMeta, idx, len, depKey, keys; - if (!depKeys) return; - - depsMeta = metaForDeps(meta); - - for(idx = 0, len = depKeys.length; idx < len; idx++) { - depKey = depKeys[idx]; - // Lookup keys meta for depKey - keys = keysForDep(depsMeta, depKey); - // Increment the number of times depKey depends on keyName. - keys[keyName] = (keys[keyName] || 0) + 1; - // Watch the depKey - watch(obj, depKey, meta); - } - } - - __exports__.addDependentKeys = addDependentKeys;function removeDependentKeys(desc, obj, keyName, meta) { - // the descriptor has a list of dependent keys, so - // remove all of its dependent keys. - var depKeys = desc._dependentKeys, depsMeta, idx, len, depKey, keys; - if (!depKeys) return; - - depsMeta = metaForDeps(meta); - - for(idx = 0, len = depKeys.length; idx < len; idx++) { - depKey = depKeys[idx]; - // Lookup keys meta for depKey - keys = keysForDep(depsMeta, depKey); - // Decrement the number of times depKey depends on keyName. - keys[keyName] = (keys[keyName] || 0) - 1; - // Unwatch the depKey - unwatch(obj, depKey, meta); - } - } - - __exports__.removeDependentKeys = removeDependentKeys; - }); -enifed("ember-metal/deprecate_property", - ["ember-metal/core","ember-metal/platform","ember-metal/properties","ember-metal/property_get","ember-metal/property_set","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - /** - @module ember-metal - */ - - var Ember = __dependency1__["default"]; - var hasPropertyAccessors = __dependency2__.hasPropertyAccessors; - var defineProperty = __dependency3__.defineProperty; - var get = __dependency4__.get; - var set = __dependency5__.set; - - - /** - Used internally to allow changing properties in a backwards compatible way, and print a helpful - deprecation warning. - - @method deprecateProperty - @param {Object} object The object to add the deprecated property to. - @param {String} deprecatedKey The property to add (and print deprecation warnings upon accessing). - @param {String} newKey The property that will be aliased. - @private - @since 1.7.0 - */ - - function deprecateProperty(object, deprecatedKey, newKey) { - function deprecate() { - Ember.deprecate('Usage of `' + deprecatedKey + '` is deprecated, use `' + newKey + '` instead.'); - } - - if (hasPropertyAccessors) { - defineProperty(object, deprecatedKey, { - configurable: true, - enumerable: false, - set: function(value) { deprecate(); set(this, newKey, value); }, - get: function() { deprecate(); return get(this, newKey); } - }); - } - } - - __exports__.deprecateProperty = deprecateProperty; - }); -enifed("ember-metal/dictionary", - ["ember-metal/platform","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var create = __dependency1__.create; - - // the delete is meant to hint at runtimes that this object should remain in - // dictionary mode. This is clearly a runtime specific hack, but currently it - // appears worthwile in some usecases. Please note, these deletes do increase - // the cost of creation dramatically over a plain Object.create. And as this - // only makes sense for long-lived dictionaries that aren't instantiated often. - __exports__["default"] = function makeDictionary(parent) { - var dict = create(parent); - dict['_dict'] = null; - delete dict['_dict']; - return dict; - } - }); -enifed("ember-metal/enumerable_utils", - ["ember-metal/array","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var _filter = __dependency1__.filter; - var a_forEach = __dependency1__.forEach; - var _indexOf = __dependency1__.indexOf; - var _map = __dependency1__.map; - - var splice = Array.prototype.splice; - - /** - * Defines some convenience methods for working with Enumerables. - * `Ember.EnumerableUtils` uses `Ember.ArrayPolyfills` when necessary. - * - * @class EnumerableUtils - * @namespace Ember - * @static - * */ - - /** - * Calls the map function on the passed object with a specified callback. This - * uses `Ember.ArrayPolyfill`'s-map method when necessary. - * - * @method map - * @param {Object} obj The object that should be mapped - * @param {Function} callback The callback to execute - * @param {Object} thisArg Value to use as this when executing *callback* - * - * @return {Array} An array of mapped values. - */ - function map(obj, callback, thisArg) { - return obj.map ? obj.map(callback, thisArg) : _map.call(obj, callback, thisArg); - } - - __exports__.map = map;/** - * Calls the forEach function on the passed object with a specified callback. This - * uses `Ember.ArrayPolyfill`'s-forEach method when necessary. - * - * @method forEach - * @param {Object} obj The object to call forEach on - * @param {Function} callback The callback to execute - * @param {Object} thisArg Value to use as this when executing *callback* - * - */ - function forEach(obj, callback, thisArg) { - return obj.forEach ? obj.forEach(callback, thisArg) : a_forEach.call(obj, callback, thisArg); - } - - __exports__.forEach = forEach;/** - * Calls the filter function on the passed object with a specified callback. This - * uses `Ember.ArrayPolyfill`'s-filter method when necessary. - * - * @method filter - * @param {Object} obj The object to call filter on - * @param {Function} callback The callback to execute - * @param {Object} thisArg Value to use as this when executing *callback* - * - * @return {Array} An array containing the filtered values - * @since 1.4.0 - */ - function filter(obj, callback, thisArg) { - return obj.filter ? obj.filter(callback, thisArg) : _filter.call(obj, callback, thisArg); - } - - __exports__.filter = filter;/** - * Calls the indexOf function on the passed object with a specified callback. This - * uses `Ember.ArrayPolyfill`'s-indexOf method when necessary. - * - * @method indexOf - * @param {Object} obj The object to call indexOn on - * @param {Function} callback The callback to execute - * @param {Object} index The index to start searching from - * - */ - function indexOf(obj, element, index) { - return obj.indexOf ? obj.indexOf(element, index) : _indexOf.call(obj, element, index); - } - - __exports__.indexOf = indexOf;/** - * Returns an array of indexes of the first occurrences of the passed elements - * on the passed object. - * - * ```javascript - * var array = [1, 2, 3, 4, 5]; - * Ember.EnumerableUtils.indexesOf(array, [2, 5]); // [1, 4] - * - * var fubar = "Fubarr"; - * Ember.EnumerableUtils.indexesOf(fubar, ['b', 'r']); // [2, 4] - * ``` - * - * @method indexesOf - * @param {Object} obj The object to check for element indexes - * @param {Array} elements The elements to search for on *obj* - * - * @return {Array} An array of indexes. - * - */ - function indexesOf(obj, elements) { - return elements === undefined ? [] : map(elements, function(item) { - return indexOf(obj, item); - }); - } - - __exports__.indexesOf = indexesOf;/** - * Adds an object to an array. If the array already includes the object this - * method has no effect. - * - * @method addObject - * @param {Array} array The array the passed item should be added to - * @param {Object} item The item to add to the passed array - * - * @return 'undefined' - */ - function addObject(array, item) { - var index = indexOf(array, item); - if (index === -1) { array.push(item); } - } - - __exports__.addObject = addObject;/** - * Removes an object from an array. If the array does not contain the passed - * object this method has no effect. - * - * @method removeObject - * @param {Array} array The array to remove the item from. - * @param {Object} item The item to remove from the passed array. - * - * @return 'undefined' - */ - function removeObject(array, item) { - var index = indexOf(array, item); - if (index !== -1) { array.splice(index, 1); } - } - - __exports__.removeObject = removeObject;function _replace(array, idx, amt, objects) { - var args = [].concat(objects); - var ret = []; - // https://code.google.com/p/chromium/issues/detail?id=56588 - var size = 60000; - var start = idx; - var ends = amt; - var count, chunk; - - while (args.length) { - count = ends > size ? size : ends; - if (count <= 0) { count = 0; } - - chunk = args.splice(0, size); - chunk = [start, count].concat(chunk); - - start += size; - ends -= count; - - ret = ret.concat(splice.apply(array, chunk)); - } - return ret; - } - - __exports__._replace = _replace;/** - * Replaces objects in an array with the passed objects. - * - * ```javascript - * var array = [1,2,3]; - * Ember.EnumerableUtils.replace(array, 1, 2, [4, 5]); // [1, 4, 5] - * - * var array = [1,2,3]; - * Ember.EnumerableUtils.replace(array, 1, 1, [4, 5]); // [1, 4, 5, 3] - * - * var array = [1,2,3]; - * Ember.EnumerableUtils.replace(array, 10, 1, [4, 5]); // [1, 2, 3, 4, 5] - * ``` - * - * @method replace - * @param {Array} array The array the objects should be inserted into. - * @param {Number} idx Starting index in the array to replace. If *idx* >= - * length, then append to the end of the array. - * @param {Number} amt Number of elements that should be removed from the array, - * starting at *idx* - * @param {Array} objects An array of zero or more objects that should be - * inserted into the array at *idx* - * - * @return {Array} The modified array. - */ - function replace(array, idx, amt, objects) { - if (array.replace) { - return array.replace(idx, amt, objects); - } else { - return _replace(array, idx, amt, objects); - } - } - - __exports__.replace = replace;/** - * Calculates the intersection of two arrays. This method returns a new array - * filled with the records that the two passed arrays share with each other. - * If there is no intersection, an empty array will be returned. - * - * ```javascript - * var array1 = [1, 2, 3, 4, 5]; - * var array2 = [1, 3, 5, 6, 7]; - * - * Ember.EnumerableUtils.intersection(array1, array2); // [1, 3, 5] - * - * var array1 = [1, 2, 3]; - * var array2 = [4, 5, 6]; - * - * Ember.EnumerableUtils.intersection(array1, array2); // [] - * ``` - * - * @method intersection - * @param {Array} array1 The first array - * @param {Array} array2 The second array - * - * @return {Array} The intersection of the two passed arrays. - */ - function intersection(array1, array2) { - var result = []; - forEach(array1, function(element) { - if (indexOf(array2, element) >= 0) { - result.push(element); - } - }); - - return result; - } - - __exports__.intersection = intersection;// TODO: this only exists to maintain the existing api, as we move forward it - // should only be part of the "global build" via some shim - __exports__["default"] = { - _replace: _replace, - addObject: addObject, - filter: filter, - forEach: forEach, - indexOf: indexOf, - indexesOf: indexesOf, - intersection: intersection, - map: map, - removeObject: removeObject, - replace: replace - }; - }); -enifed("ember-metal/error", - ["ember-metal/platform","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var create = __dependency1__.create; - - var errorProps = [ - 'description', - 'fileName', - 'lineNumber', - 'message', - 'name', - 'number', - 'stack' - ]; - - /** - A subclass of the JavaScript Error object for use in Ember. - - @class Error - @namespace Ember - @extends Error - @constructor - */ - function EmberError() { - var tmp = Error.apply(this, arguments); - - // Adds a `stack` property to the given error object that will yield the - // stack trace at the time captureStackTrace was called. - // When collecting the stack trace all frames above the topmost call - // to this function, including that call, will be left out of the - // stack trace. - // This is useful because we can hide Ember implementation details - // that are not very helpful for the user. - if (Error.captureStackTrace) { - Error.captureStackTrace(this, Ember.Error); - } - // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work. - for (var idx = 0; idx < errorProps.length; idx++) { - this[errorProps[idx]] = tmp[errorProps[idx]]; - } - } - - EmberError.prototype = create(Error.prototype); - - __exports__["default"] = EmberError; - }); -enifed("ember-metal/events", - ["ember-metal/core","ember-metal/utils","ember-metal/platform","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - // Remove "use strict"; from transpiled module until - // https://bugs.webkit.org/show_bug.cgi?id=138038 is fixed - // - // REMOVE_USE_STRICT: true - - /** - @module ember-metal - */ - var Ember = __dependency1__["default"]; - var metaFor = __dependency2__.meta; - var tryFinally = __dependency2__.tryFinally; - var apply = __dependency2__.apply; - var applyStr = __dependency2__.applyStr; - var create = __dependency3__.create; - - var a_slice = [].slice; - - /* listener flags */ - var ONCE = 1; - var SUSPENDED = 2; - - - /* - The event system uses a series of nested hashes to store listeners on an - object. When a listener is registered, or when an event arrives, these - hashes are consulted to determine which target and action pair to invoke. - - The hashes are stored in the object's meta hash, and look like this: - - // Object's meta hash - { - listeners: { // variable name: `listenerSet` - "foo:changed": [ // variable name: `actions` - target, method, flags - ] - } - } - - */ - - function indexOf(array, target, method) { - var index = -1; - // hashes are added to the end of the event array - // so it makes sense to start searching at the end - // of the array and search in reverse - for (var i = array.length - 3 ; i >=0; i -= 3) { - if (target === array[i] && method === array[i + 1]) { - index = i; break; - } - } - return index; - } - - function actionsFor(obj, eventName) { - var meta = metaFor(obj, true); - var actions; - var listeners = meta.listeners; - - if (!listeners) { - listeners = meta.listeners = create(null); - listeners.__source__ = obj; - } else if (listeners.__source__ !== obj) { - // setup inherited copy of the listeners object - listeners = meta.listeners = create(listeners); - listeners.__source__ = obj; - } - - actions = listeners[eventName]; - - // if there are actions, but the eventName doesn't exist in our listeners, then copy them from the prototype - if (actions && actions.__source__ !== obj) { - actions = listeners[eventName] = listeners[eventName].slice(); - actions.__source__ = obj; - } else if (!actions) { - actions = listeners[eventName] = []; - actions.__source__ = obj; - } - - return actions; - } - - function accumulateListeners(obj, eventName, otherActions) { - var meta = obj['__ember_meta__']; - var actions = meta && meta.listeners && meta.listeners[eventName]; - - if (!actions) { return; } - - var newActions = []; - - for (var i = actions.length - 3; i >= 0; i -= 3) { - var target = actions[i]; - var method = actions[i+1]; - var flags = actions[i+2]; - var actionIndex = indexOf(otherActions, target, method); - - if (actionIndex === -1) { - otherActions.push(target, method, flags); - newActions.push(target, method, flags); - } - } - - return newActions; - } - - __exports__.accumulateListeners = accumulateListeners;/** - Add an event listener - - @method addListener - @for Ember - @param obj - @param {String} eventName - @param {Object|Function} target A target object or a function - @param {Function|String} method A function or the name of a function to be called on `target` - @param {Boolean} once A flag whether a function should only be called once - */ - function addListener(obj, eventName, target, method, once) { - Ember.assert("You must pass at least an object and event name to Ember.addListener", !!obj && !!eventName); - - if (!method && 'function' === typeof target) { - method = target; - target = null; - } - - var actions = actionsFor(obj, eventName); - var actionIndex = indexOf(actions, target, method); - var flags = 0; - - if (once) flags |= ONCE; - - if (actionIndex !== -1) { return; } - - actions.push(target, method, flags); - - if ('function' === typeof obj.didAddListener) { - obj.didAddListener(eventName, target, method); - } - } - - __exports__.addListener = addListener;/** - Remove an event listener - - Arguments should match those passed to `Ember.addListener`. - - @method removeListener - @for Ember - @param obj - @param {String} eventName - @param {Object|Function} target A target object or a function - @param {Function|String} method A function or the name of a function to be called on `target` - */ - function removeListener(obj, eventName, target, method) { - Ember.assert("You must pass at least an object and event name to Ember.removeListener", !!obj && !!eventName); - - if (!method && 'function' === typeof target) { - method = target; - target = null; - } - - function _removeListener(target, method) { - var actions = actionsFor(obj, eventName); - var actionIndex = indexOf(actions, target, method); - - // action doesn't exist, give up silently - if (actionIndex === -1) { return; } - - actions.splice(actionIndex, 3); - - if ('function' === typeof obj.didRemoveListener) { - obj.didRemoveListener(eventName, target, method); - } - } - - if (method) { - _removeListener(target, method); - } else { - var meta = obj['__ember_meta__']; - var actions = meta && meta.listeners && meta.listeners[eventName]; - - if (!actions) { return; } - for (var i = actions.length - 3; i >= 0; i -= 3) { - _removeListener(actions[i], actions[i+1]); - } - } - } - - /** - Suspend listener during callback. - - This should only be used by the target of the event listener - when it is taking an action that would cause the event, e.g. - an object might suspend its property change listener while it is - setting that property. - - @method suspendListener - @for Ember - - @private - @param obj - @param {String} eventName - @param {Object|Function} target A target object or a function - @param {Function|String} method A function or the name of a function to be called on `target` - @param {Function} callback - */ - function suspendListener(obj, eventName, target, method, callback) { - if (!method && 'function' === typeof target) { - method = target; - target = null; - } - - var actions = actionsFor(obj, eventName); - var actionIndex = indexOf(actions, target, method); - - if (actionIndex !== -1) { - actions[actionIndex+2] |= SUSPENDED; // mark the action as suspended - } - - function tryable() { return callback.call(target); } - function finalizer() { if (actionIndex !== -1) { actions[actionIndex+2] &= ~SUSPENDED; } } - - return tryFinally(tryable, finalizer); - } - - __exports__.suspendListener = suspendListener;/** - Suspends multiple listeners during a callback. - - @method suspendListeners - @for Ember - - @private - @param obj - @param {Array} eventNames Array of event names - @param {Object|Function} target A target object or a function - @param {Function|String} method A function or the name of a function to be called on `target` - @param {Function} callback - */ - function suspendListeners(obj, eventNames, target, method, callback) { - if (!method && 'function' === typeof target) { - method = target; - target = null; - } - - var suspendedActions = []; - var actionsList = []; - var eventName, actions, i, l; - - for (i=0, l=eventNames.length; i= 0; i -= 3) { // looping in reverse for once listeners - var target = actions[i], method = actions[i+1], flags = actions[i+2]; - if (!method) { continue; } - if (flags & SUSPENDED) { continue; } - if (flags & ONCE) { removeListener(obj, eventName, target, method); } - if (!target) { target = obj; } - if ('string' === typeof method) { - if (params) { - applyStr(target, method, params); - } else { - target[method](); - } - } else { - if (params) { - apply(target, method, params); - } else { - method.call(target); - } - } - } - return true; - } - - __exports__.sendEvent = sendEvent;/** - @private - @method hasListeners - @for Ember - @param obj - @param {String} eventName - */ - function hasListeners(obj, eventName) { - var meta = obj['__ember_meta__']; - var actions = meta && meta.listeners && meta.listeners[eventName]; - - return !!(actions && actions.length); - } - - __exports__.hasListeners = hasListeners;/** - @private - @method listenersFor - @for Ember - @param obj - @param {String} eventName - */ - function listenersFor(obj, eventName) { - var ret = []; - var meta = obj['__ember_meta__']; - var actions = meta && meta.listeners && meta.listeners[eventName]; - - if (!actions) { return ret; } - - for (var i = 0, l = actions.length; i < l; i += 3) { - var target = actions[i]; - var method = actions[i+1]; - ret.push([target, method]); - } - - return ret; - } - - __exports__.listenersFor = listenersFor;/** - Define a property as a function that should be executed when - a specified event or events are triggered. - - - ``` javascript - var Job = Ember.Object.extend({ - logCompleted: Ember.on('completed', function() { - console.log('Job completed!'); - }) - }); - - var job = Job.create(); - - Ember.sendEvent(job, 'completed'); // Logs 'Job completed!' - ``` - - @method on - @for Ember - @param {String} eventNames* - @param {Function} func - @return func - */ - function on(){ - var func = a_slice.call(arguments, -1)[0]; - var events = a_slice.call(arguments, 0, -1); - func.__ember_listens__ = events; - return func; - } - - __exports__.on = on;__exports__.removeListener = removeListener; - }); -enifed("ember-metal/expand_properties", - ["ember-metal/core","ember-metal/error","ember-metal/enumerable_utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - var EmberError = __dependency2__["default"]; - var forEach = __dependency3__.forEach; - - /** - @module ember-metal - */ - - var BRACE_EXPANSION = /^((?:[^\.]*\.)*)\{(.*)\}$/; - var SPLIT_REGEX = /\{|\}/; - - /** - Expands `pattern`, invoking `callback` for each expansion. - - The only pattern supported is brace-expansion, anything else will be passed - once to `callback` directly. - - Example - - ```js - function echo(arg){ console.log(arg); } - - Ember.expandProperties('foo.bar', echo); //=> 'foo.bar' - Ember.expandProperties('{foo,bar}', echo); //=> 'foo', 'bar' - Ember.expandProperties('foo.{bar,baz}', echo); //=> 'foo.bar', 'foo.baz' - Ember.expandProperties('{foo,bar}.baz', echo); //=> '{foo,bar}.baz' - Ember.expandProperties('foo.{bar,baz}.@each', echo) //=> 'foo.bar.@each', 'foo.baz.@each' - Ember.expandProperties('{foo,bar}.{spam,eggs}', echo) //=> 'foo.spam', 'foo.eggs', 'bar.spam', 'bar.eggs' - Ember.expandProperties('{foo}.bar.{baz}') //=> 'foo.bar.baz' - ``` - - @method - @private - @param {String} pattern The property pattern to expand. - @param {Function} callback The callback to invoke. It is invoked once per - expansion, and is passed the expansion. - */ - __exports__["default"] = function expandProperties(pattern, callback) { - if (pattern.indexOf(' ') > -1) { - throw new EmberError('Brace expanded properties cannot contain spaces, ' + - 'e.g. `user.{firstName, lastName}` should be `user.{firstName,lastName}`'); - } - - - return newExpandProperties(pattern, callback); - } - - function oldExpandProperties(pattern, callback) { - var match, prefix, list; - - if (match = BRACE_EXPANSION.exec(pattern)) { - prefix = match[1]; - list = match[2]; - - forEach(list.split(','), function (suffix) { - callback(prefix + suffix); - }); - } else { - callback(pattern); - } - } - - function newExpandProperties(pattern, callback) { - if ('string' === Ember.typeOf(pattern)) { - var parts = pattern.split(SPLIT_REGEX); - var properties = [parts]; - - forEach(parts, function(part, index) { - if (part.indexOf(',') >= 0) { - properties = duplicateAndReplace(properties, part.split(','), index); - } - }); - - forEach(properties, function(property) { - callback(property.join('')); - }); - } else { - callback(pattern); - } - } - - function duplicateAndReplace(properties, currentParts, index) { - var all = []; - - forEach(properties, function(property) { - forEach(currentParts, function(part) { - var current = property.slice(0); - current[index] = part; - all.push(current); - }); - }); - - return all; - } - }); -enifed("ember-metal/get_properties", - ["ember-metal/property_get","ember-metal/utils","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var get = __dependency1__.get; - var typeOf = __dependency2__.typeOf; - - /** - To get multiple properties at once, call `Ember.getProperties` - with an object followed by a list of strings or an array: - - ```javascript - Ember.getProperties(record, 'firstName', 'lastName', 'zipCode'); - // { firstName: 'John', lastName: 'Doe', zipCode: '10011' } - ``` - - is equivalent to: - - ```javascript - Ember.getProperties(record, ['firstName', 'lastName', 'zipCode']); - // { firstName: 'John', lastName: 'Doe', zipCode: '10011' } - ``` - - @method getProperties - @for Ember - @param {Object} obj - @param {String...|Array} list of keys to get - @return {Object} - */ - __exports__["default"] = function getProperties(obj) { - var ret = {}; - var propertyNames = arguments; - var i = 1; - - if (arguments.length === 2 && typeOf(arguments[1]) === 'array') { - i = 0; - propertyNames = arguments[1]; - } - for(var len = propertyNames.length; i < len; i++) { - ret[propertyNames[i]] = get(obj, propertyNames[i]); - } - return ret; - } - }); -enifed("ember-metal/injected_property", - ["ember-metal/core","ember-metal/computed","ember-metal/alias","ember-metal/properties","ember-metal/platform","ember-metal/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // Ember.assert - var ComputedProperty = __dependency2__.ComputedProperty; - var AliasedProperty = __dependency3__.AliasedProperty; - var Descriptor = __dependency4__.Descriptor; - var create = __dependency5__.create; - var meta = __dependency6__.meta; - - /** - Read-only property that returns the result of a container lookup. - - @class InjectedProperty - @namespace Ember - @extends Ember.Descriptor - @constructor - @param {String} type The container type the property will lookup - @param {String} name (optional) The name the property will lookup, defaults - to the property's name - */ - function InjectedProperty(type, name) { - this.type = type; - this.name = name; - - this._super$Constructor(injectedPropertyGet); - AliasedPropertyPrototype.oneWay.call(this); - } - - function injectedPropertyGet(keyName) { - var desc = meta(this).descs[keyName]; - - Ember.assert("Attempting to lookup an injected property on an object " + - "without a container, ensure that the object was " + - "instantiated via a container.", this.container); - - return this.container.lookup(desc.type + ':' + (desc.name || keyName)); - } - - InjectedProperty.prototype = create(Descriptor.prototype); - - var InjectedPropertyPrototype = InjectedProperty.prototype; - var ComputedPropertyPrototype = ComputedProperty.prototype; - var AliasedPropertyPrototype = AliasedProperty.prototype; - - InjectedPropertyPrototype._super$Constructor = ComputedProperty; - - InjectedPropertyPrototype.get = ComputedPropertyPrototype.get; - InjectedPropertyPrototype.readOnly = ComputedPropertyPrototype.readOnly; - - InjectedPropertyPrototype.teardown = ComputedPropertyPrototype.teardown; - - __exports__["default"] = InjectedProperty; - }); -enifed("ember-metal/instrumentation", - ["ember-metal/core","ember-metal/utils","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - var tryCatchFinally = __dependency2__.tryCatchFinally; - - /** - The purpose of the Ember Instrumentation module is - to provide efficient, general-purpose instrumentation - for Ember. - - Subscribe to a listener by using `Ember.subscribe`: - - ```javascript - Ember.subscribe("render", { - before: function(name, timestamp, payload) { - - }, - - after: function(name, timestamp, payload) { - - } - }); - ``` - - If you return a value from the `before` callback, that same - value will be passed as a fourth parameter to the `after` - callback. - - Instrument a block of code by using `Ember.instrument`: - - ```javascript - Ember.instrument("render.handlebars", payload, function() { - // rendering logic - }, binding); - ``` - - Event names passed to `Ember.instrument` are namespaced - by periods, from more general to more specific. Subscribers - can listen for events by whatever level of granularity they - are interested in. - - In the above example, the event is `render.handlebars`, - and the subscriber listened for all events beginning with - `render`. It would receive callbacks for events named - `render`, `render.handlebars`, `render.container`, or - even `render.handlebars.layout`. - - @class Instrumentation - @namespace Ember - @static - */ - var subscribers = []; - __exports__.subscribers = subscribers;var cache = {}; - - var populateListeners = function(name) { - var listeners = []; - var subscriber; - - for (var i=0, l=subscribers.length; i -1) { - list.splice(index, 1); - } - this.size = list.length; - return true; - } else { - return false; - } - }, - - /** - @method isEmpty - @return {Boolean} - */ - isEmpty: function() { - return this.size === 0; - }, - - /** - @method has - @param obj - @return {Boolean} - */ - has: function(obj) { - if (this.size === 0) { return false; } - - var guid = guidFor(obj); - var presenceSet = this.presenceSet; - - return presenceSet[guid] === true; - }, - - /** - @method forEach - @param {Function} fn - @param self - */ - forEach: function(fn /*, thisArg*/) { - if (typeof fn !== 'function') { - missingFunction(fn); - } - - if (this.size === 0) { return; } - - var list = this.list; - var length = arguments.length; - var i; - - if (length === 2) { - for (i = 0; i < list.length; i++) { - fn.call(arguments[1], list[i]); - } - } else { - for (i = 0; i < list.length; i++) { - fn(list[i]); - } - } - }, - - /** - @method toArray - @return {Array} - */ - toArray: function() { - return this.list.slice(); - }, - - /** - @method copy - @return {Ember.OrderedSet} - */ - copy: function() { - var Constructor = this.constructor; - var set = new Constructor(); - - set._silenceRemoveDeprecation = this._silenceRemoveDeprecation; - set.presenceSet = copyNull(this.presenceSet); - set.list = this.toArray(); - set.size = this.size; - - return set; - } - }; - - deprecateProperty(OrderedSet.prototype, 'length', 'size'); - - /** - A Map stores values indexed by keys. Unlike JavaScript's - default Objects, the keys of a Map can be any JavaScript - object. - - Internally, a Map has two data structures: - - 1. `keys`: an OrderedSet of all of the existing keys - 2. `values`: a JavaScript Object indexed by the `Ember.guidFor(key)` - - When a key/value pair is added for the first time, we - add the key to the `keys` OrderedSet, and create or - replace an entry in `values`. When an entry is deleted, - we delete its entry in `keys` and `values`. - - @class Map - @namespace Ember - @private - @constructor - */ - function Map() { - if (this instanceof this.constructor) { - this.keys = OrderedSet.create(); - this.keys._silenceRemoveDeprecation = true; - this.values = create(null); - this.size = 0; - } else { - missingNew("OrderedSet"); - } - } - - Ember.Map = Map; - - /** - @method create - @static - */ - Map.create = function() { - var Constructor = this; - return new Constructor(); - }; - - Map.prototype = { - constructor: Map, - - /** - This property will change as the number of objects in the map changes. - - @since 1.8.0 - @property size - @type number - @default 0 - */ - size: 0, - - /** - Retrieve the value associated with a given key. - - @method get - @param {*} key - @return {*} the value associated with the key, or `undefined` - */ - get: function(key) { - if (this.size === 0) { return; } - - var values = this.values; - var guid = guidFor(key); - - return values[guid]; - }, - - /** - Adds a value to the map. If a value for the given key has already been - provided, the new value will replace the old value. - - @method set - @param {*} key - @param {*} value - @return {Ember.Map} - */ - set: function(key, value) { - var keys = this.keys; - var values = this.values; - var guid = guidFor(key); - - // ensure we don't store -0 - var k = key === -0 ? 0 : key; - - keys.add(k, guid); - - values[guid] = value; - - this.size = keys.size; - - return this; - }, - - /** - @deprecated see delete - Removes a value from the map for an associated key. - - @method remove - @param {*} key - @return {Boolean} true if an item was removed, false otherwise - */ - remove: function(key) { - Ember.deprecate('Calling `Map.prototype.remove` has been deprecated, please use `Map.prototype.delete` instead.'); - - return this["delete"](key); - }, - - /** - Removes a value from the map for an associated key. - - @since 1.8.0 - @method delete - @param {*} key - @return {Boolean} true if an item was removed, false otherwise - */ - "delete": function(key) { - if (this.size === 0) { return false; } - // don't use ES6 "delete" because it will be annoying - // to use in browsers that are not ES6 friendly; - var keys = this.keys; - var values = this.values; - var guid = guidFor(key); - - if (keys["delete"](key, guid)) { - delete values[guid]; - this.size = keys.size; - return true; - } else { - return false; - } - }, - - /** - Check whether a key is present. - - @method has - @param {*} key - @return {Boolean} true if the item was present, false otherwise - */ - has: function(key) { - return this.keys.has(key); - }, - - /** - Iterate over all the keys and values. Calls the function once - for each key, passing in value, key, and the map being iterated over, - in that order. - - The keys are guaranteed to be iterated over in insertion order. - - @method forEach - @param {Function} callback - @param {*} self if passed, the `this` value inside the - callback. By default, `this` is the map. - */ - forEach: function(callback /*, thisArg*/) { - if (typeof callback !== 'function') { - missingFunction(callback); - } - - if (this.size === 0) { return; } - - var length = arguments.length; - var map = this; - var cb, thisArg; - - if (length === 2) { - thisArg = arguments[1]; - cb = function(key) { - callback.call(thisArg, map.get(key), key, map); - }; - } else { - cb = function(key) { - callback(map.get(key), key, map); - }; - } - - this.keys.forEach(cb); - }, - - /** - @method clear - */ - clear: function() { - this.keys.clear(); - this.values = create(null); - this.size = 0; - }, - - /** - @method copy - @return {Ember.Map} - */ - copy: function() { - return copyMap(this, new Map()); - } - }; - - deprecateProperty(Map.prototype, 'length', 'size'); - - /** - @class MapWithDefault - @namespace Ember - @extends Ember.Map - @private - @constructor - @param [options] - @param {*} [options.defaultValue] - */ - function MapWithDefault(options) { - this._super$constructor(); - this.defaultValue = options.defaultValue; - } - - /** - @method create - @static - @param [options] - @param {*} [options.defaultValue] - @return {Ember.MapWithDefault|Ember.Map} If options are passed, returns - `Ember.MapWithDefault` otherwise returns `Ember.Map` - */ - MapWithDefault.create = function(options) { - if (options) { - return new MapWithDefault(options); - } else { - return new Map(); - } - }; - - MapWithDefault.prototype = create(Map.prototype); - MapWithDefault.prototype.constructor = MapWithDefault; - MapWithDefault.prototype._super$constructor = Map; - MapWithDefault.prototype._super$get = Map.prototype.get; - - /** - Retrieve the value associated with a given key. - - @method get - @param {*} key - @return {*} the value associated with the key, or the default value - */ - MapWithDefault.prototype.get = function(key) { - var hasValue = this.has(key); - - if (hasValue) { - return this._super$get(key); - } else { - var defaultValue = this.defaultValue(key); - this.set(key, defaultValue); - return defaultValue; - } - }; - - /** - @method copy - @return {Ember.MapWithDefault} - */ - MapWithDefault.prototype.copy = function() { - var Constructor = this.constructor; - return copyMap(this, new Constructor({ - defaultValue: this.defaultValue - })); - }; - - __exports__["default"] = Map; - - __exports__.OrderedSet = OrderedSet; - __exports__.Map = Map; - __exports__.MapWithDefault = MapWithDefault; - }); -enifed("ember-metal/merge", - ["ember-metal/keys","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var keys = __dependency1__["default"]; - - /** - Merge the contents of two objects together into the first object. - - ```javascript - Ember.merge({first: 'Tom'}, {last: 'Dale'}); // {first: 'Tom', last: 'Dale'} - var a = {first: 'Yehuda'}, b = {last: 'Katz'}; - Ember.merge(a, b); // a == {first: 'Yehuda', last: 'Katz'}, b == {last: 'Katz'} - ``` - - @method merge - @for Ember - @param {Object} original The object to merge into - @param {Object} updates The object to copy properties from - @return {Object} - */ - __exports__["default"] = function merge(original, updates) { - if (!updates || typeof updates !== 'object') { - return original; - } - - var props = keys(updates); - var prop; - var length = props.length; - - for (var i = 0; i < length; i++) { - prop = props[i]; - original[prop] = updates[prop]; - } - - return original; - } - }); -enifed("ember-metal/mixin", - ["ember-metal/core","ember-metal/merge","ember-metal/array","ember-metal/platform","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/expand_properties","ember-metal/properties","ember-metal/computed","ember-metal/binding","ember-metal/observer","ember-metal/events","ember-metal/streams/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __exports__) { - // Remove "use strict"; from transpiled module until - // https://bugs.webkit.org/show_bug.cgi?id=138038 is fixed - // - // REMOVE_USE_STRICT: true - - /** - @module ember - @submodule ember-metal - */ - - var Ember = __dependency1__["default"]; - // warn, assert, wrap, et; - var merge = __dependency2__["default"]; - var a_indexOf = __dependency3__.indexOf; - var a_forEach = __dependency3__.forEach; - var o_create = __dependency4__.create; - var get = __dependency5__.get; - var set = __dependency6__.set; - var trySet = __dependency6__.trySet; - var guidFor = __dependency7__.guidFor; - var metaFor = __dependency7__.meta; - var wrap = __dependency7__.wrap; - var makeArray = __dependency7__.makeArray; - var isArray = __dependency7__.isArray; - var expandProperties = __dependency8__["default"]; - var Descriptor = __dependency9__.Descriptor; - var defineProperty = __dependency9__.defineProperty; - var ComputedProperty = __dependency10__.ComputedProperty; - var Binding = __dependency11__.Binding; - var addObserver = __dependency12__.addObserver; - var removeObserver = __dependency12__.removeObserver; - var addBeforeObserver = __dependency12__.addBeforeObserver; - var removeBeforeObserver = __dependency12__.removeBeforeObserver; - var _suspendObserver = __dependency12__._suspendObserver; - var addListener = __dependency13__.addListener; - var removeListener = __dependency13__.removeListener; - var isStream = __dependency14__.isStream; - - var REQUIRED; - var a_slice = [].slice; - - function superFunction(){ - var func = this.__nextSuper; - var ret; - - if (func) { - var length = arguments.length; - this.__nextSuper = null; - if (length === 0) { - ret = func.call(this); - } else if (length === 1) { - ret = func.call(this, arguments[0]); - } else if (length === 2) { - ret = func.call(this, arguments[0], arguments[1]); - } else { - ret = func.apply(this, arguments); - } - this.__nextSuper = func; - return ret; - } - } - - // ensure we prime superFunction to mitigate - // v8 bug potentially incorrectly deopts this function: https://code.google.com/p/v8/issues/detail?id=3709 - var primer = { - __nextSuper: function(a,b,c,d ) { } - }; - - superFunction.call(primer); - superFunction.call(primer, 1); - superFunction.call(primer, 1, 2); - superFunction.call(primer, 1, 2, 3); - - function mixinsMeta(obj) { - var m = metaFor(obj, true); - var ret = m.mixins; - if (!ret) { - ret = m.mixins = {}; - } else if (!m.hasOwnProperty('mixins')) { - ret = m.mixins = o_create(ret); - } - return ret; - } - - function isMethod(obj) { - return 'function' === typeof obj && - obj.isMethod !== false && - obj !== Boolean && - obj !== Object && - obj !== Number && - obj !== Array && - obj !== Date && - obj !== String; - } - - var CONTINUE = {}; - - function mixinProperties(mixinsMeta, mixin) { - var guid; - - if (mixin instanceof Mixin) { - guid = guidFor(mixin); - if (mixinsMeta[guid]) { return CONTINUE; } - mixinsMeta[guid] = mixin; - return mixin.properties; - } else { - return mixin; // apply anonymous mixin properties - } - } - - function concatenatedMixinProperties(concatProp, props, values, base) { - var concats; - - // reset before adding each new mixin to pickup concats from previous - concats = values[concatProp] || base[concatProp]; - if (props[concatProp]) { - concats = concats ? concats.concat(props[concatProp]) : props[concatProp]; - } - - return concats; - } - - function giveDescriptorSuper(meta, key, property, values, descs) { - var superProperty; - - // Computed properties override methods, and do not call super to them - if (values[key] === undefined) { - // Find the original descriptor in a parent mixin - superProperty = descs[key]; - } - - // If we didn't find the original descriptor in a parent mixin, find - // it on the original object. - superProperty = superProperty || meta.descs[key]; - - if (superProperty === undefined || !(superProperty instanceof ComputedProperty)) { - return property; - } - - // Since multiple mixins may inherit from the same parent, we need - // to clone the computed property so that other mixins do not receive - // the wrapped version. - property = o_create(property); - property.func = wrap(property.func, superProperty.func); - - return property; - } - - var sourceAvailable = (function() { - return this; - }).toString().indexOf('return this;') > -1; - - function giveMethodSuper(obj, key, method, values, descs) { - var superMethod; - - // Methods overwrite computed properties, and do not call super to them. - if (descs[key] === undefined) { - // Find the original method in a parent mixin - superMethod = values[key]; - } - - // If we didn't find the original value in a parent mixin, find it in - // the original object - superMethod = superMethod || obj[key]; - - // Only wrap the new method if the original method was a function - if (superMethod === undefined || 'function' !== typeof superMethod) { - return method; - } - - var hasSuper; - if (sourceAvailable) { - hasSuper = method.__hasSuper; - - if (hasSuper === undefined) { - hasSuper = method.toString().indexOf('_super') > -1; - method.__hasSuper = hasSuper; - } - } - - if (sourceAvailable === false || hasSuper) { - return wrap(method, superMethod); - } else { - return method; - } - } - - function applyConcatenatedProperties(obj, key, value, values) { - var baseValue = values[key] || obj[key]; - - if (baseValue) { - if ('function' === typeof baseValue.concat) { - if (value === null || value === undefined) { - return baseValue; - } else { - return baseValue.concat(value); - } - } else { - return makeArray(baseValue).concat(value); - } - } else { - return makeArray(value); - } - } - - function applyMergedProperties(obj, key, value, values) { - var baseValue = values[key] || obj[key]; - - Ember.assert("You passed in `" + JSON.stringify(value) + "` as the value for `" + key + - "` but `" + key + "` cannot be an Array", !isArray(value)); - - if (!baseValue) { return value; } - - var newBase = merge({}, baseValue); - var hasFunction = false; - - for (var prop in value) { - if (!value.hasOwnProperty(prop)) { continue; } - - var propValue = value[prop]; - if (isMethod(propValue)) { - // TODO: support for Computed Properties, etc? - hasFunction = true; - newBase[prop] = giveMethodSuper(obj, prop, propValue, baseValue, {}); - } else { - newBase[prop] = propValue; - } - } - - if (hasFunction) { - newBase._super = superFunction; - } - - return newBase; - } - - function addNormalizedProperty(base, key, value, meta, descs, values, concats, mergings) { - if (value instanceof Descriptor) { - if (value === REQUIRED && descs[key]) { return CONTINUE; } - - // Wrap descriptor function to implement - // __nextSuper() if needed - if (value.func) { - value = giveDescriptorSuper(meta, key, value, values, descs); - } - - descs[key] = value; - values[key] = undefined; - } else { - if ((concats && a_indexOf.call(concats, key) >= 0) || - key === 'concatenatedProperties' || - key === 'mergedProperties') { - value = applyConcatenatedProperties(base, key, value, values); - } else if ((mergings && a_indexOf.call(mergings, key) >= 0)) { - value = applyMergedProperties(base, key, value, values); - } else if (isMethod(value)) { - value = giveMethodSuper(base, key, value, values, descs); - } - - descs[key] = undefined; - values[key] = value; - } - } - - function mergeMixins(mixins, m, descs, values, base, keys) { - var mixin, props, key, concats, mergings, meta; - - function removeKeys(keyName) { - delete descs[keyName]; - delete values[keyName]; - } - - for(var i=0, l=mixins.length; i 0) { - var m = new Array(length); - - for (var i = 0; i < length; i++) { - var x = args[i]; - if (x instanceof Mixin) { - m[i] = x; - } else { - m[i] = new Mixin(undefined, x); - } - } - - this.mixins = m; - } else { - this.mixins = undefined; - } - this.ownerConstructor = undefined; - } - - Mixin._apply = applyMixin; - - Mixin.applyPartial = function(obj) { - var args = a_slice.call(arguments, 1); - return applyMixin(obj, args, true); - }; - - Mixin.finishPartial = finishPartial; - - // ES6TODO: this relies on a global state? - Ember.anyUnprocessedMixins = false; - - /** - @method create - @static - @param arguments* - */ - Mixin.create = function() { - // ES6TODO: this relies on a global state? - Ember.anyUnprocessedMixins = true; - var M = this; - var length = arguments.length; - var args = new Array(length); - for (var i = 0; i < length; i++) { - args[i] = arguments[i]; - } - return new M(args, undefined); - }; - - var MixinPrototype = Mixin.prototype; - - /** - @method reopen - @param arguments* - */ - MixinPrototype.reopen = function() { - var mixin; - - if (this.properties) { - mixin = new Mixin(undefined, this.properties); - this.properties = undefined; - this.mixins = [mixin]; - } else if (!this.mixins) { - this.mixins = []; - } - - var len = arguments.length; - var mixins = this.mixins; - var idx; - - for(idx=0; idx < len; idx++) { - mixin = arguments[idx]; - Ember.assert('Expected hash or Mixin instance, got ' + Object.prototype.toString.call(mixin), - typeof mixin === 'object' && mixin !== null && - Object.prototype.toString.call(mixin) !== '[object Array]'); - - if (mixin instanceof Mixin) { - mixins.push(mixin); - } else { - mixins.push(new Mixin(undefined, mixin)); - } - } - - return this; - }; - - /** - @method apply - @param obj - @return applied object - */ - MixinPrototype.apply = function(obj) { - return applyMixin(obj, [this], false); - }; - - MixinPrototype.applyPartial = function(obj) { - return applyMixin(obj, [this], true); - }; - - function _detect(curMixin, targetMixin, seen) { - var guid = guidFor(curMixin); - - if (seen[guid]) { return false; } - seen[guid] = true; - - if (curMixin === targetMixin) { return true; } - var mixins = curMixin.mixins; - var loc = mixins ? mixins.length : 0; - while (--loc >= 0) { - if (_detect(mixins[loc], targetMixin, seen)) { return true; } - } - return false; - } - - /** - @method detect - @param obj - @return {Boolean} - */ - MixinPrototype.detect = function(obj) { - if (!obj) { return false; } - if (obj instanceof Mixin) { return _detect(obj, this, {}); } - var m = obj['__ember_meta__']; - var mixins = m && m.mixins; - if (mixins) { - return !!mixins[guidFor(this)]; - } - return false; - }; - - MixinPrototype.without = function() { - var ret = new Mixin([this]); - ret._without = a_slice.call(arguments); - return ret; - }; - - function _keys(ret, mixin, seen) { - if (seen[guidFor(mixin)]) { return; } - seen[guidFor(mixin)] = true; - - if (mixin.properties) { - var props = mixin.properties; - for (var key in props) { - if (props.hasOwnProperty(key)) { ret[key] = true; } - } - } else if (mixin.mixins) { - a_forEach.call(mixin.mixins, function(x) { _keys(ret, x, seen); }); - } - } - - MixinPrototype.keys = function() { - var keys = {}; - var seen = {}; - var ret = []; - _keys(keys, this, seen); - for(var key in keys) { - if (keys.hasOwnProperty(key)) { - ret.push(key); - } - } - return ret; - }; - - // returns the mixins currently applied to the specified object - // TODO: Make Ember.mixin - Mixin.mixins = function(obj) { - var m = obj['__ember_meta__']; - var mixins = m && m.mixins; - var ret = []; - - if (!mixins) { return ret; } - - for (var key in mixins) { - var mixin = mixins[key]; - - // skip primitive mixins since these are always anonymous - if (!mixin.properties) { ret.push(mixin); } - } - - return ret; - }; - - REQUIRED = new Descriptor(); - REQUIRED.toString = function() { return '(Required Property)'; }; - - /** - Denotes a required property for a mixin - - @method required - @for Ember - */ - function required() { - return REQUIRED; - } - - __exports__.required = required;function Alias(methodName) { - this.methodName = methodName; - } - - Alias.prototype = new Descriptor(); - - /** - Makes a method available via an additional name. - - ```javascript - App.Person = Ember.Object.extend({ - name: function() { - return 'Tomhuda Katzdale'; - }, - moniker: Ember.aliasMethod('name') - }); - - var goodGuy = App.Person.create(); - - goodGuy.name(); // 'Tomhuda Katzdale' - goodGuy.moniker(); // 'Tomhuda Katzdale' - ``` - - @method aliasMethod - @for Ember - @param {String} methodName name of the method to alias - @return {Ember.Descriptor} - */ - function aliasMethod(methodName) { - return new Alias(methodName); - } - - __exports__.aliasMethod = aliasMethod;// .......................................................... - // OBSERVER HELPER - // - - /** - Specify a method that observes property changes. - - ```javascript - Ember.Object.extend({ - valueObserver: Ember.observer('value', function() { - // Executes whenever the "value" property changes - }) - }); - ``` - - In the future this method may become asynchronous. If you want to ensure - synchronous behavior, use `immediateObserver`. - - Also available as `Function.prototype.observes` if prototype extensions are - enabled. - - @method observer - @for Ember - @param {String} propertyNames* - @param {Function} func - @return func - */ - function observer() { - var func = a_slice.call(arguments, -1)[0]; - var paths; - - var addWatchedProperty = function (path) { paths.push(path); }; - var _paths = a_slice.call(arguments, 0, -1); - - if (typeof func !== "function") { - // revert to old, soft-deprecated argument ordering - - func = arguments[0]; - _paths = a_slice.call(arguments, 1); - } - - paths = []; - - for (var i=0; i<_paths.length; ++i) { - expandProperties(_paths[i], addWatchedProperty); - } - - if (typeof func !== "function") { - throw new Ember.Error("Ember.observer called without a function"); - } - - func.__ember_observes__ = paths; - return func; - } - - __exports__.observer = observer;/** - Specify a method that observes property changes. - - ```javascript - Ember.Object.extend({ - valueObserver: Ember.immediateObserver('value', function() { - // Executes whenever the "value" property changes - }) - }); - ``` - - In the future, `Ember.observer` may become asynchronous. In this event, - `Ember.immediateObserver` will maintain the synchronous behavior. - - Also available as `Function.prototype.observesImmediately` if prototype extensions are - enabled. - - @method immediateObserver - @for Ember - @param {String} propertyNames* - @param {Function} func - @return func - */ - function immediateObserver() { - for (var i=0, l=arguments.length; i this.changingFrom ? 'green' : 'red'; - // logic - } - }), - - friendsDidChange: Ember.observer('friends.@each.name', function(obj, keyName) { - // some logic - // obj.get(keyName) returns friends array - }) - }); - ``` - - Also available as `Function.prototype.observesBefore` if prototype extensions are - enabled. - - @method beforeObserver - @for Ember - @param {String} propertyNames* - @param {Function} func - @return func - */ - function beforeObserver() { - var func = a_slice.call(arguments, -1)[0]; - var paths; - - var addWatchedProperty = function(path) { paths.push(path); }; - - var _paths = a_slice.call(arguments, 0, -1); - - if (typeof func !== "function") { - // revert to old, soft-deprecated argument ordering - - func = arguments[0]; - _paths = a_slice.call(arguments, 1); - } - - paths = []; - - for (var i=0; i<_paths.length; ++i) { - expandProperties(_paths[i], addWatchedProperty); - } - - if (typeof func !== "function") { - throw new Ember.Error("Ember.beforeObserver called without a function"); - } - - func.__ember_observesBefore__ = paths; - return func; - } - - __exports__.beforeObserver = beforeObserver;__exports__.IS_BINDING = IS_BINDING; - __exports__.Mixin = Mixin; - }); -enifed("ember-metal/observer", - ["ember-metal/watching","ember-metal/array","ember-metal/events","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var watch = __dependency1__.watch; - var unwatch = __dependency1__.unwatch; - var map = __dependency2__.map; - var listenersFor = __dependency3__.listenersFor; - var addListener = __dependency3__.addListener; - var removeListener = __dependency3__.removeListener; - var suspendListeners = __dependency3__.suspendListeners; - var suspendListener = __dependency3__.suspendListener; - /** - @module ember-metal - */ - - var AFTER_OBSERVERS = ':change'; - var BEFORE_OBSERVERS = ':before'; - - function changeEvent(keyName) { - return keyName + AFTER_OBSERVERS; - } - - function beforeEvent(keyName) { - return keyName + BEFORE_OBSERVERS; - } - - /** - @method addObserver - @for Ember - @param obj - @param {String} path - @param {Object|Function} targetOrMethod - @param {Function|String} [method] - */ - function addObserver(obj, _path, target, method) { - addListener(obj, changeEvent(_path), target, method); - watch(obj, _path); - - return this; - } - - __exports__.addObserver = addObserver;function observersFor(obj, path) { - return listenersFor(obj, changeEvent(path)); - } - - __exports__.observersFor = observersFor;/** - @method removeObserver - @for Ember - @param obj - @param {String} path - @param {Object|Function} target - @param {Function|String} [method] - */ - function removeObserver(obj, path, target, method) { - unwatch(obj, path); - removeListener(obj, changeEvent(path), target, method); - - return this; - } - - __exports__.removeObserver = removeObserver;/** - @method addBeforeObserver - @for Ember - @param obj - @param {String} path - @param {Object|Function} target - @param {Function|String} [method] - */ - function addBeforeObserver(obj, path, target, method) { - addListener(obj, beforeEvent(path), target, method); - watch(obj, path); - - return this; - } - - __exports__.addBeforeObserver = addBeforeObserver;// Suspend observer during callback. - // - // This should only be used by the target of the observer - // while it is setting the observed path. - function _suspendBeforeObserver(obj, path, target, method, callback) { - return suspendListener(obj, beforeEvent(path), target, method, callback); - } - - __exports__._suspendBeforeObserver = _suspendBeforeObserver;function _suspendObserver(obj, path, target, method, callback) { - return suspendListener(obj, changeEvent(path), target, method, callback); - } - - __exports__._suspendObserver = _suspendObserver;function _suspendBeforeObservers(obj, paths, target, method, callback) { - var events = map.call(paths, beforeEvent); - return suspendListeners(obj, events, target, method, callback); - } - - __exports__._suspendBeforeObservers = _suspendBeforeObservers;function _suspendObservers(obj, paths, target, method, callback) { - var events = map.call(paths, changeEvent); - return suspendListeners(obj, events, target, method, callback); - } - - __exports__._suspendObservers = _suspendObservers;function beforeObserversFor(obj, path) { - return listenersFor(obj, beforeEvent(path)); - } - - __exports__.beforeObserversFor = beforeObserversFor;/** - @method removeBeforeObserver - @for Ember - @param obj - @param {String} path - @param {Object|Function} target - @param {Function|String} [method] - */ - function removeBeforeObserver(obj, path, target, method) { - unwatch(obj, path); - removeListener(obj, beforeEvent(path), target, method); - - return this; - } - - __exports__.removeBeforeObserver = removeBeforeObserver; - }); -enifed("ember-metal/observer_set", - ["ember-metal/utils","ember-metal/events","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var guidFor = __dependency1__.guidFor; - var sendEvent = __dependency2__.sendEvent; - - /* - this.observerSet = { - [senderGuid]: { // variable name: `keySet` - [keyName]: listIndex - } - }, - this.observers = [ - { - sender: obj, - keyName: keyName, - eventName: eventName, - listeners: [ - [target, method, flags] - ] - }, - ... - ] - */ - __exports__["default"] = ObserverSet; - function ObserverSet() { - this.clear(); - } - - - ObserverSet.prototype.add = function(sender, keyName, eventName) { - var observerSet = this.observerSet; - var observers = this.observers; - var senderGuid = guidFor(sender); - var keySet = observerSet[senderGuid]; - var index; - - if (!keySet) { - observerSet[senderGuid] = keySet = {}; - } - index = keySet[keyName]; - if (index === undefined) { - index = observers.push({ - sender: sender, - keyName: keyName, - eventName: eventName, - listeners: [] - }) - 1; - keySet[keyName] = index; - } - return observers[index].listeners; - }; - - ObserverSet.prototype.flush = function() { - var observers = this.observers; - var i, len, observer, sender; - this.clear(); - for (i=0, len=observers.length; i < len; ++i) { - observer = observers[i]; - sender = observer.sender; - if (sender.isDestroying || sender.isDestroyed) { continue; } - sendEvent(sender, observer.eventName, [sender, observer.keyName], observer.listeners); - } - }; - - ObserverSet.prototype.clear = function() { - this.observerSet = {}; - this.observers = []; - }; - }); -enifed("ember-metal/path_cache", - ["ember-metal/cache","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Cache = __dependency1__["default"]; - - var IS_GLOBAL = /^([A-Z$]|([0-9][A-Z$]))/; - var IS_GLOBAL_PATH = /^([A-Z$]|([0-9][A-Z$])).*[\.]/; - var HAS_THIS = 'this.'; - - var isGlobalCache = new Cache(1000, function(key) { return IS_GLOBAL.test(key); }); - var isGlobalPathCache = new Cache(1000, function(key) { return IS_GLOBAL_PATH.test(key); }); - var hasThisCache = new Cache(1000, function(key) { return key.lastIndexOf(HAS_THIS, 0) === 0; }); - var firstDotIndexCache = new Cache(1000, function(key) { return key.indexOf('.'); }); - - var firstKeyCache = new Cache(1000, function(path) { - var index = firstDotIndexCache.get(path); - if (index === -1) { - return path; - } else { - return path.slice(0, index); - } - }); - - var tailPathCache = new Cache(1000, function(path) { - var index = firstDotIndexCache.get(path); - if (index !== -1) { - return path.slice(index + 1); - } - }); - - var caches = { - isGlobalCache: isGlobalCache, - isGlobalPathCache: isGlobalPathCache, - hasThisCache: hasThisCache, - firstDotIndexCache: firstDotIndexCache, - firstKeyCache: firstKeyCache, - tailPathCache: tailPathCache - }; - __exports__.caches = caches; - function isGlobal(path) { - return isGlobalCache.get(path); - } - - __exports__.isGlobal = isGlobal;function isGlobalPath(path) { - return isGlobalPathCache.get(path); - } - - __exports__.isGlobalPath = isGlobalPath;function hasThis(path) { - return hasThisCache.get(path); - } - - __exports__.hasThis = hasThis;function isPath(path) { - return firstDotIndexCache.get(path) !== -1; - } - - __exports__.isPath = isPath;function getFirstKey(path) { - return firstKeyCache.get(path); - } - - __exports__.getFirstKey = getFirstKey;function getTailPath(path) { - return tailPathCache.get(path); - } - - __exports__.getTailPath = getTailPath; - }); -enifed("ember-metal/platform", - ["ember-metal/platform/define_property","ember-metal/platform/define_properties","ember-metal/platform/create","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var hasES5CompliantDefineProperty = __dependency1__.hasES5CompliantDefineProperty; - var defineProperty = __dependency1__.defineProperty; - var defineProperties = __dependency2__["default"]; - var create = __dependency3__["default"]; - - /** - @module ember-metal - */ - - var hasPropertyAccessors = hasES5CompliantDefineProperty; - var canDefineNonEnumerableProperties = hasES5CompliantDefineProperty; - - /** - Platform specific methods and feature detectors needed by the framework. - - @class platform - @namespace Ember - @static - */ - - __exports__.create = create; - __exports__.defineProperty = defineProperty; - __exports__.defineProperties = defineProperties; - __exports__.hasPropertyAccessors = hasPropertyAccessors; - __exports__.canDefineNonEnumerableProperties = canDefineNonEnumerableProperties; - }); -enifed("ember-metal/platform/create", - ["ember-metal/platform/define_properties","exports"], - function(__dependency1__, __exports__) { - // Remove "use strict"; from transpiled module until - // https://bugs.webkit.org/show_bug.cgi?id=138038 is fixed - // - // REMOVE_USE_STRICT: true - // - - var defineProperties = __dependency1__["default"]; - - /** - @class platform - @namespace Ember - @static - */ - - /** - Identical to `Object.create()`. Implements if not available natively. - - @since 1.8.0 - @method create - @for Ember - */ - var create; - // ES5 15.2.3.5 - // http://es5.github.com/#x15.2.3.5 - if (!(Object.create && !Object.create(null).hasOwnProperty)) { - /* jshint scripturl:true, proto:true */ - // Contributed by Brandon Benvie, October, 2012 - var createEmpty; - var supportsProto = !({'__proto__':null} instanceof Object); - // the following produces false positives - // in Opera Mini => not a reliable check - // Object.prototype.__proto__ === null - if (supportsProto || typeof document === 'undefined') { - createEmpty = function () { - return { "__proto__": null }; - }; - } else { - // In old IE __proto__ can't be used to manually set `null`, nor does - // any other method exist to make an object that inherits from nothing, - // aside from Object.prototype itself. Instead, create a new global - // object and *steal* its Object.prototype and strip it bare. This is - // used as the prototype to create nullary objects. - createEmpty = function () { - var iframe = document.createElement('iframe'); - var parent = document.body || document.documentElement; - iframe.style.display = 'none'; - parent.appendChild(iframe); - iframe.src = 'javascript:'; - var empty = iframe.contentWindow.Object.prototype; - parent.removeChild(iframe); - iframe = null; - delete empty.constructor; - delete empty.hasOwnProperty; - delete empty.propertyIsEnumerable; - delete empty.isPrototypeOf; - delete empty.toLocaleString; - delete empty.toString; - delete empty.valueOf; - - function Empty() {} - Empty.prototype = empty; - // short-circuit future calls - createEmpty = function () { - return new Empty(); - }; - return new Empty(); - }; - } - - create = Object.create = function create(prototype, properties) { - - var object; - function Type() {} // An empty constructor. - - if (prototype === null) { - object = createEmpty(); - } else { - if (typeof prototype !== "object" && typeof prototype !== "function") { - // In the native implementation `parent` can be `null` - // OR *any* `instanceof Object` (Object|Function|Array|RegExp|etc) - // Use `typeof` tho, b/c in old IE, DOM elements are not `instanceof Object` - // like they are in modern browsers. Using `Object.create` on DOM elements - // is...err...probably inappropriate, but the native version allows for it. - throw new TypeError("Object prototype may only be an Object or null"); // same msg as Chrome - } - - Type.prototype = prototype; - - object = new Type(); - } - - if (properties !== undefined) { - defineProperties(object, properties); - } - - return object; - }; - } else { - create = Object.create; - } - - __exports__["default"] = create; - }); -enifed("ember-metal/platform/define_properties", - ["ember-metal/platform/define_property","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var defineProperty = __dependency1__.defineProperty; - - var defineProperties = Object.defineProperties; - - // ES5 15.2.3.7 - // http://es5.github.com/#x15.2.3.7 - if (!defineProperties) { - defineProperties = function defineProperties(object, properties) { - for (var property in properties) { - if (properties.hasOwnProperty(property) && property !== "__proto__") { - defineProperty(object, property, properties[property]); - } - } - return object; - }; - - Object.defineProperties = defineProperties; - } - - __exports__["default"] = defineProperties; - }); -enifed("ember-metal/platform/define_property", - ["exports"], - function(__exports__) { - "use strict"; - /*globals Node */ - - /** - @class platform - @namespace Ember - @static - */ - - /** - Set to true if the platform supports native getters and setters. - - @property hasPropertyAccessors - @final - */ - - /** - Identical to `Object.defineProperty()`. Implements as much functionality - as possible if not available natively. - - @method defineProperty - @param {Object} obj The object to modify - @param {String} keyName property name to modify - @param {Object} desc descriptor hash - @return {void} - */ - var defineProperty = (function checkCompliance(defineProperty) { - if (!defineProperty) return; - try { - var a = 5; - var obj = {}; - defineProperty(obj, 'a', { - configurable: true, - enumerable: true, - get: function () { - return a; - }, - set: function (v) { - a = v; - } - }); - if (obj.a !== 5) return; - obj.a = 10; - if (a !== 10) return; - - // check non-enumerability - defineProperty(obj, 'a', { - configurable: true, - enumerable: false, - writable: true, - value: true - }); - for (var key in obj) { - if (key === 'a') return; - } - - // Detects a bug in Android <3.2 where you cannot redefine a property using - // Object.defineProperty once accessors have already been set. - if (obj.a !== true) return; - - // Detects a bug in Android <3 where redefining a property without a value changes the value - // Object.defineProperty once accessors have already been set. - defineProperty(obj, 'a', { - enumerable: false - }); - if (obj.a !== true) return; - - // defineProperty is compliant - return defineProperty; - } catch (e) { - // IE8 defines Object.defineProperty but calling it on an Object throws - return; - } - })(Object.defineProperty); - - var hasES5CompliantDefineProperty = !!defineProperty; - - if (hasES5CompliantDefineProperty && typeof document !== 'undefined') { - // This is for Safari 5.0, which supports Object.defineProperty, but not - // on DOM nodes. - var canDefinePropertyOnDOM = (function() { - try { - defineProperty(document.createElement('div'), 'definePropertyOnDOM', {}); - return true; - } catch(e) { } - - return false; - })(); - - if (!canDefinePropertyOnDOM) { - defineProperty = function(obj, keyName, desc) { - var isNode; - - if (typeof Node === "object") { - isNode = obj instanceof Node; - } else { - isNode = typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string"; - } - - if (isNode) { - // TODO: Should we have a warning here? - return (obj[keyName] = desc.value); - } else { - return Object.defineProperty(obj, keyName, desc); - } - }; - } - } - - if (!hasES5CompliantDefineProperty) { - defineProperty = function defineProperty(obj, keyName, desc) { - if (!desc.get) { obj[keyName] = desc.value; } - }; - } - - __exports__.hasES5CompliantDefineProperty = hasES5CompliantDefineProperty; - __exports__.defineProperty = defineProperty; - }); -enifed("ember-metal/properties", - ["ember-metal/core","ember-metal/utils","ember-metal/platform","ember-metal/property_events","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - /** - @module ember-metal - */ - - var Ember = __dependency1__["default"]; - var metaFor = __dependency2__.meta; - var objectDefineProperty = __dependency3__.defineProperty; - var hasPropertyAccessors = __dependency3__.hasPropertyAccessors; - var overrideChains = __dependency4__.overrideChains; - // .......................................................... - // DESCRIPTOR - // - - /** - Objects of this type can implement an interface to respond to requests to - get and set. The default implementation handles simple properties. - - You generally won't need to create or subclass this directly. - - @class Descriptor - @namespace Ember - @private - @constructor - */ - function Descriptor() {} - - __exports__.Descriptor = Descriptor;// .......................................................... - // DEFINING PROPERTIES API - // - - function MANDATORY_SETTER_FUNCTION(name) { - return function SETTER_FUNCTION(value) { - Ember.assert("You must use Ember.set() to set the `" + name + "` property (of " + this + ") to `" + value + "`.", false); - }; - } - - __exports__.MANDATORY_SETTER_FUNCTION = MANDATORY_SETTER_FUNCTION;function DEFAULT_GETTER_FUNCTION(name) { - return function GETTER_FUNCTION() { - var meta = this['__ember_meta__']; - return meta && meta.values[name]; - }; - } - - __exports__.DEFAULT_GETTER_FUNCTION = DEFAULT_GETTER_FUNCTION;/** - NOTE: This is a low-level method used by other parts of the API. You almost - never want to call this method directly. Instead you should use - `Ember.mixin()` to define new properties. - - Defines a property on an object. This method works much like the ES5 - `Object.defineProperty()` method except that it can also accept computed - properties and other special descriptors. - - Normally this method takes only three parameters. However if you pass an - instance of `Ember.Descriptor` as the third param then you can pass an - optional value as the fourth parameter. This is often more efficient than - creating new descriptor hashes for each property. - - ## Examples - - ```javascript - // ES5 compatible mode - Ember.defineProperty(contact, 'firstName', { - writable: true, - configurable: false, - enumerable: true, - value: 'Charles' - }); - - // define a simple property - Ember.defineProperty(contact, 'lastName', undefined, 'Jolley'); - - // define a computed property - Ember.defineProperty(contact, 'fullName', Ember.computed(function() { - return this.firstName+' '+this.lastName; - }).property('firstName', 'lastName')); - ``` - - @private - @method defineProperty - @for Ember - @param {Object} obj the object to define this property on. This may be a prototype. - @param {String} keyName the name of the property - @param {Ember.Descriptor} [desc] an instance of `Ember.Descriptor` (typically a - computed property) or an ES5 descriptor. - You must provide this or `data` but not both. - @param {*} [data] something other than a descriptor, that will - become the explicit value of this property. - */ - function defineProperty(obj, keyName, desc, data, meta) { - var descs, existingDesc, watching, value; - - if (!meta) meta = metaFor(obj); - descs = meta.descs; - existingDesc = meta.descs[keyName]; - var watchEntry = meta.watching[keyName]; - - watching = watchEntry !== undefined && watchEntry > 0; - - if (existingDesc instanceof Descriptor) { - existingDesc.teardown(obj, keyName); - } - - if (desc instanceof Descriptor) { - value = desc; - - descs[keyName] = desc; - - if (watching && hasPropertyAccessors) { - objectDefineProperty(obj, keyName, { - configurable: true, - enumerable: true, - writable: true, - value: undefined // make enumerable - }); - } else { - obj[keyName] = undefined; // make enumerable - } - if (desc.setup) { desc.setup(obj, keyName); } - } else { - descs[keyName] = undefined; // shadow descriptor in proto - if (desc == null) { - value = data; - - - if (watching && hasPropertyAccessors) { - meta.values[keyName] = data; - objectDefineProperty(obj, keyName, { - configurable: true, - enumerable: true, - set: MANDATORY_SETTER_FUNCTION(keyName), - get: DEFAULT_GETTER_FUNCTION(keyName) - }); - } else { - obj[keyName] = data; - } - } else { - value = desc; - - // compatibility with ES5 - objectDefineProperty(obj, keyName, desc); - } - } - - // if key is being watched, override chains that - // were initialized with the prototype - if (watching) { overrideChains(obj, keyName, meta); } - - // The `value` passed to the `didDefineProperty` hook is - // either the descriptor or data, whichever was passed. - if (obj.didDefineProperty) { obj.didDefineProperty(obj, keyName, value); } - - return this; - } - - __exports__.defineProperty = defineProperty; - }); -enifed("ember-metal/property_events", - ["ember-metal/utils","ember-metal/events","ember-metal/observer_set","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var guidFor = __dependency1__.guidFor; - var tryFinally = __dependency1__.tryFinally; - var sendEvent = __dependency2__.sendEvent; - var accumulateListeners = __dependency2__.accumulateListeners; - var ObserverSet = __dependency3__["default"]; - - var beforeObserverSet = new ObserverSet(); - var observerSet = new ObserverSet(); - var deferred = 0; - - // .......................................................... - // PROPERTY CHANGES - // - - /** - This function is called just before an object property is about to change. - It will notify any before observers and prepare caches among other things. - - Normally you will not need to call this method directly but if for some - reason you can't directly watch a property you can invoke this method - manually along with `Ember.propertyDidChange()` which you should call just - after the property value changes. - - @method propertyWillChange - @for Ember - @param {Object} obj The object with the property that will change - @param {String} keyName The property key (or path) that will change. - @return {void} - */ - function propertyWillChange(obj, keyName) { - var m = obj['__ember_meta__']; - var watching = (m && m.watching[keyName] > 0) || keyName === 'length'; - var proto = m && m.proto; - var desc = m && m.descs[keyName]; - - if (!watching) { - return; - } - - if (proto === obj) { - return; - } - - if (desc && desc.willChange) { - desc.willChange(obj, keyName); - } - - dependentKeysWillChange(obj, keyName, m); - chainsWillChange(obj, keyName, m); - notifyBeforeObservers(obj, keyName); - } - - /** - This function is called just after an object property has changed. - It will notify any observers and clear caches among other things. - - Normally you will not need to call this method directly but if for some - reason you can't directly watch a property you can invoke this method - manually along with `Ember.propertyWillChange()` which you should call just - before the property value changes. - - @method propertyDidChange - @for Ember - @param {Object} obj The object with the property that will change - @param {String} keyName The property key (or path) that will change. - @return {void} - */ - function propertyDidChange(obj, keyName) { - var m = obj['__ember_meta__']; - var watching = (m && m.watching[keyName] > 0) || keyName === 'length'; - var proto = m && m.proto; - var desc = m && m.descs[keyName]; - - if (proto === obj) { - return; - } - - // shouldn't this mean that we're watching this key? - if (desc && desc.didChange) { - desc.didChange(obj, keyName); - } - - if (!watching && keyName !== 'length') { - return; - } - - if (m && m.deps && m.deps[keyName]) { - dependentKeysDidChange(obj, keyName, m); - } - - chainsDidChange(obj, keyName, m, false); - notifyObservers(obj, keyName); - } - - var WILL_SEEN, DID_SEEN; - // called whenever a property is about to change to clear the cache of any dependent keys (and notify those properties of changes, etc...) - function dependentKeysWillChange(obj, depKey, meta) { - if (obj.isDestroying) { return; } - - var deps; - if (meta && meta.deps && (deps = meta.deps[depKey])) { - var seen = WILL_SEEN; - var top = !seen; - - if (top) { - seen = WILL_SEEN = {}; - } - - iterDeps(propertyWillChange, obj, deps, depKey, seen, meta); - - if (top) { - WILL_SEEN = null; - } - } - } - - // called whenever a property has just changed to update dependent keys - function dependentKeysDidChange(obj, depKey, meta) { - if (obj.isDestroying) { return; } - - var deps; - if (meta && meta.deps && (deps = meta.deps[depKey])) { - var seen = DID_SEEN; - var top = !seen; - - if (top) { - seen = DID_SEEN = {}; - } - - iterDeps(propertyDidChange, obj, deps, depKey, seen, meta); - - if (top) { - DID_SEEN = null; - } - } - } - - function keysOf(obj) { - var keys = []; - - for (var key in obj) { - keys.push(key); - } - - return keys; - } - - function iterDeps(method, obj, deps, depKey, seen, meta) { - var keys, key, i, desc; - var guid = guidFor(obj); - var current = seen[guid]; - - if (!current) { - current = seen[guid] = {}; - } - - if (current[depKey]) { - return; - } - - current[depKey] = true; - - if (deps) { - keys = keysOf(deps); - var descs = meta.descs; - for (i=0; i 0) { - ret = meta.values[keyName]; - } else { - ret = obj[keyName]; - } - - if (ret === undefined && - 'object' === typeof obj && !(keyName in obj) && 'function' === typeof obj.unknownProperty) { - return obj.unknownProperty(keyName); - } - - return ret; - } - }; - - /** - Normalizes a target/path pair to reflect that actual target/path that should - be observed, etc. This takes into account passing in global property - paths (i.e. a path beginning with a capital letter not defined on the - target). - - @private - @method normalizeTuple - @for Ember - @param {Object} target The current target. May be `null`. - @param {String} path A path on the target or a global property path. - @return {Array} a temporary array with the normalized target/path pair. - */ - function normalizeTuple(target, path) { - var hasThis = pathHasThis(path); - var isGlobal = !hasThis && isGlobalPath(path); - var key; - - if (!target || isGlobal) target = Ember.lookup; - if (hasThis) path = path.slice(5); - - Ember.deprecate( - "normalizeTuple will return '"+path+"' as a non-global. This behavior will change in the future (issue #3852)", - target === Ember.lookup || !target || hasThis || isGlobal || !isGlobalPath(path+'.') - ); - - if (target === Ember.lookup) { - key = path.match(FIRST_KEY)[0]; - target = get(target, key); - path = path.slice(key.length+1); - } - - // must return some kind of path to be valid else other things will break. - if (!path || path.length===0) throw new EmberError('Path cannot be empty'); - - return [ target, path ]; - } - - function _getPath(root, path) { - var hasThis, parts, tuple, idx, len; - - // If there is no root and path is a key name, return that - // property from the global object. - // E.g. get('Ember') -> Ember - if (root === null && !isPath(path)) { - return get(Ember.lookup, path); - } - - // detect complicated paths and normalize them - hasThis = pathHasThis(path); - - if (!root || hasThis) { - tuple = normalizeTuple(root, path); - root = tuple[0]; - path = tuple[1]; - tuple.length = 0; - } - - parts = path.split("."); - len = parts.length; - for (idx = 0; root != null && idx < len; idx++) { - root = get(root, parts[idx], true); - if (root && root.isDestroyed) { return undefined; } - } - return root; - } - - function getWithDefault(root, key, defaultValue) { - var value = get(root, key); - - if (value === undefined) { return defaultValue; } - return value; - } - - __exports__.getWithDefault = getWithDefault;__exports__["default"] = get; - __exports__.get = get; - __exports__.normalizeTuple = normalizeTuple; - __exports__._getPath = _getPath; - }); -enifed("ember-metal/property_set", - ["ember-metal/core","ember-metal/property_get","ember-metal/property_events","ember-metal/properties","ember-metal/error","ember-metal/path_cache","ember-metal/platform","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - var getPath = __dependency2__._getPath; - var propertyWillChange = __dependency3__.propertyWillChange; - var propertyDidChange = __dependency3__.propertyDidChange; - var defineProperty = __dependency4__.defineProperty; - var EmberError = __dependency5__["default"]; - var isPath = __dependency6__.isPath; - var hasPropertyAccessors = __dependency7__.hasPropertyAccessors; - - var IS_GLOBAL = /^([A-Z$]|([0-9][A-Z$]))/; - - /** - Sets the value of a property on an object, respecting computed properties - and notifying observers and other listeners of the change. If the - property is not defined but the object implements the `setUnknownProperty` - method then that will be invoked as well. - - @method set - @for Ember - @param {Object} obj The object to modify. - @param {String} keyName The property key to set - @param {Object} value The value to set - @return {Object} the passed value. - */ - var set = function set(obj, keyName, value, tolerant) { - if (typeof obj === 'string') { - Ember.assert("Path '" + obj + "' must be global if no obj is given.", IS_GLOBAL.test(obj)); - value = keyName; - keyName = obj; - obj = null; - } - - Ember.assert("Cannot call set with "+ keyName +" key.", !!keyName); - - if (!obj) { - return setPath(obj, keyName, value, tolerant); - } - - var meta = obj['__ember_meta__']; - var desc = meta && meta.descs[keyName]; - var isUnknown, currentValue; - - if (desc === undefined && isPath(keyName)) { - return setPath(obj, keyName, value, tolerant); - } - - Ember.assert("You need to provide an object and key to `set`.", !!obj && keyName !== undefined); - Ember.assert('calling set on destroyed object', !obj.isDestroyed); - - if (desc !== undefined) { - desc.set(obj, keyName, value); - } else { - - if (typeof obj === 'object' && obj !== null && value !== undefined && obj[keyName] === value) { - return value; - } - - isUnknown = 'object' === typeof obj && !(keyName in obj); - - // setUnknownProperty is called if `obj` is an object, - // the property does not already exist, and the - // `setUnknownProperty` method exists on the object - if (isUnknown && 'function' === typeof obj.setUnknownProperty) { - obj.setUnknownProperty(keyName, value); - } else if (meta && meta.watching[keyName] > 0) { - if (meta.proto !== obj) { - - if (hasPropertyAccessors) { - currentValue = meta.values[keyName]; - } else { - currentValue = obj[keyName]; - } - } - // only trigger a change if the value has changed - if (value !== currentValue) { - propertyWillChange(obj, keyName); - - if (hasPropertyAccessors) { - if ( - (currentValue === undefined && !(keyName in obj)) || - !Object.prototype.propertyIsEnumerable.call(obj, keyName) - ) { - defineProperty(obj, keyName, null, value); // setup mandatory setter - } else { - meta.values[keyName] = value; - } - } else { - obj[keyName] = value; - } - propertyDidChange(obj, keyName); - } - } else { - obj[keyName] = value; - } - } - return value; - }; - - function setPath(root, path, value, tolerant) { - var keyName; - - // get the last part of the path - keyName = path.slice(path.lastIndexOf('.') + 1); - - // get the first part of the part - path = (path === keyName) ? keyName : path.slice(0, path.length-(keyName.length+1)); - - // unless the path is this, look up the first part to - // get the root - if (path !== 'this') { - root = getPath(root, path); - } - - if (!keyName || keyName.length === 0) { - throw new EmberError('Property set failed: You passed an empty path'); - } - - if (!root) { - if (tolerant) { return; } - else { throw new EmberError('Property set failed: object in path "'+path+'" could not be found or was destroyed.'); } - } - - return set(root, keyName, value); - } - - /** - Error-tolerant form of `Ember.set`. Will not blow up if any part of the - chain is `undefined`, `null`, or destroyed. - - This is primarily used when syncing bindings, which may try to update after - an object has been destroyed. - - @method trySet - @for Ember - @param {Object} obj The object to modify. - @param {String} path The property path to set - @param {Object} value The value to set - */ - function trySet(root, path, value) { - return set(root, path, value, true); - } - - __exports__.trySet = trySet;__exports__.set = set; - }); -enifed("ember-metal/run_loop", - ["ember-metal/core","ember-metal/utils","ember-metal/array","ember-metal/property_events","backburner","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - var apply = __dependency2__.apply; - var GUID_KEY = __dependency2__.GUID_KEY; - var indexOf = __dependency3__.indexOf; - var beginPropertyChanges = __dependency4__.beginPropertyChanges; - var endPropertyChanges = __dependency4__.endPropertyChanges; - var Backburner = __dependency5__["default"]; - - function onBegin(current) { - run.currentRunLoop = current; - } - - function onEnd(current, next) { - run.currentRunLoop = next; - } - - // ES6TODO: should Backburner become es6? - var backburner = new Backburner(['sync', 'actions', 'destroy'], { - GUID_KEY: GUID_KEY, - sync: { - before: beginPropertyChanges, - after: endPropertyChanges - }, - defaultQueue: 'actions', - onBegin: onBegin, - onEnd: onEnd, - onErrorTarget: Ember, - onErrorMethod: 'onerror' - }); - var slice = [].slice; - - // .......................................................... - // run - this is ideally the only public API the dev sees - // - - /** - Runs the passed target and method inside of a RunLoop, ensuring any - deferred actions including bindings and views updates are flushed at the - end. - - Normally you should not need to invoke this method yourself. However if - you are implementing raw event handlers when interfacing with other - libraries or plugins, you should probably wrap all of your code inside this - call. - - ```javascript - run(function() { - // code to be executed within a RunLoop - }); - ``` - - @class run - @namespace Ember - @static - @constructor - @param {Object} [target] target of method to call - @param {Function|String} method Method to invoke. - May be a function or a string. If you pass a string - then it will be looked up on the passed target. - @param {Object} [args*] Any additional arguments you wish to pass to the method. - @return {Object} return value from invoking the passed function. - */ - __exports__["default"] = run; - function run() { - return backburner.run.apply(backburner, arguments); - } - - /** - If no run-loop is present, it creates a new one. If a run loop is - present it will queue itself to run on the existing run-loops action - queue. - - Please note: This is not for normal usage, and should be used sparingly. - - If invoked when not within a run loop: - - ```javascript - run.join(function() { - // creates a new run-loop - }); - ``` - - Alternatively, if called within an existing run loop: - - ```javascript - run(function() { - // creates a new run-loop - run.join(function() { - // joins with the existing run-loop, and queues for invocation on - // the existing run-loops action queue. - }); - }); - ``` - - @method join - @namespace Ember - @param {Object} [target] target of method to call - @param {Function|String} method Method to invoke. - May be a function or a string. If you pass a string - then it will be looked up on the passed target. - @param {Object} [args*] Any additional arguments you wish to pass to the method. - @return {Object} Return value from invoking the passed function. Please note, - when called within an existing loop, no return value is possible. - */ - run.join = function() { - return backburner.join.apply(backburner, arguments); - }; - - /** - Allows you to specify which context to call the specified function in while - adding the execution of that function to the Ember run loop. This ability - makes this method a great way to asynchronusly integrate third-party libraries - into your Ember application. - - `run.bind` takes two main arguments, the desired context and the function to - invoke in that context. Any additional arguments will be supplied as arguments - to the function that is passed in. - - Let's use the creation of a TinyMCE component as an example. Currently, - TinyMCE provides a setup configuration option we can use to do some processing - after the TinyMCE instance is initialized but before it is actually rendered. - We can use that setup option to do some additional setup for our component. - The component itself could look something like the following: - - ```javascript - App.RichTextEditorComponent = Ember.Component.extend({ - initializeTinyMCE: function(){ - tinymce.init({ - selector: '#' + this.$().prop('id'), - setup: Ember.run.bind(this, this.setupEditor) - }); - }.on('didInsertElement'), - - setupEditor: function(editor) { - this.set('editor', editor); - editor.on('change', function(){ console.log('content changed!')} ); - } - }); - ``` - - In this example, we use Ember.run.bind to bind the setupEditor message to the - context of the App.RichTextEditorComponent and to have the invocation of that - method be safely handled and excuted by the Ember run loop. - - @method bind - @namespace Ember - @param {Object} [target] target of method to call - @param {Function|String} method Method to invoke. - May be a function or a string. If you pass a string - then it will be looked up on the passed target. - @param {Object} [args*] Any additional arguments you wish to pass to the method. - @return {Function} returns a new function that will always have a particular context - @since 1.4.0 - */ - run.bind = function(target, method /* args */) { - var args = slice.call(arguments); - return function() { - return run.join.apply(run, args.concat(slice.call(arguments))); - }; - }; - - run.backburner = backburner; - run.currentRunLoop = null; - run.queues = backburner.queueNames; - - /** - Begins a new RunLoop. Any deferred actions invoked after the begin will - be buffered until you invoke a matching call to `run.end()`. This is - a lower-level way to use a RunLoop instead of using `run()`. - - ```javascript - run.begin(); - // code to be executed within a RunLoop - run.end(); - ``` - - @method begin - @return {void} - */ - run.begin = function() { - backburner.begin(); - }; - - /** - Ends a RunLoop. This must be called sometime after you call - `run.begin()` to flush any deferred actions. This is a lower-level way - to use a RunLoop instead of using `run()`. - - ```javascript - run.begin(); - // code to be executed within a RunLoop - run.end(); - ``` - - @method end - @return {void} - */ - run.end = function() { - backburner.end(); - }; - - /** - Array of named queues. This array determines the order in which queues - are flushed at the end of the RunLoop. You can define your own queues by - simply adding the queue name to this array. Normally you should not need - to inspect or modify this property. - - @property queues - @type Array - @default ['sync', 'actions', 'destroy'] - */ - - /** - Adds the passed target/method and any optional arguments to the named - queue to be executed at the end of the RunLoop. If you have not already - started a RunLoop when calling this method one will be started for you - automatically. - - At the end of a RunLoop, any methods scheduled in this way will be invoked. - Methods will be invoked in an order matching the named queues defined in - the `run.queues` property. - - ```javascript - run.schedule('sync', this, function() { - // this will be executed in the first RunLoop queue, when bindings are synced - console.log("scheduled on sync queue"); - }); - - run.schedule('actions', this, function() { - // this will be executed in the 'actions' queue, after bindings have synced. - console.log("scheduled on actions queue"); - }); - - // Note the functions will be run in order based on the run queues order. - // Output would be: - // scheduled on sync queue - // scheduled on actions queue - ``` - - @method schedule - @param {String} queue The name of the queue to schedule against. - Default queues are 'sync' and 'actions' - @param {Object} [target] target object to use as the context when invoking a method. - @param {String|Function} method The method to invoke. If you pass a string it - will be resolved on the target object at the time the scheduled item is - invoked allowing you to change the target function. - @param {Object} [arguments*] Optional arguments to be passed to the queued method. - @return {void} - */ - run.schedule = function(queue, target, method) { - checkAutoRun(); - backburner.schedule.apply(backburner, arguments); - }; - - // Used by global test teardown - run.hasScheduledTimers = function() { - return backburner.hasTimers(); - }; - - // Used by global test teardown - run.cancelTimers = function () { - backburner.cancelTimers(); - }; - - /** - Immediately flushes any events scheduled in the 'sync' queue. Bindings - use this queue so this method is a useful way to immediately force all - bindings in the application to sync. - - You should call this method anytime you need any changed state to propagate - throughout the app immediately without repainting the UI (which happens - in the later 'render' queue added by the `ember-views` package). - - ```javascript - run.sync(); - ``` - - @method sync - @return {void} - */ - run.sync = function() { - if (backburner.currentInstance) { - backburner.currentInstance.queues.sync.flush(); - } - }; - - /** - Invokes the passed target/method and optional arguments after a specified - period of time. The last parameter of this method must always be a number - of milliseconds. - - You should use this method whenever you need to run some action after a - period of time instead of using `setTimeout()`. This method will ensure that - items that expire during the same script execution cycle all execute - together, which is often more efficient than using a real setTimeout. - - ```javascript - run.later(myContext, function() { - // code here will execute within a RunLoop in about 500ms with this == myContext - }, 500); - ``` - - @method later - @param {Object} [target] target of method to invoke - @param {Function|String} method The method to invoke. - If you pass a string it will be resolved on the - target at the time the method is invoked. - @param {Object} [args*] Optional arguments to pass to the timeout. - @param {Number} wait Number of milliseconds to wait. - @return {Object} Timer information for use in cancelling, see `run.cancel`. - */ - run.later = function(/*target, method*/) { - return backburner.later.apply(backburner, arguments); - }; - - /** - Schedule a function to run one time during the current RunLoop. This is equivalent - to calling `scheduleOnce` with the "actions" queue. - - @method once - @param {Object} [target] The target of the method to invoke. - @param {Function|String} method The method to invoke. - If you pass a string it will be resolved on the - target at the time the method is invoked. - @param {Object} [args*] Optional arguments to pass to the timeout. - @return {Object} Timer information for use in cancelling, see `run.cancel`. - */ - run.once = function(/*target, method */) { - checkAutoRun(); - var length = arguments.length; - var args = new Array(length); - args[0] = 'actions'; - for (var i = 0; i < length; i++) { - args[i + 1] = arguments[i]; - } - return apply(backburner, backburner.scheduleOnce, args); - }; - - /** - Schedules a function to run one time in a given queue of the current RunLoop. - Calling this method with the same queue/target/method combination will have - no effect (past the initial call). - - Note that although you can pass optional arguments these will not be - considered when looking for duplicates. New arguments will replace previous - calls. - - ```javascript - run(function() { - var sayHi = function() { console.log('hi'); } - run.scheduleOnce('afterRender', myContext, sayHi); - run.scheduleOnce('afterRender', myContext, sayHi); - // sayHi will only be executed once, in the afterRender queue of the RunLoop - }); - ``` - - Also note that passing an anonymous function to `run.scheduleOnce` will - not prevent additional calls with an identical anonymous function from - scheduling the items multiple times, e.g.: - - ```javascript - function scheduleIt() { - run.scheduleOnce('actions', myContext, function() { console.log("Closure"); }); - } - scheduleIt(); - scheduleIt(); - // "Closure" will print twice, even though we're using `run.scheduleOnce`, - // because the function we pass to it is anonymous and won't match the - // previously scheduled operation. - ``` - - Available queues, and their order, can be found at `run.queues` - - @method scheduleOnce - @param {String} [queue] The name of the queue to schedule against. Default queues are 'sync' and 'actions'. - @param {Object} [target] The target of the method to invoke. - @param {Function|String} method The method to invoke. - If you pass a string it will be resolved on the - target at the time the method is invoked. - @param {Object} [args*] Optional arguments to pass to the timeout. - @return {Object} Timer information for use in cancelling, see `run.cancel`. - */ - run.scheduleOnce = function(/*queue, target, method*/) { - checkAutoRun(); - return backburner.scheduleOnce.apply(backburner, arguments); - }; - - /** - Schedules an item to run from within a separate run loop, after - control has been returned to the system. This is equivalent to calling - `run.later` with a wait time of 1ms. - - ```javascript - run.next(myContext, function() { - // code to be executed in the next run loop, - // which will be scheduled after the current one - }); - ``` - - Multiple operations scheduled with `run.next` will coalesce - into the same later run loop, along with any other operations - scheduled by `run.later` that expire right around the same - time that `run.next` operations will fire. - - Note that there are often alternatives to using `run.next`. - For instance, if you'd like to schedule an operation to happen - after all DOM element operations have completed within the current - run loop, you can make use of the `afterRender` run loop queue (added - by the `ember-views` package, along with the preceding `render` queue - where all the DOM element operations happen). Example: - - ```javascript - App.MyCollectionView = Ember.CollectionView.extend({ - didInsertElement: function() { - run.scheduleOnce('afterRender', this, 'processChildElements'); - }, - processChildElements: function() { - // ... do something with collectionView's child view - // elements after they've finished rendering, which - // can't be done within the CollectionView's - // `didInsertElement` hook because that gets run - // before the child elements have been added to the DOM. - } - }); - ``` - - One benefit of the above approach compared to using `run.next` is - that you will be able to perform DOM/CSS operations before unprocessed - elements are rendered to the screen, which may prevent flickering or - other artifacts caused by delaying processing until after rendering. - - The other major benefit to the above approach is that `run.next` - introduces an element of non-determinism, which can make things much - harder to test, due to its reliance on `setTimeout`; it's much harder - to guarantee the order of scheduled operations when they are scheduled - outside of the current run loop, i.e. with `run.next`. - - @method next - @param {Object} [target] target of method to invoke - @param {Function|String} method The method to invoke. - If you pass a string it will be resolved on the - target at the time the method is invoked. - @param {Object} [args*] Optional arguments to pass to the timeout. - @return {Object} Timer information for use in cancelling, see `run.cancel`. - */ - run.next = function() { - var args = slice.call(arguments); - args.push(1); - return apply(backburner, backburner.later, args); - }; - - /** - Cancels a scheduled item. Must be a value returned by `run.later()`, - `run.once()`, `run.next()`, `run.debounce()`, or - `run.throttle()`. - - ```javascript - var runNext = run.next(myContext, function() { - // will not be executed - }); - run.cancel(runNext); - - var runLater = run.later(myContext, function() { - // will not be executed - }, 500); - run.cancel(runLater); - - var runOnce = run.once(myContext, function() { - // will not be executed - }); - run.cancel(runOnce); - - var throttle = run.throttle(myContext, function() { - // will not be executed - }, 1, false); - run.cancel(throttle); - - var debounce = run.debounce(myContext, function() { - // will not be executed - }, 1); - run.cancel(debounce); - - var debounceImmediate = run.debounce(myContext, function() { - // will be executed since we passed in true (immediate) - }, 100, true); - // the 100ms delay until this method can be called again will be cancelled - run.cancel(debounceImmediate); - ``` - - @method cancel - @param {Object} timer Timer object to cancel - @return {Boolean} true if cancelled or false/undefined if it wasn't found - */ - run.cancel = function(timer) { - return backburner.cancel(timer); - }; - - /** - Delay calling the target method until the debounce period has elapsed - with no additional debounce calls. If `debounce` is called again before - the specified time has elapsed, the timer is reset and the entire period - must pass again before the target method is called. - - This method should be used when an event may be called multiple times - but the action should only be called once when the event is done firing. - A common example is for scroll events where you only want updates to - happen once scrolling has ceased. - - ```javascript - var myFunc = function() { console.log(this.name + ' ran.'); }; - var myContext = {name: 'debounce'}; - - run.debounce(myContext, myFunc, 150); - - // less than 150ms passes - - run.debounce(myContext, myFunc, 150); - - // 150ms passes - // myFunc is invoked with context myContext - // console logs 'debounce ran.' one time. - ``` - - Immediate allows you to run the function immediately, but debounce - other calls for this function until the wait time has elapsed. If - `debounce` is called again before the specified time has elapsed, - the timer is reset and the entire period must pass again before - the method can be called again. - - ```javascript - var myFunc = function() { console.log(this.name + ' ran.'); }; - var myContext = {name: 'debounce'}; - - run.debounce(myContext, myFunc, 150, true); - - // console logs 'debounce ran.' one time immediately. - // 100ms passes - - run.debounce(myContext, myFunc, 150, true); - - // 150ms passes and nothing else is logged to the console and - // the debouncee is no longer being watched - - run.debounce(myContext, myFunc, 150, true); - - // console logs 'debounce ran.' one time immediately. - // 150ms passes and nothing else is logged to the console and - // the debouncee is no longer being watched - - ``` - - @method debounce - @param {Object} [target] target of method to invoke - @param {Function|String} method The method to invoke. - May be a function or a string. If you pass a string - then it will be looked up on the passed target. - @param {Object} [args*] Optional arguments to pass to the timeout. - @param {Number} wait Number of milliseconds to wait. - @param {Boolean} immediate Trigger the function on the leading instead - of the trailing edge of the wait interval. Defaults to false. - @return {Array} Timer information for use in cancelling, see `run.cancel`. - */ - run.debounce = function() { - return backburner.debounce.apply(backburner, arguments); - }; - - /** - Ensure that the target method is never called more frequently than - the specified spacing period. The target method is called immediately. - - ```javascript - var myFunc = function() { console.log(this.name + ' ran.'); }; - var myContext = {name: 'throttle'}; - - run.throttle(myContext, myFunc, 150); - // myFunc is invoked with context myContext - // console logs 'throttle ran.' - - // 50ms passes - run.throttle(myContext, myFunc, 150); - - // 50ms passes - run.throttle(myContext, myFunc, 150); - - // 150ms passes - run.throttle(myContext, myFunc, 150); - // myFunc is invoked with context myContext - // console logs 'throttle ran.' - ``` - - @method throttle - @param {Object} [target] target of method to invoke - @param {Function|String} method The method to invoke. - May be a function or a string. If you pass a string - then it will be looked up on the passed target. - @param {Object} [args*] Optional arguments to pass to the timeout. - @param {Number} spacing Number of milliseconds to space out requests. - @param {Boolean} immediate Trigger the function on the leading instead - of the trailing edge of the wait interval. Defaults to true. - @return {Array} Timer information for use in cancelling, see `run.cancel`. - */ - run.throttle = function() { - return backburner.throttle.apply(backburner, arguments); - }; - - // Make sure it's not an autorun during testing - function checkAutoRun() { - if (!run.currentRunLoop) { - Ember.assert("You have turned on testing mode, which disabled the run-loop's autorun." + - " You will need to wrap any code with asynchronous side-effects in a run", !Ember.testing); - } - } - - /** - Add a new named queue after the specified queue. - - The queue to add will only be added once. - - @method _addQueue - @param {String} name the name of the queue to add. - @param {String} after the name of the queue to add after. - @private - */ - run._addQueue = function(name, after) { - if (indexOf.call(run.queues, name) === -1) { - run.queues.splice(indexOf.call(run.queues, after)+1, 0, name); - } - }; - }); -enifed("ember-metal/set_properties", - ["ember-metal/property_events","ember-metal/property_set","ember-metal/keys","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var changeProperties = __dependency1__.changeProperties; - var set = __dependency2__.set; - var keys = __dependency3__["default"]; - - /** - Set a list of properties on an object. These properties are set inside - a single `beginPropertyChanges` and `endPropertyChanges` batch, so - observers will be buffered. - - ```javascript - var anObject = Ember.Object.create(); - - anObject.setProperties({ - firstName: 'Stanley', - lastName: 'Stuart', - age: 21 - }); - ``` - - @method setProperties - @param obj - @param {Object} properties - @return obj - */ - __exports__["default"] = function setProperties(obj, properties) { - if (!properties || typeof properties !== "object") { return obj; } - changeProperties(function() { - var props = keys(properties); - var propertyName; - - for (var i = 0, l = props.length; i < l; i++) { - propertyName = props[i]; - - set(obj, propertyName, properties[propertyName]); - } - }); - return obj; - } - }); -enifed("ember-metal/streams/simple", - ["ember-metal/merge","ember-metal/streams/stream","ember-metal/platform","ember-metal/streams/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var merge = __dependency1__["default"]; - var Stream = __dependency2__["default"]; - var create = __dependency3__.create; - var read = __dependency4__.read; - var isStream = __dependency4__.isStream; - - function SimpleStream(source) { - this.init(); - this.source = source; - - if (isStream(source)) { - source.subscribe(this._didChange, this); - } - } - - SimpleStream.prototype = create(Stream.prototype); - - merge(SimpleStream.prototype, { - valueFn: function() { - return read(this.source); - }, - - setValue: function(value) { - var source = this.source; - - if (isStream(source)) { - source.setValue(value); - } - }, - - setSource: function(nextSource) { - var prevSource = this.source; - if (nextSource !== prevSource) { - if (isStream(prevSource)) { - prevSource.unsubscribe(this._didChange, this); - } - - if (isStream(nextSource)) { - nextSource.subscribe(this._didChange, this); - } - - this.source = nextSource; - this.notify(); - } - }, - - _didChange: function() { - this.notify(); - }, - - _super$destroy: Stream.prototype.destroy, - - destroy: function() { - if (this._super$destroy()) { - if (isStream(this.source)) { - this.source.unsubscribe(this._didChange, this); - } - this.source = undefined; - return true; - } - } - }); - - __exports__["default"] = SimpleStream; - }); -enifed("ember-metal/streams/stream", - ["ember-metal/platform","ember-metal/path_cache","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var create = __dependency1__.create; - var getFirstKey = __dependency2__.getFirstKey; - var getTailPath = __dependency2__.getTailPath; - - function Stream(fn) { - this.init(); - this.valueFn = fn; - } - - Stream.prototype = { - isStream: true, - - init: function() { - this.state = 'dirty'; - this.cache = undefined; - this.subscribers = undefined; - this.children = undefined; - this._label = undefined; - }, - - get: function(path) { - var firstKey = getFirstKey(path); - var tailPath = getTailPath(path); - - if (this.children === undefined) { - this.children = create(null); - } - - var keyStream = this.children[firstKey]; - - if (keyStream === undefined) { - keyStream = this._makeChildStream(firstKey, path); - this.children[firstKey] = keyStream; - } - - if (tailPath === undefined) { - return keyStream; - } else { - return keyStream.get(tailPath); - } - }, - - value: function() { - if (this.state === 'clean') { - return this.cache; - } else if (this.state === 'dirty') { - this.state = 'clean'; - return this.cache = this.valueFn(); - } - // TODO: Ensure value is never called on a destroyed stream - // so that we can uncomment this assertion. - // - // Ember.assert("Stream error: value was called in an invalid state: " + this.state); - }, - - valueFn: function() { - throw new Error("Stream error: valueFn not implemented"); - }, - - setValue: function() { - throw new Error("Stream error: setValue not implemented"); - }, - - notify: function() { - this.notifyExcept(); - }, - - notifyExcept: function(callbackToSkip, contextToSkip) { - if (this.state === 'clean') { - this.state = 'dirty'; - this._notifySubscribers(callbackToSkip, contextToSkip); - } - }, - - subscribe: function(callback, context) { - if (this.subscribers === undefined) { - this.subscribers = [callback, context]; - } else { - this.subscribers.push(callback, context); - } - }, - - unsubscribe: function(callback, context) { - var subscribers = this.subscribers; - - if (subscribers !== undefined) { - for (var i = 0, l = subscribers.length; i < l; i += 2) { - if (subscribers[i] === callback && subscribers[i+1] === context) { - subscribers.splice(i, 2); - return; - } - } - } - }, - - _notifySubscribers: function(callbackToSkip, contextToSkip) { - var subscribers = this.subscribers; - - if (subscribers !== undefined) { - for (var i = 0, l = subscribers.length; i < l; i += 2) { - var callback = subscribers[i]; - var context = subscribers[i+1]; - - if (callback === callbackToSkip && context === contextToSkip) { - continue; - } - - if (context === undefined) { - callback(this); - } else { - callback.call(context, this); - } - } - } - }, - - destroy: function() { - if (this.state !== 'destroyed') { - this.state = 'destroyed'; - - var children = this.children; - for (var key in children) { - children[key].destroy(); - } - - return true; - } - }, - - isGlobal: function() { - var stream = this; - while (stream !== undefined) { - if (stream._isRoot) { - return stream._isGlobal; - } - stream = stream.source; - } - } - }; - - __exports__["default"] = Stream; - }); -enifed("ember-metal/streams/stream_binding", - ["ember-metal/platform","ember-metal/merge","ember-metal/run_loop","ember-metal/streams/stream","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var create = __dependency1__.create; - var merge = __dependency2__["default"]; - var run = __dependency3__["default"]; - var Stream = __dependency4__["default"]; - - function StreamBinding(stream) { - Ember.assert("StreamBinding error: tried to bind to object that is not a stream", stream && stream.isStream); - - this.init(); - this.stream = stream; - this.senderCallback = undefined; - this.senderContext = undefined; - this.senderValue = undefined; - - stream.subscribe(this._onNotify, this); - } - - StreamBinding.prototype = create(Stream.prototype); - - merge(StreamBinding.prototype, { - valueFn: function() { - return this.stream.value(); - }, - - _onNotify: function() { - this._scheduleSync(undefined, undefined, this); - }, - - setValue: function(value, callback, context) { - this._scheduleSync(value, callback, context); - }, - - _scheduleSync: function(value, callback, context) { - if (this.senderCallback === undefined && this.senderContext === undefined) { - this.senderCallback = callback; - this.senderContext = context; - this.senderValue = value; - run.schedule('sync', this, this._sync); - } else if (this.senderContext !== this) { - this.senderCallback = callback; - this.senderContext = context; - this.senderValue = value; - } - }, - - _sync: function() { - if (this.state === 'destroyed') { - return; - } - - if (this.senderContext !== this) { - this.stream.setValue(this.senderValue); - } - - var senderCallback = this.senderCallback; - var senderContext = this.senderContext; - this.senderCallback = undefined; - this.senderContext = undefined; - this.senderValue = undefined; - - // Force StreamBindings to always notify - this.state = 'clean'; - - this.notifyExcept(senderCallback, senderContext); - }, - - _super$destroy: Stream.prototype.destroy, - - destroy: function() { - if (this._super$destroy()) { - this.stream.unsubscribe(this._onNotify, this); - return true; - } - } - }); - - __exports__["default"] = StreamBinding; - }); -enifed("ember-metal/streams/utils", - ["./stream","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Stream = __dependency1__["default"]; - - /** - Check whether an object is a stream or not - - @private - @function isStream - @param {Object|Stream} object object to check whether it is a stream - @return {Boolean} `true` if the object is a stream, `false` otherwise - */ - function isStream(object) { - return object && object.isStream; - } - - __exports__.isStream = isStream;/** - A method of subscribing to a stream which is safe for use with a non-stream - object. If a non-stream object is passed, the function does nothing. - - @private - @function subscribe - @param {Object|Stream} object object or stream to potentially subscribe to - @param {Function} callback function to run when stream value changes - @param {Object} [context] the callback will be executed with this context if it - is provided - */ - function subscribe(object, callback, context) { - if (object && object.isStream) { - object.subscribe(callback, context); - } - } - - __exports__.subscribe = subscribe;/** - A method of unsubscribing from a stream which is safe for use with a non-stream - object. If a non-stream object is passed, the function does nothing. - - @private - @function unsubscribe - @param {Object|Stream} object object or stream to potentially unsubscribe from - @param {Function} callback function originally passed to `subscribe()` - @param {Object} [context] object originally passed to `subscribe()` - */ - function unsubscribe(object, callback, context) { - if (object && object.isStream) { - object.unsubscribe(callback, context); - } - } - - __exports__.unsubscribe = unsubscribe;/** - Retrieve the value of a stream, or in the case a non-stream object is passed, - return the object itself. - - @private - @function read - @param {Object|Stream} object object to return the value of - @return the stream's current value, or the non-stream object itself - */ - function read(object) { - if (object && object.isStream) { - return object.value(); - } else { - return object; - } - } - - __exports__.read = read;/** - Map an array, replacing any streams with their values. - - @private - @function readArray - @param {Array} array The array to read values from - @return {Array} a new array of the same length with the values of non-stream - objects mapped from their original positions untouched, and - the values of stream objects retaining their original position - and replaced with the stream's current value. - */ - function readArray(array) { - var length = array.length; - var ret = new Array(length); - for (var i = 0; i < length; i++) { - ret[i] = read(array[i]); - } - return ret; - } - - __exports__.readArray = readArray;/** - Map a hash, replacing any stream property values with the current value of that - stream. - - @private - @function readHash - @param {Object} object The hash to read keys and values from - @return {Object} a new object with the same keys as the passed object. The - property values in the new object are the original values in - the case of non-stream objects, and the streams' current - values in the case of stream objects. - */ - function readHash(object) { - var ret = {}; - for (var key in object) { - ret[key] = read(object[key]); - } - return ret; - } - - __exports__.readHash = readHash;/** - Check whether an array contains any stream values - - @private - @function scanArray - @param {Array} array array given to a handlebars helper - @return {Boolean} `true` if the array contains a stream/bound value, `false` - otherwise - */ - function scanArray(array) { - var length = array.length; - var containsStream = false; - - for (var i = 0; i < length; i++){ - if (isStream(array[i])) { - containsStream = true; - break; - } - } - - return containsStream; - } - - __exports__.scanArray = scanArray;/** - Check whether a hash has any stream property values - - @private - @function scanHash - @param {Object} hash "hash" argument given to a handlebars helper - @return {Boolean} `true` if the object contains a stream/bound value, `false` - otherwise - */ - function scanHash(hash) { - var containsStream = false; - - for (var prop in hash) { - if (isStream(hash[prop])) { - containsStream = true; - break; - } - } - - return containsStream; - } - - __exports__.scanHash = scanHash;/** - Join an array, with any streams replaced by their current values - - @private - @function concat - @param {Array} array An array containing zero or more stream objects and - zero or more non-stream objects - @param {String} separator string to be used to join array elements - @return {String} String with array elements concatenated and joined by the - provided separator, and any stream array members having been - replaced by the current value of the stream - */ - function concat(array, separator) { - // TODO: Create subclass ConcatStream < Stream. Defer - // subscribing to streams until the value() is called. - var hasStream = scanArray(array); - if (hasStream) { - var i, l; - var stream = new Stream(function() { - return readArray(array).join(separator); - }); - - for (i = 0, l=array.length; i < l; i++) { - subscribe(array[i], stream.notify, stream); - } - - return stream; - } else { - return array.join(separator); - } - } - - __exports__.concat = concat;/** - Generate a new stream by providing a source stream and a function that can - be used to transform the stream's value. In the case of a non-stream object, - returns the result of the function. - - The value to transform would typically be available to the function you pass - to `chain()` via scope. For example: - - ```javascript - var source = ...; // stream returning a number - // or a numeric (non-stream) object - var result = chain(source, function(){ - var currentValue = read(source); - return currentValue + 1; - }); - ``` - - In the example, result is a stream if source is a stream, or a number of - source was numeric. - - @private - @function chain - @param {Object|Stream} value A stream or non-stream object - @param {Function} fn function to be run when the stream value changes, or to - be run once in the case of a non-stream object - @return {Object|Stream} In the case of a stream `value` parameter, a new - stream that will be updated with the return value of - the provided function `fn`. In the case of a - non-stream object, the return value of the provided - function `fn`. - */ - function chain(value, fn) { - if (isStream(value)) { - var stream = new Stream(fn); - subscribe(value, stream.notify, stream); - return stream; - } else { - return fn(); - } - } - - __exports__.chain = chain; - }); -enifed("ember-metal/utils", - ["ember-metal/core","ember-metal/platform","ember-metal/array","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - // Remove "use strict"; from transpiled module until - // https://bugs.webkit.org/show_bug.cgi?id=138038 is fixed - // - // REMOVE_USE_STRICT: true - - var Ember = __dependency1__["default"]; - var o_defineProperty = __dependency2__.defineProperty; - var canDefineNonEnumerableProperties = __dependency2__.canDefineNonEnumerableProperties; - var hasPropertyAccessors = __dependency2__.hasPropertyAccessors; - var o_create = __dependency2__.create; - - var forEach = __dependency3__.forEach; - - /** - @module ember-metal - */ - - /** - Previously we used `Ember.$.uuid`, however `$.uuid` has been removed from - jQuery master. We'll just bootstrap our own uuid now. - - @private - @return {Number} the uuid - */ - var _uuid = 0; - - /** - Generates a universally unique identifier. This method - is used internally by Ember for assisting with - the generation of GUID's and other unique identifiers - such as `bind-attr` data attributes. - - @public - @return {Number} [description] - */ - function uuid() { - return ++_uuid; - } - - __exports__.uuid = uuid;/** - Prefix used for guids through out Ember. - @private - @property GUID_PREFIX - @for Ember - @type String - @final - */ - var GUID_PREFIX = 'ember'; - - // Used for guid generation... - var numberCache = []; - var stringCache = {}; - - /** - Strongly hint runtimes to intern the provided string. - - When do I need to use this function? - - For the most part, never. Pre-mature optimization is bad, and often the - runtime does exactly what you need it to, and more often the trade-off isn't - worth it. - - Why? - - Runtimes store strings in at least 2 different representations: - Ropes and Symbols (interned strings). The Rope provides a memory efficient - data-structure for strings created from concatenation or some other string - manipulation like splitting. - - Unfortunately checking equality of different ropes can be quite costly as - runtimes must resort to clever string comparison algorithims. These - algorithims typically cost in proportion to the length of the string. - Luckily, this is where the Symbols (interned strings) shine. As Symbols are - unique by their string content, equality checks can be done by pointer - comparison. - - How do I know if my string is a rope or symbol? - - Typically (warning general sweeping statement, but truthy in runtimes at - present) static strings created as part of the JS source are interned. - Strings often used for comparisons can be interned at runtime if some - criteria are met. One of these criteria can be the size of the entire rope. - For example, in chrome 38 a rope longer then 12 characters will not - intern, nor will segments of that rope. - - Some numbers: http://jsperf.com/eval-vs-keys/8 - - Known Trickâ„¢ - - @private - @return {String} interned version of the provided string - */ - function intern(str) { - var obj = {}; - obj[str] = 1; - for (var key in obj) { - if (key === str) return key; - } - return str; - } - - /** - A unique key used to assign guids and other private metadata to objects. - If you inspect an object in your browser debugger you will often see these. - They can be safely ignored. - - On browsers that support it, these properties are added with enumeration - disabled so they won't show up when you iterate over your properties. - - @private - @property GUID_KEY - @for Ember - @type String - @final - */ - var GUID_KEY = intern('__ember' + (+ new Date())); - - var GUID_DESC = { - writable: false, - configurable: false, - enumerable: false, - value: null - }; - - /** - Generates a new guid, optionally saving the guid to the object that you - pass in. You will rarely need to use this method. Instead you should - call `Ember.guidFor(obj)`, which return an existing guid if available. - - @private - @method generateGuid - @for Ember - @param {Object} [obj] Object the guid will be used for. If passed in, the guid will - be saved on the object and reused whenever you pass the same object - again. - - If no object is passed, just generate a new guid. - @param {String} [prefix] Prefix to place in front of the guid. Useful when you want to - separate the guid into separate namespaces. - @return {String} the guid - */ - function generateGuid(obj, prefix) { - if (!prefix) prefix = GUID_PREFIX; - var ret = (prefix + uuid()); - if (obj) { - if (obj[GUID_KEY] === null) { - obj[GUID_KEY] = ret; - } else { - GUID_DESC.value = ret; - o_defineProperty(obj, GUID_KEY, GUID_DESC); - } - } - return ret; - } - - __exports__.generateGuid = generateGuid;/** - Returns a unique id for the object. If the object does not yet have a guid, - one will be assigned to it. You can call this on any object, - `Ember.Object`-based or not, but be aware that it will add a `_guid` - property. - - You can also use this method on DOM Element objects. - - @private - @method guidFor - @for Ember - @param {Object} obj any object, string, number, Element, or primitive - @return {String} the unique guid for this instance. - */ - function guidFor(obj) { - - // special cases where we don't want to add a key to object - if (obj === undefined) return "(undefined)"; - if (obj === null) return "(null)"; - - var ret; - var type = typeof obj; - - // Don't allow prototype changes to String etc. to change the guidFor - switch(type) { - case 'number': - ret = numberCache[obj]; - if (!ret) ret = numberCache[obj] = 'nu'+obj; - return ret; - - case 'string': - ret = stringCache[obj]; - if (!ret) ret = stringCache[obj] = 'st' + uuid(); - return ret; - - case 'boolean': - return obj ? '(true)' : '(false)'; - - default: - if (obj[GUID_KEY]) return obj[GUID_KEY]; - if (obj === Object) return '(Object)'; - if (obj === Array) return '(Array)'; - ret = GUID_PREFIX + uuid(); - - if (obj[GUID_KEY] === null) { - obj[GUID_KEY] = ret; - } else { - GUID_DESC.value = ret; - o_defineProperty(obj, GUID_KEY, GUID_DESC); - } - return ret; - } - } - - __exports__.guidFor = guidFor;// .......................................................... - // META - // - - var META_DESC = { - writable: true, - configurable: false, - enumerable: false, - value: null - }; - - function Meta(obj) { - this.descs = {}; - this.watching = {}; - this.cache = {}; - this.cacheMeta = {}; - this.source = obj; - this.deps = undefined; - this.listeners = undefined; - this.mixins = undefined; - this.bindings = undefined; - this.chains = undefined; - this.values = undefined; - this.proto = undefined; - } - - Meta.prototype = { - chainWatchers: null - }; - - if (!canDefineNonEnumerableProperties) { - // on platforms that don't support enumerable false - // make meta fail jQuery.isPlainObject() to hide from - // jQuery.extend() by having a property that fails - // hasOwnProperty check. - Meta.prototype.__preventPlainObject__ = true; - - // Without non-enumerable properties, meta objects will be output in JSON - // unless explicitly suppressed - Meta.prototype.toJSON = function () { }; - } - - // Placeholder for non-writable metas. - var EMPTY_META = new Meta(null); - - - if (hasPropertyAccessors) { - EMPTY_META.values = {}; - } - - - /** - Retrieves the meta hash for an object. If `writable` is true ensures the - hash is writable for this object as well. - - The meta object contains information about computed property descriptors as - well as any watched properties and other information. You generally will - not access this information directly but instead work with higher level - methods that manipulate this hash indirectly. - - @method meta - @for Ember - @private - - @param {Object} obj The object to retrieve meta for - @param {Boolean} [writable=true] Pass `false` if you do not intend to modify - the meta hash, allowing the method to avoid making an unnecessary copy. - @return {Object} the meta hash for an object - */ - function meta(obj, writable) { - var ret = obj['__ember_meta__']; - if (writable===false) return ret || EMPTY_META; - - if (!ret) { - if (canDefineNonEnumerableProperties) o_defineProperty(obj, '__ember_meta__', META_DESC); - - ret = new Meta(obj); - - - if (hasPropertyAccessors) { - ret.values = {}; - } - - - obj['__ember_meta__'] = ret; - - // make sure we don't accidentally try to create constructor like desc - ret.descs.constructor = null; - - } else if (ret.source !== obj) { - if (canDefineNonEnumerableProperties) o_defineProperty(obj, '__ember_meta__', META_DESC); - - ret = o_create(ret); - ret.descs = o_create(ret.descs); - ret.watching = o_create(ret.watching); - ret.cache = {}; - ret.cacheMeta = {}; - ret.source = obj; - - - if (hasPropertyAccessors) { - ret.values = o_create(ret.values); - } - - - obj['__ember_meta__'] = ret; - } - return ret; - } - - function getMeta(obj, property) { - var _meta = meta(obj, false); - return _meta[property]; - } - - __exports__.getMeta = getMeta;function setMeta(obj, property, value) { - var _meta = meta(obj, true); - _meta[property] = value; - return value; - } - - __exports__.setMeta = setMeta;/** - @deprecated - @private - - In order to store defaults for a class, a prototype may need to create - a default meta object, which will be inherited by any objects instantiated - from the class's constructor. - - However, the properties of that meta object are only shallow-cloned, - so if a property is a hash (like the event system's `listeners` hash), - it will by default be shared across all instances of that class. - - This method allows extensions to deeply clone a series of nested hashes or - other complex objects. For instance, the event system might pass - `['listeners', 'foo:change', 'ember157']` to `prepareMetaPath`, which will - walk down the keys provided. - - For each key, if the key does not exist, it is created. If it already - exists and it was inherited from its constructor, the constructor's - key is cloned. - - You can also pass false for `writable`, which will simply return - undefined if `prepareMetaPath` discovers any part of the path that - shared or undefined. - - @method metaPath - @for Ember - @param {Object} obj The object whose meta we are examining - @param {Array} path An array of keys to walk down - @param {Boolean} writable whether or not to create a new meta - (or meta property) if one does not already exist or if it's - shared with its constructor - */ - function metaPath(obj, path, writable) { - Ember.deprecate("Ember.metaPath is deprecated and will be removed from future releases."); - var _meta = meta(obj, writable); - var keyName, value; - - for (var i=0, l=path.length; i 1) { - watching[keyName]--; - } - } - - __exports__.unwatchKey = unwatchKey; - }); -enifed("ember-metal/watch_path", - ["ember-metal/utils","ember-metal/chains","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var metaFor = __dependency1__.meta; - var typeOf = __dependency1__.typeOf; - var ChainNode = __dependency2__.ChainNode; - - // get the chains for the current object. If the current object has - // chains inherited from the proto they will be cloned and reconfigured for - // the current object. - function chainsFor(obj, meta) { - var m = meta || metaFor(obj); - var ret = m.chains; - if (!ret) { - ret = m.chains = new ChainNode(null, null, obj); - } else if (ret.value() !== obj) { - ret = m.chains = ret.copy(obj); - } - return ret; - } - - function watchPath(obj, keyPath, meta) { - // can't watch length on Array - it is special... - if (keyPath === 'length' && typeOf(obj) === 'array') { return; } - - var m = meta || metaFor(obj); - var watching = m.watching; - - if (!watching[keyPath]) { // activate watching first time - watching[keyPath] = 1; - chainsFor(obj, m).add(keyPath); - } else { - watching[keyPath] = (watching[keyPath] || 0) + 1; - } - } - - __exports__.watchPath = watchPath;function unwatchPath(obj, keyPath, meta) { - var m = meta || metaFor(obj); - var watching = m.watching; - - if (watching[keyPath] === 1) { - watching[keyPath] = 0; - chainsFor(obj, m).remove(keyPath); - } else if (watching[keyPath] > 1) { - watching[keyPath]--; - } - } - - __exports__.unwatchPath = unwatchPath; - }); -enifed("ember-metal/watching", - ["ember-metal/utils","ember-metal/chains","ember-metal/watch_key","ember-metal/watch_path","ember-metal/path_cache","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - /** - @module ember-metal - */ - - var typeOf = __dependency1__.typeOf; - var removeChainWatcher = __dependency2__.removeChainWatcher; - var flushPendingChains = __dependency2__.flushPendingChains; - var watchKey = __dependency3__.watchKey; - var unwatchKey = __dependency3__.unwatchKey; - var watchPath = __dependency4__.watchPath; - var unwatchPath = __dependency4__.unwatchPath; - - var isPath = __dependency5__.isPath; - - /** - Starts watching a property on an object. Whenever the property changes, - invokes `Ember.propertyWillChange` and `Ember.propertyDidChange`. This is the - primitive used by observers and dependent keys; usually you will never call - this method directly but instead use higher level methods like - `Ember.addObserver()` - - @private - @method watch - @for Ember - @param obj - @param {String} keyName - */ - function watch(obj, _keyPath, m) { - // can't watch length on Array - it is special... - if (_keyPath === 'length' && typeOf(obj) === 'array') { return; } - - if (!isPath(_keyPath)) { - watchKey(obj, _keyPath, m); - } else { - watchPath(obj, _keyPath, m); - } - } - - __exports__.watch = watch; - - function isWatching(obj, key) { - var meta = obj['__ember_meta__']; - return (meta && meta.watching[key]) > 0; - } - - __exports__.isWatching = isWatching;watch.flushPending = flushPendingChains; - - function unwatch(obj, _keyPath, m) { - // can't watch length on Array - it is special... - if (_keyPath === 'length' && typeOf(obj) === 'array') { return; } - - if (!isPath(_keyPath)) { - unwatchKey(obj, _keyPath, m); - } else { - unwatchPath(obj, _keyPath, m); - } - } - - __exports__.unwatch = unwatch;var NODE_STACK = []; - - /** - Tears down the meta on an object so that it can be garbage collected. - Multiple calls will have no effect. - - @method destroy - @for Ember - @param {Object} obj the object to destroy - @return {void} - */ - function destroy(obj) { - var meta = obj['__ember_meta__'], node, nodes, key, nodeObject; - if (meta) { - obj['__ember_meta__'] = null; - // remove chainWatchers to remove circular references that would prevent GC - node = meta.chains; - if (node) { - NODE_STACK.push(node); - // process tree - while (NODE_STACK.length > 0) { - node = NODE_STACK.pop(); - // push children - nodes = node._chains; - if (nodes) { - for (key in nodes) { - if (nodes.hasOwnProperty(key)) { - NODE_STACK.push(nodes[key]); - } - } - } - // remove chainWatcher in node object - if (node._watching) { - nodeObject = node._object; - if (nodeObject) { - removeChainWatcher(nodeObject, node._key, node); - } - } - } - } - } - } - - __exports__.destroy = destroy; - }); -enifed("ember-routing-htmlbars", - ["ember-metal/core","ember-htmlbars/helpers","ember-routing-htmlbars/helpers/outlet","ember-routing-htmlbars/helpers/render","ember-routing-htmlbars/helpers/link-to","ember-routing-htmlbars/helpers/action","ember-routing-htmlbars/helpers/query-params","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) { - "use strict"; - /** - Ember Routing HTMLBars Helpers - - @module ember - @submodule ember-routing-htmlbars - @requires ember-routing - */ - - var Ember = __dependency1__["default"]; - - var registerHelper = __dependency2__.registerHelper; - - var outletHelper = __dependency3__.outletHelper; - var renderHelper = __dependency4__.renderHelper; - var linkToHelper = __dependency5__.linkToHelper; - var deprecatedLinkToHelper = __dependency5__.deprecatedLinkToHelper; - var actionHelper = __dependency6__.actionHelper; - var queryParamsHelper = __dependency7__.queryParamsHelper; - - registerHelper('outlet', outletHelper); - registerHelper('render', renderHelper); - registerHelper('link-to', linkToHelper); - registerHelper('linkTo', deprecatedLinkToHelper); - registerHelper('action', actionHelper); - registerHelper('query-params', queryParamsHelper); - - __exports__["default"] = Ember; - }); -enifed("ember-routing-htmlbars/helpers/action", - ["ember-metal/core","ember-metal/utils","ember-metal/run_loop","ember-views/streams/utils","ember-views/system/utils","ember-views/system/action_manager","ember-metal/array","ember-metal/streams/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-routing-htmlbars - */ - - var Ember = __dependency1__["default"]; - // Handlebars, uuid, FEATURES, assert, deprecate - var uuid = __dependency2__.uuid; - var run = __dependency3__["default"]; - var readUnwrappedModel = __dependency4__.readUnwrappedModel; - var isSimpleClick = __dependency5__.isSimpleClick; - var ActionManager = __dependency6__["default"]; - var indexOf = __dependency7__.indexOf; - var isStream = __dependency8__.isStream; - - function actionArgs(parameters, actionName) { - var ret, i, l; - - if (actionName === undefined) { - ret = new Array(parameters.length); - for (i=0, l=parameters.length;i= 0) { - return true; - } - - for (var i=0, l=keys.length;i - click me - - ``` - - And application code - - ```javascript - App.ApplicationController = Ember.Controller.extend({ - actions: { - anActionName: function() { - } - } - }); - ``` - - Will result in the following rendered HTML - - ```html -
    -
    - click me -
    -
    - ``` - - Clicking "click me" will trigger the `anActionName` action of the - `App.ApplicationController`. In this case, no additional parameters will be passed. - - If you provide additional parameters to the helper: - - ```handlebars - - ``` - - Those parameters will be passed along as arguments to the JavaScript - function implementing the action. - - ### Event Propagation - - Events triggered through the action helper will automatically have - `.preventDefault()` called on them. You do not need to do so in your event - handlers. If you need to allow event propagation (to handle file inputs for - example) you can supply the `preventDefault=false` option to the `{{action}}` helper: - - ```handlebars -
    - - -
    - ``` - - To disable bubbling, pass `bubbles=false` to the helper: - - ```handlebars - - ``` - - If you need the default handler to trigger you should either register your - own event handler, or use event methods on your view class. See [Ember.View](/api/classes/Ember.View.html) - 'Responding to Browser Events' for more information. - - ### Specifying DOM event type - - By default the `{{action}}` helper registers for DOM `click` events. You can - supply an `on` option to the helper to specify a different DOM event name: - - ```handlebars -
    - click me -
    - ``` - - See `Ember.View` 'Responding to Browser Events' for a list of - acceptable DOM event names. - - ### Specifying whitelisted modifier keys - - By default the `{{action}}` helper will ignore click event with pressed modifier - keys. You can supply an `allowedKeys` option to specify which keys should not be ignored. - - ```handlebars -
    - click me -
    - ``` - - This way the `{{action}}` will fire when clicking with the alt key pressed down. - - Alternatively, supply "any" to the `allowedKeys` option to accept any combination of modifier keys. - - ```handlebars -
    - click me with any key pressed -
    - ``` - - ### Specifying a Target - - There are several possible target objects for `{{action}}` helpers: - - In a typical Ember application, where templates are managed through use of the - `{{outlet}}` helper, actions will bubble to the current controller, then - to the current route, and then up the route hierarchy. - - Alternatively, a `target` option can be provided to the helper to change - which object will receive the method call. This option must be a path - to an object, accessible in the current context: - - ```handlebars - {{! the application template }} -
    - click me -
    - ``` - - ```javascript - App.ApplicationView = Ember.View.extend({ - actions: { - anActionName: function(){} - } - }); - - ``` - - ### Additional Parameters - - You may specify additional parameters to the `{{action}}` helper. These - parameters are passed along as the arguments to the JavaScript function - implementing the action. - - ```handlebars - {{#each person in people}} -
    - click me -
    - {{/each}} - ``` - - Clicking "click me" will trigger the `edit` method on the current controller - with the value of `person` as a parameter. - - @method action - @for Ember.Handlebars.helpers - @param {String} actionName - @param {Object} [context]* - @param {Hash} options - */ - function actionHelper(params, hash, options, env) { - - var target; - if (!hash.target) { - target = this.getStream('controller'); - } else if (isStream(hash.target)) { - target = hash.target; - } else { - target = this.getStream(hash.target); - } - - // Ember.assert("You specified a quoteless path to the {{action}} helper which did not resolve to an action name (a string). Perhaps you meant to use a quoted actionName? (e.g. {{action 'save'}}).", !params[0].isStream); - // Ember.deprecate("You specified a quoteless path to the {{action}} helper which did not resolve to an action name (a string). Perhaps you meant to use a quoted actionName? (e.g. {{action 'save'}}).", params[0].isStream); - - var actionOptions = { - eventName: hash.on || "click", - parameters: params.slice(1), - view: this, - bubbles: hash.bubbles, - preventDefault: hash.preventDefault, - target: target, - withKeyCode: hash.withKeyCode - }; - - var actionId = ActionHelper.registerAction(params[0], actionOptions, hash.allowedKeys); - env.dom.setAttribute(options.element, 'data-ember-action', actionId); - } - - __exports__.actionHelper = actionHelper; - }); -enifed("ember-routing-htmlbars/helpers/link-to", - ["ember-metal/core","ember-routing-views/views/link","ember-metal/streams/utils","ember-runtime/mixins/controller","ember-htmlbars/utils/string","ember-htmlbars","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-routing-handlebars - */ - - var Ember = __dependency1__["default"]; - // assert - var LinkView = __dependency2__.LinkView; - var read = __dependency3__.read; - var isStream = __dependency3__.isStream; - var ControllerMixin = __dependency4__["default"]; - var escapeExpression = __dependency5__.escapeExpression; - - // We need the HTMLBars view helper from ensure ember-htmlbars. - // This ensures it is loaded first: - - /** - The `{{link-to}}` helper renders a link to the supplied - `routeName` passing an optionally supplied model to the - route as its `model` context of the route. The block - for `{{link-to}}` becomes the innerHTML of the rendered - element: - - ```handlebars - {{#link-to 'photoGallery'}} - Great Hamster Photos - {{/link-to}} - ``` - - You can also use an inline form of `{{link-to}}` helper by - passing the link text as the first argument - to the helper: - - ```handlebars - {{link-to 'Great Hamster Photos' 'photoGallery'}} - ``` - - Both will result in: - - ```html -
    - Great Hamster Photos - - ``` - - ### Supplying a tagName - By default `{{link-to}}` renders an `` element. This can - be overridden for a single use of `{{link-to}}` by supplying - a `tagName` option: - - ```handlebars - {{#link-to 'photoGallery' tagName="li"}} - Great Hamster Photos - {{/link-to}} - ``` - - ```html -
  • - Great Hamster Photos -
  • - ``` - - To override this option for your entire application, see - "Overriding Application-wide Defaults". - - ### Disabling the `link-to` helper - By default `{{link-to}}` is enabled. - any passed value to `disabled` helper property will disable the `link-to` helper. - - static use: the `disabled` option: - - ```handlebars - {{#link-to 'photoGallery' disabled=true}} - Great Hamster Photos - {{/link-to}} - ``` - - dynamic use: the `disabledWhen` option: - - ```handlebars - {{#link-to 'photoGallery' disabledWhen=controller.someProperty}} - Great Hamster Photos - {{/link-to}} - ``` - - any passed value to `disabled` will disable it except `undefined`. - to ensure that only `true` disable the `link-to` helper you can - override the global behaviour of `Ember.LinkView`. - - ```javascript - Ember.LinkView.reopen({ - disabled: Ember.computed(function(key, value) { - if (value !== undefined) { - this.set('_isDisabled', value === true); - } - return value === true ? get(this, 'disabledClass') : false; - }) - }); - ``` - - see "Overriding Application-wide Defaults" for more. - - ### Handling `href` - `{{link-to}}` will use your application's Router to - fill the element's `href` property with a url that - matches the path to the supplied `routeName` for your - routers's configured `Location` scheme, which defaults - to Ember.HashLocation. - - ### Handling current route - `{{link-to}}` will apply a CSS class name of 'active' - when the application's current route matches - the supplied routeName. For example, if the application's - current route is 'photoGallery.recent' the following - use of `{{link-to}}`: - - ```handlebars - {{#link-to 'photoGallery.recent'}} - Great Hamster Photos from the last week - {{/link-to}} - ``` - - will result in - - ```html -
    - Great Hamster Photos - - ``` - - The CSS class name used for active classes can be customized - for a single use of `{{link-to}}` by passing an `activeClass` - option: - - ```handlebars - {{#link-to 'photoGallery.recent' activeClass="current-url"}} - Great Hamster Photos from the last week - {{/link-to}} - ``` - - ```html - - Great Hamster Photos - - ``` - - To override this option for your entire application, see - "Overriding Application-wide Defaults". - - ### Supplying a model - An optional model argument can be used for routes whose - paths contain dynamic segments. This argument will become - the model context of the linked route: - - ```javascript - App.Router.map(function() { - this.resource("photoGallery", {path: "hamster-photos/:photo_id"}); - }); - ``` - - ```handlebars - {{#link-to 'photoGallery' aPhoto}} - {{aPhoto.title}} - {{/link-to}} - ``` - - ```html - - Tomster - - ``` - - ### Supplying multiple models - For deep-linking to route paths that contain multiple - dynamic segments, multiple model arguments can be used. - As the router transitions through the route path, each - supplied model argument will become the context for the - route with the dynamic segments: - - ```javascript - App.Router.map(function() { - this.resource("photoGallery", {path: "hamster-photos/:photo_id"}, function() { - this.route("comment", {path: "comments/:comment_id"}); - }); - }); - ``` - This argument will become the model context of the linked route: - - ```handlebars - {{#link-to 'photoGallery.comment' aPhoto comment}} - {{comment.body}} - {{/link-to}} - ``` - - ```html - - A+++ would snuggle again. - - ``` - - ### Supplying an explicit dynamic segment value - If you don't have a model object available to pass to `{{link-to}}`, - an optional string or integer argument can be passed for routes whose - paths contain dynamic segments. This argument will become the value - of the dynamic segment: - - ```javascript - App.Router.map(function() { - this.resource("photoGallery", {path: "hamster-photos/:photo_id"}); - }); - ``` - - ```handlebars - {{#link-to 'photoGallery' aPhotoId}} - {{aPhoto.title}} - {{/link-to}} - ``` - - ```html - - Tomster - - ``` - - When transitioning into the linked route, the `model` hook will - be triggered with parameters including this passed identifier. - - ### Allowing Default Action - - By default the `{{link-to}}` helper prevents the default browser action - by calling `preventDefault()` as this sort of action bubbling is normally - handled internally and we do not want to take the browser to a new URL (for - example). - - If you need to override this behavior specify `preventDefault=false` in - your template: - - ```handlebars - {{#link-to 'photoGallery' aPhotoId preventDefault=false}} - {{aPhotoId.title}} - {{/link-to}} - ``` - - ### Overriding attributes - You can override any given property of the Ember.LinkView - that is generated by the `{{link-to}}` helper by passing - key/value pairs, like so: - - ```handlebars - {{#link-to aPhoto tagName='li' title='Following this link will change your life' classNames='pic sweet'}} - Uh-mazing! - {{/link-to}} - ``` - - See [Ember.LinkView](/api/classes/Ember.LinkView.html) for a - complete list of overrideable properties. Be sure to also - check out inherited properties of `LinkView`. - - ### Overriding Application-wide Defaults - ``{{link-to}}`` creates an instance of Ember.LinkView - for rendering. To override options for your entire - application, reopen Ember.LinkView and supply the - desired values: - - ``` javascript - Ember.LinkView.reopen({ - activeClass: "is-active", - tagName: 'li' - }) - ``` - - It is also possible to override the default event in - this manner: - - ``` javascript - Ember.LinkView.reopen({ - eventName: 'customEventName' - }); - ``` - - @method link-to - @for Ember.Handlebars.helpers - @param {String} routeName - @param {Object} [context]* - @param [options] {Object} Handlebars key/value pairs of options, you can override any property of Ember.LinkView - @return {String} HTML string - @see {Ember.LinkView} - */ - function linkToHelper(params, hash, options, env) { - var shouldEscape = !hash.unescaped; - var queryParamsObject; - - Ember.assert("You must provide one or more parameters to the link-to helper.", params.length); - - var lastParam = params[params.length - 1]; - - if (lastParam && lastParam.isQueryParams) { - hash.queryParamsObject = queryParamsObject = params.pop(); - } - - if (hash.disabledWhen) { - hash.disabled = hash.disabledWhen; - delete hash.disabledWhen; - } - - if (!options.template) { - var linkTitle = params.shift(); - - if (isStream(linkTitle)) { - hash.linkTitle = { stream: linkTitle }; - } - - options.template = { - isHTMLBars: true, - render: function() { - var value = read(linkTitle); - if (value) { - return shouldEscape ? escapeExpression(value) : value; - } else { - return ""; - } - } - }; - } - - for (var i = 0; i < params.length; i++) { - if (isStream(params[i])) { - var lazyValue = params[i]; - - if (!lazyValue._isController) { - while (ControllerMixin.detect(lazyValue.value())) { - lazyValue = lazyValue.get('model'); - } - } - - params[i] = lazyValue; - } - } - - hash.params = params; - - options.helperName = options.helperName || 'link-to'; - - return env.helpers.view.helperFunction.call(this, [LinkView], hash, options, env); - } - - /** - See [link-to](/api/classes/Ember.Handlebars.helpers.html#method_link-to) - - @method linkTo - @for Ember.Handlebars.helpers - @deprecated - @param {String} routeName - @param {Object} [context]* - @return {String} HTML string - */ - function deprecatedLinkToHelper(params, hash, options, env) { - Ember.deprecate("The 'linkTo' view helper is deprecated in favor of 'link-to'"); - - return env.helpers['link-to'].helperFunction.call(this, params, hash, options, env); - } - - __exports__.deprecatedLinkToHelper = deprecatedLinkToHelper; - __exports__.linkToHelper = linkToHelper; - }); -enifed("ember-routing-htmlbars/helpers/outlet", - ["ember-metal/core","ember-metal/property_set","ember-routing-views/views/outlet","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-routing-htmlbars - */ - - var Ember = __dependency1__["default"]; - // assert - var set = __dependency2__.set; - var OutletView = __dependency3__.OutletView; - - /** - The `outlet` helper is a placeholder that the router will fill in with - the appropriate template based on the current state of the application. - - ``` handlebars - {{outlet}} - ``` - - By default, a template based on Ember's naming conventions will be rendered - into the `outlet` (e.g. `App.PostsRoute` will render the `posts` template). - - You can render a different template by using the `render()` method in the - route's `renderTemplate` hook. The following will render the `favoritePost` - template into the `outlet`. - - ``` javascript - App.PostsRoute = Ember.Route.extend({ - renderTemplate: function() { - this.render('favoritePost'); - } - }); - ``` - - You can create custom named outlets for more control. - - ``` handlebars - {{outlet 'favoritePost'}} - {{outlet 'posts'}} - ``` - - Then you can define what template is rendered into each outlet in your - route. - - - ``` javascript - App.PostsRoute = Ember.Route.extend({ - renderTemplate: function() { - this.render('favoritePost', { outlet: 'favoritePost' }); - this.render('posts', { outlet: 'posts' }); - } - }); - ``` - - You can specify the view that the outlet uses to contain and manage the - templates rendered into it. - - ``` handlebars - {{outlet view='sectionContainer'}} - ``` - - ``` javascript - App.SectionContainer = Ember.ContainerView.extend({ - tagName: 'section', - classNames: ['special'] - }); - ``` - - @method outlet - @for Ember.Handlebars.helpers - @param {String} property the property on the controller - that holds the view for this outlet - @return {String} HTML string - */ - function outletHelper(params, hash, options, env) { - var outletSource; - var viewName; - var viewClass; - var viewFullName; - - Ember.assert( - "Using {{outlet}} with an unquoted name is not supported.", - params.length === 0 || typeof params[0] === 'string' - ); - - var property = params[0] || 'main'; - - outletSource = this; - while (!outletSource.get('template.isTop')) { - outletSource = outletSource.get('_parentView'); - } - set(this, 'outletSource', outletSource); - - // provide controller override - viewName = hash.view; - - if (viewName) { - viewFullName = 'view:' + viewName; - Ember.assert( - "Using a quoteless view parameter with {{outlet}} is not supported." + - " Please update to quoted usage '{{outlet ... view=\"" + viewName + "\"}}.", - typeof hash.view === 'string' - ); - Ember.assert( - "The view name you supplied '" + viewName + "' did not resolve to a view.", - this.container.has(viewFullName) - ); - } - - viewClass = viewName ? this.container.lookupFactory(viewFullName) : hash.viewClass || OutletView; - - hash.currentViewBinding = '_view.outletSource._outlets.' + property; - - options.helperName = options.helperName || 'outlet'; - - return env.helpers.view.helperFunction.call(this, [viewClass], hash, options, env); - } - - __exports__.outletHelper = outletHelper; - }); -enifed("ember-routing-htmlbars/helpers/query-params", - ["ember-metal/core","ember-routing/system/query_params","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-routing-htmlbars - */ - - var Ember = __dependency1__["default"]; - // assert - var QueryParams = __dependency2__["default"]; - - /** - This is a sub-expression to be used in conjunction with the link-to helper. - It will supply url query parameters to the target route. - - Example - - {{#link-to 'posts' (query-params direction="asc")}}Sort{{/link-to}} - - @method query-params - @for Ember.Handlebars.helpers - @param {Object} hash takes a hash of query parameters - @return {String} HTML string - */ - function queryParamsHelper(params, hash) { - Ember.assert("The `query-params` helper only accepts hash parameters, e.g. (query-params queryParamPropertyName='foo') as opposed to just (query-params 'foo')", params.length === 0); - - return QueryParams.create({ - values: hash - }); - } - - __exports__.queryParamsHelper = queryParamsHelper; - }); -enifed("ember-routing-htmlbars/helpers/render", - ["ember-metal/core","ember-metal/error","ember-runtime/system/string","ember-routing/system/generate_controller","ember-htmlbars/helpers/view","ember-metal/streams/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-routing-htmlbars - */ - - var Ember = __dependency1__["default"]; - // assert, deprecate - var EmberError = __dependency2__["default"]; - var camelize = __dependency3__.camelize; - var generateControllerFactory = __dependency4__.generateControllerFactory; - var generateController = __dependency4__["default"]; - var ViewHelper = __dependency5__.ViewHelper; - var isStream = __dependency6__.isStream; - - /** - Calling ``{{render}}`` from within a template will insert another - template that matches the provided name. The inserted template will - access its properties on its own controller (rather than the controller - of the parent template). - - If a view class with the same name exists, the view class also will be used. - - Note: A given controller may only be used *once* in your app in this manner. - A singleton instance of the controller will be created for you. - - Example: - - ```javascript - App.NavigationController = Ember.Controller.extend({ - who: "world" - }); - ``` - - ```handlebars - - Hello, {{who}}. - ``` - - ```handlebars - -

    My great app

    - {{render "navigation"}} - ``` - - ```html -

    My great app

    -
    - Hello, world. -
    - ``` - - Optionally you may provide a second argument: a property path - that will be bound to the `model` property of the controller. - - If a `model` property path is specified, then a new instance of the - controller will be created and `{{render}}` can be used multiple times - with the same name. - - For example if you had this `author` template. - - ```handlebars -
    - Written by {{firstName}} {{lastName}}. - Total Posts: {{postCount}} -
    - ``` - - You could render it inside the `post` template using the `render` helper. - - ```handlebars -
    -

    {{title}}

    -
    {{body}}
    - {{render "author" author}} -
    - ``` - - @method render - @for Ember.Handlebars.helpers - @param {String} name - @param {Object?} context - @param {Hash} options - @return {String} HTML string - */ - function renderHelper(params, hash, options, env) { - var container, router, controller, view, initialContext; - - var name = params[0]; - var context = params[1]; - - container = this._keywords.controller.value().container; - router = container.lookup('router:main'); - - Ember.assert( - "The first argument of {{render}} must be quoted, e.g. {{render \"sidebar\"}}.", - typeof name === 'string' - ); - - Ember.assert( - "The second argument of {{render}} must be a path, e.g. {{render \"post\" post}}.", - params.length < 2 || isStream(params[1]) - ); - - - if (params.length === 1) { - // use the singleton controller - Ember.assert("You can only use the {{render}} helper once without a model object as its" + - " second argument, as in {{render \"post\" post}}.", !router || !router._lookupActiveView(name)); - } else if (params.length === 2) { - // create a new controller - initialContext = context.value(); - } else { - throw new EmberError("You must pass a templateName to render"); - } - - // # legacy namespace - name = name.replace(/\//g, '.'); - // \ legacy slash as namespace support - - - view = container.lookup('view:' + name) || container.lookup('view:default'); - - // provide controller override - var controllerName = hash.controller || name; - var controllerFullName = 'controller:' + controllerName; - - Ember.assert("The controller name you supplied '" + controllerName + - "' did not resolve to a controller.", !hash.controller || container.has(controllerFullName)); - - var parentController = this._keywords.controller.value(); - - // choose name - if (params.length > 1) { - var factory = container.lookupFactory(controllerFullName) || - generateControllerFactory(container, controllerName, initialContext); - - controller = factory.create({ - modelBinding: context, // TODO: Use a StreamBinding - parentController: parentController, - target: parentController - }); - - view.one('willDestroyElement', function() { - controller.destroy(); - }); - } else { - controller = container.lookup(controllerFullName) || - generateController(container, controllerName); - - controller.setProperties({ - target: parentController, - parentController: parentController - }); - } - - hash.viewName = camelize(name); - - var templateName = 'template:' + name; - Ember.assert("You used `{{render '" + name + "'}}`, but '" + name + "' can not be found as either" + - " a template or a view.", container.has("view:" + name) || container.has(templateName) || !!options.template); - hash.template = container.lookup(templateName); - - hash.controller = controller; - - if (router && !initialContext) { - router._connectActiveView(name, view); - } - - options.helperName = options.helperName || ('render "' + name + '"'); - - ViewHelper.instanceHelper(view, hash, options, env); - } - - __exports__.renderHelper = renderHelper; - }); -enifed("ember-routing-views", - ["ember-metal/core","ember-routing-views/views/link","ember-routing-views/views/outlet","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - /** - Ember Routing Views - - @module ember - @submodule ember-routing-views - @requires ember-routing - */ - - var Ember = __dependency1__["default"]; - - var LinkView = __dependency2__.LinkView; - var OutletView = __dependency3__.OutletView; - - Ember.LinkView = LinkView; - Ember.OutletView = OutletView; - - __exports__["default"] = Ember; - }); -enifed("ember-routing-views/views/link", - ["ember-metal/core","ember-metal/property_get","ember-metal/merge","ember-metal/run_loop","ember-metal/computed","ember-runtime/system/string","ember-metal/keys","ember-views/system/utils","ember-views/views/component","ember-routing/utils","ember-metal/streams/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-routing-views - */ - - var Ember = __dependency1__["default"]; - // FEATURES, Logger, assert - - var get = __dependency2__.get; - var merge = __dependency3__["default"]; - var run = __dependency4__["default"]; - var computed = __dependency5__.computed; - var fmt = __dependency6__.fmt; - var keys = __dependency7__["default"]; - var isSimpleClick = __dependency8__.isSimpleClick; - var EmberComponent = __dependency9__["default"]; - var routeArgs = __dependency10__.routeArgs; - var read = __dependency11__.read; - var subscribe = __dependency11__.subscribe; - - var numberOfContextsAcceptedByHandler = function(handler, handlerInfos) { - var req = 0; - for (var i = 0, l = handlerInfos.length; i < l; i++) { - req = req + handlerInfos[i].names.length; - if (handlerInfos[i].handler === handler) - break; - } - - return req; - }; - - /** - `Ember.LinkView` renders an element whose `click` event triggers a - transition of the application's instance of `Ember.Router` to - a supplied route by name. - - Instances of `LinkView` will most likely be created through - the `link-to` Handlebars helper, but properties of this class - can be overridden to customize application-wide behavior. - - @class LinkView - @namespace Ember - @extends Ember.View - @see {Handlebars.helpers.link-to} - **/ - var LinkView = Ember.LinkView = EmberComponent.extend({ - tagName: 'a', - - /** - @deprecated Use current-when instead. - @property currentWhen - */ - currentWhen: null, - - /** - Used to determine when this LinkView is active. - - @property currentWhen - */ - 'current-when': null, - - /** - Sets the `title` attribute of the `LinkView`'s HTML element. - - @property title - @default null - **/ - title: null, - - /** - Sets the `rel` attribute of the `LinkView`'s HTML element. - - @property rel - @default null - **/ - rel: null, - - /** - Sets the `tabindex` attribute of the `LinkView`'s HTML element. - - @property tabindex - @default null - **/ - tabindex: null, - - /** - Sets the `target` attribute of the `LinkView`'s HTML element. - - @since 1.8.0 - @property target - @default null - **/ - target: null, - - /** - The CSS class to apply to `LinkView`'s element when its `active` - property is `true`. - - @property activeClass - @type String - @default active - **/ - activeClass: 'active', - - /** - The CSS class to apply to `LinkView`'s element when its `loading` - property is `true`. - - @property loadingClass - @type String - @default loading - **/ - loadingClass: 'loading', - - /** - The CSS class to apply to a `LinkView`'s element when its `disabled` - property is `true`. - - @property disabledClass - @type String - @default disabled - **/ - disabledClass: 'disabled', - _isDisabled: false, - - /** - Determines whether the `LinkView` will trigger routing via - the `replaceWith` routing strategy. - - @property replace - @type Boolean - @default false - **/ - replace: false, - - /** - By default the `{{link-to}}` helper will bind to the `href` and - `title` attributes. It's discouraged that you override these defaults, - however you can push onto the array if needed. - - @property attributeBindings - @type Array | String - @default ['href', 'title', 'rel', 'tabindex', 'target'] - **/ - attributeBindings: ['href', 'title', 'rel', 'tabindex'], - - /** - By default the `{{link-to}}` helper will bind to the `active`, `loading`, and - `disabled` classes. It is discouraged to override these directly. - - @property classNameBindings - @type Array - @default ['active', 'loading', 'disabled'] - **/ - classNameBindings: ['active', 'loading', 'disabled'], - - /** - By default the `{{link-to}}` helper responds to the `click` event. You - can override this globally by setting this property to your custom - event name. - - This is particularly useful on mobile when one wants to avoid the 300ms - click delay using some sort of custom `tap` event. - - @property eventName - @type String - @default click - */ - eventName: 'click', - - // this is doc'ed here so it shows up in the events - // section of the API documentation, which is where - // people will likely go looking for it. - /** - Triggers the `LinkView`'s routing behavior. If - `eventName` is changed to a value other than `click` - the routing behavior will trigger on that custom event - instead. - - @event click - **/ - - /** - An overridable method called when LinkView objects are instantiated. - - Example: - - ```javascript - App.MyLinkView = Ember.LinkView.extend({ - init: function() { - this._super(); - Ember.Logger.log('Event is ' + this.get('eventName')); - } - }); - ``` - - NOTE: If you do override `init` for a framework class like `Ember.View` or - `Ember.ArrayController`, be sure to call `this._super()` in your - `init` declaration! If you don't, Ember may not have an opportunity to - do important setup work, and you'll see strange behavior in your - application. - - @method init - */ - init: function() { - this._super.apply(this, arguments); - - Ember.deprecate('Using currentWhen with {{link-to}} is deprecated in favor of `current-when`.', !this.currentWhen); - - // Map desired event name to invoke function - var eventName = get(this, 'eventName'); - this.on(eventName, this, this._invoke); - }, - - /** - This method is invoked by observers installed during `init` that fire - whenever the params change - - @private - @method _paramsChanged - @since 1.3.0 - */ - _paramsChanged: function() { - this.notifyPropertyChange('resolvedParams'); - }, - - /** - This is called to setup observers that will trigger a rerender. - - @private - @method _setupPathObservers - @since 1.3.0 - **/ - _setupPathObservers: function(){ - var params = this.params; - - var scheduledRerender = this._wrapAsScheduled(this.rerender); - var scheduledParamsChanged = this._wrapAsScheduled(this._paramsChanged); - - if (this.linkTitle) { - var linkTitle = this.linkTitle.stream || this.linkTitle; - subscribe(linkTitle, scheduledRerender, this); - } - - for (var i = 0; i < params.length; i++) { - subscribe(params[i], scheduledParamsChanged, this); - } - - var queryParamsObject = this.queryParamsObject; - if (queryParamsObject) { - var values = queryParamsObject.values; - for (var k in values) { - if (!values.hasOwnProperty(k)) { - continue; - } - - subscribe(values[k], scheduledParamsChanged, this); - } - } - }, - - afterRender: function(){ - this._super.apply(this, arguments); - this._setupPathObservers(); - }, - - /** - - Accessed as a classname binding to apply the `LinkView`'s `disabledClass` - CSS `class` to the element when the link is disabled. - - When `true` interactions with the element will not trigger route changes. - @property disabled - */ - disabled: computed(function computeLinkViewDisabled(key, value) { - if (value !== undefined) { this.set('_isDisabled', value); } - - return value ? get(this, 'disabledClass') : false; - }), - - /** - Accessed as a classname binding to apply the `LinkView`'s `activeClass` - CSS `class` to the element when the link is active. - - A `LinkView` is considered active when its `currentWhen` property is `true` - or the application's current route is the route the `LinkView` would trigger - transitions into. - - The `currentWhen` property can match against multiple routes by separating - route names using the ` ` (space) character. - - @property active - **/ - active: computed('loadedParams', function computeLinkViewActive() { - if (get(this, 'loading')) { return false; } - - var router = get(this, 'router'); - var loadedParams = get(this, 'loadedParams'); - var contexts = loadedParams.models; - var currentWhen = this['current-when'] || this.currentWhen; - var isCurrentWhenSpecified = Boolean(currentWhen); - currentWhen = currentWhen || loadedParams.targetRouteName; - - function isActiveForRoute(routeName) { - var handlers = router.router.recognizer.handlersFor(routeName); - var leafName = handlers[handlers.length-1].handler; - var maximumContexts = numberOfContextsAcceptedByHandler(routeName, handlers); - - // NOTE: any ugliness in the calculation of activeness is largely - // due to the fact that we support automatic normalizing of - // `resource` -> `resource.index`, even though there might be - // dynamic segments / query params defined on `resource.index` - // which complicates (and makes somewhat ambiguous) the calculation - // of activeness for links that link to `resource` instead of - // directly to `resource.index`. - - // if we don't have enough contexts revert back to full route name - // this is because the leaf route will use one of the contexts - if (contexts.length > maximumContexts) { - routeName = leafName; - } - - var args = routeArgs(routeName, contexts, null); - var isActive = router.isActive.apply(router, args); - if (!isActive) { return false; } - - var emptyQueryParams = Ember.isEmpty(Ember.keys(loadedParams.queryParams)); - - if (!isCurrentWhenSpecified && !emptyQueryParams && isActive) { - var visibleQueryParams = {}; - merge(visibleQueryParams, loadedParams.queryParams); - router._prepareQueryParams(loadedParams.targetRouteName, loadedParams.models, visibleQueryParams); - isActive = shallowEqual(visibleQueryParams, router.router.state.queryParams); - } - - return isActive; - } - - - currentWhen = currentWhen.split(' '); - for (var i = 0, len = currentWhen.length; i < len; i++) { - if (isActiveForRoute(currentWhen[i])) { - return get(this, 'activeClass'); - } - } - }), - - /** - Accessed as a classname binding to apply the `LinkView`'s `loadingClass` - CSS `class` to the element when the link is loading. - - A `LinkView` is considered loading when it has at least one - parameter whose value is currently null or undefined. During - this time, clicking the link will perform no transition and - emit a warning that the link is still in a loading state. - - @property loading - **/ - loading: computed('loadedParams', function computeLinkViewLoading() { - if (!get(this, 'loadedParams')) { return get(this, 'loadingClass'); } - }), - - /** - Returns the application's main router from the container. - - @private - @property router - **/ - router: computed(function() { - var controller = get(this, 'controller'); - if (controller && controller.container) { - return controller.container.lookup('router:main'); - } - }), - - /** - Event handler that invokes the link, activating the associated route. - - @private - @method _invoke - @param {Event} event - */ - _invoke: function(event) { - if (!isSimpleClick(event)) { return true; } - - if (this.preventDefault !== false) { - - var targetAttribute = get(this, 'target'); - if (!targetAttribute || targetAttribute === '_self') { - event.preventDefault(); - } - } - - if (this.bubbles === false) { event.stopPropagation(); } - - if (get(this, '_isDisabled')) { return false; } - - if (get(this, 'loading')) { - Ember.Logger.warn("This link-to is in an inactive loading state because at least one of its parameters presently has a null/undefined value, or the provided route name is invalid."); - return false; - } - - - var targetAttribute2 = get(this, 'target'); - if (targetAttribute2 && targetAttribute2 !== '_self') { - return false; - } - - - var router = get(this, 'router'); - var loadedParams = get(this, 'loadedParams'); - - var transition = router._doTransition(loadedParams.targetRouteName, loadedParams.models, loadedParams.queryParams); - if (get(this, 'replace')) { - transition.method('replace'); - } - - // Schedule eager URL update, but after we've given the transition - // a chance to synchronously redirect. - // We need to always generate the URL instead of using the href because - // the href will include any rootURL set, but the router expects a URL - // without it! Note that we don't use the first level router because it - // calls location.formatURL(), which also would add the rootURL! - var args = routeArgs(loadedParams.targetRouteName, loadedParams.models, transition.state.queryParams); - var url = router.router.generate.apply(router.router, args); - - run.scheduleOnce('routerTransitions', this, this._eagerUpdateUrl, transition, url); - }, - - /** - @private - @method _eagerUpdateUrl - @param transition - @param href - */ - _eagerUpdateUrl: function(transition, href) { - if (!transition.isActive || !transition.urlMethod) { - // transition was aborted, already ran to completion, - // or it has a null url-updated method. - return; - } - - if (href.indexOf('#') === 0) { - href = href.slice(1); - } - - // Re-use the routerjs hooks set up by the Ember router. - var routerjs = get(this, 'router.router'); - if (transition.urlMethod === 'update') { - routerjs.updateURL(href); - } else if (transition.urlMethod === 'replace') { - routerjs.replaceURL(href); - } - - // Prevent later update url refire. - transition.method(null); - }, - - /** - Computed property that returns an array of the - resolved parameters passed to the `link-to` helper, - e.g.: - - ```hbs - {{link-to a b '123' c}} - ``` - - will generate a `resolvedParams` of: - - ```js - [aObject, bObject, '123', cObject] - ``` - - @private - @property - @return {Array} - */ - resolvedParams: computed('router.url', function() { - var params = this.params; - var targetRouteName; - var models = []; - var onlyQueryParamsSupplied = (params.length === 0); - - if (onlyQueryParamsSupplied) { - var appController = this.container.lookup('controller:application'); - targetRouteName = get(appController, 'currentRouteName'); - } else { - targetRouteName = read(params[0]); - - for (var i = 1; i < params.length; i++) { - models.push(read(params[i])); - } - } - - var suppliedQueryParams = getResolvedQueryParams(this, targetRouteName); - - return { - targetRouteName: targetRouteName, - models: models, - queryParams: suppliedQueryParams - }; - }), - - /** - Computed property that returns the current route name, - dynamic segments, and query params. Returns falsy if - for null/undefined params to indicate that the link view - is still in a loading state. - - @private - @property - @return {Array} An array with the route name and any dynamic segments - **/ - loadedParams: computed('resolvedParams', function computeLinkViewRouteArgs() { - var router = get(this, 'router'); - if (!router) { return; } - - var resolvedParams = get(this, 'resolvedParams'); - var namedRoute = resolvedParams.targetRouteName; - - if (!namedRoute) { return; } - - Ember.assert(fmt("The attempt to link-to route '%@' failed. " + - "The router did not find '%@' in its possible routes: '%@'", - [namedRoute, namedRoute, keys(router.router.recognizer.names).join("', '")]), - router.hasRoute(namedRoute)); - - if (!paramsAreLoaded(resolvedParams.models)) { return; } - - return resolvedParams; - }), - - queryParamsObject: null, - - /** - Sets the element's `href` attribute to the url for - the `LinkView`'s targeted route. - - If the `LinkView`'s `tagName` is changed to a value other - than `a`, this property will be ignored. - - @property href - **/ - href: computed('loadedParams', function computeLinkViewHref() { - if (get(this, 'tagName') !== 'a') { return; } - - var router = get(this, 'router'); - var loadedParams = get(this, 'loadedParams'); - - if (!loadedParams) { - return get(this, 'loadingHref'); - } - - var visibleQueryParams = {}; - merge(visibleQueryParams, loadedParams.queryParams); - router._prepareQueryParams(loadedParams.targetRouteName, loadedParams.models, visibleQueryParams); - - var args = routeArgs(loadedParams.targetRouteName, loadedParams.models, visibleQueryParams); - var result = router.generate.apply(router, args); - return result; - }), - - /** - The default href value to use while a link-to is loading. - Only applies when tagName is 'a' - - @property loadingHref - @type String - @default # - */ - loadingHref: '#' - }); - - LinkView.toString = function() { return "LinkView"; }; - - - LinkView.reopen({ - attributeBindings: ['target'], - - /** - Sets the `target` attribute of the `LinkView`'s anchor element. - - @property target - @default null - **/ - target: null - }); - - - function getResolvedQueryParams(linkView, targetRouteName) { - var queryParamsObject = linkView.queryParamsObject; - var resolvedQueryParams = {}; - - if (!queryParamsObject) { return resolvedQueryParams; } - - var values = queryParamsObject.values; - for (var key in values) { - if (!values.hasOwnProperty(key)) { continue; } - resolvedQueryParams[key] = read(values[key]); - } - - return resolvedQueryParams; - } - - function paramsAreLoaded(params) { - for (var i = 0, len = params.length; i < len; ++i) { - var param = params[i]; - if (param === null || typeof param === 'undefined') { - return false; - } - } - return true; - } - - function shallowEqual(a, b) { - var k; - for (k in a) { - if (a.hasOwnProperty(k) && a[k] !== b[k]) { return false; } - } - for (k in b) { - if (b.hasOwnProperty(k) && a[k] !== b[k]) { return false; } - } - return true; - } - - __exports__.LinkView = LinkView; - }); -enifed("ember-routing-views/views/outlet", - ["ember-views/views/container_view","ember-views/views/metamorph_view","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-routing-views - */ - - var ContainerView = __dependency1__["default"]; - var _Metamorph = __dependency2__._Metamorph; - - var OutletView = ContainerView.extend(_Metamorph); - __exports__.OutletView = OutletView; - }); -enifed("ember-routing", - ["ember-metal/core","ember-routing/ext/run_loop","ember-routing/ext/controller","ember-routing/ext/view","ember-routing/location/api","ember-routing/location/none_location","ember-routing/location/hash_location","ember-routing/location/history_location","ember-routing/location/auto_location","ember-routing/system/generate_controller","ember-routing/system/controller_for","ember-routing/system/dsl","ember-routing/system/router","ember-routing/system/route","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __exports__) { - "use strict"; - /** - Ember Routing - - @module ember - @submodule ember-routing - @requires ember-views - */ - - var Ember = __dependency1__["default"]; - - // ES6TODO: Cleanup modules with side-effects below - - var EmberLocation = __dependency5__["default"]; - var NoneLocation = __dependency6__["default"]; - var HashLocation = __dependency7__["default"]; - var HistoryLocation = __dependency8__["default"]; - var AutoLocation = __dependency9__["default"]; - - var generateControllerFactory = __dependency10__.generateControllerFactory; - var generateController = __dependency10__["default"]; - var controllerFor = __dependency11__["default"]; - var RouterDSL = __dependency12__["default"]; - var Router = __dependency13__["default"]; - var Route = __dependency14__["default"]; - - Ember.Location = EmberLocation; - Ember.AutoLocation = AutoLocation; - Ember.HashLocation = HashLocation; - Ember.HistoryLocation = HistoryLocation; - Ember.NoneLocation = NoneLocation; - - Ember.controllerFor = controllerFor; - Ember.generateControllerFactory = generateControllerFactory; - Ember.generateController = generateController; - Ember.RouterDSL = RouterDSL; - Ember.Router = Router; - Ember.Route = Route; - - __exports__["default"] = Ember; - }); -enifed("ember-routing/ext/controller", - ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/computed","ember-metal/utils","ember-metal/merge","ember-runtime/mixins/controller","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // FEATURES, deprecate - var get = __dependency2__.get; - var set = __dependency3__.set; - var computed = __dependency4__.computed; - var typeOf = __dependency5__.typeOf; - var meta = __dependency5__.meta; - var merge = __dependency6__["default"]; - - var ControllerMixin = __dependency7__["default"]; - - /** - @module ember - @submodule ember-routing - */ - - ControllerMixin.reopen({ - concatenatedProperties: ['queryParams', '_pCacheMeta'], - - init: function() { - this._super.apply(this, arguments); - listenForQueryParamChanges(this); - }, - - /** - Defines which query parameters the controller accepts. - If you give the names ['category','page'] it will bind - the values of these query parameters to the variables - `this.category` and `this.page` - - @property queryParams - @public - */ - queryParams: null, - - /** - @property _qpDelegate - @private - */ - _qpDelegate: null, - - /** - @property _normalizedQueryParams - @private - */ - _normalizedQueryParams: computed(function() { - var m = meta(this); - if (m.proto !== this) { - return get(m.proto, '_normalizedQueryParams'); - } - - var queryParams = get(this, 'queryParams'); - if (queryParams._qpMap) { - return queryParams._qpMap; - } - - var qpMap = queryParams._qpMap = {}; - - for (var i = 0, len = queryParams.length; i < len; ++i) { - accumulateQueryParamDescriptors(queryParams[i], qpMap); - } - - return qpMap; - }), - - /** - @property _cacheMeta - @private - */ - _cacheMeta: computed(function() { - var m = meta(this); - if (m.proto !== this) { - return get(m.proto, '_cacheMeta'); - } - - var cacheMeta = {}; - var qpMap = get(this, '_normalizedQueryParams'); - for (var prop in qpMap) { - if (!qpMap.hasOwnProperty(prop)) { continue; } - - var qp = qpMap[prop]; - var scope = qp.scope; - var parts; - - if (scope === 'controller') { - parts = []; - } - - cacheMeta[prop] = { - parts: parts, // provided by route if 'model' scope - values: null, // provided by route - scope: scope, - prefix: "", - def: get(this, prop) - }; - } - - return cacheMeta; - }), - - /** - @method _updateCacheParams - @private - */ - _updateCacheParams: function(params) { - var cacheMeta = get(this, '_cacheMeta'); - for (var prop in cacheMeta) { - if (!cacheMeta.hasOwnProperty(prop)) { continue; } - var propMeta = cacheMeta[prop]; - propMeta.values = params; - - var cacheKey = this._calculateCacheKey(propMeta.prefix, propMeta.parts, propMeta.values); - var cache = this._bucketCache; - - if (cache) { - var value = cache.lookup(cacheKey, prop, propMeta.def); - set(this, prop, value); - } - } - }, - - /** - @method _qpChanged - @private - */ - _qpChanged: function(controller, _prop) { - var prop = _prop.substr(0, _prop.length-3); - var cacheMeta = get(controller, '_cacheMeta'); - var propCache = cacheMeta[prop]; - var cacheKey = controller._calculateCacheKey(propCache.prefix || "", propCache.parts, propCache.values); - var value = get(controller, prop); - - // 1. Update model-dep cache - var cache = this._bucketCache; - if (cache) { - controller._bucketCache.stash(cacheKey, prop, value); - } - - // 2. Notify a delegate (e.g. to fire a qp transition) - var delegate = controller._qpDelegate; - if (delegate) { - delegate(controller, prop); - } - }, - - /** - @method _calculateCacheKey - @private - */ - _calculateCacheKey: function(prefix, _parts, values) { - var parts = _parts || [], suffixes = ""; - for (var i = 0, len = parts.length; i < len; ++i) { - var part = parts[i]; - var value = get(values, part); - suffixes += "::" + part + ":" + value; - } - return prefix + suffixes.replace(ALL_PERIODS_REGEX, '-'); - }, - - /** - Transition the application into another route. The route may - be either a single route or route path: - - ```javascript - aController.transitionToRoute('blogPosts'); - aController.transitionToRoute('blogPosts.recentEntries'); - ``` - - Optionally supply a model for the route in question. The model - will be serialized into the URL using the `serialize` hook of - the route: - - ```javascript - aController.transitionToRoute('blogPost', aPost); - ``` - - If a literal is passed (such as a number or a string), it will - be treated as an identifier instead. In this case, the `model` - hook of the route will be triggered: - - ```javascript - aController.transitionToRoute('blogPost', 1); - ``` - - Multiple models will be applied last to first recursively up the - resource tree. - - ```javascript - App.Router.map(function() { - this.resource('blogPost', {path:':blogPostId'}, function(){ - this.resource('blogComment', {path: ':blogCommentId'}); - }); - }); - - aController.transitionToRoute('blogComment', aPost, aComment); - aController.transitionToRoute('blogComment', 1, 13); - ``` - - It is also possible to pass a URL (a string that starts with a - `/`). This is intended for testing and debugging purposes and - should rarely be used in production code. - - ```javascript - aController.transitionToRoute('/'); - aController.transitionToRoute('/blog/post/1/comment/13'); - aController.transitionToRoute('/blog/posts?sort=title'); - ``` - - An options hash with a `queryParams` property may be provided as - the final argument to add query parameters to the destination URL. - - ```javascript - aController.transitionToRoute('blogPost', 1, { - queryParams: {showComments: 'true'} - }); - - // if you just want to transition the query parameters without changing the route - aController.transitionToRoute({queryParams: {sort: 'date'}}); - ``` - - See also [replaceRoute](/api/classes/Ember.ControllerMixin.html#method_replaceRoute). - - @param {String} name the name of the route or a URL - @param {...Object} models the model(s) or identifier(s) to be used - while transitioning to the route. - @param {Object} [options] optional hash with a queryParams property - containing a mapping of query parameters - @for Ember.ControllerMixin - @method transitionToRoute - */ - transitionToRoute: function() { - // target may be either another controller or a router - var target = get(this, 'target'); - var method = target.transitionToRoute || target.transitionTo; - return method.apply(target, arguments); - }, - - /** - @deprecated - @for Ember.ControllerMixin - @method transitionTo - */ - transitionTo: function() { - Ember.deprecate("transitionTo is deprecated. Please use transitionToRoute."); - return this.transitionToRoute.apply(this, arguments); - }, - - /** - Transition into another route while replacing the current URL, if possible. - This will replace the current history entry instead of adding a new one. - Beside that, it is identical to `transitionToRoute` in all other respects. - - ```javascript - aController.replaceRoute('blogPosts'); - aController.replaceRoute('blogPosts.recentEntries'); - ``` - - Optionally supply a model for the route in question. The model - will be serialized into the URL using the `serialize` hook of - the route: - - ```javascript - aController.replaceRoute('blogPost', aPost); - ``` - - If a literal is passed (such as a number or a string), it will - be treated as an identifier instead. In this case, the `model` - hook of the route will be triggered: - - ```javascript - aController.replaceRoute('blogPost', 1); - ``` - - Multiple models will be applied last to first recursively up the - resource tree. - - ```javascript - App.Router.map(function() { - this.resource('blogPost', {path:':blogPostId'}, function(){ - this.resource('blogComment', {path: ':blogCommentId'}); - }); - }); - - aController.replaceRoute('blogComment', aPost, aComment); - aController.replaceRoute('blogComment', 1, 13); - ``` - - It is also possible to pass a URL (a string that starts with a - `/`). This is intended for testing and debugging purposes and - should rarely be used in production code. - - ```javascript - aController.replaceRoute('/'); - aController.replaceRoute('/blog/post/1/comment/13'); - ``` - - @param {String} name the name of the route or a URL - @param {...Object} models the model(s) or identifier(s) to be used - while transitioning to the route. - @for Ember.ControllerMixin - @method replaceRoute - */ - replaceRoute: function() { - // target may be either another controller or a router - var target = get(this, 'target'); - var method = target.replaceRoute || target.replaceWith; - return method.apply(target, arguments); - }, - - /** - @deprecated - @for Ember.ControllerMixin - @method replaceWith - */ - replaceWith: function() { - Ember.deprecate("replaceWith is deprecated. Please use replaceRoute."); - return this.replaceRoute.apply(this, arguments); - } - }); - - var ALL_PERIODS_REGEX = /\./g; - - function accumulateQueryParamDescriptors(_desc, accum) { - var desc = _desc; - var tmp; - if (typeOf(desc) === 'string') { - tmp = {}; - tmp[desc] = { as: null }; - desc = tmp; - } - - for (var key in desc) { - if (!desc.hasOwnProperty(key)) { return; } - - var singleDesc = desc[key]; - if (typeOf(singleDesc) === 'string') { - singleDesc = { as: singleDesc }; - } - - tmp = accum[key] || { as: null, scope: 'model' }; - merge(tmp, singleDesc); - - accum[key] = tmp; - } - } - - function listenForQueryParamChanges(controller) { - var qpMap = get(controller, '_normalizedQueryParams'); - for (var prop in qpMap) { - if (!qpMap.hasOwnProperty(prop)) { continue; } - controller.addObserver(prop + '.[]', controller, controller._qpChanged); - } - } - - - __exports__["default"] = ControllerMixin; - }); -enifed("ember-routing/ext/run_loop", - ["ember-metal/run_loop"], - function(__dependency1__) { - "use strict"; - var run = __dependency1__["default"]; - - /** - @module ember - @submodule ember-views - */ - - // Add a new named queue after the 'actions' queue (where RSVP promises - // resolve), which is used in router transitions to prevent unnecessary - // loading state entry if all context promises resolve on the - // 'actions' queue first. - run._addQueue('routerTransitions', 'actions'); - }); -enifed("ember-routing/ext/view", - ["ember-metal/property_get","ember-metal/property_set","ember-metal/run_loop","ember-views/views/view","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var get = __dependency1__.get; - var set = __dependency2__.set; - var run = __dependency3__["default"]; - var EmberView = __dependency4__["default"]; - - /** - @module ember - @submodule ember-routing - */ - - EmberView.reopen({ - - /** - Sets the private `_outlets` object on the view. - - @method init - */ - init: function() { - this._outlets = {}; - this._super(); - }, - - /** - Manually fill any of a view's `{{outlet}}` areas with the - supplied view. - - Example - - ```javascript - var MyView = Ember.View.extend({ - template: Ember.Handlebars.compile('Child view: {{outlet "main"}} ') - }); - var myView = MyView.create(); - myView.appendTo('body'); - // The html for myView now looks like: - //
    Child view:
    - - var FooView = Ember.View.extend({ - template: Ember.Handlebars.compile('

    Foo

    ') - }); - var fooView = FooView.create(); - myView.connectOutlet('main', fooView); - // The html for myView now looks like: - //
    Child view: - //

    Foo

    - //
    - ``` - @method connectOutlet - @param {String} outletName A unique name for the outlet - @param {Object} view An Ember.View - */ - connectOutlet: function(outletName, view) { - if (this._pendingDisconnections) { - delete this._pendingDisconnections[outletName]; - } - - if (this._hasEquivalentView(outletName, view)) { - view.destroy(); - return; - } - - var outlets = get(this, '_outlets'); - var container = get(this, 'container'); - var router = container && container.lookup('router:main'); - var renderedName = get(view, 'renderedName'); - - set(outlets, outletName, view); - - if (router && renderedName) { - router._connectActiveView(renderedName, view); - } - }, - - /** - Determines if the view has already been created by checking if - the view has the same constructor, template, and context as the - view in the `_outlets` object. - - @private - @method _hasEquivalentView - @param {String} outletName The name of the outlet we are checking - @param {Object} view An Ember.View - @return {Boolean} - */ - _hasEquivalentView: function(outletName, view) { - var existingView = get(this, '_outlets.'+outletName); - return existingView && - existingView.constructor === view.constructor && - existingView.get('template') === view.get('template') && - existingView.get('context') === view.get('context'); - }, - - /** - Removes an outlet from the view. - - Example - - ```javascript - var MyView = Ember.View.extend({ - template: Ember.Handlebars.compile('Child view: {{outlet "main"}} ') - }); - var myView = MyView.create(); - myView.appendTo('body'); - // myView's html: - //
    Child view:
    - - var FooView = Ember.View.extend({ - template: Ember.Handlebars.compile('

    Foo

    ') - }); - var fooView = FooView.create(); - myView.connectOutlet('main', fooView); - // myView's html: - //
    Child view: - //

    Foo

    - //
    - - myView.disconnectOutlet('main'); - // myView's html: - //
    Child view:
    - ``` - - @method disconnectOutlet - @param {String} outletName The name of the outlet to be removed - */ - disconnectOutlet: function(outletName) { - if (!this._pendingDisconnections) { - this._pendingDisconnections = {}; - } - this._pendingDisconnections[outletName] = true; - run.once(this, '_finishDisconnections'); - }, - - /** - Gets an outlet that is pending disconnection and then - nullifys the object on the `_outlet` object. - - @private - @method _finishDisconnections - */ - _finishDisconnections: function() { - if (this.isDestroyed) return; // _outlets will be gone anyway - var outlets = get(this, '_outlets'); - var pendingDisconnections = this._pendingDisconnections; - this._pendingDisconnections = null; - - for (var outletName in pendingDisconnections) { - set(outlets, outletName, null); - } - } - }); - - __exports__["default"] = EmberView; - }); -enifed("ember-routing/location/api", - ["ember-metal/core","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // deprecate, assert - - /** - @module ember - @submodule ember-routing - */ - - /** - Ember.Location returns an instance of the correct implementation of - the `location` API. - - ## Implementations - - You can pass an implementation name (`hash`, `history`, `none`) to force a - particular implementation to be used in your application. - - ### HashLocation - - Using `HashLocation` results in URLs with a `#` (hash sign) separating the - server side URL portion of the URL from the portion that is used by Ember. - This relies upon the `hashchange` event existing in the browser. - - Example: - - ```javascript - App.Router.map(function() { - this.resource('posts', function() { - this.route('new'); - }); - }); - - App.Router.reopen({ - location: 'hash' - }); - ``` - - This will result in a posts.new url of `/#/posts/new`. - - ### HistoryLocation - - Using `HistoryLocation` results in URLs that are indistinguishable from a - standard URL. This relies upon the browser's `history` API. - - Example: - - ```javascript - App.Router.map(function() { - this.resource('posts', function() { - this.route('new'); - }); - }); - - App.Router.reopen({ - location: 'history' - }); - ``` - - This will result in a posts.new url of `/posts/new`. - - Keep in mind that your server must serve the Ember app at all the routes you - define. - - ### AutoLocation - - Using `AutoLocation`, the router will use the best Location class supported by - the browser it is running in. - - Browsers that support the `history` API will use `HistoryLocation`, those that - do not, but still support the `hashchange` event will use `HashLocation`, and - in the rare case neither is supported will use `NoneLocation`. - - Example: - - ```javascript - App.Router.map(function() { - this.resource('posts', function() { - this.route('new'); - }); - }); - - App.Router.reopen({ - location: 'auto' - }); - ``` - - This will result in a posts.new url of `/posts/new` for modern browsers that - support the `history` api or `/#/posts/new` for older ones, like Internet - Explorer 9 and below. - - When a user visits a link to your application, they will be automatically - upgraded or downgraded to the appropriate `Location` class, with the URL - transformed accordingly, if needed. - - Keep in mind that since some of your users will use `HistoryLocation`, your - server must serve the Ember app at all the routes you define. - - ### NoneLocation - - Using `NoneLocation` causes Ember to not store the applications URL state - in the actual URL. This is generally used for testing purposes, and is one - of the changes made when calling `App.setupForTesting()`. - - ## Location API - - Each location implementation must provide the following methods: - - * implementation: returns the string name used to reference the implementation. - * getURL: returns the current URL. - * setURL(path): sets the current URL. - * replaceURL(path): replace the current URL (optional). - * onUpdateURL(callback): triggers the callback when the URL changes. - * formatURL(url): formats `url` to be placed into `href` attribute. - - Calling setURL or replaceURL will not trigger onUpdateURL callbacks. - - @class Location - @namespace Ember - @static - */ - __exports__["default"] = { - /** - This is deprecated in favor of using the container to lookup the location - implementation as desired. - - For example: - - ```javascript - // Given a location registered as follows: - container.register('location:history-test', HistoryTestLocation); - - // You could create a new instance via: - container.lookup('location:history-test'); - ``` - - @method create - @param {Object} options - @return {Object} an instance of an implementation of the `location` API - @deprecated Use the container to lookup the location implementation that you - need. - */ - create: function(options) { - var implementation = options && options.implementation; - Ember.assert("Ember.Location.create: you must specify a 'implementation' option", !!implementation); - - var implementationClass = this.implementations[implementation]; - Ember.assert("Ember.Location.create: " + implementation + " is not a valid implementation", !!implementationClass); - - return implementationClass.create.apply(implementationClass, arguments); - }, - - /** - This is deprecated in favor of using the container to register the - location implementation as desired. - - Example: - - ```javascript - Application.initializer({ - name: "history-test-location", - - initialize: function(container, application) { - application.register('location:history-test', HistoryTestLocation); - } - }); - ``` - - @method registerImplementation - @param {String} name - @param {Object} implementation of the `location` API - @deprecated Register your custom location implementation with the - container directly. - */ - registerImplementation: function(name, implementation) { - Ember.deprecate('Using the Ember.Location.registerImplementation is no longer supported.' + - ' Register your custom location implementation with the container instead.', false); - - this.implementations[name] = implementation; - }, - - implementations: {}, - _location: window.location, - - /** - Returns the current `location.hash` by parsing location.href since browsers - inconsistently URL-decode `location.hash`. - - https://bugzilla.mozilla.org/show_bug.cgi?id=483304 - - @private - @method getHash - @since 1.4.0 - */ - _getHash: function () { - // AutoLocation has it at _location, HashLocation at .location. - // Being nice and not changing - var href = (this._location || this.location).href; - var hashIndex = href.indexOf('#'); - - if (hashIndex === -1) { - return ''; - } else { - return href.substr(hashIndex); - } - } - }; - }); -enifed("ember-routing/location/auto_location", - ["ember-metal/core","ember-metal/property_set","ember-routing/location/api","ember-routing/location/history_location","ember-routing/location/hash_location","ember-routing/location/none_location","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // FEATURES - var set = __dependency2__.set; - - var EmberLocation = __dependency3__["default"]; - var HistoryLocation = __dependency4__["default"]; - var HashLocation = __dependency5__["default"]; - var NoneLocation = __dependency6__["default"]; - - /** - @module ember - @submodule ember-routing - */ - - /** - Ember.AutoLocation will select the best location option based off browser - support with the priority order: history, hash, none. - - Clean pushState paths accessed by hashchange-only browsers will be redirected - to the hash-equivalent and vice versa so future transitions are consistent. - - Keep in mind that since some of your users will use `HistoryLocation`, your - server must serve the Ember app at all the routes you define. - - @class AutoLocation - @namespace Ember - @static - */ - __exports__["default"] = { - - /** - @private - - This property is used by router:main to know whether to cancel the routing - setup process, which is needed while we redirect the browser. - - @since 1.5.1 - @property cancelRouterSetup - @default false - */ - cancelRouterSetup: false, - - /** - @private - - Will be pre-pended to path upon state change. - - @since 1.5.1 - @property rootURL - @default '/' - */ - rootURL: '/', - - /** - @private - - Attached for mocking in tests - - @since 1.5.1 - @property _window - @default window - */ - _window: window, - - /** - @private - - Attached for mocking in tests - - @property location - @default window.location - */ - _location: window.location, - - /** - @private - - Attached for mocking in tests - - @since 1.5.1 - @property _history - @default window.history - */ - _history: window.history, - - /** - @private - - Attached for mocking in tests - - @since 1.5.1 - @property _HistoryLocation - @default Ember.HistoryLocation - */ - _HistoryLocation: HistoryLocation, - - /** - @private - - Attached for mocking in tests - - @since 1.5.1 - @property _HashLocation - @default Ember.HashLocation - */ - _HashLocation: HashLocation, - - /** - @private - - Attached for mocking in tests - - @since 1.5.1 - @property _NoneLocation - @default Ember.NoneLocation - */ - _NoneLocation: NoneLocation, - - /** - @private - - Returns location.origin or builds it if device doesn't support it. - - @method _getOrigin - */ - _getOrigin: function () { - var location = this._location; - var origin = location.origin; - - // Older browsers, especially IE, don't have origin - if (!origin) { - origin = location.protocol + '//' + location.hostname; - - if (location.port) { - origin += ':' + location.port; - } - } - - return origin; - }, - - /** - @private - - We assume that if the history object has a pushState method, the host should - support HistoryLocation. - - @method _getSupportsHistory - */ - _getSupportsHistory: function () { - // Boosted from Modernizr: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js - // The stock browser on Android 2.2 & 2.3 returns positive on history support - // Unfortunately support is really buggy and there is no clean way to detect - // these bugs, so we fall back to a user agent sniff :( - var userAgent = this._window.navigator.userAgent; - - // We only want Android 2, stock browser, and not Chrome which identifies - // itself as 'Mobile Safari' as well - if (userAgent.indexOf('Android 2') !== -1 && - userAgent.indexOf('Mobile Safari') !== -1 && - userAgent.indexOf('Chrome') === -1) { - return false; - } - - return !!(this._history && 'pushState' in this._history); - }, - - /** - @private - - IE8 running in IE7 compatibility mode gives false positive, so we must also - check documentMode. - - @method _getSupportsHashChange - */ - _getSupportsHashChange: function () { - var _window = this._window; - var documentMode = _window.document.documentMode; - - return ('onhashchange' in _window && (documentMode === undefined || documentMode > 7 )); - }, - - /** - @private - - Redirects the browser using location.replace, prepending the locatin.origin - to prevent phishing attempts - - @method _replacePath - */ - _replacePath: function (path) { - this._location.replace(this._getOrigin() + path); - }, - - /** - @since 1.5.1 - @private - @method _getRootURL - */ - _getRootURL: function () { - return this.rootURL; - }, - - /** - @private - - Returns the current `location.pathname`, normalized for IE inconsistencies. - - @method _getPath - */ - _getPath: function () { - var pathname = this._location.pathname; - // Various versions of IE/Opera don't always return a leading slash - if (pathname.charAt(0) !== '/') { - pathname = '/' + pathname; - } - - return pathname; - }, - - /** - @private - - Returns normalized location.hash as an alias to Ember.Location._getHash - - @since 1.5.1 - @method _getHash - */ - _getHash: EmberLocation._getHash, - - /** - @private - - Returns location.search - - @since 1.5.1 - @method _getQuery - */ - _getQuery: function () { - return this._location.search; - }, - - /** - @private - - Returns the full pathname including query and hash - - @method _getFullPath - */ - _getFullPath: function () { - return this._getPath() + this._getQuery() + this._getHash(); - }, - - /** - @private - - Returns the current path as it should appear for HistoryLocation supported - browsers. This may very well differ from the real current path (e.g. if it - starts off as a hashed URL) - - @method _getHistoryPath - */ - _getHistoryPath: function () { - var rootURL = this._getRootURL(); - var path = this._getPath(); - var hash = this._getHash(); - var query = this._getQuery(); - var rootURLIndex = path.indexOf(rootURL); - var routeHash, hashParts; - - Ember.assert('Path ' + path + ' does not start with the provided rootURL ' + rootURL, rootURLIndex === 0); - - // By convention, Ember.js routes using HashLocation are required to start - // with `#/`. Anything else should NOT be considered a route and should - // be passed straight through, without transformation. - if (hash.substr(0, 2) === '#/') { - // There could be extra hash segments after the route - hashParts = hash.substr(1).split('#'); - // The first one is always the route url - routeHash = hashParts.shift(); - - // If the path already has a trailing slash, remove the one - // from the hashed route so we don't double up. - if (path.slice(-1) === '/') { - routeHash = routeHash.substr(1); - } - - // This is the "expected" final order - path += routeHash; - path += query; - - if (hashParts.length) { - path += '#' + hashParts.join('#'); - } - } else { - path += query; - path += hash; - } - - return path; - }, - - /** - @private - - Returns the current path as it should appear for HashLocation supported - browsers. This may very well differ from the real current path. - - @method _getHashPath - */ - _getHashPath: function () { - var rootURL = this._getRootURL(); - var path = rootURL; - var historyPath = this._getHistoryPath(); - var routePath = historyPath.substr(rootURL.length); - - if (routePath !== '') { - if (routePath.charAt(0) !== '/') { - routePath = '/' + routePath; - } - - path += '#' + routePath; - } - - return path; - }, - - /** - Selects the best location option based off browser support and returns an - instance of that Location class. - - @see Ember.AutoLocation - @method create - */ - create: function (options) { - if (options && options.rootURL) { - Ember.assert('rootURL must end with a trailing forward slash e.g. "/app/"', - options.rootURL.charAt(options.rootURL.length-1) === '/'); - this.rootURL = options.rootURL; - } - - var historyPath, hashPath; - var cancelRouterSetup = false; - var implementationClass = this._NoneLocation; - var currentPath = this._getFullPath(); - - if (this._getSupportsHistory()) { - historyPath = this._getHistoryPath(); - - // Since we support history paths, let's be sure we're using them else - // switch the location over to it. - if (currentPath === historyPath) { - implementationClass = this._HistoryLocation; - } else { - - if (currentPath.substr(0, 2) === '/#') { - this._history.replaceState({ path: historyPath }, null, historyPath); - implementationClass = this._HistoryLocation; - } else { - cancelRouterSetup = true; - this._replacePath(historyPath); - } - } - - } else if (this._getSupportsHashChange()) { - hashPath = this._getHashPath(); - - // Be sure we're using a hashed path, otherwise let's switch over it to so - // we start off clean and consistent. We'll count an index path with no - // hash as "good enough" as well. - if (currentPath === hashPath || (currentPath === '/' && hashPath === '/#/')) { - implementationClass = this._HashLocation; - } else { - // Our URL isn't in the expected hash-supported format, so we want to - // cancel the router setup and replace the URL to start off clean - cancelRouterSetup = true; - this._replacePath(hashPath); - } - } - - var implementation = implementationClass.create.apply(implementationClass, arguments); - - if (cancelRouterSetup) { - set(implementation, 'cancelRouterSetup', true); - } - - return implementation; - } - }; - }); -enifed("ember-routing/location/hash_location", - ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/run_loop","ember-metal/utils","ember-runtime/system/object","ember-routing/location/api","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - var get = __dependency2__.get; - var set = __dependency3__.set; - var run = __dependency4__["default"]; - var guidFor = __dependency5__.guidFor; - - var EmberObject = __dependency6__["default"]; - var EmberLocation = __dependency7__["default"]; - - /** - @module ember - @submodule ember-routing - */ - - /** - `Ember.HashLocation` implements the location API using the browser's - hash. At present, it relies on a `hashchange` event existing in the - browser. - - @class HashLocation - @namespace Ember - @extends Ember.Object - */ - __exports__["default"] = EmberObject.extend({ - implementation: 'hash', - - init: function() { - set(this, 'location', get(this, '_location') || window.location); - }, - - /** - @private - - Returns normalized location.hash - - @since 1.5.1 - @method getHash - */ - getHash: EmberLocation._getHash, - - /** - Returns the normalized URL, constructed from `location.hash`. - - e.g. `#/foo` => `/foo` as well as `#/foo#bar` => `/foo#bar`. - - By convention, hashed paths must begin with a forward slash, otherwise they - are not treated as a path so we can distinguish intent. - - @private - @method getURL - */ - getURL: function() { - var originalPath = this.getHash().substr(1); - var outPath = originalPath; - - if (outPath.charAt(0) !== '/') { - outPath = '/'; - - // Only add the # if the path isn't empty. - // We do NOT want `/#` since the ampersand - // is only included (conventionally) when - // the location.hash has a value - if (originalPath) { - outPath += '#' + originalPath; - } - } - - return outPath; - }, - - /** - Set the `location.hash` and remembers what was set. This prevents - `onUpdateURL` callbacks from triggering when the hash was set by - `HashLocation`. - - @private - @method setURL - @param path {String} - */ - setURL: function(path) { - get(this, 'location').hash = path; - set(this, 'lastSetURL', path); - }, - - /** - Uses location.replace to update the url without a page reload - or history modification. - - @private - @method replaceURL - @param path {String} - */ - replaceURL: function(path) { - get(this, 'location').replace('#' + path); - set(this, 'lastSetURL', path); - }, - - /** - Register a callback to be invoked when the hash changes. These - callbacks will execute when the user presses the back or forward - button, but not after `setURL` is invoked. - - @private - @method onUpdateURL - @param callback {Function} - */ - onUpdateURL: function(callback) { - var self = this; - var guid = guidFor(this); - - Ember.$(window).on('hashchange.ember-location-'+guid, function() { - run(function() { - var path = self.getURL(); - if (get(self, 'lastSetURL') === path) { return; } - - set(self, 'lastSetURL', null); - - callback(path); - }); - }); - }, - - /** - Given a URL, formats it to be placed into the page as part - of an element's `href` attribute. - - This is used, for example, when using the {{action}} helper - to generate a URL based on an event. - - @private - @method formatURL - @param url {String} - */ - formatURL: function(url) { - return '#' + url; - }, - - /** - Cleans up the HashLocation event listener. - - @private - @method willDestroy - */ - willDestroy: function() { - var guid = guidFor(this); - - Ember.$(window).off('hashchange.ember-location-'+guid); - } - }); - }); -enifed("ember-routing/location/history_location", - ["ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-runtime/system/object","ember-routing/location/api","ember-views/system/jquery","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) { - "use strict"; - var get = __dependency1__.get; - var set = __dependency2__.set; - var guidFor = __dependency3__.guidFor; - - var EmberObject = __dependency4__["default"]; - var EmberLocation = __dependency5__["default"]; - var jQuery = __dependency6__["default"]; - - /** - @module ember - @submodule ember-routing - */ - - var popstateFired = false; - var supportsHistoryState = window.history && 'state' in window.history; - - /** - Ember.HistoryLocation implements the location API using the browser's - history.pushState API. - - @class HistoryLocation - @namespace Ember - @extends Ember.Object - */ - __exports__["default"] = EmberObject.extend({ - implementation: 'history', - - init: function() { - set(this, 'location', get(this, 'location') || window.location); - set(this, 'baseURL', jQuery('base').attr('href') || ''); - }, - - /** - Used to set state on first call to setURL - - @private - @method initState - */ - initState: function() { - set(this, 'history', get(this, 'history') || window.history); - this.replaceState(this.formatURL(this.getURL())); - }, - - /** - Will be pre-pended to path upon state change - - @property rootURL - @default '/' - */ - rootURL: '/', - - /** - Returns the current `location.pathname` without `rootURL` or `baseURL` - - @private - @method getURL - @return url {String} - */ - getURL: function() { - var rootURL = get(this, 'rootURL'); - var location = get(this, 'location'); - var path = location.pathname; - var baseURL = get(this, 'baseURL'); - - rootURL = rootURL.replace(/\/$/, ''); - baseURL = baseURL.replace(/\/$/, ''); - - var url = path.replace(baseURL, '').replace(rootURL, ''); - var search = location.search || ''; - - url += search; - url += this.getHash(); - - return url; - }, - - /** - Uses `history.pushState` to update the url without a page reload. - - @private - @method setURL - @param path {String} - */ - setURL: function(path) { - var state = this.getState(); - path = this.formatURL(path); - - if (!state || state.path !== path) { - this.pushState(path); - } - }, - - /** - Uses `history.replaceState` to update the url without a page reload - or history modification. - - @private - @method replaceURL - @param path {String} - */ - replaceURL: function(path) { - var state = this.getState(); - path = this.formatURL(path); - - if (!state || state.path !== path) { - this.replaceState(path); - } - }, - - /** - Get the current `history.state`. Checks for if a polyfill is - required and if so fetches this._historyState. The state returned - from getState may be null if an iframe has changed a window's - history. - - @private - @method getState - @return state {Object} - */ - getState: function() { - return supportsHistoryState ? get(this, 'history').state : this._historyState; - }, - - /** - Pushes a new state. - - @private - @method pushState - @param path {String} - */ - pushState: function(path) { - var state = { path: path }; - - get(this, 'history').pushState(state, null, path); - - // store state if browser doesn't support `history.state` - if (!supportsHistoryState) { - this._historyState = state; - } - - // used for webkit workaround - this._previousURL = this.getURL(); - }, - - /** - Replaces the current state. - - @private - @method replaceState - @param path {String} - */ - replaceState: function(path) { - var state = { path: path }; - get(this, 'history').replaceState(state, null, path); - - // store state if browser doesn't support `history.state` - if (!supportsHistoryState) { - this._historyState = state; - } - - // used for webkit workaround - this._previousURL = this.getURL(); - }, - - /** - Register a callback to be invoked whenever the browser - history changes, including using forward and back buttons. - - @private - @method onUpdateURL - @param callback {Function} - */ - onUpdateURL: function(callback) { - var guid = guidFor(this); - var self = this; - - jQuery(window).on('popstate.ember-location-'+guid, function(e) { - // Ignore initial page load popstate event in Chrome - if (!popstateFired) { - popstateFired = true; - if (self.getURL() === self._previousURL) { return; } - } - callback(self.getURL()); - }); - }, - - /** - Used when using `{{action}}` helper. The url is always appended to the rootURL. - - @private - @method formatURL - @param url {String} - @return formatted url {String} - */ - formatURL: function(url) { - var rootURL = get(this, 'rootURL'); - var baseURL = get(this, 'baseURL'); - - if (url !== '') { - rootURL = rootURL.replace(/\/$/, ''); - baseURL = baseURL.replace(/\/$/, ''); - } else if(baseURL.match(/^\//) && rootURL.match(/^\//)) { - baseURL = baseURL.replace(/\/$/, ''); - } - - return baseURL + rootURL + url; - }, - - /** - Cleans up the HistoryLocation event listener. - - @private - @method willDestroy - */ - willDestroy: function() { - var guid = guidFor(this); - - jQuery(window).off('popstate.ember-location-'+guid); - }, - - /** - @private - - Returns normalized location.hash - - @method getHash - */ - getHash: EmberLocation._getHash - }); - }); -enifed("ember-routing/location/none_location", - ["ember-metal/property_get","ember-metal/property_set","ember-runtime/system/object","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var get = __dependency1__.get; - var set = __dependency2__.set; - var EmberObject = __dependency3__["default"]; - - /** - @module ember - @submodule ember-routing - */ - - /** - Ember.NoneLocation does not interact with the browser. It is useful for - testing, or when you need to manage state with your Router, but temporarily - don't want it to muck with the URL (for example when you embed your - application in a larger page). - - @class NoneLocation - @namespace Ember - @extends Ember.Object - */ - __exports__["default"] = EmberObject.extend({ - implementation: 'none', - path: '', - - /** - Returns the current path. - - @private - @method getURL - @return {String} path - */ - getURL: function() { - return get(this, 'path'); - }, - - /** - Set the path and remembers what was set. Using this method - to change the path will not invoke the `updateURL` callback. - - @private - @method setURL - @param path {String} - */ - setURL: function(path) { - set(this, 'path', path); - }, - - /** - Register a callback to be invoked when the path changes. These - callbacks will execute when the user presses the back or forward - button, but not after `setURL` is invoked. - - @private - @method onUpdateURL - @param callback {Function} - */ - onUpdateURL: function(callback) { - this.updateCallback = callback; - }, - - /** - Sets the path and calls the `updateURL` callback. - - @private - @method handleURL - @param callback {Function} - */ - handleURL: function(url) { - set(this, 'path', url); - this.updateCallback(url); - }, - - /** - Given a URL, formats it to be placed into the page as part - of an element's `href` attribute. - - This is used, for example, when using the {{action}} helper - to generate a URL based on an event. - - @private - @method formatURL - @param url {String} - @return {String} url - */ - formatURL: function(url) { - // The return value is not overly meaningful, but we do not want to throw - // errors when test code renders templates containing {{action href=true}} - // helpers. - return url; - } - }); - }); -enifed("ember-routing/system/cache", - ["ember-runtime/system/object","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var EmberObject = __dependency1__["default"]; - - __exports__["default"] = EmberObject.extend({ - init: function() { - this.cache = {}; - }, - has: function(bucketKey) { - return bucketKey in this.cache; - }, - stash: function(bucketKey, key, value) { - var bucket = this.cache[bucketKey]; - if (!bucket) { - bucket = this.cache[bucketKey] = {}; - } - bucket[key] = value; - }, - lookup: function(bucketKey, prop, defaultValue) { - var cache = this.cache; - if (!(bucketKey in cache)) { - return defaultValue; - } - var bucket = cache[bucketKey]; - if (prop in bucket) { - return bucket[prop]; - } else { - return defaultValue; - } - }, - cache: null - }); - }); -enifed("ember-routing/system/controller_for", - ["exports"], - function(__exports__) { - "use strict"; - /** - @module ember - @submodule ember-routing - */ - - /** - - Finds a controller instance. - - @for Ember - @method controllerFor - @private - */ - __exports__["default"] = function controllerFor(container, controllerName, lookupOptions) { - return container.lookup('controller:' + controllerName, lookupOptions); - } - }); -enifed("ember-routing/system/dsl", - ["ember-metal/core","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // FEATURES, assert - - /** - @module ember - @submodule ember-routing - */ - - function DSL(name) { - this.parent = name; - this.matches = []; - } - __exports__["default"] = DSL; - - DSL.prototype = { - route: function(name, options, callback) { - if (arguments.length === 2 && typeof options === 'function') { - callback = options; - options = {}; - } - - if (arguments.length === 1) { - options = {}; - } - - var type = options.resetNamespace === true ? 'resource' : 'route'; - Ember.assert("'basic' cannot be used as a " + type + " name.", name !== 'basic'); - - - if (callback) { - var fullName = getFullName(this, name, options.resetNamespace); - var dsl = new DSL(fullName); - createRoute(dsl, 'loading'); - createRoute(dsl, 'error', { path: "/_unused_dummy_error_path_route_" + name + "/:error" }); - - callback.call(dsl); - - createRoute(this, name, options, dsl.generate()); - } else { - createRoute(this, name, options); - } - }, - - push: function(url, name, callback) { - var parts = name.split('.'); - if (url === "" || url === "/" || parts[parts.length-1] === "index") { this.explicitIndex = true; } - - this.matches.push([url, name, callback]); - }, - - resource: function(name, options, callback) { - if (arguments.length === 2 && typeof options === 'function') { - callback = options; - options = {}; - } - - if (arguments.length === 1) { - options = {}; - } - - options.resetNamespace = true; - this.route(name, options, callback); - }, - - generate: function() { - var dslMatches = this.matches; - - if (!this.explicitIndex) { - this.route("index", { path: "/" }); - } - - return function(match) { - for (var i=0, l=dslMatches.length; i " + fullName, { fullName: fullName }); - } - - return instance; - } - }); -enifed("ember-routing/system/query_params", - ["ember-runtime/system/object","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var EmberObject = __dependency1__["default"]; - - __exports__["default"] = EmberObject.extend({ - isQueryParams: true, - values: null - }); - }); -enifed("ember-routing/system/route", - ["ember-metal/core","ember-metal/error","ember-metal/property_get","ember-metal/property_set","ember-metal/get_properties","ember-metal/enumerable_utils","ember-metal/is_none","ember-metal/computed","ember-metal/merge","ember-metal/utils","ember-metal/run_loop","ember-metal/keys","ember-runtime/copy","ember-runtime/system/string","ember-runtime/system/object","ember-runtime/mixins/evented","ember-runtime/mixins/action_handler","ember-routing/system/generate_controller","ember-routing/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __dependency18__, __dependency19__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // FEATURES, A, deprecate, assert, Logger - var EmberError = __dependency2__["default"]; - var get = __dependency3__.get; - var set = __dependency4__.set; - var getProperties = __dependency5__["default"]; - var forEach = __dependency6__.forEach; - var replace = __dependency6__.replace; - var isNone = __dependency7__["default"]; - var computed = __dependency8__.computed; - var merge = __dependency9__["default"]; - var isArray = __dependency10__.isArray; - var typeOf = __dependency10__.typeOf; - var run = __dependency11__["default"]; - var keys = __dependency12__["default"]; - var copy = __dependency13__["default"]; - var classify = __dependency14__.classify; - var EmberObject = __dependency15__["default"]; - var Evented = __dependency16__["default"]; - var ActionHandler = __dependency17__["default"]; - var generateController = __dependency18__["default"]; - var stashParamNames = __dependency19__.stashParamNames; - - var slice = Array.prototype.slice; - - function K() { return this; } - - /** - @module ember - @submodule ember-routing - */ - - /** - The `Ember.Route` class is used to define individual routes. Refer to - the [routing guide](http://emberjs.com/guides/routing/) for documentation. - - @class Route - @namespace Ember - @extends Ember.Object - @uses Ember.ActionHandler - */ - var Route = EmberObject.extend(ActionHandler, { - /** - Configuration hash for this route's queryParams. The possible - configuration options and their defaults are as follows - (assuming a query param whose URL key is `page`): - - ```javascript - queryParams: { - page: { - // By default, controller query param properties don't - // cause a full transition when they are changed, but - // rather only cause the URL to update. Setting - // `refreshModel` to true will cause an "in-place" - // transition to occur, whereby the model hooks for - // this route (and any child routes) will re-fire, allowing - // you to reload models (e.g., from the server) using the - // updated query param values. - refreshModel: false, - - // By default, changes to controller query param properties - // cause the URL to update via `pushState`, which means an - // item will be added to the browser's history, allowing - // you to use the back button to restore the app to the - // previous state before the query param property was changed. - // Setting `replace` to true will use `replaceState` (or its - // hash location equivalent), which causes no browser history - // item to be added. This options name and default value are - // the same as the `link-to` helper's `replace` option. - replace: false - } - } - ``` - - @property queryParams - @for Ember.Route - @type Hash - */ - queryParams: {}, - - /** - @private - - @property _qp - */ - _qp: computed(function() { - var controllerName = this.controllerName || this.routeName; - var controllerClass = this.container.lookupFactory('controller:' + controllerName); - - if (!controllerClass) { - return defaultQPMeta; - } - - var controllerProto = controllerClass.proto(); - var qpProps = get(controllerProto, '_normalizedQueryParams'); - var cacheMeta = get(controllerProto, '_cacheMeta'); - - var qps = [], map = {}, self = this; - for (var propName in qpProps) { - if (!qpProps.hasOwnProperty(propName)) { continue; } - - var desc = qpProps[propName]; - var urlKey = desc.as || this.serializeQueryParamKey(propName); - var defaultValue = get(controllerProto, propName); - - if (isArray(defaultValue)) { - defaultValue = Ember.A(defaultValue.slice()); - } - - var type = typeOf(defaultValue); - var defaultValueSerialized = this.serializeQueryParam(defaultValue, urlKey, type); - var fprop = controllerName + ':' + propName; - var qp = { - def: defaultValue, - sdef: defaultValueSerialized, - type: type, - urlKey: urlKey, - prop: propName, - fprop: fprop, - ctrl: controllerName, - cProto: controllerProto, - svalue: defaultValueSerialized, - cacheType: desc.scope, - route: this, - cacheMeta: cacheMeta[propName] - }; - - map[propName] = map[urlKey] = map[fprop] = qp; - qps.push(qp); - } - - return { - qps: qps, - map: map, - states: { - active: function(controller, prop) { - return self._activeQPChanged(controller, map[prop]); - }, - allowOverrides: function(controller, prop) { - return self._updatingQPChanged(controller, map[prop]); - }, - changingKeys: function(controller, prop) { - return self._updateSerializedQPValue(controller, map[prop]); - } - } - }; - }), - - /** - @private - - @property _names - */ - _names: null, - - /** - @private - - @method _stashNames - */ - _stashNames: function(_handlerInfo, dynamicParent) { - var handlerInfo = _handlerInfo; - if (this._names) { return; } - var names = this._names = handlerInfo._names; - - if (!names.length) { - handlerInfo = dynamicParent; - names = handlerInfo && handlerInfo._names || []; - } - - var qps = get(this, '_qp.qps'); - var len = qps.length; - - var namePaths = new Array(names.length); - for (var a = 0, nlen = names.length; a < nlen; ++a) { - namePaths[a] = handlerInfo.name + '.' + names[a]; - } - - for (var i = 0; i < len; ++i) { - var qp = qps[i]; - var cacheMeta = qp.cacheMeta; - if (cacheMeta.scope === 'model') { - cacheMeta.parts = namePaths; - } - cacheMeta.prefix = qp.ctrl; - } - }, - - /** - @private - - @property _updateSerializedQPValue - */ - _updateSerializedQPValue: function(controller, qp) { - var value = get(controller, qp.prop); - qp.svalue = this.serializeQueryParam(value, qp.urlKey, qp.type); - }, - - /** - @private - - @property _activeQPChanged - */ - _activeQPChanged: function(controller, qp) { - var value = get(controller, qp.prop); - this.router._queuedQPChanges[qp.fprop] = value; - run.once(this, this._fireQueryParamTransition); - }, - - /** - @private - @method _updatingQPChanged - */ - _updatingQPChanged: function(controller, qp) { - var router = this.router; - if (!router._qpUpdates) { - router._qpUpdates = {}; - } - router._qpUpdates[qp.urlKey] = true; - }, - - mergedProperties: ['events', 'queryParams'], - - /** - Retrieves parameters, for current route using the state.params - variable and getQueryParamsFor, using the supplied routeName. - - @method paramsFor - @param {String} routename - - */ - paramsFor: function(name) { - var route = this.container.lookup('route:' + name); - - if (!route) { - return {}; - } - - var transition = this.router.router.activeTransition; - var state = transition ? transition.state : this.router.router.state; - - var params = {}; - merge(params, state.params[name]); - merge(params, getQueryParamsFor(route, state)); - - return params; - }, - - /** - Serializes the query parameter key - - @method serializeQueryParamKey - @param {String} controllerPropertyName - */ - serializeQueryParamKey: function(controllerPropertyName) { - return controllerPropertyName; - }, - - /** - Serializes value of the query parameter based on defaultValueType - - @method serializeQueryParam - @param {Object} value - @param {String} urlKey - @param {String} defaultValueType - */ - serializeQueryParam: function(value, urlKey, defaultValueType) { - // urlKey isn't used here, but anyone overriding - // can use it to provide serialization specific - // to a certain query param. - if (defaultValueType === 'array') { - return JSON.stringify(value); - } - return '' + value; - }, - - /** - Deserializes value of the query parameter based on defaultValueType - - @method deserializeQueryParam - @param {Object} value - @param {String} urlKey - @param {String} defaultValueType - */ - deserializeQueryParam: function(value, urlKey, defaultValueType) { - // urlKey isn't used here, but anyone overriding - // can use it to provide deserialization specific - // to a certain query param. - - // Use the defaultValueType of the default value (the initial value assigned to a - // controller query param property), to intelligently deserialize and cast. - if (defaultValueType === 'boolean') { - return (value === 'true') ? true : false; - } else if (defaultValueType === 'number') { - return (Number(value)).valueOf(); - } else if (defaultValueType === 'array') { - return Ember.A(JSON.parse(value)); - } - return value; - }, - - - /** - @private - @property _fireQueryParamTransition - */ - _fireQueryParamTransition: function() { - this.transitionTo({ queryParams: this.router._queuedQPChanges }); - this.router._queuedQPChanges = {}; - }, - - /** - @private - - @property _optionsForQueryParam - */ - _optionsForQueryParam: function(qp) { - return get(this, 'queryParams.' + qp.urlKey) || get(this, 'queryParams.' + qp.prop) || {}; - }, - - /** - A hook you can use to reset controller values either when the model - changes or the route is exiting. - - ```javascript - App.ArticlesRoute = Ember.Route.extend({ - // ... - - resetController: function (controller, isExiting, transition) { - if (isExiting) { - controller.set('page', 1); - } - } - }); - ``` - - @method resetController - @param {Controller} controller instance - @param {Boolean} isExiting - @param {Object} transition - @since 1.7.0 - */ - resetController: K, - - /** - @private - - @method exit - */ - exit: function() { - this.deactivate(); - - this.trigger('deactivate'); - - this.teardownViews(); - }, - - /** - @private - - @method _reset - @since 1.7.0 - */ - _reset: function(isExiting, transition) { - var controller = this.controller; - - controller._qpDelegate = get(this, '_qp.states.inactive'); - - this.resetController(controller, isExiting, transition); - }, - - /** - @private - - @method enter - */ - enter: function() { - this.activate(); - - this.trigger('activate'); - - }, - - /** - The name of the view to use by default when rendering this routes template. - - When rendering a template, the route will, by default, determine the - template and view to use from the name of the route itself. If you need to - define a specific view, set this property. - - This is useful when multiple routes would benefit from using the same view - because it doesn't require a custom `renderTemplate` method. For example, - the following routes will all render using the `App.PostsListView` view: - - ```javascript - var PostsList = Ember.Route.extend({ - viewName: 'postsList' - }); - - App.PostsIndexRoute = PostsList.extend(); - App.PostsArchivedRoute = PostsList.extend(); - ``` - - @property viewName - @type String - @default null - @since 1.4.0 - */ - viewName: null, - - /** - The name of the template to use by default when rendering this routes - template. - - This is similar with `viewName`, but is useful when you just want a custom - template without a view. - - ```javascript - var PostsList = Ember.Route.extend({ - templateName: 'posts/list' - }); - - App.PostsIndexRoute = PostsList.extend(); - App.PostsArchivedRoute = PostsList.extend(); - ``` - - @property templateName - @type String - @default null - @since 1.4.0 - */ - templateName: null, - - /** - The name of the controller to associate with this route. - - By default, Ember will lookup a route's controller that matches the name - of the route (i.e. `App.PostController` for `App.PostRoute`). However, - if you would like to define a specific controller to use, you can do so - using this property. - - This is useful in many ways, as the controller specified will be: - - * passed to the `setupController` method. - * used as the controller for the view being rendered by the route. - * returned from a call to `controllerFor` for the route. - - @property controllerName - @type String - @default null - @since 1.4.0 - */ - controllerName: null, - - /** - The `willTransition` action is fired at the beginning of any - attempted transition with a `Transition` object as the sole - argument. This action can be used for aborting, redirecting, - or decorating the transition from the currently active routes. - - A good example is preventing navigation when a form is - half-filled out: - - ```javascript - App.ContactFormRoute = Ember.Route.extend({ - actions: { - willTransition: function(transition) { - if (this.controller.get('userHasEnteredData')) { - this.controller.displayNavigationConfirm(); - transition.abort(); - } - } - } - }); - ``` - - You can also redirect elsewhere by calling - `this.transitionTo('elsewhere')` from within `willTransition`. - Note that `willTransition` will not be fired for the - redirecting `transitionTo`, since `willTransition` doesn't - fire when there is already a transition underway. If you want - subsequent `willTransition` actions to fire for the redirecting - transition, you must first explicitly call - `transition.abort()`. - - @event willTransition - @param {Transition} transition - */ - - /** - The `didTransition` action is fired after a transition has - successfully been completed. This occurs after the normal model - hooks (`beforeModel`, `model`, `afterModel`, `setupController`) - have resolved. The `didTransition` action has no arguments, - however, it can be useful for tracking page views or resetting - state on the controller. - - ```javascript - App.LoginRoute = Ember.Route.extend({ - actions: { - didTransition: function() { - this.controller.get('errors.base').clear(); - return true; // Bubble the didTransition event - } - } - }); - ``` - - @event didTransition - @since 1.2.0 - */ - - /** - The `loading` action is fired on the route when a route's `model` - hook returns a promise that is not already resolved. The current - `Transition` object is the first parameter and the route that - triggered the loading event is the second parameter. - - ```javascript - App.ApplicationRoute = Ember.Route.extend({ - actions: { - loading: function(transition, route) { - var view = Ember.View.create({ - classNames: ['app-loading'] - }) - .append(); - - this.router.one('didTransition', function() { - view.destroy(); - }); - - return true; // Bubble the loading event - } - } - }); - ``` - - @event loading - @param {Transition} transition - @param {Ember.Route} route The route that triggered the loading event - @since 1.2.0 - */ - - /** - When attempting to transition into a route, any of the hooks - may return a promise that rejects, at which point an `error` - action will be fired on the partially-entered routes, allowing - for per-route error handling logic, or shared error handling - logic defined on a parent route. - - Here is an example of an error handler that will be invoked - for rejected promises from the various hooks on the route, - as well as any unhandled errors from child routes: - - ```javascript - App.AdminRoute = Ember.Route.extend({ - beforeModel: function() { - return Ember.RSVP.reject('bad things!'); - }, - - actions: { - error: function(error, transition) { - // Assuming we got here due to the error in `beforeModel`, - // we can expect that error === "bad things!", - // but a promise model rejecting would also - // call this hook, as would any errors encountered - // in `afterModel`. - - // The `error` hook is also provided the failed - // `transition`, which can be stored and later - // `.retry()`d if desired. - - this.transitionTo('login'); - } - } - }); - ``` - - `error` actions that bubble up all the way to `ApplicationRoute` - will fire a default error handler that logs the error. You can - specify your own global default error handler by overriding the - `error` handler on `ApplicationRoute`: - - ```javascript - App.ApplicationRoute = Ember.Route.extend({ - actions: { - error: function(error, transition) { - this.controllerFor('banner').displayError(error.message); - } - } - }); - ``` - @event error - @param {Error} error - @param {Transition} transition - */ - - /** - The controller associated with this route. - - Example - - ```javascript - App.FormRoute = Ember.Route.extend({ - actions: { - willTransition: function(transition) { - if (this.controller.get('userHasEnteredData') && - !confirm('Are you sure you want to abandon progress?')) { - transition.abort(); - } else { - // Bubble the `willTransition` action so that - // parent routes can decide whether or not to abort. - return true; - } - } - } - }); - ``` - - @property controller - @type Ember.Controller - @since 1.6.0 - */ - - _actions: { - - queryParamsDidChange: function(changed, totalPresent, removed) { - var qpMap = get(this, '_qp').map; - - var totalChanged = keys(changed).concat(keys(removed)); - for (var i = 0, len = totalChanged.length; i < len; ++i) { - var qp = qpMap[totalChanged[i]]; - if (qp && get(this._optionsForQueryParam(qp), 'refreshModel')) { - this.refresh(); - } - } - - return true; - }, - - finalizeQueryParamChange: function(params, finalParams, transition) { - if (this.routeName !== 'application') { return true; } - - // Transition object is absent for intermediate transitions. - if (!transition) { return; } - - var handlerInfos = transition.state.handlerInfos; - var router = this.router; - var qpMeta = router._queryParamsFor(handlerInfos[handlerInfos.length-1].name); - var changes = router._qpUpdates; - var replaceUrl; - - stashParamNames(router, handlerInfos); - - for (var i = 0, len = qpMeta.qps.length; i < len; ++i) { - var qp = qpMeta.qps[i]; - var route = qp.route; - var controller = route.controller; - var presentKey = qp.urlKey in params && qp.urlKey; - - // Do a reverse lookup to see if the changed query - // param URL key corresponds to a QP property on - // this controller. - var value, svalue; - if (changes && qp.urlKey in changes) { - // Value updated in/before setupController - value = get(controller, qp.prop); - svalue = route.serializeQueryParam(value, qp.urlKey, qp.type); - } else { - if (presentKey) { - svalue = params[presentKey]; - value = route.deserializeQueryParam(svalue, qp.urlKey, qp.type); - } else { - // No QP provided; use default value. - svalue = qp.sdef; - value = copyDefaultValue(qp.def); - } - } - - controller._qpDelegate = get(this, '_qp.states.inactive'); - - var thisQueryParamChanged = (svalue !== qp.svalue); - if (thisQueryParamChanged) { - if (transition.queryParamsOnly && replaceUrl !== false) { - var options = route._optionsForQueryParam(qp); - var replaceConfigValue = get(options, 'replace'); - if (replaceConfigValue) { - replaceUrl = true; - } else if (replaceConfigValue === false) { - // Explicit pushState wins over any other replaceStates. - replaceUrl = false; - } - } - - set(controller, qp.prop, value); - } - - // Stash current serialized value of controller. - qp.svalue = svalue; - - var thisQueryParamHasDefaultValue = (qp.sdef === svalue); - if (!thisQueryParamHasDefaultValue) { - finalParams.push({ - value: svalue, - visible: true, - key: presentKey || qp.urlKey - }); - } - } - - if (replaceUrl) { - transition.method('replace'); - } - - forEach(qpMeta.qps, function(qp) { - var routeQpMeta = get(qp.route, '_qp'); - var finalizedController = qp.route.controller; - finalizedController._qpDelegate = get(routeQpMeta, 'states.active'); - }); - - router._qpUpdates = null; - } - }, - - /** - @deprecated - - Please use `actions` instead. - @method events - */ - events: null, - - /** - This hook is executed when the router completely exits this route. It is - not executed when the model for the route changes. - - @method deactivate - */ - deactivate: K, - - /** - This hook is executed when the router enters the route. It is not executed - when the model for the route changes. - - @method activate - */ - activate: K, - - /** - Transition the application into another route. The route may - be either a single route or route path: - - ```javascript - this.transitionTo('blogPosts'); - this.transitionTo('blogPosts.recentEntries'); - ``` - - Optionally supply a model for the route in question. The model - will be serialized into the URL using the `serialize` hook of - the route: - - ```javascript - this.transitionTo('blogPost', aPost); - ``` - - If a literal is passed (such as a number or a string), it will - be treated as an identifier instead. In this case, the `model` - hook of the route will be triggered: - - ```javascript - this.transitionTo('blogPost', 1); - ``` - - Multiple models will be applied last to first recursively up the - resource tree. - - ```javascript - App.Router.map(function() { - this.resource('blogPost', { path:':blogPostId' }, function() { - this.resource('blogComment', { path: ':blogCommentId' }); - }); - }); - - this.transitionTo('blogComment', aPost, aComment); - this.transitionTo('blogComment', 1, 13); - ``` - - It is also possible to pass a URL (a string that starts with a - `/`). This is intended for testing and debugging purposes and - should rarely be used in production code. - - ```javascript - this.transitionTo('/'); - this.transitionTo('/blog/post/1/comment/13'); - this.transitionTo('/blog/posts?sort=title'); - ``` - - An options hash with a `queryParams` property may be provided as - the final argument to add query parameters to the destination URL. - - ```javascript - this.transitionTo('blogPost', 1, { - queryParams: {showComments: 'true'} - }); - - // if you just want to transition the query parameters without changing the route - this.transitionTo({queryParams: {sort: 'date'}}); - ``` - - See also 'replaceWith'. - - Simple Transition Example - - ```javascript - App.Router.map(function() { - this.route('index'); - this.route('secret'); - this.route('fourOhFour', { path: '*:' }); - }); - - App.IndexRoute = Ember.Route.extend({ - actions: { - moveToSecret: function(context) { - if (authorized()) { - this.transitionTo('secret', context); - } else { - this.transitionTo('fourOhFour'); - } - } - } - }); - ``` - - Transition to a nested route - - ```javascript - App.Router.map(function() { - this.resource('articles', { path: '/articles' }, function() { - this.route('new'); - }); - }); - - App.IndexRoute = Ember.Route.extend({ - actions: { - transitionToNewArticle: function() { - this.transitionTo('articles.new'); - } - } - }); - ``` - - Multiple Models Example - - ```javascript - App.Router.map(function() { - this.route('index'); - - this.resource('breakfast', { path: ':breakfastId' }, function() { - this.resource('cereal', { path: ':cerealId' }); - }); - }); - - App.IndexRoute = Ember.Route.extend({ - actions: { - moveToChocolateCereal: function() { - var cereal = { cerealId: 'ChocolateYumminess' }; - var breakfast = { breakfastId: 'CerealAndMilk' }; - - this.transitionTo('cereal', breakfast, cereal); - } - } - }); - ``` - - Nested Route with Query String Example - - ```javascript - App.Router.map(function() { - this.resource('fruits', function() { - this.route('apples'); - }); - }); - - App.IndexRoute = Ember.Route.extend({ - actions: { - transitionToApples: function() { - this.transitionTo('fruits.apples', {queryParams: {color: 'red'}}); - } - } - }); - ``` - - @method transitionTo - @param {String} name the name of the route or a URL - @param {...Object} models the model(s) or identifier(s) to be used while - transitioning to the route. - @param {Object} [options] optional hash with a queryParams property - containing a mapping of query parameters - @return {Transition} the transition object associated with this - attempted transition - */ - transitionTo: function(name, context) { - var router = this.router; - return router.transitionTo.apply(router, arguments); - }, - - /** - Perform a synchronous transition into another route without attempting - to resolve promises, update the URL, or abort any currently active - asynchronous transitions (i.e. regular transitions caused by - `transitionTo` or URL changes). - - This method is handy for performing intermediate transitions on the - way to a final destination route, and is called internally by the - default implementations of the `error` and `loading` handlers. - - @method intermediateTransitionTo - @param {String} name the name of the route - @param {...Object} models the model(s) to be used while transitioning - to the route. - @since 1.2.0 - */ - intermediateTransitionTo: function() { - var router = this.router; - router.intermediateTransitionTo.apply(router, arguments); - }, - - /** - Refresh the model on this route and any child routes, firing the - `beforeModel`, `model`, and `afterModel` hooks in a similar fashion - to how routes are entered when transitioning in from other route. - The current route params (e.g. `article_id`) will be passed in - to the respective model hooks, and if a different model is returned, - `setupController` and associated route hooks will re-fire as well. - - An example usage of this method is re-querying the server for the - latest information using the same parameters as when the route - was first entered. - - Note that this will cause `model` hooks to fire even on routes - that were provided a model object when the route was initially - entered. - - @method refresh - @return {Transition} the transition object associated with this - attempted transition - @since 1.4.0 - */ - refresh: function() { - return this.router.router.refresh(this); - }, - - /** - Transition into another route while replacing the current URL, if possible. - This will replace the current history entry instead of adding a new one. - Beside that, it is identical to `transitionTo` in all other respects. See - 'transitionTo' for additional information regarding multiple models. - - Example - - ```javascript - App.Router.map(function() { - this.route('index'); - this.route('secret'); - }); - - App.SecretRoute = Ember.Route.extend({ - afterModel: function() { - if (!authorized()){ - this.replaceWith('index'); - } - } - }); - ``` - - @method replaceWith - @param {String} name the name of the route or a URL - @param {...Object} models the model(s) or identifier(s) to be used while - transitioning to the route. - @return {Transition} the transition object associated with this - attempted transition - */ - replaceWith: function() { - var router = this.router; - return router.replaceWith.apply(router, arguments); - }, - - /** - Sends an action to the router, which will delegate it to the currently - active route hierarchy per the bubbling rules explained under `actions`. - - Example - - ```javascript - App.Router.map(function() { - this.route('index'); - }); - - App.ApplicationRoute = Ember.Route.extend({ - actions: { - track: function(arg) { - console.log(arg, 'was clicked'); - } - } - }); - - App.IndexRoute = Ember.Route.extend({ - actions: { - trackIfDebug: function(arg) { - if (debug) { - this.send('track', arg); - } - } - } - }); - ``` - - @method send - @param {String} name the name of the action to trigger - @param {...*} args - */ - send: function() { - if (this.router || !Ember.testing) { - this.router.send.apply(this.router, arguments); - } else { - var name = arguments[0]; - var args = slice.call(arguments, 1); - var action = this._actions[name]; - if (action) { - return this._actions[name].apply(this, args); - } - } - }, - - /** - This hook is the entry point for router.js - - @private - @method setup - */ - setup: function(context, transition) { - var controllerName = this.controllerName || this.routeName; - var controller = this.controllerFor(controllerName, true); - - if (!controller) { - controller = this.generateController(controllerName, context); - } - - // Assign the route's controller so that it can more easily be - // referenced in action handlers - this.controller = controller; - - if (this.setupControllers) { - Ember.deprecate("Ember.Route.setupControllers is deprecated. Please use Ember.Route.setupController(controller, model) instead."); - this.setupControllers(controller, context); - } else { - var states = get(this, '_qp.states'); - if (transition) { - // Update the model dep values used to calculate cache keys. - stashParamNames(this.router, transition.state.handlerInfos); - controller._qpDelegate = states.changingKeys; - controller._updateCacheParams(transition.params); - } - controller._qpDelegate = states.allowOverrides; - - if (transition) { - var qpValues = getQueryParamsFor(this, transition.state); - controller.setProperties(qpValues); - } - - this.setupController(controller, context, transition); - } - - if (this.renderTemplates) { - Ember.deprecate("Ember.Route.renderTemplates is deprecated. Please use Ember.Route.renderTemplate(controller, model) instead."); - this.renderTemplates(context); - } else { - this.renderTemplate(controller, context); - } - }, - - /** - This hook is the first of the route entry validation hooks - called when an attempt is made to transition into a route - or one of its children. It is called before `model` and - `afterModel`, and is appropriate for cases when: - - 1) A decision can be made to redirect elsewhere without - needing to resolve the model first. - 2) Any async operations need to occur first before the - model is attempted to be resolved. - - This hook is provided the current `transition` attempt - as a parameter, which can be used to `.abort()` the transition, - save it for a later `.retry()`, or retrieve values set - on it from a previous hook. You can also just call - `this.transitionTo` to another route to implicitly - abort the `transition`. - - You can return a promise from this hook to pause the - transition until the promise resolves (or rejects). This could - be useful, for instance, for retrieving async code from - the server that is required to enter a route. - - ```javascript - App.PostRoute = Ember.Route.extend({ - beforeModel: function(transition) { - if (!App.Post) { - return Ember.$.getScript('/models/post.js'); - } - } - }); - ``` - - If `App.Post` doesn't exist in the above example, - `beforeModel` will use jQuery's `getScript`, which - returns a promise that resolves after the server has - successfully retrieved and executed the code from the - server. Note that if an error were to occur, it would - be passed to the `error` hook on `Ember.Route`, but - it's also possible to handle errors specific to - `beforeModel` right from within the hook (to distinguish - from the shared error handling behavior of the `error` - hook): - - ```javascript - App.PostRoute = Ember.Route.extend({ - beforeModel: function(transition) { - if (!App.Post) { - var self = this; - return Ember.$.getScript('post.js').then(null, function(e) { - self.transitionTo('help'); - - // Note that the above transitionTo will implicitly - // halt the transition. If you were to return - // nothing from this promise reject handler, - // according to promise semantics, that would - // convert the reject into a resolve and the - // transition would continue. To propagate the - // error so that it'd be handled by the `error` - // hook, you would have to - return Ember.RSVP.reject(e); - }); - } - } - }); - ``` - - @method beforeModel - @param {Transition} transition - @return {Promise} if the value returned from this hook is - a promise, the transition will pause until the transition - resolves. Otherwise, non-promise return values are not - utilized in any way. - */ - beforeModel: K, - - /** - This hook is called after this route's model has resolved. - It follows identical async/promise semantics to `beforeModel` - but is provided the route's resolved model in addition to - the `transition`, and is therefore suited to performing - logic that can only take place after the model has already - resolved. - - ```javascript - App.PostsRoute = Ember.Route.extend({ - afterModel: function(posts, transition) { - if (posts.get('length') === 1) { - this.transitionTo('post.show', posts.get('firstObject')); - } - } - }); - ``` - - Refer to documentation for `beforeModel` for a description - of transition-pausing semantics when a promise is returned - from this hook. - - @method afterModel - @param {Object} resolvedModel the value returned from `model`, - or its resolved value if it was a promise - @param {Transition} transition - @return {Promise} if the value returned from this hook is - a promise, the transition will pause until the transition - resolves. Otherwise, non-promise return values are not - utilized in any way. - */ - afterModel: K, - - /** - A hook you can implement to optionally redirect to another route. - - If you call `this.transitionTo` from inside of this hook, this route - will not be entered in favor of the other hook. - - `redirect` and `afterModel` behave very similarly and are - called almost at the same time, but they have an important - distinction in the case that, from one of these hooks, a - redirect into a child route of this route occurs: redirects - from `afterModel` essentially invalidate the current attempt - to enter this route, and will result in this route's `beforeModel`, - `model`, and `afterModel` hooks being fired again within - the new, redirecting transition. Redirects that occur within - the `redirect` hook, on the other hand, will _not_ cause - these hooks to be fired again the second time around; in - other words, by the time the `redirect` hook has been called, - both the resolved model and attempted entry into this route - are considered to be fully validated. - - @method redirect - @param {Object} model the model for this route - @param {Transition} transition the transition object associated with the current transition - */ - redirect: K, - - /** - Called when the context is changed by router.js. - - @private - @method contextDidChange - */ - contextDidChange: function() { - this.currentModel = this.context; - }, - - /** - A hook you can implement to convert the URL into the model for - this route. - - ```javascript - App.Router.map(function() { - this.resource('post', { path: '/posts/:post_id' }); - }); - ``` - - The model for the `post` route is `store.find('post', params.post_id)`. - - By default, if your route has a dynamic segment ending in `_id`: - - * The model class is determined from the segment (`post_id`'s - class is `App.Post`) - * The find method is called on the model class with the value of - the dynamic segment. - - Note that for routes with dynamic segments, this hook is not always - executed. If the route is entered through a transition (e.g. when - using the `link-to` Handlebars helper or the `transitionTo` method - of routes), and a model context is already provided this hook - is not called. - - A model context does not include a primitive string or number, - which does cause the model hook to be called. - - Routes without dynamic segments will always execute the model hook. - - ```javascript - // no dynamic segment, model hook always called - this.transitionTo('posts'); - - // model passed in, so model hook not called - thePost = store.find('post', 1); - this.transitionTo('post', thePost); - - // integer passed in, model hook is called - this.transitionTo('post', 1); - ``` - - - This hook follows the asynchronous/promise semantics - described in the documentation for `beforeModel`. In particular, - if a promise returned from `model` fails, the error will be - handled by the `error` hook on `Ember.Route`. - - Example - - ```javascript - App.PostRoute = Ember.Route.extend({ - model: function(params) { - return this.store.find('post', params.post_id); - } - }); - ``` - - @method model - @param {Object} params the parameters extracted from the URL - @param {Transition} transition - @return {Object|Promise} the model for this route. If - a promise is returned, the transition will pause until - the promise resolves, and the resolved value of the promise - will be used as the model for this route. - */ - model: function(params, transition) { - var match, name, sawParams, value; - - var queryParams = get(this, '_qp.map'); - - for (var prop in params) { - if (prop === 'queryParams' || (queryParams && prop in queryParams)) { - continue; - } - - if (match = prop.match(/^(.*)_id$/)) { - name = match[1]; - value = params[prop]; - } - sawParams = true; - } - - if (!name && sawParams) { return copy(params); } - else if (!name) { - if (transition.resolveIndex < 1) { return; } - - var parentModel = transition.state.handlerInfos[transition.resolveIndex-1].context; - - return parentModel; - } - - return this.findModel(name, value); - }, - - /** - @private - @method deserialize - @param {Object} params the parameters extracted from the URL - @param {Transition} transition - @return {Object|Promise} the model for this route. - - Router.js hook. - */ - deserialize: function(params, transition) { - return this.model(this.paramsFor(this.routeName), transition); - }, - - /** - - @method findModel - @param {String} type the model type - @param {Object} value the value passed to find - */ - findModel: function(){ - var store = get(this, 'store'); - return store.find.apply(store, arguments); - }, - - /** - Store property provides a hook for data persistence libraries to inject themselves. - - By default, this store property provides the exact same functionality previously - in the model hook. - - Currently, the required interface is: - - `store.find(modelName, findArguments)` - - @method store - @param {Object} store - */ - store: computed(function(){ - var container = this.container; - var routeName = this.routeName; - var namespace = get(this, 'router.namespace'); - - return { - find: function(name, value) { - var modelClass = container.lookupFactory('model:' + name); - - Ember.assert("You used the dynamic segment " + name + "_id in your route " + - routeName + ", but " + namespace + "." + classify(name) + - " did not exist and you did not override your route's `model` " + - "hook.", !!modelClass); - - if (!modelClass) { return; } - - Ember.assert(classify(name) + ' has no method `find`.', typeof modelClass.find === 'function'); - - return modelClass.find(value); - } - }; - }), - - /** - A hook you can implement to convert the route's model into parameters - for the URL. - - ```javascript - App.Router.map(function() { - this.resource('post', { path: '/posts/:post_id' }); - }); - - App.PostRoute = Ember.Route.extend({ - model: function(params) { - // the server returns `{ id: 12 }` - return Ember.$.getJSON('/posts/' + params.post_id); - }, - - serialize: function(model) { - // this will make the URL `/posts/12` - return { post_id: model.id }; - } - }); - ``` - - The default `serialize` method will insert the model's `id` into the - route's dynamic segment (in this case, `:post_id`) if the segment contains '_id'. - If the route has multiple dynamic segments or does not contain '_id', `serialize` - will return `Ember.getProperties(model, params)` - - This method is called when `transitionTo` is called with a context - in order to populate the URL. - - @method serialize - @param {Object} model the route's model - @param {Array} params an Array of parameter names for the current - route (in the example, `['post_id']`. - @return {Object} the serialized parameters - */ - serialize: function(model, params) { - if (params.length < 1) { return; } - if (!model) { return; } - - var name = params[0], object = {}; - - if (params.length === 1) { - if (name in model) { - object[name] = get(model, name); - } else if (/_id$/.test(name)) { - object[name] = get(model, "id"); - } - } else { - object = getProperties(model, params); - } - - return object; - }, - - /** - A hook you can use to setup the controller for the current route. - - This method is called with the controller for the current route and the - model supplied by the `model` hook. - - By default, the `setupController` hook sets the `model` property of - the controller to the `model`. - - If you implement the `setupController` hook in your Route, it will - prevent this default behavior. If you want to preserve that behavior - when implementing your `setupController` function, make sure to call - `_super`: - - ```javascript - App.PhotosRoute = Ember.Route.extend({ - model: function() { - return this.store.find('photo'); - }, - - setupController: function (controller, model) { - // Call _super for default behavior - this._super(controller, model); - // Implement your custom setup after - this.controllerFor('application').set('showingPhotos', true); - } - }); - ``` - - This means that your template will get a proxy for the model as its - context, and you can act as though the model itself was the context. - - The provided controller will be one resolved based on the name - of this route. - - If no explicit controller is defined, Ember will automatically create - an appropriate controller for the model. - - * if the model is an `Ember.Array` (including record arrays from Ember - Data), the controller is an `Ember.ArrayController`. - * otherwise, the controller is an `Ember.ObjectController`. - - As an example, consider the router: - - ```javascript - App.Router.map(function() { - this.resource('post', { path: '/posts/:post_id' }); - }); - ``` - - For the `post` route, a controller named `App.PostController` would - be used if it is defined. If it is not defined, an `Ember.ObjectController` - instance would be used. - - Example - - ```javascript - App.PostRoute = Ember.Route.extend({ - setupController: function(controller, model) { - controller.set('model', model); - } - }); - ``` - - @method setupController - @param {Controller} controller instance - @param {Object} model - */ - setupController: function(controller, context, transition) { - if (controller && (context !== undefined)) { - set(controller, 'model', context); - } - }, - - /** - Returns the controller for a particular route or name. - - The controller instance must already have been created, either through entering the - associated route or using `generateController`. - - ```javascript - App.PostRoute = Ember.Route.extend({ - setupController: function(controller, post) { - this._super(controller, post); - this.controllerFor('posts').set('currentPost', post); - } - }); - ``` - - @method controllerFor - @param {String} name the name of the route or controller - @return {Ember.Controller} - */ - controllerFor: function(name, _skipAssert) { - var container = this.container; - var route = container.lookup('route:'+name); - var controller; - - if (route && route.controllerName) { - name = route.controllerName; - } - - controller = container.lookup('controller:' + name); - - // NOTE: We're specifically checking that skipAssert is true, because according - // to the old API the second parameter was model. We do not want people who - // passed a model to skip the assertion. - Ember.assert("The controller named '"+name+"' could not be found. Make sure " + - "that this route exists and has already been entered at least " + - "once. If you are accessing a controller not associated with a " + - "route, make sure the controller class is explicitly defined.", - controller || _skipAssert === true); - - return controller; - }, - - /** - Generates a controller for a route. - - If the optional model is passed then the controller type is determined automatically, - e.g., an ArrayController for arrays. - - Example - - ```javascript - App.PostRoute = Ember.Route.extend({ - setupController: function(controller, post) { - this._super(controller, post); - this.generateController('posts', post); - } - }); - ``` - - @method generateController - @param {String} name the name of the controller - @param {Object} model the model to infer the type of the controller (optional) - */ - generateController: function(name, model) { - var container = this.container; - - model = model || this.modelFor(name); - - return generateController(container, name, model); - }, - - /** - Returns the model of a parent (or any ancestor) route - in a route hierarchy. During a transition, all routes - must resolve a model object, and if a route - needs access to a parent route's model in order to - resolve a model (or just reuse the model from a parent), - it can call `this.modelFor(theNameOfParentRoute)` to - retrieve it. - - Example - - ```javascript - App.Router.map(function() { - this.resource('post', { path: '/post/:post_id' }, function() { - this.resource('comments'); - }); - }); - - App.CommentsRoute = Ember.Route.extend({ - afterModel: function() { - this.set('post', this.modelFor('post')); - } - }); - ``` - - @method modelFor - @param {String} name the name of the route - @return {Object} the model object - */ - modelFor: function(name) { - var route = this.container.lookup('route:' + name); - var transition = this.router ? this.router.router.activeTransition : null; - - // If we are mid-transition, we want to try and look up - // resolved parent contexts on the current transitionEvent. - if (transition) { - var modelLookupName = (route && route.routeName) || name; - if (transition.resolvedModels.hasOwnProperty(modelLookupName)) { - return transition.resolvedModels[modelLookupName]; - } - } - - return route && route.currentModel; - }, - - /** - A hook you can use to render the template for the current route. - - This method is called with the controller for the current route and the - model supplied by the `model` hook. By default, it renders the route's - template, configured with the controller for the route. - - This method can be overridden to set up and render additional or - alternative templates. - - ```javascript - App.PostsRoute = Ember.Route.extend({ - renderTemplate: function(controller, model) { - var favController = this.controllerFor('favoritePost'); - - // Render the `favoritePost` template into - // the outlet `posts`, and display the `favoritePost` - // controller. - this.render('favoritePost', { - outlet: 'posts', - controller: favController - }); - } - }); - ``` - - @method renderTemplate - @param {Object} controller the route's controller - @param {Object} model the route's model - */ - renderTemplate: function(controller, model) { - this.render(); - }, - - /** - `render` is used to render a template into a region of another template - (indicated by an `{{outlet}}`). `render` is used both during the entry - phase of routing (via the `renderTemplate` hook) and later in response to - user interaction. - - For example, given the following minimal router and templates: - - ```javascript - Router.map(function() { - this.resource('photos'); - }); - ``` - - ```handlebars - -
    - {{outlet "anOutletName"}} -
    - ``` - - ```handlebars - -

    Photos

    - ``` - - You can render `photos.hbs` into the `"anOutletName"` outlet of - `application.hbs` by calling `render`: - - ```javascript - // posts route - Ember.Route.extend({ - renderTemplate: function(){ - this.render('photos', { - into: 'application', - outlet: 'anOutletName' - }) - } - }); - ``` - - `render` additionally allows you to supply which `view`, `controller`, and - `model` objects should be loaded and associated with the rendered template. - - - ```javascript - // posts route - Ember.Route.extend({ - renderTemplate: function(controller, model){ - this.render('posts', { // the template to render, referenced by name - into: 'application', // the template to render into, referenced by name - outlet: 'anOutletName', // the outlet inside `options.template` to render into. - view: 'aViewName', // the view to use for this template, referenced by name - controller: 'someControllerName', // the controller to use for this template, referenced by name - model: model // the model to set on `options.controller`. - }) - } - }); - ``` - - The string values provided for the template name, view, and controller - will eventually pass through to the resolver for lookup. See - Ember.Resolver for how these are mapped to JavaScript objects in your - application. - - Not all options need to be passed to `render`. Default values will be used - based on the name of the route specified in the router or the Route's - `controllerName`, `viewName` and `templateName` properties. - - For example: - - ```javascript - // router - Router.map(function() { - this.route('index'); - this.resource('post', { path: '/posts/:post_id' }); - }); - ``` - - ```javascript - // post route - PostRoute = App.Route.extend({ - renderTemplate: function() { - this.render(); // all defaults apply - } - }); - ``` - - The name of the `PostRoute`, defined by the router, is `post`. - - The following equivalent default options will be applied when - the Route calls `render`: - - ```javascript - // - this.render('post', { // the template name associated with 'post' Route - into: 'application', // the parent route to 'post' Route - outlet: 'main', // {{outlet}} and {{outlet 'main' are synonymous}}, - view: 'post', // the view associated with the 'post' Route - controller: 'post', // the controller associated with the 'post' Route - }) - ``` - - By default the controller's `model` will be the route's model, so it does not - need to be passed unless you wish to change which model is being used. - - @method render - @param {String} name the name of the template to render - @param {Object} [options] the options - @param {String} [options.into] the template to render into, - referenced by name. Defaults to the parent template - @param {String} [options.outlet] the outlet inside `options.template` to render into. - Defaults to 'main' - @param {String} [options.controller] the controller to use for this template, - referenced by name. Defaults to the Route's paired controller - @param {String} [options.model] the model object to set on `options.controller` - Defaults to the return value of the Route's model hook - */ - render: function(_name, options) { - Ember.assert("The name in the given arguments is undefined", arguments.length > 0 ? !isNone(arguments[0]) : true); - - var namePassed = typeof _name === 'string' && !!_name; - var name; - - if (typeof _name === 'object' && !options) { - name = this.routeName; - options = _name; - } else { - name = _name; - } - - var templateName; - - if (name) { - name = name.replace(/\//g, '.'); - templateName = name; - } else { - name = this.routeName; - templateName = this.templateName || name; - } - - var renderOptions = buildRenderOptions(this, namePassed, name, options); - - var LOG_VIEW_LOOKUPS = get(this.router, 'namespace.LOG_VIEW_LOOKUPS'); - var viewName = options && options.view || namePassed && name || this.viewName || name; - var view, template; - - var ViewClass = this.container.lookupFactory('view:' + viewName); - if (ViewClass) { - view = setupView(ViewClass, renderOptions); - if (!get(view, 'template')) { - view.set('template', this.container.lookup('template:' + templateName)); - } - if (LOG_VIEW_LOOKUPS) { - Ember.Logger.info("Rendering " + renderOptions.name + " with " + view, { fullName: 'view:' + renderOptions.name }); - } - } else { - template = this.container.lookup('template:' + templateName); - if (!template) { - Ember.assert("Could not find \"" + name + "\" template or view.", arguments.length === 0 || Ember.isEmpty(arguments[0])); - if (LOG_VIEW_LOOKUPS) { - Ember.Logger.info("Could not find \"" + name + "\" template or view. Nothing will be rendered", { fullName: 'template:' + name }); - } - return; - } - var defaultView = renderOptions.into ? 'view:default' : 'view:toplevel'; - ViewClass = this.container.lookupFactory(defaultView); - view = setupView(ViewClass, renderOptions); - if (!get(view, 'template')) { - view.set('template', template); - } - if (LOG_VIEW_LOOKUPS) { - Ember.Logger.info("Rendering " + renderOptions.name + " with default view " + view, { fullName: 'view:' + renderOptions.name }); - } - } - - if (renderOptions.outlet === 'main') { this.lastRenderedTemplate = name; } - appendView(this, view, renderOptions); - }, - - /** - Disconnects a view that has been rendered into an outlet. - - You may pass any or all of the following options to `disconnectOutlet`: - - * `outlet`: the name of the outlet to clear (default: 'main') - * `parentView`: the name of the view containing the outlet to clear - (default: the view rendered by the parent route) - - Example: - - ```javascript - App.ApplicationRoute = App.Route.extend({ - actions: { - showModal: function(evt) { - this.render(evt.modalName, { - outlet: 'modal', - into: 'application' - }); - }, - hideModal: function(evt) { - this.disconnectOutlet({ - outlet: 'modal', - parentView: 'application' - }); - } - } - }); - ``` - - Alternatively, you can pass the `outlet` name directly as a string. - - Example: - - ```javascript - hideModal: function(evt) { - this.disconnectOutlet('modal'); - } - ``` - - @method disconnectOutlet - @param {Object|String} options the options hash or outlet name - */ - disconnectOutlet: function(options) { - if (!options || typeof options === "string") { - var outletName = options; - options = {}; - options.outlet = outletName; - } - options.parentView = options.parentView ? options.parentView.replace(/\//g, '.') : parentTemplate(this); - options.outlet = options.outlet || 'main'; - - var parentView = this.router._lookupActiveView(options.parentView); - if (parentView) { parentView.disconnectOutlet(options.outlet); } - }, - - willDestroy: function() { - this.teardownViews(); - }, - - /** - @private - - @method teardownViews - */ - teardownViews: function() { - // Tear down the top level view - if (this.teardownTopLevelView) { this.teardownTopLevelView(); } - - // Tear down any outlets rendered with 'into' - var teardownOutletViews = this.teardownOutletViews || []; - forEach(teardownOutletViews, function(teardownOutletView) { - teardownOutletView(); - }); - - delete this.teardownTopLevelView; - delete this.teardownOutletViews; - delete this.lastRenderedTemplate; - } - }); - - - // TODO add mixin directly to `Route` class definition above, once this - // feature is merged: - Route.reopen(Evented); - - - var defaultQPMeta = { - qps: [], - map: {}, - states: {} - }; - - function parentRoute(route) { - var handlerInfo = handlerInfoFor(route, route.router.router.state.handlerInfos, -1); - return handlerInfo && handlerInfo.handler; - } - - function handlerInfoFor(route, handlerInfos, _offset) { - if (!handlerInfos) { return; } - - var offset = _offset || 0; - var current; - for (var i=0, l=handlerInfos.length; i " + routeName, { fullName: routeName }); - } - } - - handler.routeName = name; - return handler; - }; - }, - - _setupRouter: function(router, location) { - var lastURL, emberRouter = this; - - router.getHandler = this._getHandlerFunction(); - - var doUpdateURL = function() { - location.setURL(lastURL); - }; - - router.updateURL = function(path) { - lastURL = path; - run.once(doUpdateURL); - }; - - if (location.replaceURL) { - var doReplaceURL = function() { - location.replaceURL(lastURL); - }; - - router.replaceURL = function(path) { - lastURL = path; - run.once(doReplaceURL); - }; - } - - router.didTransition = function(infos) { - emberRouter.didTransition(infos); - }; - }, - - _serializeQueryParams: function(targetRouteName, queryParams) { - var groupedByUrlKey = {}; - - forEachQueryParam(this, targetRouteName, queryParams, function(key, value, qp) { - var urlKey = qp.urlKey; - if (!groupedByUrlKey[urlKey]) { - groupedByUrlKey[urlKey] = []; - } - groupedByUrlKey[urlKey].push({ - qp: qp, - value: value - }); - delete queryParams[key]; - }); - - for (var key in groupedByUrlKey) { - var qps = groupedByUrlKey[key]; - Ember.assert(fmt("You're not allowed to have more than one controller " + - "property map to the same query param key, but both " + - "`%@` and `%@` map to `%@`. You can fix this by mapping " + - "one of the controller properties to a different query " + - "param key via the `as` config option, e.g. `%@: { as: 'other-%@' }`", - [qps[0].qp.fprop, qps[1] ? qps[1].qp.fprop : "", qps[0].qp.urlKey, qps[0].qp.prop, qps[0].qp.prop]), qps.length <= 1); - var qp = qps[0].qp; - queryParams[qp.urlKey] = qp.route.serializeQueryParam(qps[0].value, qp.urlKey, qp.type); - } - }, - - _deserializeQueryParams: function(targetRouteName, queryParams) { - forEachQueryParam(this, targetRouteName, queryParams, function(key, value, qp) { - delete queryParams[key]; - queryParams[qp.prop] = qp.route.deserializeQueryParam(value, qp.urlKey, qp.type); - }); - }, - - _pruneDefaultQueryParamValues: function(targetRouteName, queryParams) { - var qps = this._queryParamsFor(targetRouteName); - for (var key in queryParams) { - var qp = qps.map[key]; - if (qp && qp.sdef === queryParams[key]) { - delete queryParams[key]; - } - } - }, - - _doTransition: function(_targetRouteName, models, _queryParams) { - var targetRouteName = _targetRouteName || getActiveTargetName(this.router); - Ember.assert("The route " + targetRouteName + " was not found", targetRouteName && this.router.hasRoute(targetRouteName)); - - var queryParams = {}; - merge(queryParams, _queryParams); - this._prepareQueryParams(targetRouteName, models, queryParams); - - var transitionArgs = routeArgs(targetRouteName, models, queryParams); - var transitionPromise = this.router.transitionTo.apply(this.router, transitionArgs); - - listenForTransitionErrors(transitionPromise); - - return transitionPromise; - }, - - _prepareQueryParams: function(targetRouteName, models, queryParams) { - this._hydrateUnsuppliedQueryParams(targetRouteName, models, queryParams); - this._serializeQueryParams(targetRouteName, queryParams); - this._pruneDefaultQueryParamValues(targetRouteName, queryParams); - }, - - /** - Returns a merged query params meta object for a given route. - Useful for asking a route what its known query params are. - */ - _queryParamsFor: function(leafRouteName) { - if (this._qpCache[leafRouteName]) { - return this._qpCache[leafRouteName]; - } - - var map = {}, qps = []; - this._qpCache[leafRouteName] = { - map: map, - qps: qps - }; - - var routerjs = this.router; - var recogHandlerInfos = routerjs.recognizer.handlersFor(leafRouteName); - - for (var i = 0, len = recogHandlerInfos.length; i < len; ++i) { - var recogHandler = recogHandlerInfos[i]; - var route = routerjs.getHandler(recogHandler.handler); - var qpMeta = get(route, '_qp'); - - if (!qpMeta) { continue; } - - merge(map, qpMeta.map); - qps.push.apply(qps, qpMeta.qps); - } - - return { - qps: qps, - map: map - }; - }, - - /* - becomeResolved: function(payload, resolvedContext) { - var params = this.serialize(resolvedContext); - - if (payload) { - this.stashResolvedModel(payload, resolvedContext); - payload.params = payload.params || {}; - payload.params[this.name] = params; - } - - return this.factory('resolved', { - context: resolvedContext, - name: this.name, - handler: this.handler, - params: params - }); - }, - */ - - _hydrateUnsuppliedQueryParams: function(leafRouteName, contexts, queryParams) { - var state = calculatePostTransitionState(this, leafRouteName, contexts); - var handlerInfos = state.handlerInfos; - var appCache = this._bucketCache; - - stashParamNames(this, handlerInfos); - - for (var i = 0, len = handlerInfos.length; i < len; ++i) { - var route = handlerInfos[i].handler; - var qpMeta = get(route, '_qp'); - - for (var j = 0, qpLen = qpMeta.qps.length; j < qpLen; ++j) { - var qp = qpMeta.qps[j]; - var presentProp = qp.prop in queryParams && qp.prop || - qp.fprop in queryParams && qp.fprop; - - if (presentProp) { - if (presentProp !== qp.fprop) { - queryParams[qp.fprop] = queryParams[presentProp]; - delete queryParams[presentProp]; - } - } else { - var controllerProto = qp.cProto; - var cacheMeta = get(controllerProto, '_cacheMeta'); - - var cacheKey = controllerProto._calculateCacheKey(qp.ctrl, cacheMeta[qp.prop].parts, state.params); - queryParams[qp.fprop] = appCache.lookup(cacheKey, qp.prop, qp.def); - } - } - } - }, - - _scheduleLoadingEvent: function(transition, originRoute) { - this._cancelLoadingEvent(); - this._loadingStateTimer = run.scheduleOnce('routerTransitions', this, '_fireLoadingEvent', transition, originRoute); - }, - - _fireLoadingEvent: function(transition, originRoute) { - if (!this.router.activeTransition) { - // Don't fire an event if we've since moved on from - // the transition that put us in a loading state. - return; - } - - transition.trigger(true, 'loading', transition, originRoute); - }, - - _cancelLoadingEvent: function () { - if (this._loadingStateTimer) { - run.cancel(this._loadingStateTimer); - } - this._loadingStateTimer = null; - } - }); - - /* - Helper function for iterating root-ward, starting - from (but not including) the provided `originRoute`. - - Returns true if the last callback fired requested - to bubble upward. - - @private - */ - function forEachRouteAbove(originRoute, transition, callback) { - var handlerInfos = transition.state.handlerInfos; - var originRouteFound = false; - var handlerInfo, route; - - for (var i = handlerInfos.length - 1; i >= 0; --i) { - handlerInfo = handlerInfos[i]; - route = handlerInfo.handler; - - if (!originRouteFound) { - if (originRoute === route) { - originRouteFound = true; - } - continue; - } - - if (callback(route, handlerInfos[i + 1].handler) !== true) { - return false; - } - } - return true; - } - - // These get invoked when an action bubbles above ApplicationRoute - // and are not meant to be overridable. - var defaultActionHandlers = { - - willResolveModel: function(transition, originRoute) { - originRoute.router._scheduleLoadingEvent(transition, originRoute); - }, - - error: function(error, transition, originRoute) { - // Attempt to find an appropriate error substate to enter. - var router = originRoute.router; - - var tryTopLevel = forEachRouteAbove(originRoute, transition, function(route, childRoute) { - var childErrorRouteName = findChildRouteName(route, childRoute, 'error'); - if (childErrorRouteName) { - router.intermediateTransitionTo(childErrorRouteName, error); - return; - } - return true; - }); - - if (tryTopLevel) { - // Check for top-level error state to enter. - if (routeHasBeenDefined(originRoute.router, 'application_error')) { - router.intermediateTransitionTo('application_error', error); - return; - } - } - - logError(error, 'Error while processing route: ' + transition.targetName); - }, - - loading: function(transition, originRoute) { - // Attempt to find an appropriate loading substate to enter. - var router = originRoute.router; - - var tryTopLevel = forEachRouteAbove(originRoute, transition, function(route, childRoute) { - var childLoadingRouteName = findChildRouteName(route, childRoute, 'loading'); - - if (childLoadingRouteName) { - router.intermediateTransitionTo(childLoadingRouteName); - return; - } - - // Don't bubble above pivot route. - if (transition.pivotHandler !== route) { - return true; - } - }); - - if (tryTopLevel) { - // Check for top-level loading state to enter. - if (routeHasBeenDefined(originRoute.router, 'application_loading')) { - router.intermediateTransitionTo('application_loading'); - return; - } - } - } - }; - - function logError(error, initialMessage) { - var errorArgs = []; - - if (initialMessage) { errorArgs.push(initialMessage); } - - if (error) { - if (error.message) { errorArgs.push(error.message); } - if (error.stack) { errorArgs.push(error.stack); } - - if (typeof error === "string") { errorArgs.push(error); } - } - - Ember.Logger.error.apply(this, errorArgs); - } - - function findChildRouteName(parentRoute, originatingChildRoute, name) { - var router = parentRoute.router; - var childName; - var targetChildRouteName = originatingChildRoute.routeName.split('.').pop(); - var namespace = parentRoute.routeName === 'application' ? '' : parentRoute.routeName + '.'; - - - // Second, try general loading state, e.g. 'loading' - childName = namespace + name; - if (routeHasBeenDefined(router, childName)) { - return childName; - } - } - - function routeHasBeenDefined(router, name) { - var container = router.container; - return router.hasRoute(name) && - (container.has('template:' + name) || container.has('route:' + name)); - } - - function triggerEvent(handlerInfos, ignoreFailure, args) { - var name = args.shift(); - - if (!handlerInfos) { - if (ignoreFailure) { return; } - throw new EmberError("Can't trigger action '" + name + "' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call `.send()` on the `Transition` object passed to the `model/beforeModel/afterModel` hooks."); - } - - var eventWasHandled = false; - var handlerInfo, handler; - - for (var i = handlerInfos.length - 1; i >= 0; i--) { - handlerInfo = handlerInfos[i]; - handler = handlerInfo.handler; - - if (handler._actions && handler._actions[name]) { - if (handler._actions[name].apply(handler, args) === true) { - eventWasHandled = true; - } else { - return; - } - } - } - - if (defaultActionHandlers[name]) { - defaultActionHandlers[name].apply(null, args); - return; - } - - if (!eventWasHandled && !ignoreFailure) { - throw new EmberError("Nothing handled the action '" + name + "'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble."); - } - } - - function calculatePostTransitionState(emberRouter, leafRouteName, contexts) { - var routerjs = emberRouter.router; - var state = routerjs.applyIntent(leafRouteName, contexts); - var handlerInfos = state.handlerInfos; - var params = state.params; - - for (var i = 0, len = handlerInfos.length; i < len; ++i) { - var handlerInfo = handlerInfos[i]; - if (!handlerInfo.isResolved) { - handlerInfo = handlerInfo.becomeResolved(null, handlerInfo.context); - } - params[handlerInfo.name] = handlerInfo.params; - } - return state; - } - - function updatePaths(router) { - var appController = router.container.lookup('controller:application'); - - if (!appController) { - // appController might not exist when top-level loading/error - // substates have been entered since ApplicationRoute hasn't - // actually been entered at that point. - return; - } - - var infos = router.router.currentHandlerInfos; - var path = EmberRouter._routePath(infos); - - if (!('currentPath' in appController)) { - defineProperty(appController, 'currentPath'); - } - - set(appController, 'currentPath', path); - - if (!('currentRouteName' in appController)) { - defineProperty(appController, 'currentRouteName'); - } - - set(appController, 'currentRouteName', infos[infos.length - 1].name); - } - - EmberRouter.reopenClass({ - router: null, - - /** - The `Router.map` function allows you to define mappings from URLs to routes - and resources in your application. These mappings are defined within the - supplied callback function using `this.resource` and `this.route`. - - ```javascript - App.Router.map(function({ - this.route('about'); - this.resource('article'); - })); - ``` - - For more detailed examples please see - [the guides](http://emberjs.com/guides/routing/defining-your-routes/). - - @method map - @param callback - */ - map: function(callback) { - var router = this.router; - if (!router) { - router = new Router(); - - - router._triggerWillChangeContext = K; - router._triggerWillLeave = K; - - - router.callbacks = []; - router.triggerEvent = triggerEvent; - this.reopenClass({ router: router }); - } - - var dsl = EmberRouterDSL.map(function() { - this.resource('application', { path: "/" }, function() { - for (var i=0; i < router.callbacks.length; i++) { - router.callbacks[i].call(this); - } - callback.call(this); - }); - }); - - router.callbacks.push(callback); - router.map(dsl.generate()); - return router; - }, - - _routePath: function(handlerInfos) { - var path = []; - - // We have to handle coalescing resource names that - // are prefixed with their parent's names, e.g. - // ['foo', 'foo.bar.baz'] => 'foo.bar.baz', not 'foo.foo.bar.baz' - - function intersectionMatches(a1, a2) { - for (var i = 0, len = a1.length; i < len; ++i) { - if (a1[i] !== a2[i]) { - return false; - } - } - return true; - } - - var name, nameParts, oldNameParts; - for (var i=1, l=handlerInfos.length; i 0) - (diff < 0); - } - - /** - This will compare two javascript values of possibly different types. - It will tell you which one is greater than the other by returning: - - - -1 if the first is smaller than the second, - - 0 if both are equal, - - 1 if the first is greater than the second. - - The order is calculated based on `Ember.ORDER_DEFINITION`, if types are different. - In case they have the same type an appropriate comparison for this type is made. - - ```javascript - Ember.compare('hello', 'hello'); // 0 - Ember.compare('abc', 'dfg'); // -1 - Ember.compare(2, 1); // 1 - ``` - - @method compare - @for Ember - @param {Object} v First value to compare - @param {Object} w Second value to compare - @return {Number} -1 if v < w, 0 if v = w and 1 if v > w. - */ - __exports__["default"] = function compare(v, w) { - if (v === w) { - return 0; - } - - var type1 = typeOf(v); - var type2 = typeOf(w); - - if (Comparable) { - if (type1 === 'instance' && Comparable.detect(v) && v.constructor.compare) { - return v.constructor.compare(v, w); - } - - if (type2 === 'instance' && Comparable.detect(w) && w.constructor.compare) { - return w.constructor.compare(w, v) * -1; - } - } - - var res = spaceship(TYPE_ORDER[type1], TYPE_ORDER[type2]); - - if (res !== 0) { - return res; - } - - // types are equal - so we have to check values now - switch (type1) { - case 'boolean': - case 'number': - return spaceship(v,w); - - case 'string': - return spaceship(v.localeCompare(w), 0); - - case 'array': - var vLen = v.length; - var wLen = w.length; - var len = Math.min(vLen, wLen); - - for (var i = 0; i < len; i++) { - var r = compare(v[i], w[i]); - if (r !== 0) { - return r; - } - } - - // all elements are equal now - // shorter array should be ordered first - return spaceship(vLen, wLen); - - case 'instance': - if (Comparable && Comparable.detect(v)) { - return v.compare(v, w); - } - return 0; - - case 'date': - return spaceship(v.getTime(), w.getTime()); - - default: - return 0; - } - } - }); -enifed("ember-runtime/computed/array_computed", - ["ember-metal/core","ember-runtime/computed/reduce_computed","ember-metal/enumerable_utils","ember-metal/platform","ember-metal/observer","ember-metal/error","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - var ReduceComputedProperty = __dependency2__.ReduceComputedProperty; - var forEach = __dependency3__.forEach; - var o_create = __dependency4__.create; - var addObserver = __dependency5__.addObserver; - var EmberError = __dependency6__["default"]; - - var a_slice = [].slice; - - function ArrayComputedProperty() { - var cp = this; - - ReduceComputedProperty.apply(this, arguments); - - this.func = (function(reduceFunc) { - return function (propertyName) { - if (!cp._hasInstanceMeta(this, propertyName)) { - // When we recompute an array computed property, we need already - // retrieved arrays to be updated; we can't simply empty the cache and - // hope the array is re-retrieved. - forEach(cp._dependentKeys, function(dependentKey) { - addObserver(this, dependentKey, function() { - cp.recomputeOnce.call(this, propertyName); - }); - }, this); - } - - return reduceFunc.apply(this, arguments); - }; - })(this.func); - - return this; - } - - ArrayComputedProperty.prototype = o_create(ReduceComputedProperty.prototype); - - ArrayComputedProperty.prototype.initialValue = function () { - return Ember.A(); - }; - - ArrayComputedProperty.prototype.resetValue = function (array) { - array.clear(); - return array; - }; - - // This is a stopgap to keep the reference counts correct with lazy CPs. - ArrayComputedProperty.prototype.didChange = function (obj, keyName) { - return; - }; - - /** - Creates a computed property which operates on dependent arrays and - is updated with "one at a time" semantics. When items are added or - removed from the dependent array(s) an array computed only operates - on the change instead of re-evaluating the entire array. This should - return an array, if you'd like to use "one at a time" semantics and - compute some value other then an array look at - `Ember.reduceComputed`. - - If there are more than one arguments the first arguments are - considered to be dependent property keys. The last argument is - required to be an options object. The options object can have the - following three properties. - - `initialize` - An optional initialize function. Typically this will be used - to set up state on the instanceMeta object. - - `removedItem` - A function that is called each time an element is - removed from the array. - - `addedItem` - A function that is called each time an element is - added to the array. - - - The `initialize` function has the following signature: - - ```javascript - function(array, changeMeta, instanceMeta) - ``` - - `array` - The initial value of the arrayComputed, an empty array. - - `changeMeta` - An object which contains meta information about the - computed. It contains the following properties: - - - `property` the computed property - - `propertyName` the name of the property on the object - - `instanceMeta` - An object that can be used to store meta - information needed for calculating your computed. For example a - unique computed might use this to store the number of times a given - element is found in the dependent array. - - - The `removedItem` and `addedItem` functions both have the following signature: - - ```javascript - function(accumulatedValue, item, changeMeta, instanceMeta) - ``` - - `accumulatedValue` - The value returned from the last time - `removedItem` or `addedItem` was called or an empty array. - - `item` - the element added or removed from the array - - `changeMeta` - An object which contains meta information about the - change. It contains the following properties: - - - `property` the computed property - - `propertyName` the name of the property on the object - - `index` the index of the added or removed item - - `item` the added or removed item: this is exactly the same as - the second arg - - `arrayChanged` the array that triggered the change. Can be - useful when depending on multiple arrays. - - For property changes triggered on an item property change (when - depKey is something like `someArray.@each.someProperty`), - `changeMeta` will also contain the following property: - - - `previousValues` an object whose keys are the properties that changed on - the item, and whose values are the item's previous values. - - `previousValues` is important Ember coalesces item property changes via - Ember.run.once. This means that by the time removedItem gets called, item has - the new values, but you may need the previous value (eg for sorting & - filtering). - - `instanceMeta` - An object that can be used to store meta - information needed for calculating your computed. For example a - unique computed might use this to store the number of times a given - element is found in the dependent array. - - The `removedItem` and `addedItem` functions should return the accumulated - value. It is acceptable to not return anything (ie return undefined) - to invalidate the computation. This is generally not a good idea for - arrayComputed but it's used in eg max and min. - - Example - - ```javascript - Ember.computed.map = function(dependentKey, callback) { - var options = { - addedItem: function(array, item, changeMeta, instanceMeta) { - var mapped = callback(item); - array.insertAt(changeMeta.index, mapped); - return array; - }, - removedItem: function(array, item, changeMeta, instanceMeta) { - array.removeAt(changeMeta.index, 1); - return array; - } - }; - - return Ember.arrayComputed(dependentKey, options); - }; - ``` - - @method arrayComputed - @for Ember - @param {String} [dependentKeys*] - @param {Object} options - @return {Ember.ComputedProperty} - */ - function arrayComputed (options) { - var args; - - if (arguments.length > 1) { - args = a_slice.call(arguments, 0, -1); - options = a_slice.call(arguments, -1)[0]; - } - - if (typeof options !== 'object') { - throw new EmberError('Array Computed Property declared without an options hash'); - } - - var cp = new ArrayComputedProperty(options); - - if (args) { - cp.property.apply(cp, args); - } - - return cp; - } - - __exports__.arrayComputed = arrayComputed; - __exports__.ArrayComputedProperty = ArrayComputedProperty; - }); -enifed("ember-runtime/computed/reduce_computed", - ["ember-metal/core","ember-metal/property_get","ember-metal/utils","ember-metal/error","ember-metal/property_events","ember-metal/expand_properties","ember-metal/observer","ember-metal/computed","ember-metal/platform","ember-metal/enumerable_utils","ember-runtime/system/tracked_array","ember-runtime/mixins/array","ember-metal/run_loop","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // Ember.assert - var e_get = __dependency2__.get; - var guidFor = __dependency3__.guidFor; - var metaFor = __dependency3__.meta; - var EmberError = __dependency4__["default"]; - var propertyWillChange = __dependency5__.propertyWillChange; - var propertyDidChange = __dependency5__.propertyDidChange; - var expandProperties = __dependency6__["default"]; - var addObserver = __dependency7__.addObserver; - var removeObserver = __dependency7__.removeObserver; - var addBeforeObserver = __dependency7__.addBeforeObserver; - var removeBeforeObserver = __dependency7__.removeBeforeObserver; - var ComputedProperty = __dependency8__.ComputedProperty; - var cacheFor = __dependency8__.cacheFor; - var o_create = __dependency9__.create; - var forEach = __dependency10__.forEach; - var TrackedArray = __dependency11__["default"]; - var EmberArray = __dependency12__["default"]; - var run = __dependency13__["default"]; - var isArray = __dependency3__.isArray; - - var cacheSet = cacheFor.set; - var cacheGet = cacheFor.get; - var cacheRemove = cacheFor.remove; - var a_slice = [].slice; - // Here we explicitly don't allow `@each.foo`; it would require some special - // testing, but there's no particular reason why it should be disallowed. - var eachPropertyPattern = /^(.*)\.@each\.(.*)/; - var doubleEachPropertyPattern = /(.*\.@each){2,}/; - var arrayBracketPattern = /\.\[\]$/; - - function get(obj, key) { - if (key === '@this') { - return obj; - } - - return e_get(obj, key); - } - - /* - Tracks changes to dependent arrays, as well as to properties of items in - dependent arrays. - - @class DependentArraysObserver - */ - function DependentArraysObserver(callbacks, cp, instanceMeta, context, propertyName, sugarMeta) { - // user specified callbacks for `addedItem` and `removedItem` - this.callbacks = callbacks; - - // the computed property: remember these are shared across instances - this.cp = cp; - - // the ReduceComputedPropertyInstanceMeta this DependentArraysObserver is - // associated with - this.instanceMeta = instanceMeta; - - // A map of array guids to dependentKeys, for the given context. We track - // this because we want to set up the computed property potentially before the - // dependent array even exists, but when the array observer fires, we lack - // enough context to know what to update: we can recover that context by - // getting the dependentKey. - this.dependentKeysByGuid = {}; - - // a map of dependent array guids -> TrackedArray instances. We use - // this to lazily recompute indexes for item property observers. - this.trackedArraysByGuid = {}; - - // We suspend observers to ignore replacements from `reset` when totally - // recomputing. Unfortunately we cannot properly suspend the observers - // because we only have the key; instead we make the observers no-ops - this.suspended = false; - - // This is used to coalesce item changes from property observers within a - // single item. - this.changedItems = {}; - // This is used to coalesce item changes for multiple items that depend on - // some shared state. - this.changedItemCount = 0; - } - - function ItemPropertyObserverContext (dependentArray, index, trackedArray) { - Ember.assert('Internal error: trackedArray is null or undefined', trackedArray); - - this.dependentArray = dependentArray; - this.index = index; - this.item = dependentArray.objectAt(index); - this.trackedArray = trackedArray; - this.beforeObserver = null; - this.observer = null; - this.destroyed = false; - } - - DependentArraysObserver.prototype = { - setValue: function (newValue) { - this.instanceMeta.setValue(newValue, true); - }, - - getValue: function () { - return this.instanceMeta.getValue(); - }, - - setupObservers: function (dependentArray, dependentKey) { - this.dependentKeysByGuid[guidFor(dependentArray)] = dependentKey; - - dependentArray.addArrayObserver(this, { - willChange: 'dependentArrayWillChange', - didChange: 'dependentArrayDidChange' - }); - - if (this.cp._itemPropertyKeys[dependentKey]) { - this.setupPropertyObservers(dependentKey, this.cp._itemPropertyKeys[dependentKey]); - } - }, - - teardownObservers: function (dependentArray, dependentKey) { - var itemPropertyKeys = this.cp._itemPropertyKeys[dependentKey] || []; - - delete this.dependentKeysByGuid[guidFor(dependentArray)]; - - this.teardownPropertyObservers(dependentKey, itemPropertyKeys); - - dependentArray.removeArrayObserver(this, { - willChange: 'dependentArrayWillChange', - didChange: 'dependentArrayDidChange' - }); - }, - - suspendArrayObservers: function (callback, binding) { - var oldSuspended = this.suspended; - this.suspended = true; - callback.call(binding); - this.suspended = oldSuspended; - }, - - setupPropertyObservers: function (dependentKey, itemPropertyKeys) { - var dependentArray = get(this.instanceMeta.context, dependentKey); - var length = get(dependentArray, 'length'); - var observerContexts = new Array(length); - - this.resetTransformations(dependentKey, observerContexts); - - forEach(dependentArray, function (item, index) { - var observerContext = this.createPropertyObserverContext(dependentArray, index, this.trackedArraysByGuid[dependentKey]); - observerContexts[index] = observerContext; - - forEach(itemPropertyKeys, function (propertyKey) { - addBeforeObserver(item, propertyKey, this, observerContext.beforeObserver); - addObserver(item, propertyKey, this, observerContext.observer); - }, this); - }, this); - }, - - teardownPropertyObservers: function (dependentKey, itemPropertyKeys) { - var dependentArrayObserver = this; - var trackedArray = this.trackedArraysByGuid[dependentKey]; - var beforeObserver, observer, item; - - if (!trackedArray) { return; } - - trackedArray.apply(function (observerContexts, offset, operation) { - if (operation === TrackedArray.DELETE) { return; } - - forEach(observerContexts, function (observerContext) { - observerContext.destroyed = true; - beforeObserver = observerContext.beforeObserver; - observer = observerContext.observer; - item = observerContext.item; - - forEach(itemPropertyKeys, function (propertyKey) { - removeBeforeObserver(item, propertyKey, dependentArrayObserver, beforeObserver); - removeObserver(item, propertyKey, dependentArrayObserver, observer); - }); - }); - }); - }, - - createPropertyObserverContext: function (dependentArray, index, trackedArray) { - var observerContext = new ItemPropertyObserverContext(dependentArray, index, trackedArray); - - this.createPropertyObserver(observerContext); - - return observerContext; - }, - - createPropertyObserver: function (observerContext) { - var dependentArrayObserver = this; - - observerContext.beforeObserver = function (obj, keyName) { - return dependentArrayObserver.itemPropertyWillChange(obj, keyName, observerContext.dependentArray, observerContext); - }; - - observerContext.observer = function (obj, keyName) { - return dependentArrayObserver.itemPropertyDidChange(obj, keyName, observerContext.dependentArray, observerContext); - }; - }, - - resetTransformations: function (dependentKey, observerContexts) { - this.trackedArraysByGuid[dependentKey] = new TrackedArray(observerContexts); - }, - - trackAdd: function (dependentKey, index, newItems) { - var trackedArray = this.trackedArraysByGuid[dependentKey]; - - if (trackedArray) { - trackedArray.addItems(index, newItems); - } - }, - - trackRemove: function (dependentKey, index, removedCount) { - var trackedArray = this.trackedArraysByGuid[dependentKey]; - - if (trackedArray) { - return trackedArray.removeItems(index, removedCount); - } - - return []; - }, - - updateIndexes: function (trackedArray, array) { - var length = get(array, 'length'); - // OPTIMIZE: we could stop updating once we hit the object whose observer - // fired; ie partially apply the transformations - trackedArray.apply(function (observerContexts, offset, operation, operationIndex) { - // we don't even have observer contexts for removed items, even if we did, - // they no longer have any index in the array - if (operation === TrackedArray.DELETE) { return; } - if (operationIndex === 0 && operation === TrackedArray.RETAIN && observerContexts.length === length && offset === 0) { - // If we update many items we don't want to walk the array each time: we - // only need to update the indexes at most once per run loop. - return; - } - - forEach(observerContexts, function (context, index) { - context.index = index + offset; - }); - }); - }, - - dependentArrayWillChange: function (dependentArray, index, removedCount, addedCount) { - if (this.suspended) { return; } - - var removedItem = this.callbacks.removedItem; - var changeMeta; - var guid = guidFor(dependentArray); - var dependentKey = this.dependentKeysByGuid[guid]; - var itemPropertyKeys = this.cp._itemPropertyKeys[dependentKey] || []; - var length = get(dependentArray, 'length'); - var normalizedIndex = normalizeIndex(index, length, 0); - var normalizedRemoveCount = normalizeRemoveCount(normalizedIndex, length, removedCount); - var item, itemIndex, sliceIndex, observerContexts; - - observerContexts = this.trackRemove(dependentKey, normalizedIndex, normalizedRemoveCount); - - function removeObservers(propertyKey) { - observerContexts[sliceIndex].destroyed = true; - removeBeforeObserver(item, propertyKey, this, observerContexts[sliceIndex].beforeObserver); - removeObserver(item, propertyKey, this, observerContexts[sliceIndex].observer); - } - - for (sliceIndex = normalizedRemoveCount - 1; sliceIndex >= 0; --sliceIndex) { - itemIndex = normalizedIndex + sliceIndex; - if (itemIndex >= length) { break; } - - item = dependentArray.objectAt(itemIndex); - - forEach(itemPropertyKeys, removeObservers, this); - - changeMeta = new ChangeMeta(dependentArray, item, itemIndex, this.instanceMeta.propertyName, this.cp, normalizedRemoveCount); - this.setValue(removedItem.call( - this.instanceMeta.context, this.getValue(), item, changeMeta, this.instanceMeta.sugarMeta)); - } - this.callbacks.flushedChanges.call(this.instanceMeta.context, this.getValue(), this.instanceMeta.sugarMeta); - }, - - dependentArrayDidChange: function (dependentArray, index, removedCount, addedCount) { - if (this.suspended) { return; } - - var addedItem = this.callbacks.addedItem; - var guid = guidFor(dependentArray); - var dependentKey = this.dependentKeysByGuid[guid]; - var observerContexts = new Array(addedCount); - var itemPropertyKeys = this.cp._itemPropertyKeys[dependentKey]; - var length = get(dependentArray, 'length'); - var normalizedIndex = normalizeIndex(index, length, addedCount); - var endIndex = normalizedIndex + addedCount; - var changeMeta, observerContext; - - forEach(dependentArray.slice(normalizedIndex, endIndex), function (item, sliceIndex) { - if (itemPropertyKeys) { - observerContext = this.createPropertyObserverContext(dependentArray, normalizedIndex + sliceIndex, - this.trackedArraysByGuid[dependentKey]); - observerContexts[sliceIndex] = observerContext; - - forEach(itemPropertyKeys, function (propertyKey) { - addBeforeObserver(item, propertyKey, this, observerContext.beforeObserver); - addObserver(item, propertyKey, this, observerContext.observer); - }, this); - } - - changeMeta = new ChangeMeta(dependentArray, item, normalizedIndex + sliceIndex, this.instanceMeta.propertyName, this.cp, addedCount); - this.setValue(addedItem.call( - this.instanceMeta.context, this.getValue(), item, changeMeta, this.instanceMeta.sugarMeta)); - }, this); - this.callbacks.flushedChanges.call(this.instanceMeta.context, this.getValue(), this.instanceMeta.sugarMeta); - this.trackAdd(dependentKey, normalizedIndex, observerContexts); - }, - - itemPropertyWillChange: function (obj, keyName, array, observerContext) { - var guid = guidFor(obj); - - if (!this.changedItems[guid]) { - this.changedItems[guid] = { - array: array, - observerContext: observerContext, - obj: obj, - previousValues: {} - }; - } - - ++this.changedItemCount; - this.changedItems[guid].previousValues[keyName] = get(obj, keyName); - }, - - itemPropertyDidChange: function (obj, keyName, array, observerContext) { - if (--this.changedItemCount === 0) { - this.flushChanges(); - } - }, - - flushChanges: function () { - var changedItems = this.changedItems; - var key, c, changeMeta; - - for (key in changedItems) { - c = changedItems[key]; - if (c.observerContext.destroyed) { continue; } - - this.updateIndexes(c.observerContext.trackedArray, c.observerContext.dependentArray); - - changeMeta = new ChangeMeta(c.array, c.obj, c.observerContext.index, this.instanceMeta.propertyName, this.cp, changedItems.length, c.previousValues); - this.setValue( - this.callbacks.removedItem.call(this.instanceMeta.context, this.getValue(), c.obj, changeMeta, this.instanceMeta.sugarMeta)); - this.setValue( - this.callbacks.addedItem.call(this.instanceMeta.context, this.getValue(), c.obj, changeMeta, this.instanceMeta.sugarMeta)); - } - - this.changedItems = {}; - this.callbacks.flushedChanges.call(this.instanceMeta.context, this.getValue(), this.instanceMeta.sugarMeta); - } - }; - - function normalizeIndex(index, length, newItemsOffset) { - if (index < 0) { - return Math.max(0, length + index); - } else if (index < length) { - return index; - } else /* index > length */ { - return Math.min(length - newItemsOffset, index); - } - } - - function normalizeRemoveCount(index, length, removedCount) { - return Math.min(removedCount, length - index); - } - - function ChangeMeta(dependentArray, item, index, propertyName, property, changedCount, previousValues){ - this.arrayChanged = dependentArray; - this.index = index; - this.item = item; - this.propertyName = propertyName; - this.property = property; - this.changedCount = changedCount; - - if (previousValues) { - // previous values only available for item property changes - this.previousValues = previousValues; - } - } - - function addItems(dependentArray, callbacks, cp, propertyName, meta) { - forEach(dependentArray, function (item, index) { - meta.setValue( callbacks.addedItem.call( - this, meta.getValue(), item, new ChangeMeta(dependentArray, item, index, propertyName, cp, dependentArray.length), meta.sugarMeta)); - }, this); - callbacks.flushedChanges.call(this, meta.getValue(), meta.sugarMeta); - } - - function reset(cp, propertyName) { - var hadMeta = cp._hasInstanceMeta(this, propertyName); - var meta = cp._instanceMeta(this, propertyName); - - if (hadMeta) { meta.setValue(cp.resetValue(meta.getValue())); } - - if (cp.options.initialize) { - cp.options.initialize.call(this, meta.getValue(), { - property: cp, - propertyName: propertyName - }, meta.sugarMeta); - } - } - - function partiallyRecomputeFor(obj, dependentKey) { - if (arrayBracketPattern.test(dependentKey)) { - return false; - } - - var value = get(obj, dependentKey); - return EmberArray.detect(value); - } - - function ReduceComputedPropertyInstanceMeta(context, propertyName, initialValue) { - this.context = context; - this.propertyName = propertyName; - this.cache = metaFor(context).cache; - this.dependentArrays = {}; - this.sugarMeta = {}; - this.initialValue = initialValue; - } - - ReduceComputedPropertyInstanceMeta.prototype = { - getValue: function () { - var value = cacheGet(this.cache, this.propertyName); - - if (value !== undefined) { - return value; - } else { - return this.initialValue; - } - }, - - setValue: function(newValue, triggerObservers) { - // This lets sugars force a recomputation, handy for very simple - // implementations of eg max. - if (newValue === cacheGet(this.cache, this.propertyName)) { - return; - } - - if (triggerObservers) { - propertyWillChange(this.context, this.propertyName); - } - - if (newValue === undefined) { - cacheRemove(this.cache, this.propertyName); - } else { - cacheSet(this.cache, this.propertyName, newValue); - } - - if (triggerObservers) { - propertyDidChange(this.context, this.propertyName); - } - } - }; - - /** - A computed property whose dependent keys are arrays and which is updated with - "one at a time" semantics. - - @class ReduceComputedProperty - @namespace Ember - @extends Ember.ComputedProperty - @constructor - */ - - __exports__.ReduceComputedProperty = ReduceComputedProperty; - // TODO: default export - - function ReduceComputedProperty(options) { - var cp = this; - - this.options = options; - this._dependentKeys = null; - this._cacheable = true; - // A map of dependentKey -> [itemProperty, ...] that tracks what properties of - // items in the array we must track to update this property. - this._itemPropertyKeys = {}; - this._previousItemPropertyKeys = {}; - - this.readOnly(); - - this.recomputeOnce = function(propertyName) { - // What we really want to do is coalesce by . - // We need a form of `scheduleOnce` that accepts an arbitrary token to - // coalesce by, in addition to the target and method. - run.once(this, recompute, propertyName); - }; - - var recompute = function(propertyName) { - var meta = cp._instanceMeta(this, propertyName); - var callbacks = cp._callbacks(); - - reset.call(this, cp, propertyName); - - meta.dependentArraysObserver.suspendArrayObservers(function () { - forEach(cp._dependentKeys, function (dependentKey) { - Ember.assert( - 'dependent array ' + dependentKey + ' must be an `Ember.Array`. ' + - 'If you are not extending arrays, you will need to wrap native arrays with `Ember.A`', - !(isArray(get(this, dependentKey)) && !EmberArray.detect(get(this, dependentKey)))); - - if (!partiallyRecomputeFor(this, dependentKey)) { return; } - - var dependentArray = get(this, dependentKey); - var previousDependentArray = meta.dependentArrays[dependentKey]; - - if (dependentArray === previousDependentArray) { - // The array may be the same, but our item property keys may have - // changed, so we set them up again. We can't easily tell if they've - // changed: the array may be the same object, but with different - // contents. - if (cp._previousItemPropertyKeys[dependentKey]) { - delete cp._previousItemPropertyKeys[dependentKey]; - meta.dependentArraysObserver.setupPropertyObservers(dependentKey, cp._itemPropertyKeys[dependentKey]); - } - } else { - meta.dependentArrays[dependentKey] = dependentArray; - - if (previousDependentArray) { - meta.dependentArraysObserver.teardownObservers(previousDependentArray, dependentKey); - } - - if (dependentArray) { - meta.dependentArraysObserver.setupObservers(dependentArray, dependentKey); - } - } - }, this); - }, this); - - forEach(cp._dependentKeys, function(dependentKey) { - if (!partiallyRecomputeFor(this, dependentKey)) { return; } - - var dependentArray = get(this, dependentKey); - - if (dependentArray) { - addItems.call(this, dependentArray, callbacks, cp, propertyName, meta); - } - }, this); - }; - - - this.func = function (propertyName) { - Ember.assert('Computed reduce values require at least one dependent key', cp._dependentKeys); - - recompute.call(this, propertyName); - - return cp._instanceMeta(this, propertyName).getValue(); - }; - } - - ReduceComputedProperty.prototype = o_create(ComputedProperty.prototype); - - function defaultCallback(computedValue) { - return computedValue; - } - - ReduceComputedProperty.prototype._callbacks = function () { - if (!this.callbacks) { - var options = this.options; - - this.callbacks = { - removedItem: options.removedItem || defaultCallback, - addedItem: options.addedItem || defaultCallback, - flushedChanges: options.flushedChanges || defaultCallback - }; - } - - return this.callbacks; - }; - - ReduceComputedProperty.prototype._hasInstanceMeta = function (context, propertyName) { - return !!metaFor(context).cacheMeta[propertyName]; - }; - - ReduceComputedProperty.prototype._instanceMeta = function (context, propertyName) { - var cacheMeta = metaFor(context).cacheMeta; - var meta = cacheMeta[propertyName]; - - if (!meta) { - meta = cacheMeta[propertyName] = new ReduceComputedPropertyInstanceMeta(context, propertyName, this.initialValue()); - meta.dependentArraysObserver = new DependentArraysObserver(this._callbacks(), this, meta, context, propertyName, meta.sugarMeta); - } - - return meta; - }; - - ReduceComputedProperty.prototype.initialValue = function () { - if (typeof this.options.initialValue === 'function') { - return this.options.initialValue(); - } - else { - return this.options.initialValue; - } - }; - - ReduceComputedProperty.prototype.resetValue = function (value) { - return this.initialValue(); - }; - - ReduceComputedProperty.prototype.itemPropertyKey = function (dependentArrayKey, itemPropertyKey) { - this._itemPropertyKeys[dependentArrayKey] = this._itemPropertyKeys[dependentArrayKey] || []; - this._itemPropertyKeys[dependentArrayKey].push(itemPropertyKey); - }; - - ReduceComputedProperty.prototype.clearItemPropertyKeys = function (dependentArrayKey) { - if (this._itemPropertyKeys[dependentArrayKey]) { - this._previousItemPropertyKeys[dependentArrayKey] = this._itemPropertyKeys[dependentArrayKey]; - this._itemPropertyKeys[dependentArrayKey] = []; - } - }; - - ReduceComputedProperty.prototype.property = function () { - var cp = this; - var args = a_slice.call(arguments); - var propertyArgs = {}; - var match, dependentArrayKey; - - forEach(args, function (dependentKey) { - if (doubleEachPropertyPattern.test(dependentKey)) { - throw new EmberError('Nested @each properties not supported: ' + dependentKey); - } else if (match = eachPropertyPattern.exec(dependentKey)) { - dependentArrayKey = match[1]; - - var itemPropertyKeyPattern = match[2]; - var addItemPropertyKey = function (itemPropertyKey) { - cp.itemPropertyKey(dependentArrayKey, itemPropertyKey); - }; - - expandProperties(itemPropertyKeyPattern, addItemPropertyKey); - propertyArgs[guidFor(dependentArrayKey)] = dependentArrayKey; - } else { - propertyArgs[guidFor(dependentKey)] = dependentKey; - } - }); - - var propertyArgsToArray = []; - for (var guid in propertyArgs) { - propertyArgsToArray.push(propertyArgs[guid]); - } - - return ComputedProperty.prototype.property.apply(this, propertyArgsToArray); - }; - - /** - Creates a computed property which operates on dependent arrays and - is updated with "one at a time" semantics. When items are added or - removed from the dependent array(s) a reduce computed only operates - on the change instead of re-evaluating the entire array. - - If there are more than one arguments the first arguments are - considered to be dependent property keys. The last argument is - required to be an options object. The options object can have the - following four properties: - - `initialValue` - A value or function that will be used as the initial - value for the computed. If this property is a function the result of calling - the function will be used as the initial value. This property is required. - - `initialize` - An optional initialize function. Typically this will be used - to set up state on the instanceMeta object. - - `removedItem` - A function that is called each time an element is removed - from the array. - - `addedItem` - A function that is called each time an element is added to - the array. - - - The `initialize` function has the following signature: - - ```javascript - function(initialValue, changeMeta, instanceMeta) - ``` - - `initialValue` - The value of the `initialValue` property from the - options object. - - `changeMeta` - An object which contains meta information about the - computed. It contains the following properties: - - - `property` the computed property - - `propertyName` the name of the property on the object - - `instanceMeta` - An object that can be used to store meta - information needed for calculating your computed. For example a - unique computed might use this to store the number of times a given - element is found in the dependent array. - - - The `removedItem` and `addedItem` functions both have the following signature: - - ```javascript - function(accumulatedValue, item, changeMeta, instanceMeta) - ``` - - `accumulatedValue` - The value returned from the last time - `removedItem` or `addedItem` was called or `initialValue`. - - `item` - the element added or removed from the array - - `changeMeta` - An object which contains meta information about the - change. It contains the following properties: - - - `property` the computed property - - `propertyName` the name of the property on the object - - `index` the index of the added or removed item - - `item` the added or removed item: this is exactly the same as - the second arg - - `arrayChanged` the array that triggered the change. Can be - useful when depending on multiple arrays. - - For property changes triggered on an item property change (when - depKey is something like `someArray.@each.someProperty`), - `changeMeta` will also contain the following property: - - - `previousValues` an object whose keys are the properties that changed on - the item, and whose values are the item's previous values. - - `previousValues` is important Ember coalesces item property changes via - Ember.run.once. This means that by the time removedItem gets called, item has - the new values, but you may need the previous value (eg for sorting & - filtering). - - `instanceMeta` - An object that can be used to store meta - information needed for calculating your computed. For example a - unique computed might use this to store the number of times a given - element is found in the dependent array. - - The `removedItem` and `addedItem` functions should return the accumulated - value. It is acceptable to not return anything (ie return undefined) - to invalidate the computation. This is generally not a good idea for - arrayComputed but it's used in eg max and min. - - Note that observers will be fired if either of these functions return a value - that differs from the accumulated value. When returning an object that - mutates in response to array changes, for example an array that maps - everything from some other array (see `Ember.computed.map`), it is usually - important that the *same* array be returned to avoid accidentally triggering observers. - - Example - - ```javascript - Ember.computed.max = function(dependentKey) { - return Ember.reduceComputed(dependentKey, { - initialValue: -Infinity, - - addedItem: function(accumulatedValue, item, changeMeta, instanceMeta) { - return Math.max(accumulatedValue, item); - }, - - removedItem: function(accumulatedValue, item, changeMeta, instanceMeta) { - if (item < accumulatedValue) { - return accumulatedValue; - } - } - }); - }; - ``` - - Dependent keys may refer to `@this` to observe changes to the object itself, - which must be array-like, rather than a property of the object. This is - mostly useful for array proxies, to ensure objects are retrieved via - `objectAtContent`. This is how you could sort items by properties defined on an item controller. - - Example - - ```javascript - App.PeopleController = Ember.ArrayController.extend({ - itemController: 'person', - - sortedPeople: Ember.computed.sort('@this.@each.reversedName', function(personA, personB) { - // `reversedName` isn't defined on Person, but we have access to it via - // the item controller App.PersonController. If we'd used - // `content.@each.reversedName` above, we would be getting the objects - // directly and not have access to `reversedName`. - // - var reversedNameA = get(personA, 'reversedName'); - var reversedNameB = get(personB, 'reversedName'); - - return Ember.compare(reversedNameA, reversedNameB); - }) - }); - - App.PersonController = Ember.ObjectController.extend({ - reversedName: function() { - return reverse(get(this, 'name')); - }.property('name') - }); - ``` - - Dependent keys whose values are not arrays are treated as regular - dependencies: when they change, the computed property is completely - recalculated. It is sometimes useful to have dependent arrays with similar - semantics. Dependent keys which end in `.[]` do not use "one at a time" - semantics. When an item is added or removed from such a dependency, the - computed property is completely recomputed. - - When the computed property is completely recomputed, the `accumulatedValue` - is discarded, it starts with `initialValue` again, and each item is passed - to `addedItem` in turn. - - Example - - ```javascript - Ember.Object.extend({ - // When `string` is changed, `computed` is completely recomputed. - string: 'a string', - - // When an item is added to `array`, `addedItem` is called. - array: [], - - // When an item is added to `anotherArray`, `computed` is completely - // recomputed. - anotherArray: [], - - computed: Ember.reduceComputed('string', 'array', 'anotherArray.[]', { - addedItem: addedItemCallback, - removedItem: removedItemCallback - }) - }); - ``` - - @method reduceComputed - @for Ember - @param {String} [dependentKeys*] - @param {Object} options - @return {Ember.ComputedProperty} - */ - function reduceComputed(options) { - var args; - - if (arguments.length > 1) { - args = a_slice.call(arguments, 0, -1); - options = a_slice.call(arguments, -1)[0]; - } - - if (typeof options !== 'object') { - throw new EmberError('Reduce Computed Property declared without an options hash'); - } - - if (!('initialValue' in options)) { - throw new EmberError('Reduce Computed Property declared without an initial value'); - } - - var cp = new ReduceComputedProperty(options); - - if (args) { - cp.property.apply(cp, args); - } - - return cp; - } - - __exports__.reduceComputed = reduceComputed; - }); -enifed("ember-runtime/computed/reduce_computed_macros", - ["ember-metal/core","ember-metal/property_get","ember-metal/utils","ember-metal/error","ember-metal/enumerable_utils","ember-metal/run_loop","ember-metal/observer","ember-runtime/computed/array_computed","ember-runtime/computed/reduce_computed","ember-runtime/system/subarray","ember-metal/keys","ember-runtime/compare","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - var Ember = __dependency1__["default"]; - // Ember.assert - var get = __dependency2__.get; - var isArray = __dependency3__.isArray; - var guidFor = __dependency3__.guidFor; - var EmberError = __dependency4__["default"]; - var forEach = __dependency5__.forEach; - var run = __dependency6__["default"]; - var addObserver = __dependency7__.addObserver; - var arrayComputed = __dependency8__.arrayComputed; - var reduceComputed = __dependency9__.reduceComputed; - var SubArray = __dependency10__["default"]; - var keys = __dependency11__["default"]; - var compare = __dependency12__["default"]; - - var a_slice = [].slice; - - /** - A computed property that returns the sum of the value - in the dependent array. - - @method computed.sum - @for Ember - @param {String} dependentKey - @return {Ember.ComputedProperty} computes the sum of all values in the dependentKey's array - @since 1.4.0 - */ - - function sum(dependentKey){ - return reduceComputed(dependentKey, { - initialValue: 0, - - addedItem: function(accumulatedValue, item, changeMeta, instanceMeta){ - return accumulatedValue + item; - }, - - removedItem: function(accumulatedValue, item, changeMeta, instanceMeta){ - return accumulatedValue - item; - } - }); - } - - __exports__.sum = sum;/** - A computed property that calculates the maximum value in the - dependent array. This will return `-Infinity` when the dependent - array is empty. - - ```javascript - var Person = Ember.Object.extend({ - childAges: Ember.computed.mapBy('children', 'age'), - maxChildAge: Ember.computed.max('childAges') - }); - - var lordByron = Person.create({ children: [] }); - - lordByron.get('maxChildAge'); // -Infinity - lordByron.get('children').pushObject({ - name: 'Augusta Ada Byron', age: 7 - }); - lordByron.get('maxChildAge'); // 7 - lordByron.get('children').pushObjects([{ - name: 'Allegra Byron', - age: 5 - }, { - name: 'Elizabeth Medora Leigh', - age: 8 - }]); - lordByron.get('maxChildAge'); // 8 - ``` - - @method computed.max - @for Ember - @param {String} dependentKey - @return {Ember.ComputedProperty} computes the largest value in the dependentKey's array - */ - function max(dependentKey) { - return reduceComputed(dependentKey, { - initialValue: -Infinity, - - addedItem: function (accumulatedValue, item, changeMeta, instanceMeta) { - return Math.max(accumulatedValue, item); - }, - - removedItem: function (accumulatedValue, item, changeMeta, instanceMeta) { - if (item < accumulatedValue) { - return accumulatedValue; - } - } - }); - } - - __exports__.max = max;/** - A computed property that calculates the minimum value in the - dependent array. This will return `Infinity` when the dependent - array is empty. - - ```javascript - var Person = Ember.Object.extend({ - childAges: Ember.computed.mapBy('children', 'age'), - minChildAge: Ember.computed.min('childAges') - }); - - var lordByron = Person.create({ children: [] }); - - lordByron.get('minChildAge'); // Infinity - lordByron.get('children').pushObject({ - name: 'Augusta Ada Byron', age: 7 - }); - lordByron.get('minChildAge'); // 7 - lordByron.get('children').pushObjects([{ - name: 'Allegra Byron', - age: 5 - }, { - name: 'Elizabeth Medora Leigh', - age: 8 - }]); - lordByron.get('minChildAge'); // 5 - ``` - - @method computed.min - @for Ember - @param {String} dependentKey - @return {Ember.ComputedProperty} computes the smallest value in the dependentKey's array - */ - function min(dependentKey) { - return reduceComputed(dependentKey, { - initialValue: Infinity, - - addedItem: function (accumulatedValue, item, changeMeta, instanceMeta) { - return Math.min(accumulatedValue, item); - }, - - removedItem: function (accumulatedValue, item, changeMeta, instanceMeta) { - if (item > accumulatedValue) { - return accumulatedValue; - } - } - }); - } - - __exports__.min = min;/** - Returns an array mapped via the callback - - The callback method you provide should have the following signature. - `item` is the current item in the iteration. - `index` is the integer index of the current item in the iteration. - - ```javascript - function(item, index); - ``` - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - excitingChores: Ember.computed.map('chores', function(chore, index) { - return chore.toUpperCase() + '!'; - }) - }); - - var hamster = Hamster.create({ - chores: ['clean', 'write more unit tests'] - }); - - hamster.get('excitingChores'); // ['CLEAN!', 'WRITE MORE UNIT TESTS!'] - ``` - - @method computed.map - @for Ember - @param {String} dependentKey - @param {Function} callback - @return {Ember.ComputedProperty} an array mapped via the callback - */ - function map(dependentKey, callback) { - var options = { - addedItem: function(array, item, changeMeta, instanceMeta) { - var mapped = callback.call(this, item, changeMeta.index); - array.insertAt(changeMeta.index, mapped); - return array; - }, - removedItem: function(array, item, changeMeta, instanceMeta) { - array.removeAt(changeMeta.index, 1); - return array; - } - }; - - return arrayComputed(dependentKey, options); - } - - __exports__.map = map;/** - Returns an array mapped to the specified key. - - ```javascript - var Person = Ember.Object.extend({ - childAges: Ember.computed.mapBy('children', 'age') - }); - - var lordByron = Person.create({ children: [] }); - - lordByron.get('childAges'); // [] - lordByron.get('children').pushObject({ name: 'Augusta Ada Byron', age: 7 }); - lordByron.get('childAges'); // [7] - lordByron.get('children').pushObjects([{ - name: 'Allegra Byron', - age: 5 - }, { - name: 'Elizabeth Medora Leigh', - age: 8 - }]); - lordByron.get('childAges'); // [7, 5, 8] - ``` - - @method computed.mapBy - @for Ember - @param {String} dependentKey - @param {String} propertyKey - @return {Ember.ComputedProperty} an array mapped to the specified key - */ - function mapBy (dependentKey, propertyKey) { - var callback = function(item) { return get(item, propertyKey); }; - return map(dependentKey + '.@each.' + propertyKey, callback); - } - - __exports__.mapBy = mapBy;/** - @method computed.mapProperty - @for Ember - @deprecated Use `Ember.computed.mapBy` instead - @param dependentKey - @param propertyKey - */ - var mapProperty = mapBy; - __exports__.mapProperty = mapProperty; - /** - Filters the array by the callback. - - The callback method you provide should have the following signature. - `item` is the current item in the iteration. - `index` is the integer index of the current item in the iteration. - `array` is the dependant array itself. - - ```javascript - function(item, index, array); - ``` - - ```javascript - var Hamster = Ember.Object.extend({ - remainingChores: Ember.computed.filter('chores', function(chore, index, array) { - return !chore.done; - }) - }); - - var hamster = Hamster.create({ - chores: [ - { name: 'cook', done: true }, - { name: 'clean', done: true }, - { name: 'write more unit tests', done: false } - ] - }); - - hamster.get('remainingChores'); // [{name: 'write more unit tests', done: false}] - ``` - - @method computed.filter - @for Ember - @param {String} dependentKey - @param {Function} callback - @return {Ember.ComputedProperty} the filtered array - */ - function filter(dependentKey, callback) { - var options = { - initialize: function (array, changeMeta, instanceMeta) { - instanceMeta.filteredArrayIndexes = new SubArray(); - }, - - addedItem: function (array, item, changeMeta, instanceMeta) { - var match = !!callback.call(this, item, changeMeta.index, changeMeta.arrayChanged); - var filterIndex = instanceMeta.filteredArrayIndexes.addItem(changeMeta.index, match); - - if (match) { - array.insertAt(filterIndex, item); - } - - return array; - }, - - removedItem: function(array, item, changeMeta, instanceMeta) { - var filterIndex = instanceMeta.filteredArrayIndexes.removeItem(changeMeta.index); - - if (filterIndex > -1) { - array.removeAt(filterIndex); - } - - return array; - } - }; - - return arrayComputed(dependentKey, options); - } - - __exports__.filter = filter;/** - Filters the array by the property and value - - ```javascript - var Hamster = Ember.Object.extend({ - remainingChores: Ember.computed.filterBy('chores', 'done', false) - }); - - var hamster = Hamster.create({ - chores: [ - { name: 'cook', done: true }, - { name: 'clean', done: true }, - { name: 'write more unit tests', done: false } - ] - }); - - hamster.get('remainingChores'); // [{ name: 'write more unit tests', done: false }] - ``` - - @method computed.filterBy - @for Ember - @param {String} dependentKey - @param {String} propertyKey - @param {*} value - @return {Ember.ComputedProperty} the filtered array - */ - function filterBy (dependentKey, propertyKey, value) { - var callback; - - if (arguments.length === 2) { - callback = function(item) { - return get(item, propertyKey); - }; - } else { - callback = function(item) { - return get(item, propertyKey) === value; - }; - } - - return filter(dependentKey + '.@each.' + propertyKey, callback); - } - - __exports__.filterBy = filterBy;/** - @method computed.filterProperty - @for Ember - @param dependentKey - @param propertyKey - @param value - @deprecated Use `Ember.computed.filterBy` instead - */ - var filterProperty = filterBy; - __exports__.filterProperty = filterProperty; - /** - A computed property which returns a new array with all the unique - elements from one or more dependent arrays. - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - uniqueFruits: Ember.computed.uniq('fruits') - }); - - var hamster = Hamster.create({ - fruits: [ - 'banana', - 'grape', - 'kale', - 'banana' - ] - }); - - hamster.get('uniqueFruits'); // ['banana', 'grape', 'kale'] - ``` - - @method computed.uniq - @for Ember - @param {String} propertyKey* - @return {Ember.ComputedProperty} computes a new array with all the - unique elements from the dependent array - */ - function uniq() { - var args = a_slice.call(arguments); - - args.push({ - initialize: function(array, changeMeta, instanceMeta) { - instanceMeta.itemCounts = {}; - }, - - addedItem: function(array, item, changeMeta, instanceMeta) { - var guid = guidFor(item); - - if (!instanceMeta.itemCounts[guid]) { - instanceMeta.itemCounts[guid] = 1; - array.pushObject(item); - } else { - ++instanceMeta.itemCounts[guid]; - } - return array; - }, - - removedItem: function(array, item, _, instanceMeta) { - var guid = guidFor(item); - var itemCounts = instanceMeta.itemCounts; - - if (--itemCounts[guid] === 0) { - array.removeObject(item); - } - - return array; - } - }); - - return arrayComputed.apply(null, args); - } - - __exports__.uniq = uniq;/** - Alias for [Ember.computed.uniq](/api/#method_computed_uniq). - - @method computed.union - @for Ember - @param {String} propertyKey* - @return {Ember.ComputedProperty} computes a new array with all the - unique elements from the dependent array - */ - var union = uniq; - __exports__.union = union; - /** - A computed property which returns a new array with all the duplicated - elements from two or more dependent arrays. - - Example - - ```javascript - var obj = Ember.Object.createWithMixins({ - adaFriends: ['Charles Babbage', 'John Hobhouse', 'William King', 'Mary Somerville'], - charlesFriends: ['William King', 'Mary Somerville', 'Ada Lovelace', 'George Peacock'], - friendsInCommon: Ember.computed.intersect('adaFriends', 'charlesFriends') - }); - - obj.get('friendsInCommon'); // ['William King', 'Mary Somerville'] - ``` - - @method computed.intersect - @for Ember - @param {String} propertyKey* - @return {Ember.ComputedProperty} computes a new array with all the - duplicated elements from the dependent arrays - */ - function intersect() { - var args = a_slice.call(arguments); - - args.push({ - initialize: function (array, changeMeta, instanceMeta) { - instanceMeta.itemCounts = {}; - }, - - addedItem: function(array, item, changeMeta, instanceMeta) { - var itemGuid = guidFor(item); - var dependentGuid = guidFor(changeMeta.arrayChanged); - var numberOfDependentArrays = changeMeta.property._dependentKeys.length; - var itemCounts = instanceMeta.itemCounts; - - if (!itemCounts[itemGuid]) { - itemCounts[itemGuid] = {}; - } - - if (itemCounts[itemGuid][dependentGuid] === undefined) { - itemCounts[itemGuid][dependentGuid] = 0; - } - - if (++itemCounts[itemGuid][dependentGuid] === 1 && - numberOfDependentArrays === keys(itemCounts[itemGuid]).length) { - array.addObject(item); - } - - return array; - }, - - removedItem: function(array, item, changeMeta, instanceMeta) { - var itemGuid = guidFor(item); - var dependentGuid = guidFor(changeMeta.arrayChanged); - var numberOfArraysItemAppearsIn; - var itemCounts = instanceMeta.itemCounts; - - if (itemCounts[itemGuid][dependentGuid] === undefined) { - itemCounts[itemGuid][dependentGuid] = 0; - } - - if (--itemCounts[itemGuid][dependentGuid] === 0) { - delete itemCounts[itemGuid][dependentGuid]; - numberOfArraysItemAppearsIn = keys(itemCounts[itemGuid]).length; - - if (numberOfArraysItemAppearsIn === 0) { - delete itemCounts[itemGuid]; - } - - array.removeObject(item); - } - - return array; - } - }); - - return arrayComputed.apply(null, args); - } - - __exports__.intersect = intersect;/** - A computed property which returns a new array with all the - properties from the first dependent array that are not in the second - dependent array. - - Example - - ```javascript - var Hamster = Ember.Object.extend({ - likes: ['banana', 'grape', 'kale'], - wants: Ember.computed.setDiff('likes', 'fruits') - }); - - var hamster = Hamster.create({ - fruits: [ - 'grape', - 'kale', - ] - }); - - hamster.get('wants'); // ['banana'] - ``` - - @method computed.setDiff - @for Ember - @param {String} setAProperty - @param {String} setBProperty - @return {Ember.ComputedProperty} computes a new array with all the - items from the first dependent array that are not in the second - dependent array - */ - function setDiff(setAProperty, setBProperty) { - if (arguments.length !== 2) { - throw new EmberError('setDiff requires exactly two dependent arrays.'); - } - - return arrayComputed(setAProperty, setBProperty, { - addedItem: function (array, item, changeMeta, instanceMeta) { - var setA = get(this, setAProperty); - var setB = get(this, setBProperty); - - if (changeMeta.arrayChanged === setA) { - if (!setB.contains(item)) { - array.addObject(item); - } - } else { - array.removeObject(item); - } - - return array; - }, - - removedItem: function (array, item, changeMeta, instanceMeta) { - var setA = get(this, setAProperty); - var setB = get(this, setBProperty); - - if (changeMeta.arrayChanged === setB) { - if (setA.contains(item)) { - array.addObject(item); - } - } else { - array.removeObject(item); - } - - return array; - } - }); - } - - __exports__.setDiff = setDiff;function binarySearch(array, item, low, high) { - var mid, midItem, res, guidMid, guidItem; - - if (arguments.length < 4) { - high = get(array, 'length'); - } - - if (arguments.length < 3) { - low = 0; - } - - if (low === high) { - return low; - } - - mid = low + Math.floor((high - low) / 2); - midItem = array.objectAt(mid); - - guidMid = guidFor(midItem); - guidItem = guidFor(item); - - if (guidMid === guidItem) { - return mid; - } - - res = this.order(midItem, item); - - if (res === 0) { - res = guidMid < guidItem ? -1 : 1; - } - - - if (res < 0) { - return this.binarySearch(array, item, mid+1, high); - } else if (res > 0) { - return this.binarySearch(array, item, low, mid); - } - - return mid; - } - - - /** - A computed property which returns a new array with all the - properties from the first dependent array sorted based on a property - or sort function. - - The callback method you provide should have the following signature: - - ```javascript - function(itemA, itemB); - ``` - - - `itemA` the first item to compare. - - `itemB` the second item to compare. - - This function should return negative number (e.g. `-1`) when `itemA` should come before - `itemB`. It should return positive number (e.g. `1`) when `itemA` should come after - `itemB`. If the `itemA` and `itemB` are equal this function should return `0`. - - Therefore, if this function is comparing some numeric values, simple `itemA - itemB` or - `itemA.get( 'foo' ) - itemB.get( 'foo' )` can be used instead of series of `if`. - - Example - - ```javascript - var ToDoList = Ember.Object.extend({ - // using standard ascending sort - todosSorting: ['name'], - sortedTodos: Ember.computed.sort('todos', 'todosSorting'), - - // using descending sort - todosSortingDesc: ['name:desc'], - sortedTodosDesc: Ember.computed.sort('todos', 'todosSortingDesc'), - - // using a custom sort function - priorityTodos: Ember.computed.sort('todos', function(a, b){ - if (a.priority > b.priority) { - return 1; - } else if (a.priority < b.priority) { - return -1; - } - - return 0; - }) - }); - - var todoList = ToDoList.create({todos: [ - { name: 'Unit Test', priority: 2 }, - { name: 'Documentation', priority: 3 }, - { name: 'Release', priority: 1 } - ]}); - - todoList.get('sortedTodos'); // [{ name:'Documentation', priority:3 }, { name:'Release', priority:1 }, { name:'Unit Test', priority:2 }] - todoList.get('sortedTodosDesc'); // [{ name:'Unit Test', priority:2 }, { name:'Release', priority:1 }, { name:'Documentation', priority:3 }] - todoList.get('priorityTodos'); // [{ name:'Release', priority:1 }, { name:'Unit Test', priority:2 }, { name:'Documentation', priority:3 }] - ``` - - @method computed.sort - @for Ember - @param {String} dependentKey - @param {String or Function} sortDefinition a dependent key to an - array of sort properties (add `:desc` to the arrays sort properties to sort descending) or a function to use when sorting - @return {Ember.ComputedProperty} computes a new sorted array based - on the sort property array or callback function - */ - function sort(itemsKey, sortDefinition) { - Ember.assert('Ember.computed.sort requires two arguments: an array key to sort and ' + - 'either a sort properties key or sort function', arguments.length === 2); - - if (typeof sortDefinition === 'function') { - return customSort(itemsKey, sortDefinition); - } else { - return propertySort(itemsKey, sortDefinition); - } - } - - __exports__.sort = sort;function customSort(itemsKey, comparator) { - return arrayComputed(itemsKey, { - initialize: function (array, changeMeta, instanceMeta) { - instanceMeta.order = comparator; - instanceMeta.binarySearch = binarySearch; - instanceMeta.waitingInsertions = []; - instanceMeta.insertWaiting = function() { - var index, item; - var waiting = instanceMeta.waitingInsertions; - instanceMeta.waitingInsertions = []; - for (var i=0; i{{post.title}} ({{post.titleLength}} characters) - {{/each}} - ``` - - ```javascript - App.PostsController = Ember.ArrayController.extend({ - itemController: 'post' - }); - - App.PostController = Ember.ObjectController.extend({ - // the `title` property will be proxied to the underlying post. - titleLength: function() { - return this.get('title').length; - }.property('title') - }); - ``` - - In some cases it is helpful to return a different `itemController` depending - on the particular item. Subclasses can do this by overriding - `lookupItemController`. - - For example: - - ```javascript - App.MyArrayController = Ember.ArrayController.extend({ - lookupItemController: function( object ) { - if (object.get('isSpecial')) { - return "special"; // use App.SpecialController - } else { - return "regular"; // use App.RegularController - } - } - }); - ``` - - The itemController instances will have a `parentController` property set to - the `ArrayController` instance. - - @class ArrayController - @namespace Ember - @extends Ember.ArrayProxy - @uses Ember.SortableMixin - @uses Ember.ControllerMixin - */ - - __exports__["default"] = ArrayProxy.extend(ControllerMixin, SortableMixin, { - - /** - A string containing the controller name used to wrap items. - - For example: - - ```javascript - App.MyArrayController = Ember.ArrayController.extend({ - itemController: 'myItem' // use App.MyItemController - }); - ``` - - @property itemController - @type String - @default null - */ - itemController: null, - - /** - Return the name of the controller to wrap items, or `null` if items should - be returned directly. The default implementation simply returns the - `itemController` property, but subclasses can override this method to return - different controllers for different objects. - - For example: - - ```javascript - App.MyArrayController = Ember.ArrayController.extend({ - lookupItemController: function( object ) { - if (object.get('isSpecial')) { - return "special"; // use App.SpecialController - } else { - return "regular"; // use App.RegularController - } - } - }); - ``` - - @method lookupItemController - @param {Object} object - @return {String} - */ - lookupItemController: function(object) { - return get(this, 'itemController'); - }, - - objectAtContent: function(idx) { - var length = get(this, 'length'); - var arrangedContent = get(this, 'arrangedContent'); - var object = arrangedContent && arrangedContent.objectAt(idx); - var controllerClass; - - if (idx >= 0 && idx < length) { - controllerClass = this.lookupItemController(object); - - if (controllerClass) { - return this.controllerAt(idx, object, controllerClass); - } - } - - // When `controllerClass` is falsy, we have not opted in to using item - // controllers, so return the object directly. - - // When the index is out of range, we want to return the "out of range" - // value, whatever that might be. Rather than make assumptions - // (e.g. guessing `null` or `undefined`) we defer this to `arrangedContent`. - return object; - }, - - arrangedContentDidChange: function() { - this._super(); - this._resetSubControllers(); - }, - - arrayContentDidChange: function(idx, removedCnt, addedCnt) { - var subControllers = this._subControllers; - - if (subControllers.length) { - var subControllersToRemove = subControllers.slice(idx, idx + removedCnt); - - forEach(subControllersToRemove, function(subController) { - if (subController) { - subController.destroy(); - } - }); - - replace(subControllers, idx, removedCnt, new Array(addedCnt)); - } - - // The shadow array of subcontrollers must be updated before we trigger - // observers, otherwise observers will get the wrong subcontainer when - // calling `objectAt` - this._super(idx, removedCnt, addedCnt); - }, - - init: function() { - this._super(); - this._subControllers = []; - }, - - model: computed(function () { - return Ember.A(); - }), - - /** - * Flag to mark as being "virtual". Used to keep this instance - * from participating in the parentController hierarchy. - * - * @private - * @property _isVirtual - * @type Boolean - */ - _isVirtual: false, - - controllerAt: function(idx, object, controllerClass) { - var container = get(this, 'container'); - var subControllers = this._subControllers; - var fullName, subController, subControllerFactory, parentController, options; - - if (subControllers.length > idx) { - subController = subControllers[idx]; - - if (subController) { - return subController; - } - } - - if (this._isVirtual) { - parentController = get(this, 'parentController'); - } else { - parentController = this; - } - - - fullName = 'controller:' + controllerClass; - - if (!container.has(fullName)) { - throw new EmberError('Could not resolve itemController: "' + controllerClass + '"'); - } - - subController = container.lookupFactory(fullName).create({ - target: parentController, - parentController: parentController, - model: object - }); - - - subControllers[idx] = subController; - - return subController; - }, - - _subControllers: null, - - _resetSubControllers: function() { - var controller; - var subControllers = this._subControllers; - - if (subControllers.length) { - for (var i = 0, length = subControllers.length; length > i; i++) { - controller = subControllers[i]; - - if (controller) { - controller.destroy(); - } - } - - subControllers.length = 0; - } - }, - - willDestroy: function() { - this._resetSubControllers(); - this._super(); - } - }); - }); -enifed("ember-runtime/controllers/controller", - ["ember-metal/core","ember-runtime/system/object","ember-runtime/mixins/controller","ember-runtime/inject","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // Ember.assert - var EmberObject = __dependency2__["default"]; - var Mixin = __dependency3__["default"]; - var createInjectionHelper = __dependency4__.createInjectionHelper; - - /** - @module ember - @submodule ember-runtime - */ - - /** - @class Controller - @namespace Ember - @extends Ember.Object - @uses Ember.ControllerMixin - */ - var Controller = EmberObject.extend(Mixin); - - function controllerInjectionHelper(factory) { - Ember.assert("Defining an injected controller property on a " + - "non-controller is not allowed.", Controller.detect(factory)); - } - - - /** - Creates a property that lazily looks up another controller in the container. - Can only be used when defining another controller. - - Example: - - ```javascript - App.PostController = Ember.Controller.extend({ - posts: Ember.inject.controller() - }); - ``` - - This example will create a `posts` property on the `post` controller that - looks up the `posts` controller in the container, making it easy to - reference other controllers. This is functionally equivalent to: - - ```javascript - App.PostController = Ember.Controller.extend({ - needs: 'posts', - posts: Ember.computed.alias('controllers.posts') - }); - ``` - - @method inject.controller - @for Ember - @param {String} name (optional) name of the controller to inject, defaults - to the property's name - @return {Ember.InjectedProperty} injection descriptor instance - */ - createInjectionHelper('controller', controllerInjectionHelper); - - - __exports__["default"] = Controller; - }); -enifed("ember-runtime/controllers/object_controller", - ["ember-runtime/mixins/controller","ember-runtime/system/object_proxy","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var ControllerMixin = __dependency1__["default"]; - var ObjectProxy = __dependency2__["default"]; - - /** - @module ember - @submodule ember-runtime - */ - - /** - `Ember.ObjectController` is part of Ember's Controller layer. It is intended - to wrap a single object, proxying unhandled attempts to `get` and `set` to the underlying - model object, and to forward unhandled action attempts to its `target`. - - `Ember.ObjectController` derives this functionality from its superclass - `Ember.ObjectProxy` and the `Ember.ControllerMixin` mixin. - - @class ObjectController - @namespace Ember - @extends Ember.ObjectProxy - @uses Ember.ControllerMixin - **/ - __exports__["default"] = ObjectProxy.extend(ControllerMixin); - }); -enifed("ember-runtime/copy", - ["ember-metal/enumerable_utils","ember-metal/utils","ember-runtime/system/object","ember-runtime/mixins/copyable","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var indexOf = __dependency1__.indexOf; - var typeOf = __dependency2__.typeOf; - var EmberObject = __dependency3__["default"]; - var Copyable = __dependency4__["default"]; - - function _copy(obj, deep, seen, copies) { - var ret, loc, key; - - // primitive data types are immutable, just return them. - if (typeof obj !== 'object' || obj === null) { - return obj; - } - - // avoid cyclical loops - if (deep && (loc = indexOf(seen, obj)) >= 0) { - return copies[loc]; - } - - Ember.assert('Cannot clone an Ember.Object that does not implement Ember.Copyable', - !(obj instanceof EmberObject) || (Copyable && Copyable.detect(obj))); - - // IMPORTANT: this specific test will detect a native array only. Any other - // object will need to implement Copyable. - if (typeOf(obj) === 'array') { - ret = obj.slice(); - - if (deep) { - loc = ret.length; - - while (--loc >= 0) { - ret[loc] = _copy(ret[loc], deep, seen, copies); - } - } - } else if (Copyable && Copyable.detect(obj)) { - ret = obj.copy(deep, seen, copies); - } else if (obj instanceof Date) { - ret = new Date(obj.getTime()); - } else { - ret = {}; - - for (key in obj) { - // support Null prototype - if (!Object.prototype.hasOwnProperty.call(obj, key)) { - continue; - } - - // Prevents browsers that don't respect non-enumerability from - // copying internal Ember properties - if (key.substring(0, 2) === '__') { - continue; - } - - ret[key] = deep ? _copy(obj[key], deep, seen, copies) : obj[key]; - } - } - - if (deep) { - seen.push(obj); - copies.push(ret); - } - - return ret; - } - - /** - Creates a clone of the passed object. This function can take just about - any type of object and create a clone of it, including primitive values - (which are not actually cloned because they are immutable). - - If the passed object implements the `copy()` method, then this function - will simply call that method and return the result. Please see - `Ember.Copyable` for further details. - - @method copy - @for Ember - @param {Object} obj The object to clone - @param {Boolean} deep If true, a deep copy of the object is made - @return {Object} The cloned object - */ - __exports__["default"] = function copy(obj, deep) { - // fast paths - if ('object' !== typeof obj || obj === null) { - return obj; // can't copy primitives - } - - if (Copyable && Copyable.detect(obj)) { - return obj.copy(deep); - } - - return _copy(obj, deep, deep ? [] : null, deep ? [] : null); - } - }); -enifed("ember-runtime/core", - ["exports"], - function(__exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - /** - Compares two objects, returning true if they are logically equal. This is - a deeper comparison than a simple triple equal. For sets it will compare the - internal objects. For any other object that implements `isEqual()` it will - respect that method. - - ```javascript - Ember.isEqual('hello', 'hello'); // true - Ember.isEqual(1, 2); // false - Ember.isEqual([4, 2], [4, 2]); // false - ``` - - @method isEqual - @for Ember - @param {Object} a first object to compare - @param {Object} b second object to compare - @return {Boolean} - */ - var isEqual = function isEqual(a, b) { - if (a && typeof a.isEqual === 'function') { - return a.isEqual(b); - } - - if (a instanceof Date && b instanceof Date) { - return a.getTime() === b.getTime(); - } - - return a === b; - }; - __exports__.isEqual = isEqual; - }); -enifed("ember-runtime/ext/function", - ["ember-metal/core","ember-metal/expand_properties","ember-metal/computed","ember-metal/mixin"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - var Ember = __dependency1__["default"]; - // Ember.EXTEND_PROTOTYPES, Ember.assert - var expandProperties = __dependency2__["default"]; - var computed = __dependency3__.computed; - var observer = __dependency4__.observer; - - var a_slice = Array.prototype.slice; - var FunctionPrototype = Function.prototype; - - if (Ember.EXTEND_PROTOTYPES === true || Ember.EXTEND_PROTOTYPES.Function) { - - /** - The `property` extension of Javascript's Function prototype is available - when `Ember.EXTEND_PROTOTYPES` or `Ember.EXTEND_PROTOTYPES.Function` is - `true`, which is the default. - - Computed properties allow you to treat a function like a property: - - ```javascript - MyApp.President = Ember.Object.extend({ - firstName: '', - lastName: '', - - fullName: function() { - return this.get('firstName') + ' ' + this.get('lastName'); - }.property() // Call this flag to mark the function as a property - }); - - var president = MyApp.President.create({ - firstName: 'Barack', - lastName: 'Obama' - }); - - president.get('fullName'); // 'Barack Obama' - ``` - - Treating a function like a property is useful because they can work with - bindings, just like any other property. - - Many computed properties have dependencies on other properties. For - example, in the above example, the `fullName` property depends on - `firstName` and `lastName` to determine its value. You can tell Ember - about these dependencies like this: - - ```javascript - MyApp.President = Ember.Object.extend({ - firstName: '', - lastName: '', - - fullName: function() { - return this.get('firstName') + ' ' + this.get('lastName'); - - // Tell Ember.js that this computed property depends on firstName - // and lastName - }.property('firstName', 'lastName') - }); - ``` - - Make sure you list these dependencies so Ember knows when to update - bindings that connect to a computed property. Changing a dependency - will not immediately trigger an update of the computed property, but - will instead clear the cache so that it is updated when the next `get` - is called on the property. - - See [Ember.ComputedProperty](/api/classes/Ember.ComputedProperty.html), [Ember.computed](/api/#method_computed). - - @method property - @for Function - */ - FunctionPrototype.property = function () { - var ret = computed(this); - // ComputedProperty.prototype.property expands properties; no need for us to - // do so here. - return ret.property.apply(ret, arguments); - }; - - /** - The `observes` extension of Javascript's Function prototype is available - when `Ember.EXTEND_PROTOTYPES` or `Ember.EXTEND_PROTOTYPES.Function` is - true, which is the default. - - You can observe property changes simply by adding the `observes` - call to the end of your method declarations in classes that you write. - For example: - - ```javascript - Ember.Object.extend({ - valueObserver: function() { - // Executes whenever the "value" property changes - }.observes('value') - }); - ``` - - In the future this method may become asynchronous. If you want to ensure - synchronous behavior, use `observesImmediately`. - - See `Ember.observer`. - - @method observes - @for Function - */ - FunctionPrototype.observes = function() { - var length = arguments.length; - var args = new Array(length); - for (var x = 0; x < length; x++) { - args[x] = arguments[x]; - } - return observer.apply(this, args.concat(this)); - }; - - /** - The `observesImmediately` extension of Javascript's Function prototype is - available when `Ember.EXTEND_PROTOTYPES` or - `Ember.EXTEND_PROTOTYPES.Function` is true, which is the default. - - You can observe property changes simply by adding the `observesImmediately` - call to the end of your method declarations in classes that you write. - For example: - - ```javascript - Ember.Object.extend({ - valueObserver: function() { - // Executes immediately after the "value" property changes - }.observesImmediately('value') - }); - ``` - - In the future, `observes` may become asynchronous. In this event, - `observesImmediately` will maintain the synchronous behavior. - - See `Ember.immediateObserver`. - - @method observesImmediately - @for Function - */ - FunctionPrototype.observesImmediately = function () { - Ember.assert('Immediate observers must observe internal properties only, ' + - 'not properties on other objects.', function checkIsInternalProperty() { - for(var i = 0, l = arguments.length; i < l; i++) { - if(arguments[i].indexOf('.') !== -1) { - return false; - } - } - return true; - }); - - // observes handles property expansion - return this.observes.apply(this, arguments); - }; - - /** - The `observesBefore` extension of Javascript's Function prototype is - available when `Ember.EXTEND_PROTOTYPES` or - `Ember.EXTEND_PROTOTYPES.Function` is true, which is the default. - - You can get notified when a property change is about to happen by - by adding the `observesBefore` call to the end of your method - declarations in classes that you write. For example: - - ```javascript - Ember.Object.extend({ - valueObserver: function() { - // Executes whenever the "value" property is about to change - }.observesBefore('value') - }); - ``` - - See `Ember.beforeObserver`. - - @method observesBefore - @for Function - */ - FunctionPrototype.observesBefore = function () { - var watched = []; - var addWatchedProperty = function (obs) { - watched.push(obs); - }; - - for (var i = 0, l = arguments.length; i < l; ++i) { - expandProperties(arguments[i], addWatchedProperty); - } - - this.__ember_observesBefore__ = watched; - - return this; - }; - - /** - The `on` extension of Javascript's Function prototype is available - when `Ember.EXTEND_PROTOTYPES` or `Ember.EXTEND_PROTOTYPES.Function` is - true, which is the default. - - You can listen for events simply by adding the `on` call to the end of - your method declarations in classes or mixins that you write. For example: - - ```javascript - Ember.Mixin.create({ - doSomethingWithElement: function() { - // Executes whenever the "didInsertElement" event fires - }.on('didInsertElement') - }); - ``` - - See `Ember.on`. - - @method on - @for Function - */ - FunctionPrototype.on = function () { - var events = a_slice.call(arguments); - this.__ember_listens__ = events; - - return this; - }; - } - }); -enifed("ember-runtime/ext/rsvp", - ["ember-metal/core","ember-metal/logger","ember-metal/run_loop","rsvp","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - /* globals RSVP:true */ - - var Ember = __dependency1__["default"]; - var Logger = __dependency2__["default"]; - var run = __dependency3__["default"]; - - // this is technically incorrect (per @wycats) - // it should be `import * as RSVP from 'rsvp';` but - // Esprima does not support this syntax yet (and neither does - // es6-module-transpiler 0.4.0 - 0.6.2). - var RSVP = __dependency4__; - - var testModuleName = 'ember-testing/test'; - var Test; - - var asyncStart = function() { - if (Ember.Test && Ember.Test.adapter) { - Ember.Test.adapter.asyncStart(); - } - }; - - var asyncEnd = function() { - if (Ember.Test && Ember.Test.adapter) { - Ember.Test.adapter.asyncEnd(); - } - }; - - RSVP.configure('async', function(callback, promise) { - var async = !run.currentRunLoop; - - if (Ember.testing && async) { asyncStart(); } - - run.backburner.schedule('actions', function(){ - if (Ember.testing && async) { asyncEnd(); } - callback(promise); - }); - }); - - RSVP.Promise.prototype.fail = function(callback, label){ - Ember.deprecate('RSVP.Promise.fail has been renamed as RSVP.Promise.catch'); - return this['catch'](callback, label); - }; - - RSVP.onerrorDefault = function (e) { - var error; - - if (e && e.errorThrown) { - // jqXHR provides this - error = e.errorThrown; - if (typeof error === 'string') { - error = new Error(error); - } - error.__reason_with_error_thrown__ = e; - } else { - error = e; - } - - if (error && error.name !== 'TransitionAborted') { - if (Ember.testing) { - // ES6TODO: remove when possible - if (!Test && Ember.__loader.registry[testModuleName]) { - Test = requireModule(testModuleName)['default']; - } - - if (Test && Test.adapter) { - Test.adapter.exception(error); - Logger.error(error.stack); - } else { - throw error; - } - } else if (Ember.onerror) { - Ember.onerror(error); - } else { - Logger.error(error.stack); - } - } - }; - - RSVP.on('error', RSVP.onerrorDefault); - - __exports__["default"] = RSVP; - }); -enifed("ember-runtime/ext/string", - ["ember-metal/core","ember-runtime/system/string"], - function(__dependency1__, __dependency2__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - var Ember = __dependency1__["default"]; - // Ember.EXTEND_PROTOTYPES, Ember.assert, Ember.FEATURES - var fmt = __dependency2__.fmt; - var w = __dependency2__.w; - var loc = __dependency2__.loc; - var camelize = __dependency2__.camelize; - var decamelize = __dependency2__.decamelize; - var dasherize = __dependency2__.dasherize; - var underscore = __dependency2__.underscore; - var capitalize = __dependency2__.capitalize; - var classify = __dependency2__.classify; - - var StringPrototype = String.prototype; - - if (Ember.EXTEND_PROTOTYPES === true || Ember.EXTEND_PROTOTYPES.String) { - - /** - See [Ember.String.fmt](/api/classes/Ember.String.html#method_fmt). - - @method fmt - @for String - */ - StringPrototype.fmt = function () { - return fmt(this, arguments); - }; - - /** - See [Ember.String.w](/api/classes/Ember.String.html#method_w). - - @method w - @for String - */ - StringPrototype.w = function () { - return w(this); - }; - - /** - See [Ember.String.loc](/api/classes/Ember.String.html#method_loc). - - @method loc - @for String - */ - StringPrototype.loc = function () { - return loc(this, arguments); - }; - - /** - See [Ember.String.camelize](/api/classes/Ember.String.html#method_camelize). - - @method camelize - @for String - */ - StringPrototype.camelize = function () { - return camelize(this); - }; - - /** - See [Ember.String.decamelize](/api/classes/Ember.String.html#method_decamelize). - - @method decamelize - @for String - */ - StringPrototype.decamelize = function () { - return decamelize(this); - }; - - /** - See [Ember.String.dasherize](/api/classes/Ember.String.html#method_dasherize). - - @method dasherize - @for String - */ - StringPrototype.dasherize = function () { - return dasherize(this); - }; - - /** - See [Ember.String.underscore](/api/classes/Ember.String.html#method_underscore). - - @method underscore - @for String - */ - StringPrototype.underscore = function () { - return underscore(this); - }; - - /** - See [Ember.String.classify](/api/classes/Ember.String.html#method_classify). - - @method classify - @for String - */ - StringPrototype.classify = function () { - return classify(this); - }; - - /** - See [Ember.String.capitalize](/api/classes/Ember.String.html#method_capitalize). - - @method capitalize - @for String - */ - StringPrototype.capitalize = function () { - return capitalize(this); - }; - } - }); -enifed("ember-runtime/inject", - ["ember-metal/core","ember-metal/enumerable_utils","ember-metal/utils","ember-metal/injected_property","ember-metal/keys","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // Ember.assert - var indexOf = __dependency2__.indexOf; - var meta = __dependency3__.meta; - var InjectedProperty = __dependency4__["default"]; - var keys = __dependency5__["default"]; - - /** - Namespace for injection helper methods. - - @class inject - @namespace Ember - */ - function inject() { - Ember.assert("Injected properties must be created through helpers, see `" + - keys(inject).join("`, `") + "`"); - } - - // Dictionary of injection validations by type, added to by `createInjectionHelper` - var typeValidators = {}; - - /** - This method allows other Ember modules to register injection helpers for a - given container type. Helpers are exported to the `inject` namespace as the - container type itself. - - @private - @method createInjectionHelper - @namespace Ember - @param {String} type The container type the helper will inject - @param {Function} validator A validation callback that is executed at mixin-time - */ - function createInjectionHelper(type, validator) { - typeValidators[type] = validator; - - inject[type] = function(name) { - return new InjectedProperty(type, name); - }; - } - - __exports__.createInjectionHelper = createInjectionHelper;/** - Validation function that runs per-type validation functions once for each - injected type encountered. - - @private - @method validatePropertyInjections - @namespace Ember - @param {Object} factory The factory object - */ - function validatePropertyInjections(factory) { - var proto = factory.proto(); - var descs = meta(proto).descs; - var types = []; - var key, desc, validator, i, l; - - for (key in descs) { - desc = descs[key]; - if (desc instanceof InjectedProperty && indexOf(types, desc.type) === -1) { - types.push(desc.type); - } - } - - if (types.length) { - for (i = 0, l = types.length; i < l; i++) { - validator = typeValidators[types[i]]; - - if (typeof validator === 'function') { - validator(factory); - } - } - } - - return true; - } - - __exports__.validatePropertyInjections = validatePropertyInjections;__exports__["default"] = inject; - }); -enifed("ember-runtime/mixins/-proxy", - ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/observer","ember-metal/property_events","ember-metal/computed","ember-metal/properties","ember-metal/mixin","ember-runtime/system/string","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - var Ember = __dependency1__["default"]; - // Ember.assert - var get = __dependency2__.get; - var set = __dependency3__.set; - var meta = __dependency4__.meta; - var addObserver = __dependency5__.addObserver; - var removeObserver = __dependency5__.removeObserver; - var addBeforeObserver = __dependency5__.addBeforeObserver; - var removeBeforeObserver = __dependency5__.removeBeforeObserver; - var propertyWillChange = __dependency6__.propertyWillChange; - var propertyDidChange = __dependency6__.propertyDidChange; - var computed = __dependency7__.computed; - var defineProperty = __dependency8__.defineProperty; - var Mixin = __dependency9__.Mixin; - var observer = __dependency9__.observer; - var fmt = __dependency10__.fmt; - - function contentPropertyWillChange(content, contentKey) { - var key = contentKey.slice(8); // remove "content." - if (key in this) { return; } // if shadowed in proxy - propertyWillChange(this, key); - } - - function contentPropertyDidChange(content, contentKey) { - var key = contentKey.slice(8); // remove "content." - if (key in this) { return; } // if shadowed in proxy - propertyDidChange(this, key); - } - - /** - `Ember.ProxyMixin` forwards all properties not defined by the proxy itself - to a proxied `content` object. See Ember.ObjectProxy for more details. - - @class ProxyMixin - @namespace Ember - */ - __exports__["default"] = Mixin.create({ - /** - The object whose properties will be forwarded. - - @property content - @type Ember.Object - @default null - */ - content: null, - _contentDidChange: observer('content', function() { - Ember.assert("Can't set Proxy's content to itself", get(this, 'content') !== this); - }), - - isTruthy: computed.bool('content'), - - _debugContainerKey: null, - - willWatchProperty: function (key) { - var contentKey = 'content.' + key; - addBeforeObserver(this, contentKey, null, contentPropertyWillChange); - addObserver(this, contentKey, null, contentPropertyDidChange); - }, - - didUnwatchProperty: function (key) { - var contentKey = 'content.' + key; - removeBeforeObserver(this, contentKey, null, contentPropertyWillChange); - removeObserver(this, contentKey, null, contentPropertyDidChange); - }, - - unknownProperty: function (key) { - var content = get(this, 'content'); - if (content) { - return get(content, key); - } - }, - - setUnknownProperty: function (key, value) { - var m = meta(this); - if (m.proto === this) { - // if marked as prototype then just defineProperty - // rather than delegate - defineProperty(this, key, null, value); - return value; - } - - var content = get(this, 'content'); - Ember.assert(fmt("Cannot delegate set('%@', %@) to the 'content' property of" + - " object proxy %@: its 'content' is undefined.", [key, value, this]), content); - return set(content, key, value); - } - - }); - }); -enifed("ember-runtime/mixins/action_handler", - ["ember-metal/merge","ember-metal/mixin","ember-metal/property_get","ember-metal/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - var merge = __dependency1__["default"]; - var Mixin = __dependency2__.Mixin; - var get = __dependency3__.get; - var typeOf = __dependency4__.typeOf; - - /** - The `Ember.ActionHandler` mixin implements support for moving an `actions` - property to an `_actions` property at extend time, and adding `_actions` - to the object's mergedProperties list. - - `Ember.ActionHandler` is available on some familiar classes including - `Ember.Route`, `Ember.View`, `Ember.Component`, and controllers such as - `Ember.Controller` and `Ember.ObjectController`. - (Internally the mixin is used by `Ember.CoreView`, `Ember.ControllerMixin`, - and `Ember.Route` and available to the above classes through - inheritance.) - - @class ActionHandler - @namespace Ember - */ - var ActionHandler = Mixin.create({ - mergedProperties: ['_actions'], - - /** - The collection of functions, keyed by name, available on this - `ActionHandler` as action targets. - - These functions will be invoked when a matching `{{action}}` is triggered - from within a template and the application's current route is this route. - - Actions can also be invoked from other parts of your application - via `ActionHandler#send`. - - The `actions` hash will inherit action handlers from - the `actions` hash defined on extended parent classes - or mixins rather than just replace the entire hash, e.g.: - - ```js - App.CanDisplayBanner = Ember.Mixin.create({ - actions: { - displayBanner: function(msg) { - // ... - } - } - }); - - App.WelcomeRoute = Ember.Route.extend(App.CanDisplayBanner, { - actions: { - playMusic: function() { - // ... - } - } - }); - - // `WelcomeRoute`, when active, will be able to respond - // to both actions, since the actions hash is merged rather - // then replaced when extending mixins / parent classes. - this.send('displayBanner'); - this.send('playMusic'); - ``` - - Within a Controller, Route, View or Component's action handler, - the value of the `this` context is the Controller, Route, View or - Component object: - - ```js - App.SongRoute = Ember.Route.extend({ - actions: { - myAction: function() { - this.controllerFor("song"); - this.transitionTo("other.route"); - ... - } - } - }); - ``` - - It is also possible to call `this._super()` from within an - action handler if it overrides a handler defined on a parent - class or mixin: - - Take for example the following routes: - - ```js - App.DebugRoute = Ember.Mixin.create({ - actions: { - debugRouteInformation: function() { - console.debug("trololo"); - } - } - }); - - App.AnnoyingDebugRoute = Ember.Route.extend(App.DebugRoute, { - actions: { - debugRouteInformation: function() { - // also call the debugRouteInformation of mixed in App.DebugRoute - this._super(); - - // show additional annoyance - window.alert(...); - } - } - }); - ``` - - ## Bubbling - - By default, an action will stop bubbling once a handler defined - on the `actions` hash handles it. To continue bubbling the action, - you must return `true` from the handler: - - ```js - App.Router.map(function() { - this.resource("album", function() { - this.route("song"); - }); - }); - - App.AlbumRoute = Ember.Route.extend({ - actions: { - startPlaying: function() { - } - } - }); - - App.AlbumSongRoute = Ember.Route.extend({ - actions: { - startPlaying: function() { - // ... - - if (actionShouldAlsoBeTriggeredOnParentRoute) { - return true; - } - } - } - }); - ``` - - @property actions - @type Hash - @default null - */ - - /** - Moves `actions` to `_actions` at extend time. Note that this currently - modifies the mixin themselves, which is technically dubious but - is practically of little consequence. This may change in the future. - - @private - @method willMergeMixin - */ - willMergeMixin: function(props) { - var hashName; - - if (!props._actions) { - Ember.assert("'actions' should not be a function", typeof(props.actions) !== 'function'); - - if (typeOf(props.actions) === 'object') { - hashName = 'actions'; - } else if (typeOf(props.events) === 'object') { - Ember.deprecate('Action handlers contained in an `events` object are deprecated in favor' + - ' of putting them in an `actions` object', false); - hashName = 'events'; - } - - if (hashName) { - props._actions = merge(props._actions || {}, props[hashName]); - } - - delete props[hashName]; - } - }, - - /** - Triggers a named action on the `ActionHandler`. Any parameters - supplied after the `actionName` string will be passed as arguments - to the action target function. - - If the `ActionHandler` has its `target` property set, actions may - bubble to the `target`. Bubbling happens when an `actionName` can - not be found in the `ActionHandler`'s `actions` hash or if the - action target function returns `true`. - - Example - - ```js - App.WelcomeRoute = Ember.Route.extend({ - actions: { - playTheme: function() { - this.send('playMusic', 'theme.mp3'); - }, - playMusic: function(track) { - // ... - } - } - }); - ``` - - @method send - @param {String} actionName The action to trigger - @param {*} context a context to send with the action - */ - send: function(actionName) { - var args = [].slice.call(arguments, 1); - var target; - - if (this._actions && this._actions[actionName]) { - if (this._actions[actionName].apply(this, args) === true) { - // handler returned true, so this action will bubble - } else { - return; - } - } - - if (target = get(this, 'target')) { - Ember.assert("The `target` for " + this + " (" + target + - ") does not have a `send` method", typeof target.send === 'function'); - target.send.apply(target, arguments); - } - } - }); - - __exports__["default"] = ActionHandler; - }); -enifed("ember-runtime/mixins/array", - ["ember-metal/core","ember-metal/property_get","ember-metal/computed","ember-metal/is_none","ember-runtime/mixins/enumerable","ember-metal/enumerable_utils","ember-metal/mixin","ember-metal/property_events","ember-metal/events","ember-metal/watching","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - // .......................................................... - // HELPERS - // - var Ember = __dependency1__["default"]; - // ES6TODO: Ember.A - - var get = __dependency2__.get; - var computed = __dependency3__.computed; - var cacheFor = __dependency3__.cacheFor; - var isNone = __dependency4__["default"]; - var Enumerable = __dependency5__["default"]; - var map = __dependency6__.map; - var Mixin = __dependency7__.Mixin; - var required = __dependency7__.required; - var propertyWillChange = __dependency8__.propertyWillChange; - var propertyDidChange = __dependency8__.propertyDidChange; - var addListener = __dependency9__.addListener; - var removeListener = __dependency9__.removeListener; - var sendEvent = __dependency9__.sendEvent; - var hasListeners = __dependency9__.hasListeners; - var isWatching = __dependency10__.isWatching; - - function arrayObserversHelper(obj, target, opts, operation, notify) { - var willChange = (opts && opts.willChange) || 'arrayWillChange'; - var didChange = (opts && opts.didChange) || 'arrayDidChange'; - var hasObservers = get(obj, 'hasArrayObservers'); - - if (hasObservers === notify) { - propertyWillChange(obj, 'hasArrayObservers'); - } - - operation(obj, '@array:before', target, willChange); - operation(obj, '@array:change', target, didChange); - - if (hasObservers === notify) { - propertyDidChange(obj, 'hasArrayObservers'); - } - - return obj; - } - - // .......................................................... - // ARRAY - // - /** - This mixin implements Observer-friendly Array-like behavior. It is not a - concrete implementation, but it can be used up by other classes that want - to appear like arrays. - - For example, ArrayProxy and ArrayController are both concrete classes that can - be instantiated to implement array-like behavior. Both of these classes use - the Array Mixin by way of the MutableArray mixin, which allows observable - changes to be made to the underlying array. - - Unlike `Ember.Enumerable,` this mixin defines methods specifically for - collections that provide index-ordered access to their contents. When you - are designing code that needs to accept any kind of Array-like object, you - should use these methods instead of Array primitives because these will - properly notify observers of changes to the array. - - Although these methods are efficient, they do add a layer of indirection to - your application so it is a good idea to use them only when you need the - flexibility of using both true JavaScript arrays and "virtual" arrays such - as controllers and collections. - - You can use the methods defined in this module to access and modify array - contents in a KVO-friendly way. You can also be notified whenever the - membership of an array changes by using `.observes('myArray.[]')`. - - To support `Ember.Array` in your own class, you must override two - primitives to use it: `replace()` and `objectAt()`. - - Note that the Ember.Array mixin also incorporates the `Ember.Enumerable` - mixin. All `Ember.Array`-like objects are also enumerable. - - @class Array - @namespace Ember - @uses Ember.Enumerable - @since Ember 0.9.0 - */ - __exports__["default"] = Mixin.create(Enumerable, { - - /** - Your array must support the `length` property. Your replace methods should - set this property whenever it changes. - - @property {Number} length - */ - length: required(), - - /** - Returns the object at the given `index`. If the given `index` is negative - or is greater or equal than the array length, returns `undefined`. - - This is one of the primitives you must implement to support `Ember.Array`. - If your object supports retrieving the value of an array item using `get()` - (i.e. `myArray.get(0)`), then you do not need to implement this method - yourself. - - ```javascript - var arr = ['a', 'b', 'c', 'd']; - - arr.objectAt(0); // 'a' - arr.objectAt(3); // 'd' - arr.objectAt(-1); // undefined - arr.objectAt(4); // undefined - arr.objectAt(5); // undefined - ``` - - @method objectAt - @param {Number} idx The index of the item to return. - @return {*} item at index or undefined - */ - objectAt: function(idx) { - if (idx < 0 || idx >= get(this, 'length')) { - return undefined; - } - - return get(this, idx); - }, - - /** - This returns the objects at the specified indexes, using `objectAt`. - - ```javascript - var arr =Â ['a', 'b', 'c', 'd']; - - arr.objectsAt([0, 1, 2]); // ['a', 'b', 'c'] - arr.objectsAt([2, 3, 4]); // ['c', 'd', undefined] - ``` - - @method objectsAt - @param {Array} indexes An array of indexes of items to return. - @return {Array} - */ - objectsAt: function(indexes) { - var self = this; - - return map(indexes, function(idx) { - return self.objectAt(idx); - }); - }, - - // overrides Ember.Enumerable version - nextObject: function(idx) { - return this.objectAt(idx); - }, - - /** - This is the handler for the special array content property. If you get - this property, it will return this. If you set this property to a new - array, it will replace the current content. - - This property overrides the default property defined in `Ember.Enumerable`. - - @property [] - @return this - */ - '[]': computed(function(key, value) { - if (value !== undefined) { - this.replace(0, get(this, 'length'), value); - } - - return this; - }), - - firstObject: computed(function() { - return this.objectAt(0); - }), - - lastObject: computed(function() { - return this.objectAt(get(this, 'length') - 1); - }), - - // optimized version from Enumerable - contains: function(obj) { - return this.indexOf(obj) >= 0; - }, - - // Add any extra methods to Ember.Array that are native to the built-in Array. - /** - Returns a new array that is a slice of the receiver. This implementation - uses the observable array methods to retrieve the objects for the new - slice. - - ```javascript - var arr = ['red', 'green', 'blue']; - - arr.slice(0); // ['red', 'green', 'blue'] - arr.slice(0, 2); // ['red', 'green'] - arr.slice(1, 100); // ['green', 'blue'] - ``` - - @method slice - @param {Integer} beginIndex (Optional) index to begin slicing from. - @param {Integer} endIndex (Optional) index to end the slice at (but not included). - @return {Array} New array with specified slice - */ - slice: function(beginIndex, endIndex) { - var ret = Ember.A(); - var length = get(this, 'length'); - - if (isNone(beginIndex)) { - beginIndex = 0; - } - - if (isNone(endIndex) || (endIndex > length)) { - endIndex = length; - } - - if (beginIndex < 0) { - beginIndex = length + beginIndex; - } - - if (endIndex < 0) { - endIndex = length + endIndex; - } - - while (beginIndex < endIndex) { - ret[ret.length] = this.objectAt(beginIndex++); - } - - return ret; - }, - - /** - Returns the index of the given object's first occurrence. - If no `startAt` argument is given, the starting location to - search is 0. If it's negative, will count backward from - the end of the array. Returns -1 if no match is found. - - ```javascript - var arr = ['a', 'b', 'c', 'd', 'a']; - - arr.indexOf('a'); // 0 - arr.indexOf('z'); // -1 - arr.indexOf('a', 2); // 4 - arr.indexOf('a', -1); // 4 - arr.indexOf('b', 3); // -1 - arr.indexOf('a', 100); // -1 - ``` - - @method indexOf - @param {Object} object the item to search for - @param {Number} startAt optional starting location to search, default 0 - @return {Number} index or -1 if not found - */ - indexOf: function(object, startAt) { - var len = get(this, 'length'); - var idx; - - if (startAt === undefined) { - startAt = 0; - } - - if (startAt < 0) { - startAt += len; - } - - for (idx = startAt; idx < len; idx++) { - if (this.objectAt(idx) === object) { - return idx; - } - } - - return -1; - }, - - /** - Returns the index of the given object's last occurrence. - If no `startAt` argument is given, the search starts from - the last position. If it's negative, will count backward - from the end of the array. Returns -1 if no match is found. - - ```javascript - var arr = ['a', 'b', 'c', 'd', 'a']; - - arr.lastIndexOf('a'); // 4 - arr.lastIndexOf('z'); // -1 - arr.lastIndexOf('a', 2); // 0 - arr.lastIndexOf('a', -1); // 4 - arr.lastIndexOf('b', 3); // 1 - arr.lastIndexOf('a', 100); // 4 - ``` - - @method lastIndexOf - @param {Object} object the item to search for - @param {Number} startAt optional starting location to search, default 0 - @return {Number} index or -1 if not found - */ - lastIndexOf: function(object, startAt) { - var len = get(this, 'length'); - var idx; - - if (startAt === undefined || startAt >= len) { - startAt = len-1; - } - - if (startAt < 0) { - startAt += len; - } - - for (idx = startAt; idx >= 0; idx--) { - if (this.objectAt(idx) === object) { - return idx; - } - } - - return -1; - }, - - // .......................................................... - // ARRAY OBSERVERS - // - - /** - Adds an array observer to the receiving array. The array observer object - normally must implement two methods: - - * `arrayWillChange(observedObj, start, removeCount, addCount)` - This method will be - called just before the array is modified. - * `arrayDidChange(observedObj, start, removeCount, addCount)` - This method will be - called just after the array is modified. - - Both callbacks will be passed the observed object, starting index of the - change as well a a count of the items to be removed and added. You can use - these callbacks to optionally inspect the array during the change, clear - caches, or do any other bookkeeping necessary. - - In addition to passing a target, you can also include an options hash - which you can use to override the method names that will be invoked on the - target. - - @method addArrayObserver - @param {Object} target The observer object. - @param {Hash} opts Optional hash of configuration options including - `willChange` and `didChange` option. - @return {Ember.Array} receiver - */ - - addArrayObserver: function(target, opts) { - return arrayObserversHelper(this, target, opts, addListener, false); - }, - - /** - Removes an array observer from the object if the observer is current - registered. Calling this method multiple times with the same object will - have no effect. - - @method removeArrayObserver - @param {Object} target The object observing the array. - @param {Hash} opts Optional hash of configuration options including - `willChange` and `didChange` option. - @return {Ember.Array} receiver - */ - removeArrayObserver: function(target, opts) { - return arrayObserversHelper(this, target, opts, removeListener, true); - }, - - /** - Becomes true whenever the array currently has observers watching changes - on the array. - - @property {Boolean} hasArrayObservers - */ - hasArrayObservers: computed(function() { - return hasListeners(this, '@array:change') || hasListeners(this, '@array:before'); - }), - - /** - If you are implementing an object that supports `Ember.Array`, call this - method just before the array content changes to notify any observers and - invalidate any related properties. Pass the starting index of the change - as well as a delta of the amounts to change. - - @method arrayContentWillChange - @param {Number} startIdx The starting index in the array that will change. - @param {Number} removeAmt The number of items that will be removed. If you - pass `null` assumes 0 - @param {Number} addAmt The number of items that will be added. If you - pass `null` assumes 0. - @return {Ember.Array} receiver - */ - arrayContentWillChange: function(startIdx, removeAmt, addAmt) { - var removing, lim; - - // if no args are passed assume everything changes - if (startIdx === undefined) { - startIdx = 0; - removeAmt = addAmt = -1; - } else { - if (removeAmt === undefined) { - removeAmt = -1; - } - - if (addAmt === undefined) { - addAmt = -1; - } - } - - // Make sure the @each proxy is set up if anyone is observing @each - if (isWatching(this, '@each')) { - get(this, '@each'); - } - - sendEvent(this, '@array:before', [this, startIdx, removeAmt, addAmt]); - - if (startIdx >= 0 && removeAmt >= 0 && get(this, 'hasEnumerableObservers')) { - removing = []; - lim = startIdx + removeAmt; - - for (var idx = startIdx; idx < lim; idx++) { - removing.push(this.objectAt(idx)); - } - } else { - removing = removeAmt; - } - - this.enumerableContentWillChange(removing, addAmt); - - return this; - }, - - /** - If you are implementing an object that supports `Ember.Array`, call this - method just after the array content changes to notify any observers and - invalidate any related properties. Pass the starting index of the change - as well as a delta of the amounts to change. - - @method arrayContentDidChange - @param {Number} startIdx The starting index in the array that did change. - @param {Number} removeAmt The number of items that were removed. If you - pass `null` assumes 0 - @param {Number} addAmt The number of items that were added. If you - pass `null` assumes 0. - @return {Ember.Array} receiver - */ - arrayContentDidChange: function(startIdx, removeAmt, addAmt) { - var adding, lim; - - // if no args are passed assume everything changes - if (startIdx === undefined) { - startIdx = 0; - removeAmt = addAmt = -1; - } else { - if (removeAmt === undefined) { - removeAmt = -1; - } - - if (addAmt === undefined) { - addAmt = -1; - } - } - - if (startIdx >= 0 && addAmt >= 0 && get(this, 'hasEnumerableObservers')) { - adding = []; - lim = startIdx + addAmt; - - for (var idx = startIdx; idx < lim; idx++) { - adding.push(this.objectAt(idx)); - } - } else { - adding = addAmt; - } - - this.enumerableContentDidChange(removeAmt, adding); - sendEvent(this, '@array:change', [this, startIdx, removeAmt, addAmt]); - - var length = get(this, 'length'); - var cachedFirst = cacheFor(this, 'firstObject'); - var cachedLast = cacheFor(this, 'lastObject'); - - if (this.objectAt(0) !== cachedFirst) { - propertyWillChange(this, 'firstObject'); - propertyDidChange(this, 'firstObject'); - } - - if (this.objectAt(length-1) !== cachedLast) { - propertyWillChange(this, 'lastObject'); - propertyDidChange(this, 'lastObject'); - } - - return this; - }, - - // .......................................................... - // ENUMERATED PROPERTIES - // - - /** - Returns a special object that can be used to observe individual properties - on the array. Just get an equivalent property on this object and it will - return an enumerable that maps automatically to the named key on the - member objects. - - If you merely want to watch for any items being added or removed to the array, - use the `[]` property instead of `@each`. - - @property @each - */ - '@each': computed(function() { - if (!this.__each) { - // ES6TODO: GRRRRR - var EachProxy = requireModule('ember-runtime/system/each_proxy')['EachProxy']; - - this.__each = new EachProxy(this); - } - - return this.__each; - }) - }); - }); -enifed("ember-runtime/mixins/comparable", - ["ember-metal/mixin","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Mixin = __dependency1__.Mixin; - var required = __dependency1__.required; - - /** - @module ember - @submodule ember-runtime - */ - - /** - Implements some standard methods for comparing objects. Add this mixin to - any class you create that can compare its instances. - - You should implement the `compare()` method. - - @class Comparable - @namespace Ember - @since Ember 0.9 - */ - __exports__["default"] = Mixin.create({ - - /** - Override to return the result of the comparison of the two parameters. The - compare method should return: - - - `-1` if `a < b` - - `0` if `a == b` - - `1` if `a > b` - - Default implementation raises an exception. - - @method compare - @param a {Object} the first object to compare - @param b {Object} the second object to compare - @return {Integer} the result of the comparison - */ - compare: required(Function) - }); - }); -enifed("ember-runtime/mixins/controller", - ["ember-metal/mixin","ember-metal/computed","ember-runtime/mixins/action_handler","ember-runtime/mixins/controller_content_model_alias_deprecation","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var Mixin = __dependency1__.Mixin; - var computed = __dependency2__.computed; - var ActionHandler = __dependency3__["default"]; - var ControllerContentModelAliasDeprecation = __dependency4__["default"]; - - /** - `Ember.ControllerMixin` provides a standard interface for all classes that - compose Ember's controller layer: `Ember.Controller`, - `Ember.ArrayController`, and `Ember.ObjectController`. - - @class ControllerMixin - @namespace Ember - @uses Ember.ActionHandler - */ - __exports__["default"] = Mixin.create(ActionHandler, ControllerContentModelAliasDeprecation, { - /* ducktype as a controller */ - isController: true, - - /** - The object to which actions from the view should be sent. - - For example, when a Handlebars template uses the `{{action}}` helper, - it will attempt to send the action to the view's controller's `target`. - - By default, the value of the target property is set to the router, and - is injected when a controller is instantiated. This injection is defined - in Ember.Application#buildContainer, and is applied as part of the - applications initialization process. It can also be set after a controller - has been instantiated, for instance when using the render helper in a - template, or when a controller is used as an `itemController`. In most - cases the `target` property will automatically be set to the logical - consumer of actions for the controller. - - @property target - @default null - */ - target: null, - - container: null, - - parentController: null, - - store: null, - - /** - The controller's current model. When retrieving or modifying a controller's - model, this property should be used instead of the `content` property. - - @property model - @public - */ - model: null, - - /** - @private - */ - content: computed.alias('model') - - }); - }); -enifed("ember-runtime/mixins/controller_content_model_alias_deprecation", - ["ember-metal/core","ember-metal/mixin","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // Ember.deprecate - var Mixin = __dependency2__.Mixin; - - /** - The ControllerContentModelAliasDeprecation mixin is used to provide a useful - deprecation warning when specifying `content` directly on a `Ember.Controller` - (without also specifying `model`). - - Ember versions prior to 1.7 used `model` as an alias of `content`, but due to - much confusion this alias was reversed (so `content` is now an alias of `model). - - This change reduces many caveats with model/content, and also sets a - simple ground rule: Never set a controllers content, rather always set - its model and ember will do the right thing. - - - `Ember.ControllerContentModelAliasDeprecation` is used internally by Ember in - `Ember.Controller`. - - @class ControllerContentModelAliasDeprecation - @namespace Ember - @private - @since 1.7.0 - */ - __exports__["default"] = Mixin.create({ - /** - @private - - Moves `content` to `model` at extend time if a `model` is not also specified. - - Note that this currently modifies the mixin themselves, which is technically - dubious but is practically of little consequence. This may change in the - future. - - @method willMergeMixin - @since 1.4.0 - */ - willMergeMixin: function(props) { - // Calling super is only OK here since we KNOW that - // there is another Mixin loaded first. - this._super.apply(this, arguments); - - var modelSpecified = !!props.model; - - if (props.content && !modelSpecified) { - props.model = props.content; - delete props['content']; - - Ember.deprecate('Do not specify `content` on a Controller, use `model` instead.', false); - } - } - }); - }); -enifed("ember-runtime/mixins/copyable", - ["ember-metal/property_get","ember-metal/mixin","ember-runtime/mixins/freezable","ember-runtime/system/string","ember-metal/error","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - - var get = __dependency1__.get; - var required = __dependency2__.required; - var Freezable = __dependency3__.Freezable; - var Mixin = __dependency2__.Mixin; - var fmt = __dependency4__.fmt; - var EmberError = __dependency5__["default"]; - - - /** - Implements some standard methods for copying an object. Add this mixin to - any object you create that can create a copy of itself. This mixin is - added automatically to the built-in array. - - You should generally implement the `copy()` method to return a copy of the - receiver. - - Note that `frozenCopy()` will only work if you also implement - `Ember.Freezable`. - - @class Copyable - @namespace Ember - @since Ember 0.9 - */ - __exports__["default"] = Mixin.create({ - /** - Override to return a copy of the receiver. Default implementation raises - an exception. - - @method copy - @param {Boolean} deep if `true`, a deep copy of the object should be made - @return {Object} copy of receiver - */ - copy: required(Function), - - /** - If the object implements `Ember.Freezable`, then this will return a new - copy if the object is not frozen and the receiver if the object is frozen. - - Raises an exception if you try to call this method on a object that does - not support freezing. - - You should use this method whenever you want a copy of a freezable object - since a freezable object can simply return itself without actually - consuming more memory. - - @method frozenCopy - @return {Object} copy of receiver or receiver - */ - frozenCopy: function() { - if (Freezable && Freezable.detect(this)) { - return get(this, 'isFrozen') ? this : this.copy().freeze(); - } else { - throw new EmberError(fmt("%@ does not support freezing", [this])); - } - } - }); - }); -enifed("ember-runtime/mixins/deferred", - ["ember-metal/core","ember-metal/property_get","ember-metal/mixin","ember-metal/computed","ember-runtime/ext/rsvp","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // Ember.FEATURES, Ember.Test - var get = __dependency2__.get; - var Mixin = __dependency3__.Mixin; - var computed = __dependency4__.computed; - var RSVP = __dependency5__["default"]; - - /** - @module ember - @submodule ember-runtime - */ - - - /** - @class Deferred - @namespace Ember - */ - __exports__["default"] = Mixin.create({ - /** - Add handlers to be called when the Deferred object is resolved or rejected. - - @method then - @param {Function} resolve a callback function to be called when done - @param {Function} reject a callback function to be called when failed - */ - then: function(resolve, reject, label) { - var deferred, promise, entity; - - entity = this; - deferred = get(this, '_deferred'); - promise = deferred.promise; - - function fulfillmentHandler(fulfillment) { - if (fulfillment === promise) { - return resolve(entity); - } else { - return resolve(fulfillment); - } - } - - return promise.then(resolve && fulfillmentHandler, reject, label); - }, - - /** - Resolve a Deferred object and call any `doneCallbacks` with the given args. - - @method resolve - */ - resolve: function(value) { - var deferred, promise; - - deferred = get(this, '_deferred'); - promise = deferred.promise; - - if (value === this) { - deferred.resolve(promise); - } else { - deferred.resolve(value); - } - }, - - /** - Reject a Deferred object and call any `failCallbacks` with the given args. - - @method reject - */ - reject: function(value) { - get(this, '_deferred').reject(value); - }, - - _deferred: computed(function() { - Ember.deprecate('Usage of Ember.DeferredMixin or Ember.Deferred is deprecated.', this._suppressDeferredDeprecation, { url: 'http://emberjs.com/guides/deprecations/#toc_deprecate-ember-deferredmixin-and-ember-deferred' }); - - return RSVP.defer('Ember: DeferredMixin - ' + this); - }) - }); - }); -enifed("ember-runtime/mixins/enumerable", - ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/mixin","ember-metal/enumerable_utils","ember-metal/computed","ember-metal/property_events","ember-metal/events","ember-runtime/compare","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - // .......................................................... - // HELPERS - // - - var Ember = __dependency1__["default"]; - var get = __dependency2__.get; - var set = __dependency3__.set; - var apply = __dependency4__.apply; - var Mixin = __dependency5__.Mixin; - var required = __dependency5__.required; - var aliasMethod = __dependency5__.aliasMethod; - var indexOf = __dependency6__.indexOf; - var computed = __dependency7__.computed; - var propertyWillChange = __dependency8__.propertyWillChange; - var propertyDidChange = __dependency8__.propertyDidChange; - var addListener = __dependency9__.addListener; - var removeListener = __dependency9__.removeListener; - var sendEvent = __dependency9__.sendEvent; - var hasListeners = __dependency9__.hasListeners; - var compare = __dependency10__["default"]; - - var a_slice = Array.prototype.slice; - - var contexts = []; - - function popCtx() { - return contexts.length === 0 ? {} : contexts.pop(); - } - - function pushCtx(ctx) { - contexts.push(ctx); - return null; - } - - function iter(key, value) { - var valueProvided = arguments.length === 2; - - function i(item) { - var cur = get(item, key); - return valueProvided ? value === cur : !!cur; - } - - return i; - } - - /** - This mixin defines the common interface implemented by enumerable objects - in Ember. Most of these methods follow the standard Array iteration - API defined up to JavaScript 1.8 (excluding language-specific features that - cannot be emulated in older versions of JavaScript). - - This mixin is applied automatically to the Array class on page load, so you - can use any of these methods on simple arrays. If Array already implements - one of these methods, the mixin will not override them. - - ## Writing Your Own Enumerable - - To make your own custom class enumerable, you need two items: - - 1. You must have a length property. This property should change whenever - the number of items in your enumerable object changes. If you use this - with an `Ember.Object` subclass, you should be sure to change the length - property using `set().` - - 2. You must implement `nextObject().` See documentation. - - Once you have these two methods implemented, apply the `Ember.Enumerable` mixin - to your class and you will be able to enumerate the contents of your object - like any other collection. - - ## Using Ember Enumeration with Other Libraries - - Many other libraries provide some kind of iterator or enumeration like - facility. This is often where the most common API conflicts occur. - Ember's API is designed to be as friendly as possible with other - libraries by implementing only methods that mostly correspond to the - JavaScript 1.8 API. - - @class Enumerable - @namespace Ember - @since Ember 0.9 - */ - __exports__["default"] = Mixin.create({ - - /** - Implement this method to make your class enumerable. - - This method will be call repeatedly during enumeration. The index value - will always begin with 0 and increment monotonically. You don't have to - rely on the index value to determine what object to return, but you should - always check the value and start from the beginning when you see the - requested index is 0. - - The `previousObject` is the object that was returned from the last call - to `nextObject` for the current iteration. This is a useful way to - manage iteration if you are tracing a linked list, for example. - - Finally the context parameter will always contain a hash you can use as - a "scratchpad" to maintain any other state you need in order to iterate - properly. The context object is reused and is not reset between - iterations so make sure you setup the context with a fresh state whenever - the index parameter is 0. - - Generally iterators will continue to call `nextObject` until the index - reaches the your current length-1. If you run out of data before this - time for some reason, you should simply return undefined. - - The default implementation of this method simply looks up the index. - This works great on any Array-like objects. - - @method nextObject - @param {Number} index the current index of the iteration - @param {Object} previousObject the value returned by the last call to - `nextObject`. - @param {Object} context a context object you can use to maintain state. - @return {Object} the next object in the iteration or undefined - */ - nextObject: required(Function), - - /** - Helper method returns the first object from a collection. This is usually - used by bindings and other parts of the framework to extract a single - object if the enumerable contains only one item. - - If you override this method, you should implement it so that it will - always return the same value each time it is called. If your enumerable - contains only one object, this method should always return that object. - If your enumerable is empty, this method should return `undefined`. - - ```javascript - var arr = ['a', 'b', 'c']; - arr.get('firstObject'); // 'a' - - var arr = []; - arr.get('firstObject'); // undefined - ``` - - @property firstObject - @return {Object} the object or undefined - */ - firstObject: computed('[]', function() { - if (get(this, 'length') === 0) { - return undefined; - } - - // handle generic enumerables - var context = popCtx(); - var ret = this.nextObject(0, null, context); - - pushCtx(context); - - return ret; - }), - - /** - Helper method returns the last object from a collection. If your enumerable - contains only one object, this method should always return that object. - If your enumerable is empty, this method should return `undefined`. - - ```javascript - var arr = ['a', 'b', 'c']; - arr.get('lastObject'); // 'c' - - var arr = []; - arr.get('lastObject'); // undefined - ``` - - @property lastObject - @return {Object} the last object or undefined - */ - lastObject: computed('[]', function() { - var len = get(this, 'length'); - - if (len === 0) { - return undefined; - } - - var context = popCtx(); - var idx = 0; - var last = null; - var cur; - - do { - last = cur; - cur = this.nextObject(idx++, last, context); - } while (cur !== undefined); - - pushCtx(context); - - return last; - }), - - /** - Returns `true` if the passed object can be found in the receiver. The - default version will iterate through the enumerable until the object - is found. You may want to override this with a more efficient version. - - ```javascript - var arr = ['a', 'b', 'c']; - - arr.contains('a'); // true - arr.contains('z'); // false - ``` - - @method contains - @param {Object} obj The object to search for. - @return {Boolean} `true` if object is found in enumerable. - */ - contains: function(obj) { - var found = this.find(function(item) { - return item === obj; - }); - - return found !== undefined; - }, - - /** - Iterates through the enumerable, calling the passed function on each - item. This method corresponds to the `forEach()` method defined in - JavaScript 1.6. - - The callback method you provide should have the following signature (all - parameters are optional): - - ```javascript - function(item, index, enumerable); - ``` - - - `item` is the current item in the iteration. - - `index` is the current index in the iteration. - - `enumerable` is the enumerable object itself. - - Note that in addition to a callback, you can also pass an optional target - object that will be set as `this` on the context. This is a good way - to give your iterator function access to the current object. - - @method forEach - @param {Function} callback The callback to execute - @param {Object} [target] The target object to use - @return {Object} receiver - */ - forEach: function(callback, target) { - if (typeof callback !== 'function') { - throw new TypeError(); - } - - var context = popCtx(); - var len = get(this, 'length'); - var last = null; - - if (target === undefined) { - target = null; - } - - for(var idx = 0; idx < len; idx++) { - var next = this.nextObject(idx, last, context) ; - callback.call(target, next, idx, this); - last = next ; - } - - last = null ; - context = pushCtx(context); - - return this ; - }, - - /** - Alias for `mapBy` - - @method getEach - @param {String} key name of the property - @return {Array} The mapped array. - */ - getEach: function(key) { - return this.mapBy(key); - }, - - /** - Sets the value on the named property for each member. This is more - efficient than using other methods defined on this helper. If the object - implements Ember.Observable, the value will be changed to `set(),` otherwise - it will be set directly. `null` objects are skipped. - - @method setEach - @param {String} key The key to set - @param {Object} value The object to set - @return {Object} receiver - */ - setEach: function(key, value) { - return this.forEach(function(item) { - set(item, key, value); - }); - }, - - /** - Maps all of the items in the enumeration to another value, returning - a new array. This method corresponds to `map()` defined in JavaScript 1.6. - - The callback method you provide should have the following signature (all - parameters are optional): - - ```javascript - function(item, index, enumerable); - ``` - - - `item` is the current item in the iteration. - - `index` is the current index in the iteration. - - `enumerable` is the enumerable object itself. - - It should return the mapped value. - - Note that in addition to a callback, you can also pass an optional target - object that will be set as `this` on the context. This is a good way - to give your iterator function access to the current object. - - @method map - @param {Function} callback The callback to execute - @param {Object} [target] The target object to use - @return {Array} The mapped array. - */ - map: function(callback, target) { - var ret = Ember.A(); - - this.forEach(function(x, idx, i) { - ret[idx] = callback.call(target, x, idx,i); - }); - - return ret ; - }, - - /** - Similar to map, this specialized function returns the value of the named - property on all items in the enumeration. - - @method mapBy - @param {String} key name of the property - @return {Array} The mapped array. - */ - mapBy: function(key) { - return this.map(function(next) { - return get(next, key); - }); - }, - - /** - Similar to map, this specialized function returns the value of the named - property on all items in the enumeration. - - @method mapProperty - @param {String} key name of the property - @return {Array} The mapped array. - @deprecated Use `mapBy` instead - */ - - mapProperty: aliasMethod('mapBy'), - - /** - Returns an array with all of the items in the enumeration that the passed - function returns true for. This method corresponds to `filter()` defined in - JavaScript 1.6. - - The callback method you provide should have the following signature (all - parameters are optional): - - ```javascript - function(item, index, enumerable); - ``` - - - `item` is the current item in the iteration. - - `index` is the current index in the iteration. - - `enumerable` is the enumerable object itself. - - It should return `true` to include the item in the results, `false` - otherwise. - - Note that in addition to a callback, you can also pass an optional target - object that will be set as `this` on the context. This is a good way - to give your iterator function access to the current object. - - @method filter - @param {Function} callback The callback to execute - @param {Object} [target] The target object to use - @return {Array} A filtered array. - */ - filter: function(callback, target) { - var ret = Ember.A(); - - this.forEach(function(x, idx, i) { - if (callback.call(target, x, idx, i)) { - ret.push(x); - } - }); - - return ret ; - }, - - /** - Returns an array with all of the items in the enumeration where the passed - function returns false for. This method is the inverse of filter(). - - The callback method you provide should have the following signature (all - parameters are optional): - - ```javascript - function(item, index, enumerable); - ``` - - - *item* is the current item in the iteration. - - *index* is the current index in the iteration - - *enumerable* is the enumerable object itself. - - It should return the a falsey value to include the item in the results. - - Note that in addition to a callback, you can also pass an optional target - object that will be set as "this" on the context. This is a good way - to give your iterator function access to the current object. - - @method reject - @param {Function} callback The callback to execute - @param {Object} [target] The target object to use - @return {Array} A rejected array. - */ - reject: function(callback, target) { - return this.filter(function() { - return !(apply(target, callback, arguments)); - }); - }, - - /** - Returns an array with just the items with the matched property. You - can pass an optional second argument with the target value. Otherwise - this will match any property that evaluates to `true`. - - @method filterBy - @param {String} key the property to test - @param {*} [value] optional value to test against. - @return {Array} filtered array - */ - filterBy: function(key, value) { - return this.filter(apply(this, iter, arguments)); - }, - - /** - Returns an array with just the items with the matched property. You - can pass an optional second argument with the target value. Otherwise - this will match any property that evaluates to `true`. - - @method filterProperty - @param {String} key the property to test - @param {String} [value] optional value to test against. - @return {Array} filtered array - @deprecated Use `filterBy` instead - */ - filterProperty: aliasMethod('filterBy'), - - /** - Returns an array with the items that do not have truthy values for - key. You can pass an optional second argument with the target value. Otherwise - this will match any property that evaluates to false. - - @method rejectBy - @param {String} key the property to test - @param {String} [value] optional value to test against. - @return {Array} rejected array - */ - rejectBy: function(key, value) { - var exactValue = function(item) { - return get(item, key) === value; - }; - - var hasValue = function(item) { - return !!get(item, key); - }; - - var use = (arguments.length === 2 ? exactValue : hasValue); - - return this.reject(use); - }, - - /** - Returns an array with the items that do not have truthy values for - key. You can pass an optional second argument with the target value. Otherwise - this will match any property that evaluates to false. - - @method rejectProperty - @param {String} key the property to test - @param {String} [value] optional value to test against. - @return {Array} rejected array - @deprecated Use `rejectBy` instead - */ - rejectProperty: aliasMethod('rejectBy'), - - /** - Returns the first item in the array for which the callback returns true. - This method works similar to the `filter()` method defined in JavaScript 1.6 - except that it will stop working on the array once a match is found. - - The callback method you provide should have the following signature (all - parameters are optional): - - ```javascript - function(item, index, enumerable); - ``` - - - `item` is the current item in the iteration. - - `index` is the current index in the iteration. - - `enumerable` is the enumerable object itself. - - It should return the `true` to include the item in the results, `false` - otherwise. - - Note that in addition to a callback, you can also pass an optional target - object that will be set as `this` on the context. This is a good way - to give your iterator function access to the current object. - - @method find - @param {Function} callback The callback to execute - @param {Object} [target] The target object to use - @return {Object} Found item or `undefined`. - */ - find: function(callback, target) { - var len = get(this, 'length'); - - if (target === undefined) { - target = null; - } - - var context = popCtx(); - var found = false; - var last = null; - var next, ret; - - for(var idx = 0; idx < len && !found; idx++) { - next = this.nextObject(idx, last, context); - - if (found = callback.call(target, next, idx, this)) { - ret = next; - } - - last = next; - } - - next = last = null; - context = pushCtx(context); - - return ret; - }, - - /** - Returns the first item with a property matching the passed value. You - can pass an optional second argument with the target value. Otherwise - this will match any property that evaluates to `true`. - - This method works much like the more generic `find()` method. - - @method findBy - @param {String} key the property to test - @param {String} [value] optional value to test against. - @return {Object} found item or `undefined` - */ - findBy: function(key, value) { - return this.find(apply(this, iter, arguments)); - }, - - /** - Returns the first item with a property matching the passed value. You - can pass an optional second argument with the target value. Otherwise - this will match any property that evaluates to `true`. - - This method works much like the more generic `find()` method. - - @method findProperty - @param {String} key the property to test - @param {String} [value] optional value to test against. - @return {Object} found item or `undefined` - @deprecated Use `findBy` instead - */ - findProperty: aliasMethod('findBy'), - - /** - Returns `true` if the passed function returns true for every item in the - enumeration. This corresponds with the `every()` method in JavaScript 1.6. - - The callback method you provide should have the following signature (all - parameters are optional): - - ```javascript - function(item, index, enumerable); - ``` - - - `item` is the current item in the iteration. - - `index` is the current index in the iteration. - - `enumerable` is the enumerable object itself. - - It should return the `true` or `false`. - - Note that in addition to a callback, you can also pass an optional target - object that will be set as `this` on the context. This is a good way - to give your iterator function access to the current object. - - Example Usage: - - ```javascript - if (people.every(isEngineer)) { - Paychecks.addBigBonus(); - } - ``` - - @method every - @param {Function} callback The callback to execute - @param {Object} [target] The target object to use - @return {Boolean} - */ - every: function(callback, target) { - return !this.find(function(x, idx, i) { - return !callback.call(target, x, idx, i); - }); - }, - - /** - @method everyBy - @param {String} key the property to test - @param {String} [value] optional value to test against. - @deprecated Use `isEvery` instead - @return {Boolean} - */ - everyBy: aliasMethod('isEvery'), - - /** - @method everyProperty - @param {String} key the property to test - @param {String} [value] optional value to test against. - @deprecated Use `isEvery` instead - @return {Boolean} - */ - everyProperty: aliasMethod('isEvery'), - - /** - Returns `true` if the passed property resolves to `true` for all items in - the enumerable. This method is often simpler/faster than using a callback. - - @method isEvery - @param {String} key the property to test - @param {String} [value] optional value to test against. - @return {Boolean} - @since 1.3.0 - */ - isEvery: function(key, value) { - return this.every(apply(this, iter, arguments)); - }, - - /** - Returns `true` if the passed function returns true for any item in the - enumeration. This corresponds with the `some()` method in JavaScript 1.6. - - The callback method you provide should have the following signature (all - parameters are optional): - - ```javascript - function(item, index, enumerable); - ``` - - - `item` is the current item in the iteration. - - `index` is the current index in the iteration. - - `enumerable` is the enumerable object itself. - - It should return the `true` to include the item in the results, `false` - otherwise. - - Note that in addition to a callback, you can also pass an optional target - object that will be set as `this` on the context. This is a good way - to give your iterator function access to the current object. - - Usage Example: - - ```javascript - if (people.any(isManager)) { - Paychecks.addBiggerBonus(); - } - ``` - - @method any - @param {Function} callback The callback to execute - @param {Object} [target] The target object to use - @return {Boolean} `true` if the passed function returns `true` for any item - */ - any: function(callback, target) { - var len = get(this, 'length'); - var context = popCtx(); - var found = false; - var last = null; - var next, idx; - - if (target === undefined) { - target = null; - } - - for (idx = 0; idx < len && !found; idx++) { - next = this.nextObject(idx, last, context); - found = callback.call(target, next, idx, this); - last = next; - } - - next = last = null; - context = pushCtx(context); - return found; - }, - - /** - Returns `true` if the passed function returns true for any item in the - enumeration. This corresponds with the `some()` method in JavaScript 1.6. - - The callback method you provide should have the following signature (all - parameters are optional): - - ```javascript - function(item, index, enumerable); - ``` - - - `item` is the current item in the iteration. - - `index` is the current index in the iteration. - - `enumerable` is the enumerable object itself. - - It should return the `true` to include the item in the results, `false` - otherwise. - - Note that in addition to a callback, you can also pass an optional target - object that will be set as `this` on the context. This is a good way - to give your iterator function access to the current object. - - Usage Example: - - ```javascript - if (people.some(isManager)) { - Paychecks.addBiggerBonus(); - } - ``` - - @method some - @param {Function} callback The callback to execute - @param {Object} [target] The target object to use - @return {Boolean} `true` if the passed function returns `true` for any item - @deprecated Use `any` instead - */ - some: aliasMethod('any'), - - /** - Returns `true` if the passed property resolves to `true` for any item in - the enumerable. This method is often simpler/faster than using a callback. - - @method isAny - @param {String} key the property to test - @param {String} [value] optional value to test against. - @return {Boolean} - @since 1.3.0 - */ - isAny: function(key, value) { - return this.any(apply(this, iter, arguments)); - }, - - /** - @method anyBy - @param {String} key the property to test - @param {String} [value] optional value to test against. - @return {Boolean} - @deprecated Use `isAny` instead - */ - anyBy: aliasMethod('isAny'), - - /** - @method someProperty - @param {String} key the property to test - @param {String} [value] optional value to test against. - @return {Boolean} - @deprecated Use `isAny` instead - */ - someProperty: aliasMethod('isAny'), - - /** - This will combine the values of the enumerator into a single value. It - is a useful way to collect a summary value from an enumeration. This - corresponds to the `reduce()` method defined in JavaScript 1.8. - - The callback method you provide should have the following signature (all - parameters are optional): - - ```javascript - function(previousValue, item, index, enumerable); - ``` - - - `previousValue` is the value returned by the last call to the iterator. - - `item` is the current item in the iteration. - - `index` is the current index in the iteration. - - `enumerable` is the enumerable object itself. - - Return the new cumulative value. - - In addition to the callback you can also pass an `initialValue`. An error - will be raised if you do not pass an initial value and the enumerator is - empty. - - Note that unlike the other methods, this method does not allow you to - pass a target object to set as this for the callback. It's part of the - spec. Sorry. - - @method reduce - @param {Function} callback The callback to execute - @param {Object} initialValue Initial value for the reduce - @param {String} reducerProperty internal use only. - @return {Object} The reduced value. - */ - reduce: function(callback, initialValue, reducerProperty) { - if (typeof callback !== 'function') { - throw new TypeError(); - } - - var ret = initialValue; - - this.forEach(function(item, i) { - ret = callback(ret, item, i, this, reducerProperty); - }, this); - - return ret; - }, - - /** - Invokes the named method on every object in the receiver that - implements it. This method corresponds to the implementation in - Prototype 1.6. - - @method invoke - @param {String} methodName the name of the method - @param {Object...} args optional arguments to pass as well. - @return {Array} return values from calling invoke. - */ - invoke: function(methodName) { - var ret = Ember.A(); - var args; - - if (arguments.length > 1) { - args = a_slice.call(arguments, 1); - } - - this.forEach(function(x, idx) { - var method = x && x[methodName]; - - if ('function' === typeof method) { - ret[idx] = args ? apply(x, method, args) : x[methodName](); - } - }, this); - - return ret; - }, - - /** - Simply converts the enumerable into a genuine array. The order is not - guaranteed. Corresponds to the method implemented by Prototype. - - @method toArray - @return {Array} the enumerable as an array. - */ - toArray: function() { - var ret = Ember.A(); - - this.forEach(function(o, idx) { - ret[idx] = o; - }); - - return ret; - }, - - /** - Returns a copy of the array with all `null` and `undefined` elements removed. - - ```javascript - var arr = ['a', null, 'c', undefined]; - arr.compact(); // ['a', 'c'] - ``` - - @method compact - @return {Array} the array without null and undefined elements. - */ - compact: function() { - return this.filter(function(value) { - return value != null; - }); - }, - - /** - Returns a new enumerable that excludes the passed value. The default - implementation returns an array regardless of the receiver type unless - the receiver does not contain the value. - - ```javascript - var arr = ['a', 'b', 'a', 'c']; - arr.without('a'); // ['b', 'c'] - ``` - - @method without - @param {Object} value - @return {Ember.Enumerable} - */ - without: function(value) { - if (!this.contains(value)) { - return this; // nothing to do - } - - var ret = Ember.A(); - - this.forEach(function(k) { - if (k !== value) { - ret[ret.length] = k; - } - }); - - return ret; - }, - - /** - Returns a new enumerable that contains only unique values. The default - implementation returns an array regardless of the receiver type. - - ```javascript - var arr = ['a', 'a', 'b', 'b']; - arr.uniq(); // ['a', 'b'] - ``` - - This only works on primitive data types, e.g. Strings, Numbers, etc. - - @method uniq - @return {Ember.Enumerable} - */ - uniq: function() { - var ret = Ember.A(); - - this.forEach(function(k) { - if (indexOf(ret, k) < 0) { - ret.push(k); - } - }); - - return ret; - }, - - /** - This property will trigger anytime the enumerable's content changes. - You can observe this property to be notified of changes to the enumerables - content. - - For plain enumerables, this property is read only. `Array` overrides - this method. - - @property [] - @type Array - @return this - */ - '[]': computed(function(key, value) { - return this; - }), - - // .......................................................... - // ENUMERABLE OBSERVERS - // - - /** - Registers an enumerable observer. Must implement `Ember.EnumerableObserver` - mixin. - - @method addEnumerableObserver - @param {Object} target - @param {Hash} [opts] - @return this - */ - addEnumerableObserver: function(target, opts) { - var willChange = (opts && opts.willChange) || 'enumerableWillChange'; - var didChange = (opts && opts.didChange) || 'enumerableDidChange'; - var hasObservers = get(this, 'hasEnumerableObservers'); - - if (!hasObservers) { - propertyWillChange(this, 'hasEnumerableObservers'); - } - - addListener(this, '@enumerable:before', target, willChange); - addListener(this, '@enumerable:change', target, didChange); - - if (!hasObservers) { - propertyDidChange(this, 'hasEnumerableObservers'); - } - - return this; - }, - - /** - Removes a registered enumerable observer. - - @method removeEnumerableObserver - @param {Object} target - @param {Hash} [opts] - @return this - */ - removeEnumerableObserver: function(target, opts) { - var willChange = (opts && opts.willChange) || 'enumerableWillChange'; - var didChange = (opts && opts.didChange) || 'enumerableDidChange'; - var hasObservers = get(this, 'hasEnumerableObservers'); - - if (hasObservers) { - propertyWillChange(this, 'hasEnumerableObservers'); - } - - removeListener(this, '@enumerable:before', target, willChange); - removeListener(this, '@enumerable:change', target, didChange); - - if (hasObservers) { - propertyDidChange(this, 'hasEnumerableObservers'); - } - - return this; - }, - - /** - Becomes true whenever the array currently has observers watching changes - on the array. - - @property hasEnumerableObservers - @type Boolean - */ - hasEnumerableObservers: computed(function() { - return hasListeners(this, '@enumerable:change') || hasListeners(this, '@enumerable:before'); - }), - - - /** - Invoke this method just before the contents of your enumerable will - change. You can either omit the parameters completely or pass the objects - to be removed or added if available or just a count. - - @method enumerableContentWillChange - @param {Ember.Enumerable|Number} removing An enumerable of the objects to - be removed or the number of items to be removed. - @param {Ember.Enumerable|Number} adding An enumerable of the objects to be - added or the number of items to be added. - @chainable - */ - enumerableContentWillChange: function(removing, adding) { - var removeCnt, addCnt, hasDelta; - - if ('number' === typeof removing) { - removeCnt = removing; - } else if (removing) { - removeCnt = get(removing, 'length'); - } else { - removeCnt = removing = -1; - } - - if ('number' === typeof adding) { - addCnt = adding; - } else if (adding) { - addCnt = get(adding,'length'); - } else { - addCnt = adding = -1; - } - - hasDelta = addCnt < 0 || removeCnt < 0 || addCnt - removeCnt !== 0; - - if (removing === -1) { - removing = null; - } - - if (adding === -1) { - adding = null; - } - - propertyWillChange(this, '[]'); - - if (hasDelta) { - propertyWillChange(this, 'length'); - } - - sendEvent(this, '@enumerable:before', [this, removing, adding]); - - return this; - }, - - /** - Invoke this method when the contents of your enumerable has changed. - This will notify any observers watching for content changes. If you are - implementing an ordered enumerable (such as an array), also pass the - start and end values where the content changed so that it can be used to - notify range observers. - - @method enumerableContentDidChange - @param {Ember.Enumerable|Number} removing An enumerable of the objects to - be removed or the number of items to be removed. - @param {Ember.Enumerable|Number} adding An enumerable of the objects to - be added or the number of items to be added. - @chainable - */ - enumerableContentDidChange: function(removing, adding) { - var removeCnt, addCnt, hasDelta; - - if ('number' === typeof removing) { - removeCnt = removing; - } else if (removing) { - removeCnt = get(removing, 'length'); - } else { - removeCnt = removing = -1; - } - - if ('number' === typeof adding) { - addCnt = adding; - } else if (adding) { - addCnt = get(adding, 'length'); - } else { - addCnt = adding = -1; - } - - hasDelta = addCnt < 0 || removeCnt < 0 || addCnt - removeCnt !== 0; - - if (removing === -1) { - removing = null; - } - - if (adding === -1) { - adding = null; - } - - sendEvent(this, '@enumerable:change', [this, removing, adding]); - - if (hasDelta) { - propertyDidChange(this, 'length'); - } - - propertyDidChange(this, '[]'); - - return this ; - }, - - /** - Converts the enumerable into an array and sorts by the keys - specified in the argument. - - You may provide multiple arguments to sort by multiple properties. - - @method sortBy - @param {String} property name(s) to sort on - @return {Array} The sorted array. - @since 1.2.0 - */ - sortBy: function() { - var sortKeys = arguments; - - return this.toArray().sort(function(a, b) { - for(var i = 0; i < sortKeys.length; i++) { - var key = sortKeys[i]; - var propA = get(a, key); - var propB = get(b, key); - // return 1 or -1 else continue to the next sortKey - var compareValue = compare(propA, propB); - - if (compareValue) { - return compareValue; - } - } - return 0; - }); - } - }); - }); -enifed("ember-runtime/mixins/evented", - ["ember-metal/mixin","ember-metal/events","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var Mixin = __dependency1__.Mixin; - var addListener = __dependency2__.addListener; - var removeListener = __dependency2__.removeListener; - var hasListeners = __dependency2__.hasListeners; - var sendEvent = __dependency2__.sendEvent; - - /** - @module ember - @submodule ember-runtime - */ - - /** - This mixin allows for Ember objects to subscribe to and emit events. - - ```javascript - App.Person = Ember.Object.extend(Ember.Evented, { - greet: function() { - // ... - this.trigger('greet'); - } - }); - - var person = App.Person.create(); - - person.on('greet', function() { - console.log('Our person has greeted'); - }); - - person.greet(); - - // outputs: 'Our person has greeted' - ``` - - You can also chain multiple event subscriptions: - - ```javascript - person.on('greet', function() { - console.log('Our person has greeted'); - }).one('greet', function() { - console.log('Offer one-time special'); - }).off('event', this, forgetThis); - ``` - - @class Evented - @namespace Ember - */ - __exports__["default"] = Mixin.create({ - - /** - Subscribes to a named event with given function. - - ```javascript - person.on('didLoad', function() { - // fired once the person has loaded - }); - ``` - - An optional target can be passed in as the 2nd argument that will - be set as the "this" for the callback. This is a good way to give your - function access to the object triggering the event. When the target - parameter is used the callback becomes the third argument. - - @method on - @param {String} name The name of the event - @param {Object} [target] The "this" binding for the callback - @param {Function} method The callback to execute - @return this - */ - on: function(name, target, method) { - addListener(this, name, target, method); - return this; - }, - - /** - Subscribes a function to a named event and then cancels the subscription - after the first time the event is triggered. It is good to use ``one`` when - you only care about the first time an event has taken place. - - This function takes an optional 2nd argument that will become the "this" - value for the callback. If this argument is passed then the 3rd argument - becomes the function. - - @method one - @param {String} name The name of the event - @param {Object} [target] The "this" binding for the callback - @param {Function} method The callback to execute - @return this - */ - one: function(name, target, method) { - if (!method) { - method = target; - target = null; - } - - addListener(this, name, target, method, true); - return this; - }, - - /** - Triggers a named event for the object. Any additional arguments - will be passed as parameters to the functions that are subscribed to the - event. - - ```javascript - person.on('didEat', function(food) { - console.log('person ate some ' + food); - }); - - person.trigger('didEat', 'broccoli'); - - // outputs: person ate some broccoli - ``` - @method trigger - @param {String} name The name of the event - @param {Object...} args Optional arguments to pass on - */ - trigger: function(name) { - var length = arguments.length; - var args = new Array(length - 1); - - for (var i = 1; i < length; i++) { - args[i - 1] = arguments[i]; - } - - sendEvent(this, name, args); - }, - - /** - Cancels subscription for given name, target, and method. - - @method off - @param {String} name The name of the event - @param {Object} target The target of the subscription - @param {Function} method The function of the subscription - @return this - */ - off: function(name, target, method) { - removeListener(this, name, target, method); - return this; - }, - - /** - Checks to see if object has any subscriptions for named event. - - @method has - @param {String} name The name of the event - @return {Boolean} does the object have a subscription for event - */ - has: function(name) { - return hasListeners(this, name); - } - }); - }); -enifed("ember-runtime/mixins/freezable", - ["ember-metal/mixin","ember-metal/property_get","ember-metal/property_set","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - var Mixin = __dependency1__.Mixin; - var get = __dependency2__.get; - var set = __dependency3__.set; - - /** - The `Ember.Freezable` mixin implements some basic methods for marking an - object as frozen. Once an object is frozen it should be read only. No changes - may be made the internal state of the object. - - ## Enforcement - - To fully support freezing in your subclass, you must include this mixin and - override any method that might alter any property on the object to instead - raise an exception. You can check the state of an object by checking the - `isFrozen` property. - - Although future versions of JavaScript may support language-level freezing - object objects, that is not the case today. Even if an object is freezable, - it is still technically possible to modify the object, even though it could - break other parts of your application that do not expect a frozen object to - change. It is, therefore, very important that you always respect the - `isFrozen` property on all freezable objects. - - ## Example Usage - - The example below shows a simple object that implement the `Ember.Freezable` - protocol. - - ```javascript - Contact = Ember.Object.extend(Ember.Freezable, { - firstName: null, - lastName: null, - - // swaps the names - swapNames: function() { - if (this.get('isFrozen')) throw Ember.FROZEN_ERROR; - var tmp = this.get('firstName'); - this.set('firstName', this.get('lastName')); - this.set('lastName', tmp); - return this; - } - - }); - - c = Contact.create({ firstName: "John", lastName: "Doe" }); - c.swapNames(); // returns c - c.freeze(); - c.swapNames(); // EXCEPTION - ``` - - ## Copying - - Usually the `Ember.Freezable` protocol is implemented in cooperation with the - `Ember.Copyable` protocol, which defines a `frozenCopy()` method that will - return a frozen object, if the object implements this method as well. - - @class Freezable - @namespace Ember - @since Ember 0.9 - */ - var Freezable = Mixin.create({ - - /** - Set to `true` when the object is frozen. Use this property to detect - whether your object is frozen or not. - - @property isFrozen - @type Boolean - */ - isFrozen: false, - - /** - Freezes the object. Once this method has been called the object should - no longer allow any properties to be edited. - - @method freeze - @return {Object} receiver - */ - freeze: function() { - if (get(this, 'isFrozen')) return this; - set(this, 'isFrozen', true); - return this; - } - - }); - __exports__.Freezable = Freezable; - var FROZEN_ERROR = "Frozen object cannot be modified."; - __exports__.FROZEN_ERROR = FROZEN_ERROR; - }); -enifed("ember-runtime/mixins/mutable_array", - ["ember-metal/property_get","ember-metal/utils","ember-metal/error","ember-metal/mixin","ember-runtime/mixins/array","ember-runtime/mixins/mutable_enumerable","ember-runtime/mixins/enumerable","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - - // require('ember-runtime/mixins/array'); - // require('ember-runtime/mixins/mutable_enumerable'); - - // .......................................................... - // CONSTANTS - // - - var OUT_OF_RANGE_EXCEPTION = "Index out of range"; - var EMPTY = []; - - // .......................................................... - // HELPERS - // - - var get = __dependency1__.get; - var isArray = __dependency2__.isArray; - var EmberError = __dependency3__["default"]; - var Mixin = __dependency4__.Mixin; - var required = __dependency4__.required; - var EmberArray = __dependency5__["default"]; - var MutableEnumerable = __dependency6__["default"]; - var Enumerable = __dependency7__["default"]; - /** - This mixin defines the API for modifying array-like objects. These methods - can be applied only to a collection that keeps its items in an ordered set. - It builds upon the Array mixin and adds methods to modify the array. - Concrete implementations of this class include ArrayProxy and ArrayController. - - It is important to use the methods in this class to modify arrays so that - changes are observable. This allows the binding system in Ember to function - correctly. - - - Note that an Array can change even if it does not implement this mixin. - For example, one might implement a SparseArray that cannot be directly - modified, but if its underlying enumerable changes, it will change also. - - @class MutableArray - @namespace Ember - @uses Ember.Array - @uses Ember.MutableEnumerable - */ - __exports__["default"] = Mixin.create(EmberArray, MutableEnumerable, { - - /** - __Required.__ You must implement this method to apply this mixin. - - This is one of the primitives you must implement to support `Ember.Array`. - You should replace amt objects started at idx with the objects in the - passed array. You should also call `this.enumerableContentDidChange()` - - @method replace - @param {Number} idx Starting index in the array to replace. If - idx >= length, then append to the end of the array. - @param {Number} amt Number of elements that should be removed from - the array, starting at *idx*. - @param {Array} objects An array of zero or more objects that should be - inserted into the array at *idx* - */ - replace: required(), - - /** - Remove all elements from the array. This is useful if you - want to reuse an existing array without having to recreate it. - - ```javascript - var colors = ["red", "green", "blue"]; - color.length(); // 3 - colors.clear(); // [] - colors.length(); // 0 - ``` - - @method clear - @return {Ember.Array} An empty Array. - */ - clear: function () { - var len = get(this, 'length'); - if (len === 0) return this; - this.replace(0, len, EMPTY); - return this; - }, - - /** - This will use the primitive `replace()` method to insert an object at the - specified index. - - ```javascript - var colors = ["red", "green", "blue"]; - colors.insertAt(2, "yellow"); // ["red", "green", "yellow", "blue"] - colors.insertAt(5, "orange"); // Error: Index out of range - ``` - - @method insertAt - @param {Number} idx index of insert the object at. - @param {Object} object object to insert - @return {Ember.Array} receiver - */ - insertAt: function(idx, object) { - if (idx > get(this, 'length')) throw new EmberError(OUT_OF_RANGE_EXCEPTION); - this.replace(idx, 0, [object]); - return this; - }, - - /** - Remove an object at the specified index using the `replace()` primitive - method. You can pass either a single index, or a start and a length. - - If you pass a start and length that is beyond the - length this method will throw an `OUT_OF_RANGE_EXCEPTION`. - - ```javascript - var colors = ["red", "green", "blue", "yellow", "orange"]; - colors.removeAt(0); // ["green", "blue", "yellow", "orange"] - colors.removeAt(2, 2); // ["green", "blue"] - colors.removeAt(4, 2); // Error: Index out of range - ``` - - @method removeAt - @param {Number} start index, start of range - @param {Number} len length of passing range - @return {Ember.Array} receiver - */ - removeAt: function(start, len) { - if ('number' === typeof start) { - - if ((start < 0) || (start >= get(this, 'length'))) { - throw new EmberError(OUT_OF_RANGE_EXCEPTION); - } - - // fast case - if (len === undefined) len = 1; - this.replace(start, len, EMPTY); - } - - return this; - }, - - /** - Push the object onto the end of the array. Works just like `push()` but it - is KVO-compliant. - - ```javascript - var colors = ["red", "green"]; - colors.pushObject("black"); // ["red", "green", "black"] - colors.pushObject(["yellow"]); // ["red", "green", ["yellow"]] - ``` - - @method pushObject - @param {*} obj object to push - @return object same object passed as a param - */ - pushObject: function(obj) { - this.insertAt(get(this, 'length'), obj); - return obj; - }, - - /** - Add the objects in the passed numerable to the end of the array. Defers - notifying observers of the change until all objects are added. - - ```javascript - var colors = ["red"]; - colors.pushObjects(["yellow", "orange"]); // ["red", "yellow", "orange"] - ``` - - @method pushObjects - @param {Ember.Enumerable} objects the objects to add - @return {Ember.Array} receiver - */ - pushObjects: function(objects) { - if (!(Enumerable.detect(objects) || isArray(objects))) { - throw new TypeError("Must pass Ember.Enumerable to Ember.MutableArray#pushObjects"); - } - this.replace(get(this, 'length'), 0, objects); - return this; - }, - - /** - Pop object from array or nil if none are left. Works just like `pop()` but - it is KVO-compliant. - - ```javascript - var colors = ["red", "green", "blue"]; - colors.popObject(); // "blue" - console.log(colors); // ["red", "green"] - ``` - - @method popObject - @return object - */ - popObject: function() { - var len = get(this, 'length'); - if (len === 0) return null; - - var ret = this.objectAt(len-1); - this.removeAt(len-1, 1); - return ret; - }, - - /** - Shift an object from start of array or nil if none are left. Works just - like `shift()` but it is KVO-compliant. - - ```javascript - var colors = ["red", "green", "blue"]; - colors.shiftObject(); // "red" - console.log(colors); // ["green", "blue"] - ``` - - @method shiftObject - @return object - */ - shiftObject: function() { - if (get(this, 'length') === 0) return null; - var ret = this.objectAt(0); - this.removeAt(0); - return ret; - }, - - /** - Unshift an object to start of array. Works just like `unshift()` but it is - KVO-compliant. - - ```javascript - var colors = ["red"]; - colors.unshiftObject("yellow"); // ["yellow", "red"] - colors.unshiftObject(["black"]); // [["black"], "yellow", "red"] - ``` - - @method unshiftObject - @param {*} obj object to unshift - @return object same object passed as a param - */ - unshiftObject: function(obj) { - this.insertAt(0, obj); - return obj; - }, - - /** - Adds the named objects to the beginning of the array. Defers notifying - observers until all objects have been added. - - ```javascript - var colors = ["red"]; - colors.unshiftObjects(["black", "white"]); // ["black", "white", "red"] - colors.unshiftObjects("yellow"); // Type Error: 'undefined' is not a function - ``` - - @method unshiftObjects - @param {Ember.Enumerable} objects the objects to add - @return {Ember.Array} receiver - */ - unshiftObjects: function(objects) { - this.replace(0, 0, objects); - return this; - }, - - /** - Reverse objects in the array. Works just like `reverse()` but it is - KVO-compliant. - - @method reverseObjects - @return {Ember.Array} receiver - */ - reverseObjects: function() { - var len = get(this, 'length'); - if (len === 0) return this; - var objects = this.toArray().reverse(); - this.replace(0, len, objects); - return this; - }, - - /** - Replace all the receiver's content with content of the argument. - If argument is an empty array receiver will be cleared. - - ```javascript - var colors = ["red", "green", "blue"]; - colors.setObjects(["black", "white"]); // ["black", "white"] - colors.setObjects([]); // [] - ``` - - @method setObjects - @param {Ember.Array} objects array whose content will be used for replacing - the content of the receiver - @return {Ember.Array} receiver with the new content - */ - setObjects: function(objects) { - if (objects.length === 0) return this.clear(); - - var len = get(this, 'length'); - this.replace(0, len, objects); - return this; - }, - - // .......................................................... - // IMPLEMENT Ember.MutableEnumerable - // - - /** - Remove all occurrences of an object in the array. - - ```javascript - var cities = ["Chicago", "Berlin", "Lima", "Chicago"]; - cities.removeObject("Chicago"); // ["Berlin", "Lima"] - cities.removeObject("Lima"); // ["Berlin"] - cities.removeObject("Tokyo") // ["Berlin"] - ``` - - @method removeObject - @param {*} obj object to remove - @return {Ember.Array} receiver - */ - removeObject: function(obj) { - var loc = get(this, 'length') || 0; - while(--loc >= 0) { - var curObject = this.objectAt(loc); - if (curObject === obj) this.removeAt(loc); - } - return this; - }, - - /** - Push the object onto the end of the array if it is not already - present in the array. - - ```javascript - var cities = ["Chicago", "Berlin"]; - cities.addObject("Lima"); // ["Chicago", "Berlin", "Lima"] - cities.addObject("Berlin"); // ["Chicago", "Berlin", "Lima"] - ``` - - @method addObject - @param {*} obj object to add, if not already present - @return {Ember.Array} receiver - */ - addObject: function(obj) { - if (!this.contains(obj)) this.pushObject(obj); - return this; - } - - }); - }); -enifed("ember-runtime/mixins/mutable_enumerable", - ["ember-metal/enumerable_utils","ember-runtime/mixins/enumerable","ember-metal/mixin","ember-metal/property_events","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var forEach = __dependency1__.forEach; - var Enumerable = __dependency2__["default"]; - var Mixin = __dependency3__.Mixin; - var required = __dependency3__.required; - var beginPropertyChanges = __dependency4__.beginPropertyChanges; - var endPropertyChanges = __dependency4__.endPropertyChanges; - - /** - @module ember - @submodule ember-runtime - */ - - /** - This mixin defines the API for modifying generic enumerables. These methods - can be applied to an object regardless of whether it is ordered or - unordered. - - Note that an Enumerable can change even if it does not implement this mixin. - For example, a MappedEnumerable cannot be directly modified but if its - underlying enumerable changes, it will change also. - - ## Adding Objects - - To add an object to an enumerable, use the `addObject()` method. This - method will only add the object to the enumerable if the object is not - already present and is of a type supported by the enumerable. - - ```javascript - set.addObject(contact); - ``` - - ## Removing Objects - - To remove an object from an enumerable, use the `removeObject()` method. This - will only remove the object if it is present in the enumerable, otherwise - this method has no effect. - - ```javascript - set.removeObject(contact); - ``` - - ## Implementing In Your Own Code - - If you are implementing an object and want to support this API, just include - this mixin in your class and implement the required methods. In your unit - tests, be sure to apply the Ember.MutableEnumerableTests to your object. - - @class MutableEnumerable - @namespace Ember - @uses Ember.Enumerable - */ - __exports__["default"] = Mixin.create(Enumerable, { - - /** - __Required.__ You must implement this method to apply this mixin. - - Attempts to add the passed object to the receiver if the object is not - already present in the collection. If the object is present, this method - has no effect. - - If the passed object is of a type not supported by the receiver, - then this method should raise an exception. - - @method addObject - @param {Object} object The object to add to the enumerable. - @return {Object} the passed object - */ - addObject: required(Function), - - /** - Adds each object in the passed enumerable to the receiver. - - @method addObjects - @param {Ember.Enumerable} objects the objects to add. - @return {Object} receiver - */ - addObjects: function(objects) { - beginPropertyChanges(this); - forEach(objects, function(obj) { this.addObject(obj); }, this); - endPropertyChanges(this); - return this; - }, - - /** - __Required.__ You must implement this method to apply this mixin. - - Attempts to remove the passed object from the receiver collection if the - object is present in the collection. If the object is not present, - this method has no effect. - - If the passed object is of a type not supported by the receiver, - then this method should raise an exception. - - @method removeObject - @param {Object} object The object to remove from the enumerable. - @return {Object} the passed object - */ - removeObject: required(Function), - - - /** - Removes each object in the passed enumerable from the receiver. - - @method removeObjects - @param {Ember.Enumerable} objects the objects to remove - @return {Object} receiver - */ - removeObjects: function(objects) { - beginPropertyChanges(this); - for (var i = objects.length - 1; i >= 0; i--) { - this.removeObject(objects[i]); - } - endPropertyChanges(this); - return this; - } - }); - }); -enifed("ember-runtime/mixins/observable", - ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/get_properties","ember-metal/set_properties","ember-metal/mixin","ember-metal/events","ember-metal/property_events","ember-metal/observer","ember-metal/computed","ember-metal/is_none","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - var Ember = __dependency1__["default"]; - // Ember.assert - - var get = __dependency2__.get; - var getWithDefault = __dependency2__.getWithDefault; - var set = __dependency3__.set; - var apply = __dependency4__.apply; - var getProperties = __dependency5__["default"]; - var setProperties = __dependency6__["default"]; - var Mixin = __dependency7__.Mixin; - var hasListeners = __dependency8__.hasListeners; - var beginPropertyChanges = __dependency9__.beginPropertyChanges; - var propertyWillChange = __dependency9__.propertyWillChange; - var propertyDidChange = __dependency9__.propertyDidChange; - var endPropertyChanges = __dependency9__.endPropertyChanges; - var addObserver = __dependency10__.addObserver; - var addBeforeObserver = __dependency10__.addBeforeObserver; - var removeObserver = __dependency10__.removeObserver; - var observersFor = __dependency10__.observersFor; - var cacheFor = __dependency11__.cacheFor; - var isNone = __dependency12__["default"]; - - - var slice = Array.prototype.slice; - /** - ## Overview - - This mixin provides properties and property observing functionality, core - features of the Ember object model. - - Properties and observers allow one object to observe changes to a - property on another object. This is one of the fundamental ways that - models, controllers and views communicate with each other in an Ember - application. - - Any object that has this mixin applied can be used in observer - operations. That includes `Ember.Object` and most objects you will - interact with as you write your Ember application. - - Note that you will not generally apply this mixin to classes yourself, - but you will use the features provided by this module frequently, so it - is important to understand how to use it. - - ## Using `get()` and `set()` - - Because of Ember's support for bindings and observers, you will always - access properties using the get method, and set properties using the - set method. This allows the observing objects to be notified and - computed properties to be handled properly. - - More documentation about `get` and `set` are below. - - ## Observing Property Changes - - You typically observe property changes simply by adding the `observes` - call to the end of your method declarations in classes that you write. - For example: - - ```javascript - Ember.Object.extend({ - valueObserver: function() { - // Executes whenever the "value" property changes - }.observes('value') - }); - ``` - - Although this is the most common way to add an observer, this capability - is actually built into the `Ember.Object` class on top of two methods - defined in this mixin: `addObserver` and `removeObserver`. You can use - these two methods to add and remove observers yourself if you need to - do so at runtime. - - To add an observer for a property, call: - - ```javascript - object.addObserver('propertyKey', targetObject, targetAction) - ``` - - This will call the `targetAction` method on the `targetObject` whenever - the value of the `propertyKey` changes. - - Note that if `propertyKey` is a computed property, the observer will be - called when any of the property dependencies are changed, even if the - resulting value of the computed property is unchanged. This is necessary - because computed properties are not computed until `get` is called. - - @class Observable - @namespace Ember - */ - __exports__["default"] = Mixin.create({ - - /** - Retrieves the value of a property from the object. - - This method is usually similar to using `object[keyName]` or `object.keyName`, - however it supports both computed properties and the unknownProperty - handler. - - Because `get` unifies the syntax for accessing all these kinds - of properties, it can make many refactorings easier, such as replacing a - simple property with a computed property, or vice versa. - - ### Computed Properties - - Computed properties are methods defined with the `property` modifier - declared at the end, such as: - - ```javascript - fullName: function() { - return this.get('firstName') + ' ' + this.get('lastName'); - }.property('firstName', 'lastName') - ``` - - When you call `get` on a computed property, the function will be - called and the return value will be returned instead of the function - itself. - - ### Unknown Properties - - Likewise, if you try to call `get` on a property whose value is - `undefined`, the `unknownProperty()` method will be called on the object. - If this method returns any value other than `undefined`, it will be returned - instead. This allows you to implement "virtual" properties that are - not defined upfront. - - @method get - @param {String} keyName The property to retrieve - @return {Object} The property value or undefined. - */ - get: function(keyName) { - return get(this, keyName); - }, - - /** - To get the values of multiple properties at once, call `getProperties` - with a list of strings or an array: - - ```javascript - record.getProperties('firstName', 'lastName', 'zipCode'); - // { firstName: 'John', lastName: 'Doe', zipCode: '10011' } - ``` - - is equivalent to: - - ```javascript - record.getProperties(['firstName', 'lastName', 'zipCode']); - // { firstName: 'John', lastName: 'Doe', zipCode: '10011' } - ``` - - @method getProperties - @param {String...|Array} list of keys to get - @return {Hash} - */ - getProperties: function() { - return apply(null, getProperties, [this].concat(slice.call(arguments))); - }, - - /** - Sets the provided key or path to the value. - - This method is generally very similar to calling `object[key] = value` or - `object.key = value`, except that it provides support for computed - properties, the `setUnknownProperty()` method and property observers. - - ### Computed Properties - - If you try to set a value on a key that has a computed property handler - defined (see the `get()` method for an example), then `set()` will call - that method, passing both the value and key instead of simply changing - the value itself. This is useful for those times when you need to - implement a property that is composed of one or more member - properties. - - ### Unknown Properties - - If you try to set a value on a key that is undefined in the target - object, then the `setUnknownProperty()` handler will be called instead. This - gives you an opportunity to implement complex "virtual" properties that - are not predefined on the object. If `setUnknownProperty()` returns - undefined, then `set()` will simply set the value on the object. - - ### Property Observers - - In addition to changing the property, `set()` will also register a property - change with the object. Unless you have placed this call inside of a - `beginPropertyChanges()` and `endPropertyChanges(),` any "local" observers - (i.e. observer methods declared on the same object), will be called - immediately. Any "remote" observers (i.e. observer methods declared on - another object) will be placed in a queue and called at a later time in a - coalesced manner. - - ### Chaining - - In addition to property changes, `set()` returns the value of the object - itself so you can do chaining like this: - - ```javascript - record.set('firstName', 'Charles').set('lastName', 'Jolley'); - ``` - - @method set - @param {String} keyName The property to set - @param {Object} value The value to set or `null`. - @return {Ember.Observable} - */ - set: function(keyName, value) { - set(this, keyName, value); - return this; - }, - - - /** - Sets a list of properties at once. These properties are set inside - a single `beginPropertyChanges` and `endPropertyChanges` batch, so - observers will be buffered. - - ```javascript - record.setProperties({ firstName: 'Charles', lastName: 'Jolley' }); - ``` - - @method setProperties - @param {Hash} hash the hash of keys and values to set - @return {Ember.Observable} - */ - setProperties: function(hash) { - return setProperties(this, hash); - }, - - /** - Begins a grouping of property changes. - - You can use this method to group property changes so that notifications - will not be sent until the changes are finished. If you plan to make a - large number of changes to an object at one time, you should call this - method at the beginning of the changes to begin deferring change - notifications. When you are done making changes, call - `endPropertyChanges()` to deliver the deferred change notifications and end - deferring. - - @method beginPropertyChanges - @return {Ember.Observable} - */ - beginPropertyChanges: function() { - beginPropertyChanges(); - return this; - }, - - /** - Ends a grouping of property changes. - - You can use this method to group property changes so that notifications - will not be sent until the changes are finished. If you plan to make a - large number of changes to an object at one time, you should call - `beginPropertyChanges()` at the beginning of the changes to defer change - notifications. When you are done making changes, call this method to - deliver the deferred change notifications and end deferring. - - @method endPropertyChanges - @return {Ember.Observable} - */ - endPropertyChanges: function() { - endPropertyChanges(); - return this; - }, - - /** - Notify the observer system that a property is about to change. - - Sometimes you need to change a value directly or indirectly without - actually calling `get()` or `set()` on it. In this case, you can use this - method and `propertyDidChange()` instead. Calling these two methods - together will notify all observers that the property has potentially - changed value. - - Note that you must always call `propertyWillChange` and `propertyDidChange` - as a pair. If you do not, it may get the property change groups out of - order and cause notifications to be delivered more often than you would - like. - - @method propertyWillChange - @param {String} keyName The property key that is about to change. - @return {Ember.Observable} - */ - propertyWillChange: function(keyName) { - propertyWillChange(this, keyName); - return this; - }, - - /** - Notify the observer system that a property has just changed. - - Sometimes you need to change a value directly or indirectly without - actually calling `get()` or `set()` on it. In this case, you can use this - method and `propertyWillChange()` instead. Calling these two methods - together will notify all observers that the property has potentially - changed value. - - Note that you must always call `propertyWillChange` and `propertyDidChange` - as a pair. If you do not, it may get the property change groups out of - order and cause notifications to be delivered more often than you would - like. - - @method propertyDidChange - @param {String} keyName The property key that has just changed. - @return {Ember.Observable} - */ - propertyDidChange: function(keyName) { - propertyDidChange(this, keyName); - return this; - }, - - /** - Convenience method to call `propertyWillChange` and `propertyDidChange` in - succession. - - @method notifyPropertyChange - @param {String} keyName The property key to be notified about. - @return {Ember.Observable} - */ - notifyPropertyChange: function(keyName) { - this.propertyWillChange(keyName); - this.propertyDidChange(keyName); - return this; - }, - - addBeforeObserver: function(key, target, method) { - Ember.deprecate('Before observers are deprecated and will be removed in a future release. If you want to keep track of previous values you have to implement it yourself.', false, { url: 'http://emberjs.com/guides/deprecations/#toc_deprecate-beforeobservers' }); - addBeforeObserver(this, key, target, method); - }, - - /** - Adds an observer on a property. - - This is the core method used to register an observer for a property. - - Once you call this method, any time the key's value is set, your observer - will be notified. Note that the observers are triggered any time the - value is set, regardless of whether it has actually changed. Your - observer should be prepared to handle that. - - You can also pass an optional context parameter to this method. The - context will be passed to your observer method whenever it is triggered. - Note that if you add the same target/method pair on a key multiple times - with different context parameters, your observer will only be called once - with the last context you passed. - - ### Observer Methods - - Observer methods you pass should generally have the following signature if - you do not pass a `context` parameter: - - ```javascript - fooDidChange: function(sender, key, value, rev) { }; - ``` - - The sender is the object that changed. The key is the property that - changes. The value property is currently reserved and unused. The rev - is the last property revision of the object when it changed, which you can - use to detect if the key value has really changed or not. - - If you pass a `context` parameter, the context will be passed before the - revision like so: - - ```javascript - fooDidChange: function(sender, key, value, context, rev) { }; - ``` - - Usually you will not need the value, context or revision parameters at - the end. In this case, it is common to write observer methods that take - only a sender and key value as parameters or, if you aren't interested in - any of these values, to write an observer that has no parameters at all. - - @method addObserver - @param {String} key The key to observer - @param {Object} target The target object to invoke - @param {String|Function} method The method to invoke. - */ - addObserver: function(key, target, method) { - addObserver(this, key, target, method); - }, - - /** - Remove an observer you have previously registered on this object. Pass - the same key, target, and method you passed to `addObserver()` and your - target will no longer receive notifications. - - @method removeObserver - @param {String} key The key to observer - @param {Object} target The target object to invoke - @param {String|Function} method The method to invoke. - */ - removeObserver: function(key, target, method) { - removeObserver(this, key, target, method); - }, - - /** - Returns `true` if the object currently has observers registered for a - particular key. You can use this method to potentially defer performing - an expensive action until someone begins observing a particular property - on the object. - - @method hasObserverFor - @param {String} key Key to check - @return {Boolean} - */ - hasObserverFor: function(key) { - return hasListeners(this, key+':change'); - }, - - /** - Retrieves the value of a property, or a default value in the case that the - property returns `undefined`. - - ```javascript - person.getWithDefault('lastName', 'Doe'); - ``` - - @method getWithDefault - @param {String} keyName The name of the property to retrieve - @param {Object} defaultValue The value to return if the property value is undefined - @return {Object} The property value or the defaultValue. - */ - getWithDefault: function(keyName, defaultValue) { - return getWithDefault(this, keyName, defaultValue); - }, - - /** - Set the value of a property to the current value plus some amount. - - ```javascript - person.incrementProperty('age'); - team.incrementProperty('score', 2); - ``` - - @method incrementProperty - @param {String} keyName The name of the property to increment - @param {Number} increment The amount to increment by. Defaults to 1 - @return {Number} The new property value - */ - incrementProperty: function(keyName, increment) { - if (isNone(increment)) { increment = 1; } - Ember.assert("Must pass a numeric value to incrementProperty", (!isNaN(parseFloat(increment)) && isFinite(increment))); - set(this, keyName, (parseFloat(get(this, keyName)) || 0) + increment); - return get(this, keyName); - }, - - /** - Set the value of a property to the current value minus some amount. - - ```javascript - player.decrementProperty('lives'); - orc.decrementProperty('health', 5); - ``` - - @method decrementProperty - @param {String} keyName The name of the property to decrement - @param {Number} decrement The amount to decrement by. Defaults to 1 - @return {Number} The new property value - */ - decrementProperty: function(keyName, decrement) { - if (isNone(decrement)) { decrement = 1; } - Ember.assert("Must pass a numeric value to decrementProperty", (!isNaN(parseFloat(decrement)) && isFinite(decrement))); - set(this, keyName, (get(this, keyName) || 0) - decrement); - return get(this, keyName); - }, - - /** - Set the value of a boolean property to the opposite of its - current value. - - ```javascript - starship.toggleProperty('warpDriveEngaged'); - ``` - - @method toggleProperty - @param {String} keyName The name of the property to toggle - @return {Object} The new property value - */ - toggleProperty: function(keyName) { - set(this, keyName, !get(this, keyName)); - return get(this, keyName); - }, - - /** - Returns the cached value of a computed property, if it exists. - This allows you to inspect the value of a computed property - without accidentally invoking it if it is intended to be - generated lazily. - - @method cacheFor - @param {String} keyName - @return {Object} The cached value of the computed property, if any - */ - cacheFor: function(keyName) { - return cacheFor(this, keyName); - }, - - // intended for debugging purposes - observersForKey: function(keyName) { - return observersFor(this, keyName); - } - }); - }); -enifed("ember-runtime/mixins/promise_proxy", - ["ember-metal/property_get","ember-metal/set_properties","ember-metal/computed","ember-metal/mixin","ember-metal/error","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - var get = __dependency1__.get; - var setProperties = __dependency2__["default"]; - var computed = __dependency3__.computed; - var Mixin = __dependency4__.Mixin; - var EmberError = __dependency5__["default"]; - - var not = computed.not; - var or = computed.or; - - /** - @module ember - @submodule ember-runtime - */ - - function tap(proxy, promise) { - setProperties(proxy, { - isFulfilled: false, - isRejected: false - }); - - return promise.then(function(value) { - setProperties(proxy, { - content: value, - isFulfilled: true - }); - return value; - }, function(reason) { - setProperties(proxy, { - reason: reason, - isRejected: true - }); - throw reason; - }, "Ember: PromiseProxy"); - } - - /** - A low level mixin making ObjectProxy, ObjectController or ArrayController's promise aware. - - ```javascript - var ObjectPromiseController = Ember.ObjectController.extend(Ember.PromiseProxyMixin); - - var controller = ObjectPromiseController.create({ - promise: $.getJSON('/some/remote/data.json') - }); - - controller.then(function(json){ - // the json - }, function(reason) { - // the reason why you have no json - }); - ``` - - the controller has bindable attributes which - track the promises life cycle - - ```javascript - controller.get('isPending') //=> true - controller.get('isSettled') //=> false - controller.get('isRejected') //=> false - controller.get('isFulfilled') //=> false - ``` - - When the the $.getJSON completes, and the promise is fulfilled - with json, the life cycle attributes will update accordingly. - - ```javascript - controller.get('isPending') //=> false - controller.get('isSettled') //=> true - controller.get('isRejected') //=> false - controller.get('isFulfilled') //=> true - ``` - - As the controller is an ObjectController, and the json now its content, - all the json properties will be available directly from the controller. - - ```javascript - // Assuming the following json: - { - firstName: 'Stefan', - lastName: 'Penner' - } - - // both properties will accessible on the controller - controller.get('firstName') //=> 'Stefan' - controller.get('lastName') //=> 'Penner' - ``` - - If the controller is backing a template, the attributes are - bindable from within that template - - ```handlebars - {{#if isPending}} - loading... - {{else}} - firstName: {{firstName}} - lastName: {{lastName}} - {{/if}} - ``` - @class Ember.PromiseProxyMixin - */ - __exports__["default"] = Mixin.create({ - /** - If the proxied promise is rejected this will contain the reason - provided. - - @property reason - @default null - */ - reason: null, - - /** - Once the proxied promise has settled this will become `false`. - - @property isPending - @default true - */ - isPending: not('isSettled').readOnly(), - - /** - Once the proxied promise has settled this will become `true`. - - @property isSettled - @default false - */ - isSettled: or('isRejected', 'isFulfilled').readOnly(), - - /** - Will become `true` if the proxied promise is rejected. - - @property isRejected - @default false - */ - isRejected: false, - - /** - Will become `true` if the proxied promise is fulfilled. - - @property isFulfilled - @default false - */ - isFulfilled: false, - - /** - The promise whose fulfillment value is being proxied by this object. - - This property must be specified upon creation, and should not be - changed once created. - - Example: - - ```javascript - Ember.ObjectController.extend(Ember.PromiseProxyMixin).create({ - promise: - }); - ``` - - @property promise - */ - promise: computed(function(key, promise) { - if (arguments.length === 2) { - return tap(this, promise); - } else { - throw new EmberError("PromiseProxy's promise must be set"); - } - }), - - /** - An alias to the proxied promise's `then`. - - See RSVP.Promise.then. - - @method then - @param {Function} callback - @return {RSVP.Promise} - */ - then: promiseAlias('then'), - - /** - An alias to the proxied promise's `catch`. - - See RSVP.Promise.catch. - - @method catch - @param {Function} callback - @return {RSVP.Promise} - @since 1.3.0 - */ - 'catch': promiseAlias('catch'), - - /** - An alias to the proxied promise's `finally`. - - See RSVP.Promise.finally. - - @method finally - @param {Function} callback - @return {RSVP.Promise} - @since 1.3.0 - */ - 'finally': promiseAlias('finally') - - }); - - function promiseAlias(name) { - return function () { - var promise = get(this, 'promise'); - return promise[name].apply(promise, arguments); - }; - } - }); -enifed("ember-runtime/mixins/sortable", - ["ember-metal/core","ember-metal/property_get","ember-metal/enumerable_utils","ember-metal/mixin","ember-runtime/mixins/mutable_enumerable","ember-runtime/compare","ember-metal/observer","ember-metal/computed","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - var Ember = __dependency1__["default"]; - // Ember.assert, Ember.A - - var get = __dependency2__.get; - var forEach = __dependency3__.forEach; - var Mixin = __dependency4__.Mixin; - var MutableEnumerable = __dependency5__["default"]; - var compare = __dependency6__["default"]; - var addObserver = __dependency7__.addObserver; - var removeObserver = __dependency7__.removeObserver; - var computed = __dependency8__.computed; - var beforeObserver = __dependency4__.beforeObserver; - var observer = __dependency4__.observer; - //ES6TODO: should we access these directly from their package or from how their exposed in ember-metal? - - /** - `Ember.SortableMixin` provides a standard interface for array proxies - to specify a sort order and maintain this sorting when objects are added, - removed, or updated without changing the implicit order of their underlying - model array: - - ```javascript - songs = [ - {trackNumber: 4, title: 'Ob-La-Di, Ob-La-Da'}, - {trackNumber: 2, title: 'Back in the U.S.S.R.'}, - {trackNumber: 3, title: 'Glass Onion'}, - ]; - - songsController = Ember.ArrayController.create({ - model: songs, - sortProperties: ['trackNumber'], - sortAscending: true - }); - - songsController.get('firstObject'); // {trackNumber: 2, title: 'Back in the U.S.S.R.'} - - songsController.addObject({trackNumber: 1, title: 'Dear Prudence'}); - songsController.get('firstObject'); // {trackNumber: 1, title: 'Dear Prudence'} - ``` - - If you add or remove the properties to sort by or change the sort direction the model - sort order will be automatically updated. - - ```javascript - songsController.set('sortProperties', ['title']); - songsController.get('firstObject'); // {trackNumber: 2, title: 'Back in the U.S.S.R.'} - - songsController.toggleProperty('sortAscending'); - songsController.get('firstObject'); // {trackNumber: 4, title: 'Ob-La-Di, Ob-La-Da'} - ``` - - `SortableMixin` works by sorting the `arrangedContent` array, which is the array that - `ArrayProxy` displays. Due to the fact that the underlying 'content' array is not changed, that - array will not display the sorted list: - - ```javascript - songsController.get('content').get('firstObject'); // Returns the unsorted original content - songsController.get('firstObject'); // Returns the sorted content. - ``` - - Although the sorted content can also be accessed through the `arrangedContent` property, - it is preferable to use the proxied class and not the `arrangedContent` array directly. - - @class SortableMixin - @namespace Ember - @uses Ember.MutableEnumerable - */ - __exports__["default"] = Mixin.create(MutableEnumerable, { - - /** - Specifies which properties dictate the `arrangedContent`'s sort order. - - When specifying multiple properties the sorting will use properties - from the `sortProperties` array prioritized from first to last. - - @property {Array} sortProperties - */ - sortProperties: null, - - /** - Specifies the `arrangedContent`'s sort direction. - Sorts the content in ascending order by default. Set to `false` to - use descending order. - - @property {Boolean} sortAscending - @default true - */ - sortAscending: true, - - /** - The function used to compare two values. You can override this if you - want to do custom comparisons. Functions must be of the type expected by - Array#sort, i.e., - - * return 0 if the two parameters are equal, - * return a negative value if the first parameter is smaller than the second or - * return a positive value otherwise: - - ```javascript - function(x, y) { // These are assumed to be integers - if (x === y) - return 0; - return x < y ? -1 : 1; - } - ``` - - @property sortFunction - @type {Function} - @default Ember.compare - */ - sortFunction: compare, - - orderBy: function(item1, item2) { - var result = 0; - var sortProperties = get(this, 'sortProperties'); - var sortAscending = get(this, 'sortAscending'); - var sortFunction = get(this, 'sortFunction'); - - Ember.assert("you need to define `sortProperties`", !!sortProperties); - - forEach(sortProperties, function(propertyName) { - if (result === 0) { - result = sortFunction.call(this, get(item1, propertyName), get(item2, propertyName)); - if ((result !== 0) && !sortAscending) { - result = (-1) * result; - } - } - }, this); - - return result; - }, - - destroy: function() { - var content = get(this, 'content'); - var sortProperties = get(this, 'sortProperties'); - - if (content && sortProperties) { - forEach(content, function(item) { - forEach(sortProperties, function(sortProperty) { - removeObserver(item, sortProperty, this, 'contentItemSortPropertyDidChange'); - }, this); - }, this); - } - - return this._super(); - }, - - isSorted: computed.notEmpty('sortProperties'), - - /** - Overrides the default `arrangedContent` from `ArrayProxy` in order to sort by `sortFunction`. - Also sets up observers for each `sortProperty` on each item in the content Array. - - @property arrangedContent - */ - arrangedContent: computed('content', 'sortProperties.@each', function(key, value) { - var content = get(this, 'content'); - var isSorted = get(this, 'isSorted'); - var sortProperties = get(this, 'sortProperties'); - var self = this; - - if (content && isSorted) { - content = content.slice(); - content.sort(function(item1, item2) { - return self.orderBy(item1, item2); - }); - forEach(content, function(item) { - forEach(sortProperties, function(sortProperty) { - addObserver(item, sortProperty, this, 'contentItemSortPropertyDidChange'); - }, this); - }, this); - return Ember.A(content); - } - - return content; - }), - - _contentWillChange: beforeObserver('content', function() { - var content = get(this, 'content'); - var sortProperties = get(this, 'sortProperties'); - - if (content && sortProperties) { - forEach(content, function(item) { - forEach(sortProperties, function(sortProperty) { - removeObserver(item, sortProperty, this, 'contentItemSortPropertyDidChange'); - }, this); - }, this); - } - - this._super(); - }), - - sortPropertiesWillChange: beforeObserver('sortProperties', function() { - this._lastSortAscending = undefined; - }), - - sortPropertiesDidChange: observer('sortProperties', function() { - this._lastSortAscending = undefined; - }), - - sortAscendingWillChange: beforeObserver('sortAscending', function() { - this._lastSortAscending = get(this, 'sortAscending'); - }), - - sortAscendingDidChange: observer('sortAscending', function() { - if (this._lastSortAscending !== undefined && get(this, 'sortAscending') !== this._lastSortAscending) { - var arrangedContent = get(this, 'arrangedContent'); - arrangedContent.reverseObjects(); - } - }), - - contentArrayWillChange: function(array, idx, removedCount, addedCount) { - var isSorted = get(this, 'isSorted'); - - if (isSorted) { - var arrangedContent = get(this, 'arrangedContent'); - var removedObjects = array.slice(idx, idx+removedCount); - var sortProperties = get(this, 'sortProperties'); - - forEach(removedObjects, function(item) { - arrangedContent.removeObject(item); - - forEach(sortProperties, function(sortProperty) { - removeObserver(item, sortProperty, this, 'contentItemSortPropertyDidChange'); - }, this); - }, this); - } - - return this._super(array, idx, removedCount, addedCount); - }, - - contentArrayDidChange: function(array, idx, removedCount, addedCount) { - var isSorted = get(this, 'isSorted'); - var sortProperties = get(this, 'sortProperties'); - - if (isSorted) { - var addedObjects = array.slice(idx, idx+addedCount); - - forEach(addedObjects, function(item) { - this.insertItemSorted(item); - - forEach(sortProperties, function(sortProperty) { - addObserver(item, sortProperty, this, 'contentItemSortPropertyDidChange'); - }, this); - }, this); - } - - return this._super(array, idx, removedCount, addedCount); - }, - - insertItemSorted: function(item) { - var arrangedContent = get(this, 'arrangedContent'); - var length = get(arrangedContent, 'length'); - - var idx = this._binarySearch(item, 0, length); - arrangedContent.insertAt(idx, item); - }, - - contentItemSortPropertyDidChange: function(item) { - var arrangedContent = get(this, 'arrangedContent'); - var oldIndex = arrangedContent.indexOf(item); - var leftItem = arrangedContent.objectAt(oldIndex - 1); - var rightItem = arrangedContent.objectAt(oldIndex + 1); - var leftResult = leftItem && this.orderBy(item, leftItem); - var rightResult = rightItem && this.orderBy(item, rightItem); - - if (leftResult < 0 || rightResult > 0) { - arrangedContent.removeObject(item); - this.insertItemSorted(item); - } - }, - - _binarySearch: function(item, low, high) { - var mid, midItem, res, arrangedContent; - - if (low === high) { - return low; - } - - arrangedContent = get(this, 'arrangedContent'); - - mid = low + Math.floor((high - low) / 2); - midItem = arrangedContent.objectAt(mid); - - res = this.orderBy(midItem, item); - - if (res < 0) { - return this._binarySearch(item, mid+1, high); - } else if (res > 0) { - return this._binarySearch(item, low, mid); - } - - return mid; - } - }); - }); -enifed("ember-runtime/mixins/target_action_support", - ["ember-metal/core","ember-metal/property_get","ember-metal/utils","ember-metal/mixin","ember-metal/computed","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - var Ember = __dependency1__["default"]; - // Ember.lookup, Ember.assert - - var get = __dependency2__.get; - var typeOf = __dependency3__.typeOf; - var Mixin = __dependency4__.Mixin; - var computed = __dependency5__.computed; - - /** - `Ember.TargetActionSupport` is a mixin that can be included in a class - to add a `triggerAction` method with semantics similar to the Handlebars - `{{action}}` helper. In normal Ember usage, the `{{action}}` helper is - usually the best choice. This mixin is most often useful when you are - doing more complex event handling in View objects. - - See also `Ember.ViewTargetActionSupport`, which has - view-aware defaults for target and actionContext. - - @class TargetActionSupport - @namespace Ember - @extends Ember.Mixin - */ - var TargetActionSupport = Mixin.create({ - target: null, - action: null, - actionContext: null, - - targetObject: computed(function() { - var target = get(this, 'target'); - - if (typeOf(target) === "string") { - var value = get(this, target); - if (value === undefined) { value = get(Ember.lookup, target); } - return value; - } else { - return target; - } - }).property('target'), - - actionContextObject: computed(function() { - var actionContext = get(this, 'actionContext'); - - if (typeOf(actionContext) === "string") { - var value = get(this, actionContext); - if (value === undefined) { value = get(Ember.lookup, actionContext); } - return value; - } else { - return actionContext; - } - }).property('actionContext'), - - /** - Send an `action` with an `actionContext` to a `target`. The action, actionContext - and target will be retrieved from properties of the object. For example: - - ```javascript - App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, { - target: Ember.computed.alias('controller'), - action: 'save', - actionContext: Ember.computed.alias('context'), - click: function() { - this.triggerAction(); // Sends the `save` action, along with the current context - // to the current controller - } - }); - ``` - - The `target`, `action`, and `actionContext` can be provided as properties of - an optional object argument to `triggerAction` as well. - - ```javascript - App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, { - click: function() { - this.triggerAction({ - action: 'save', - target: this.get('controller'), - actionContext: this.get('context') - }); // Sends the `save` action, along with the current context - // to the current controller - } - }); - ``` - - The `actionContext` defaults to the object you are mixing `TargetActionSupport` into. - But `target` and `action` must be specified either as properties or with the argument - to `triggerAction`, or a combination: - - ```javascript - App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, { - target: Ember.computed.alias('controller'), - click: function() { - this.triggerAction({ - action: 'save' - }); // Sends the `save` action, along with a reference to `this`, - // to the current controller - } - }); - ``` - - @method triggerAction - @param opts {Hash} (optional, with the optional keys action, target and/or actionContext) - @return {Boolean} true if the action was sent successfully and did not return false - */ - triggerAction: function(opts) { - opts = opts || {}; - var action = opts.action || get(this, 'action'); - var target = opts.target || get(this, 'targetObject'); - var actionContext = opts.actionContext; - - function args(options, actionName) { - var ret = []; - if (actionName) { ret.push(actionName); } - - return ret.concat(options); - } - - if (typeof actionContext === 'undefined') { - actionContext = get(this, 'actionContextObject') || this; - } - - if (target && action) { - var ret; - - if (target.send) { - ret = target.send.apply(target, args(actionContext, action)); - } else { - Ember.assert("The action '" + action + "' did not exist on " + target, typeof target[action] === 'function'); - ret = target[action].apply(target, args(actionContext)); - } - - if (ret !== false) ret = true; - - return ret; - } else { - return false; - } - } - }); - - __exports__["default"] = TargetActionSupport; - }); -enifed("ember-runtime/system/application", - ["ember-runtime/system/namespace","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Namespace = __dependency1__["default"]; - - __exports__["default"] = Namespace.extend(); - }); -enifed("ember-runtime/system/array_proxy", - ["ember-metal/core","ember-metal/property_get","ember-metal/utils","ember-metal/computed","ember-metal/mixin","ember-metal/property_events","ember-metal/error","ember-runtime/system/object","ember-runtime/mixins/mutable_array","ember-runtime/mixins/enumerable","ember-runtime/system/string","ember-metal/alias","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // Ember.assert - var get = __dependency2__.get; - var isArray = __dependency3__.isArray; - var apply = __dependency3__.apply; - var computed = __dependency4__.computed; - var beforeObserver = __dependency5__.beforeObserver; - var observer = __dependency5__.observer; - var beginPropertyChanges = __dependency6__.beginPropertyChanges; - var endPropertyChanges = __dependency6__.endPropertyChanges; - var EmberError = __dependency7__["default"]; - var EmberObject = __dependency8__["default"]; - var MutableArray = __dependency9__["default"]; - var Enumerable = __dependency10__["default"]; - var fmt = __dependency11__.fmt; - var alias = __dependency12__["default"]; - - /** - @module ember - @submodule ember-runtime - */ - - var OUT_OF_RANGE_EXCEPTION = "Index out of range"; - var EMPTY = []; - - function K() { return this; } - - /** - An ArrayProxy wraps any other object that implements `Ember.Array` and/or - `Ember.MutableArray,` forwarding all requests. This makes it very useful for - a number of binding use cases or other cases where being able to swap - out the underlying array is useful. - - A simple example of usage: - - ```javascript - var pets = ['dog', 'cat', 'fish']; - var ap = Ember.ArrayProxy.create({ content: Ember.A(pets) }); - - ap.get('firstObject'); // 'dog' - ap.set('content', ['amoeba', 'paramecium']); - ap.get('firstObject'); // 'amoeba' - ``` - - This class can also be useful as a layer to transform the contents of - an array, as they are accessed. This can be done by overriding - `objectAtContent`: - - ```javascript - var pets = ['dog', 'cat', 'fish']; - var ap = Ember.ArrayProxy.create({ - content: Ember.A(pets), - objectAtContent: function(idx) { - return this.get('content').objectAt(idx).toUpperCase(); - } - }); - - ap.get('firstObject'); // . 'DOG' - ``` - - @class ArrayProxy - @namespace Ember - @extends Ember.Object - @uses Ember.MutableArray - */ - var ArrayProxy = EmberObject.extend(MutableArray, { - - /** - The content array. Must be an object that implements `Ember.Array` and/or - `Ember.MutableArray.` - - @property content - @type Ember.Array - */ - content: null, - - /** - The array that the proxy pretends to be. In the default `ArrayProxy` - implementation, this and `content` are the same. Subclasses of `ArrayProxy` - can override this property to provide things like sorting and filtering. - - @property arrangedContent - */ - arrangedContent: alias('content'), - - /** - Should actually retrieve the object at the specified index from the - content. You can override this method in subclasses to transform the - content item to something new. - - This method will only be called if content is non-`null`. - - @method objectAtContent - @param {Number} idx The index to retrieve. - @return {Object} the value or undefined if none found - */ - objectAtContent: function(idx) { - return get(this, 'arrangedContent').objectAt(idx); - }, - - /** - Should actually replace the specified objects on the content array. - You can override this method in subclasses to transform the content item - into something new. - - This method will only be called if content is non-`null`. - - @method replaceContent - @param {Number} idx The starting index - @param {Number} amt The number of items to remove from the content. - @param {Array} objects Optional array of objects to insert or null if no - objects. - @return {void} - */ - replaceContent: function(idx, amt, objects) { - get(this, 'content').replace(idx, amt, objects); - }, - - /** - Invoked when the content property is about to change. Notifies observers that the - entire array content will change. - - @private - @method _contentWillChange - */ - _contentWillChange: beforeObserver('content', function() { - this._teardownContent(); - }), - - _teardownContent: function() { - var content = get(this, 'content'); - - if (content) { - content.removeArrayObserver(this, { - willChange: 'contentArrayWillChange', - didChange: 'contentArrayDidChange' - }); - } - }, - - /** - Override to implement content array `willChange` observer. - - @method contentArrayWillChange - - @param {Ember.Array} contentArray the content array - @param {Number} start starting index of the change - @param {Number} removeCount count of items removed - @param {Number} addCount count of items added - - */ - contentArrayWillChange: K, - /** - Override to implement content array `didChange` observer. - - @method contentArrayDidChange - - @param {Ember.Array} contentArray the content array - @param {Number} start starting index of the change - @param {Number} removeCount count of items removed - @param {Number} addCount count of items added - */ - contentArrayDidChange: K, - - /** - Invoked when the content property changes. Notifies observers that the - entire array content has changed. - - @private - @method _contentDidChange - */ - _contentDidChange: observer('content', function() { - var content = get(this, 'content'); - - Ember.assert("Can't set ArrayProxy's content to itself", content !== this); - - this._setupContent(); - }), - - _setupContent: function() { - var content = get(this, 'content'); - - if (content) { - Ember.assert(fmt('ArrayProxy expects an Array or ' + - 'Ember.ArrayProxy, but you passed %@', [typeof content]), - isArray(content) || content.isDestroyed); - - content.addArrayObserver(this, { - willChange: 'contentArrayWillChange', - didChange: 'contentArrayDidChange' - }); - } - }, - - _arrangedContentWillChange: beforeObserver('arrangedContent', function() { - var arrangedContent = get(this, 'arrangedContent'); - var len = arrangedContent ? get(arrangedContent, 'length') : 0; - - this.arrangedContentArrayWillChange(this, 0, len, undefined); - this.arrangedContentWillChange(this); - - this._teardownArrangedContent(arrangedContent); - }), - - _arrangedContentDidChange: observer('arrangedContent', function() { - var arrangedContent = get(this, 'arrangedContent'); - var len = arrangedContent ? get(arrangedContent, 'length') : 0; - - Ember.assert("Can't set ArrayProxy's content to itself", arrangedContent !== this); - - this._setupArrangedContent(); - - this.arrangedContentDidChange(this); - this.arrangedContentArrayDidChange(this, 0, undefined, len); - }), - - _setupArrangedContent: function() { - var arrangedContent = get(this, 'arrangedContent'); - - if (arrangedContent) { - Ember.assert(fmt('ArrayProxy expects an Array or ' + - 'Ember.ArrayProxy, but you passed %@', [typeof arrangedContent]), - isArray(arrangedContent) || arrangedContent.isDestroyed); - - arrangedContent.addArrayObserver(this, { - willChange: 'arrangedContentArrayWillChange', - didChange: 'arrangedContentArrayDidChange' - }); - } - }, - - _teardownArrangedContent: function() { - var arrangedContent = get(this, 'arrangedContent'); - - if (arrangedContent) { - arrangedContent.removeArrayObserver(this, { - willChange: 'arrangedContentArrayWillChange', - didChange: 'arrangedContentArrayDidChange' - }); - } - }, - - arrangedContentWillChange: K, - arrangedContentDidChange: K, - - objectAt: function(idx) { - return get(this, 'content') && this.objectAtContent(idx); - }, - - length: computed(function() { - var arrangedContent = get(this, 'arrangedContent'); - return arrangedContent ? get(arrangedContent, 'length') : 0; - // No dependencies since Enumerable notifies length of change - }), - - _replace: function(idx, amt, objects) { - var content = get(this, 'content'); - Ember.assert('The content property of '+ this.constructor + ' should be set before modifying it', content); - if (content) this.replaceContent(idx, amt, objects); - return this; - }, - - replace: function() { - if (get(this, 'arrangedContent') === get(this, 'content')) { - apply(this, this._replace, arguments); - } else { - throw new EmberError("Using replace on an arranged ArrayProxy is not allowed."); - } - }, - - _insertAt: function(idx, object) { - if (idx > get(this, 'content.length')) throw new EmberError(OUT_OF_RANGE_EXCEPTION); - this._replace(idx, 0, [object]); - return this; - }, - - insertAt: function(idx, object) { - if (get(this, 'arrangedContent') === get(this, 'content')) { - return this._insertAt(idx, object); - } else { - throw new EmberError("Using insertAt on an arranged ArrayProxy is not allowed."); - } - }, - - removeAt: function(start, len) { - if ('number' === typeof start) { - var content = get(this, 'content'); - var arrangedContent = get(this, 'arrangedContent'); - var indices = []; - var i; - - if ((start < 0) || (start >= get(this, 'length'))) { - throw new EmberError(OUT_OF_RANGE_EXCEPTION); - } - - if (len === undefined) len = 1; - - // Get a list of indices in original content to remove - for (i=start; i 0 && - indexOf(concatenatedProperties, keyName) >= 0) { - var baseValue = this[keyName]; - - if (baseValue) { - if ('function' === typeof baseValue.concat) { - value = baseValue.concat(value); - } else { - value = makeArray(baseValue).concat(value); - } - } else { - value = makeArray(value); - } - } - - if (mergedProperties && - mergedProperties.length && - indexOf(mergedProperties, keyName) >= 0) { - var originalValue = this[keyName]; - - value = merge(originalValue, value); - } - - if (desc) { - desc.set(this, keyName, value); - } else { - if (typeof this.setUnknownProperty === 'function' && !(keyName in this)) { - this.setUnknownProperty(keyName, value); - } else { - - if (hasPropertyAccessors) { - defineProperty(this, keyName, null, value); // setup mandatory setter - } else { - this[keyName] = value; - } - } - } - } - } - } - - finishPartial(this, m); - - var length = arguments.length; - - if (length === 0) { - this.init(); - } else if (length === 1) { - this.init(arguments[0]); - } else { - // v8 bug potentially incorrectly deopts this function: https://code.google.com/p/v8/issues/detail?id=3709 - // we may want to keep this around till this ages out on mobile - var args = new Array(length); - for (var x = 0; x < length; x++) { - args[x] = arguments[x]; - } - this.init.apply(this, args); - } - - m.proto = proto; - finishChains(this); - sendEvent(this, 'init'); - }; - - Class.toString = Mixin.prototype.toString; - Class.willReopen = function() { - if (wasApplied) { - Class.PrototypeMixin = Mixin.create(Class.PrototypeMixin); - } - - wasApplied = false; - }; - Class._initMixins = function(args) { initMixins = args; }; - Class._initProperties = function(args) { initProperties = args; }; - - Class.proto = function() { - var superclass = Class.superclass; - if (superclass) { superclass.proto(); } - - if (!wasApplied) { - wasApplied = true; - Class.PrototypeMixin.applyPartial(Class.prototype); - } - - return this.prototype; - }; - - return Class; - - } - - /** - @class CoreObject - @namespace Ember - */ - var CoreObject = makeCtor(); - CoreObject.toString = function() { return "Ember.CoreObject"; }; - CoreObject.PrototypeMixin = Mixin.create({ - reopen: function() { - var length = arguments.length; - var args = new Array(length); - for (var i = 0; i < length; i++) { - args[i] = arguments[i]; - } - applyMixin(this, args, true); - return this; - }, - - /** - An overridable method called when objects are instantiated. By default, - does nothing unless it is overridden during class definition. - - Example: - - ```javascript - App.Person = Ember.Object.extend({ - init: function() { - alert('Name is ' + this.get('name')); - } - }); - - var steve = App.Person.create({ - name: "Steve" - }); - - // alerts 'Name is Steve'. - ``` - - NOTE: If you do override `init` for a framework class like `Ember.View` or - `Ember.ArrayController`, be sure to call `this._super()` in your - `init` declaration! If you don't, Ember may not have an opportunity to - do important setup work, and you'll see strange behavior in your - application. - - @method init - */ - init: function() {}, - - /** - Defines the properties that will be concatenated from the superclass - (instead of overridden). - - By default, when you extend an Ember class a property defined in - the subclass overrides a property with the same name that is defined - in the superclass. However, there are some cases where it is preferable - to build up a property's value by combining the superclass' property - value with the subclass' value. An example of this in use within Ember - is the `classNames` property of `Ember.View`. - - Here is some sample code showing the difference between a concatenated - property and a normal one: - - ```javascript - App.BarView = Ember.View.extend({ - someNonConcatenatedProperty: ['bar'], - classNames: ['bar'] - }); - - App.FooBarView = App.BarView.extend({ - someNonConcatenatedProperty: ['foo'], - classNames: ['foo'] - }); - - var fooBarView = App.FooBarView.create(); - fooBarView.get('someNonConcatenatedProperty'); // ['foo'] - fooBarView.get('classNames'); // ['ember-view', 'bar', 'foo'] - ``` - - This behavior extends to object creation as well. Continuing the - above example: - - ```javascript - var view = App.FooBarView.create({ - someNonConcatenatedProperty: ['baz'], - classNames: ['baz'] - }) - view.get('someNonConcatenatedProperty'); // ['baz'] - view.get('classNames'); // ['ember-view', 'bar', 'foo', 'baz'] - ``` - Adding a single property that is not an array will just add it in the array: - - ```javascript - var view = App.FooBarView.create({ - classNames: 'baz' - }) - view.get('classNames'); // ['ember-view', 'bar', 'foo', 'baz'] - ``` - - Using the `concatenatedProperties` property, we can tell Ember to mix the - content of the properties. - - In `Ember.View` the `classNameBindings` and `attributeBindings` properties - are also concatenated, in addition to `classNames`. - - This feature is available for you to use throughout the Ember object model, - although typical app developers are likely to use it infrequently. Since - it changes expectations about behavior of properties, you should properly - document its usage in each individual concatenated property (to not - mislead your users to think they can override the property in a subclass). - - @property concatenatedProperties - @type Array - @default null - */ - concatenatedProperties: null, - - /** - Destroyed object property flag. - - if this property is `true` the observers and bindings were already - removed by the effect of calling the `destroy()` method. - - @property isDestroyed - @default false - */ - isDestroyed: false, - - /** - Destruction scheduled flag. The `destroy()` method has been called. - - The object stays intact until the end of the run loop at which point - the `isDestroyed` flag is set. - - @property isDestroying - @default false - */ - isDestroying: false, - - /** - Destroys an object by setting the `isDestroyed` flag and removing its - metadata, which effectively destroys observers and bindings. - - If you try to set a property on a destroyed object, an exception will be - raised. - - Note that destruction is scheduled for the end of the run loop and does not - happen immediately. It will set an isDestroying flag immediately. - - @method destroy - @return {Ember.Object} receiver - */ - destroy: function() { - if (this.isDestroying) { return; } - this.isDestroying = true; - - schedule('actions', this, this.willDestroy); - schedule('destroy', this, this._scheduledDestroy); - return this; - }, - - /** - Override to implement teardown. - - @method willDestroy - */ - willDestroy: K, - - /** - Invoked by the run loop to actually destroy the object. This is - scheduled for execution by the `destroy` method. - - @private - @method _scheduledDestroy - */ - _scheduledDestroy: function() { - if (this.isDestroyed) { return; } - destroy(this); - this.isDestroyed = true; - }, - - bind: function(to, from) { - if (!(from instanceof Binding)) { from = Binding.from(from); } - from.to(to).connect(this); - return from; - }, - - /** - Returns a string representation which attempts to provide more information - than Javascript's `toString` typically does, in a generic way for all Ember - objects. - - ```javascript - App.Person = Em.Object.extend() - person = App.Person.create() - person.toString() //=> "" - ``` - - If the object's class is not defined on an Ember namespace, it will - indicate it is a subclass of the registered superclass: - - ```javascript - Student = App.Person.extend() - student = Student.create() - student.toString() //=> "<(subclass of App.Person):ember1025>" - ``` - - If the method `toStringExtension` is defined, its return value will be - included in the output. - - ```javascript - App.Teacher = App.Person.extend({ - toStringExtension: function() { - return this.get('fullName'); - } - }); - teacher = App.Teacher.create() - teacher.toString(); //=> "" - ``` - - @method toString - @return {String} string representation - */ - toString: function toString() { - var hasToStringExtension = typeof this.toStringExtension === 'function'; - var extension = hasToStringExtension ? ":" + this.toStringExtension() : ''; - var ret = '<'+this.constructor.toString()+':'+guidFor(this)+extension+'>'; - - this.toString = makeToString(ret); - return ret; - } - }); - - CoreObject.PrototypeMixin.ownerConstructor = CoreObject; - - function makeToString(ret) { - return function() { return ret; }; - } - - CoreObject.__super__ = null; - - var ClassMixinProps = { - - ClassMixin: required(), - - PrototypeMixin: required(), - - isClass: true, - - isMethod: false, - - /** - Creates a new subclass. - - ```javascript - App.Person = Ember.Object.extend({ - say: function(thing) { - alert(thing); - } - }); - ``` - - This defines a new subclass of Ember.Object: `App.Person`. It contains one method: `say()`. - - You can also create a subclass from any existing class by calling its `extend()` method. For example, you might want to create a subclass of Ember's built-in `Ember.View` class: - - ```javascript - App.PersonView = Ember.View.extend({ - tagName: 'li', - classNameBindings: ['isAdministrator'] - }); - ``` - - When defining a subclass, you can override methods but still access the implementation of your parent class by calling the special `_super()` method: - - ```javascript - App.Person = Ember.Object.extend({ - say: function(thing) { - var name = this.get('name'); - alert(name + ' says: ' + thing); - } - }); - - App.Soldier = App.Person.extend({ - say: function(thing) { - this._super(thing + ", sir!"); - }, - march: function(numberOfHours) { - alert(this.get('name') + ' marches for ' + numberOfHours + ' hours.') - } - }); - - var yehuda = App.Soldier.create({ - name: "Yehuda Katz" - }); - - yehuda.say("Yes"); // alerts "Yehuda Katz says: Yes, sir!" - ``` - - The `create()` on line #17 creates an *instance* of the `App.Soldier` class. The `extend()` on line #8 creates a *subclass* of `App.Person`. Any instance of the `App.Person` class will *not* have the `march()` method. - - You can also pass `Mixin` classes to add additional properties to the subclass. - - ```javascript - App.Person = Ember.Object.extend({ - say: function(thing) { - alert(this.get('name') + ' says: ' + thing); - } - }); - - App.SingingMixin = Mixin.create({ - sing: function(thing){ - alert(this.get('name') + ' sings: la la la ' + thing); - } - }); - - App.BroadwayStar = App.Person.extend(App.SingingMixin, { - dance: function() { - alert(this.get('name') + ' dances: tap tap tap tap '); - } - }); - ``` - - The `App.BroadwayStar` class contains three methods: `say()`, `sing()`, and `dance()`. - - @method extend - @static - - @param {Mixin} [mixins]* One or more Mixin classes - @param {Object} [arguments]* Object containing values to use within the new class - */ - extend: function extend() { - var Class = makeCtor(); - var proto; - Class.ClassMixin = Mixin.create(this.ClassMixin); - Class.PrototypeMixin = Mixin.create(this.PrototypeMixin); - - Class.ClassMixin.ownerConstructor = Class; - Class.PrototypeMixin.ownerConstructor = Class; - - reopen.apply(Class.PrototypeMixin, arguments); - - Class.superclass = this; - Class.__super__ = this.prototype; - - proto = Class.prototype = o_create(this.prototype); - proto.constructor = Class; - generateGuid(proto); - meta(proto).proto = proto; // this will disable observers on prototype - - Class.ClassMixin.apply(Class); - return Class; - }, - - /** - Equivalent to doing `extend(arguments).create()`. - If possible use the normal `create` method instead. - - @method createWithMixins - @static - @param [arguments]* - */ - createWithMixins: function() { - var C = this; - var l= arguments.length; - if (l > 0) { - var args = new Array(l); - for (var i = 0; i < l; i++) { - args[i] = arguments[i]; - } - this._initMixins(args); - } - return new C(); - }, - - /** - Creates an instance of a class. Accepts either no arguments, or an object - containing values to initialize the newly instantiated object with. - - ```javascript - App.Person = Ember.Object.extend({ - helloWorld: function() { - alert("Hi, my name is " + this.get('name')); - } - }); - - var tom = App.Person.create({ - name: 'Tom Dale' - }); - - tom.helloWorld(); // alerts "Hi, my name is Tom Dale". - ``` - - `create` will call the `init` function if defined during - `Ember.AnyObject.extend` - - If no arguments are passed to `create`, it will not set values to the new - instance during initialization: - - ```javascript - var noName = App.Person.create(); - noName.helloWorld(); // alerts undefined - ``` - - NOTE: For performance reasons, you cannot declare methods or computed - properties during `create`. You should instead declare methods and computed - properties when using `extend` or use the `createWithMixins` shorthand. - - @method create - @static - @param [arguments]* - */ - create: function() { - var C = this; - var l = arguments.length; - if (l > 0) { - var args = new Array(l); - for (var i = 0; i < l; i++) { - args[i] = arguments[i]; - } - this._initProperties(args); - } - return new C(); - }, - - /** - Augments a constructor's prototype with additional - properties and functions: - - ```javascript - MyObject = Ember.Object.extend({ - name: 'an object' - }); - - o = MyObject.create(); - o.get('name'); // 'an object' - - MyObject.reopen({ - say: function(msg){ - console.log(msg); - } - }) - - o2 = MyObject.create(); - o2.say("hello"); // logs "hello" - - o.say("goodbye"); // logs "goodbye" - ``` - - To add functions and properties to the constructor itself, - see `reopenClass` - - @method reopen - */ - reopen: function() { - this.willReopen(); - - var l = arguments.length; - var args = new Array(l); - if (l > 0) { - for (var i = 0; i < l; i++) { - args[i] = arguments[i]; - } - } - - apply(this.PrototypeMixin, reopen, args); - return this; - }, - - /** - Augments a constructor's own properties and functions: - - ```javascript - MyObject = Ember.Object.extend({ - name: 'an object' - }); - - MyObject.reopenClass({ - canBuild: false - }); - - MyObject.canBuild; // false - o = MyObject.create(); - ``` - - In other words, this creates static properties and functions for the class. These are only available on the class - and not on any instance of that class. - - ```javascript - App.Person = Ember.Object.extend({ - name : "", - sayHello : function(){ - alert("Hello. My name is " + this.get('name')); - } - }); - - App.Person.reopenClass({ - species : "Homo sapiens", - createPerson: function(newPersonsName){ - return App.Person.create({ - name:newPersonsName - }); - } - }); - - var tom = App.Person.create({ - name : "Tom Dale" - }); - var yehuda = App.Person.createPerson("Yehuda Katz"); - - tom.sayHello(); // "Hello. My name is Tom Dale" - yehuda.sayHello(); // "Hello. My name is Yehuda Katz" - alert(App.Person.species); // "Homo sapiens" - ``` - - Note that `species` and `createPerson` are *not* valid on the `tom` and `yehuda` - variables. They are only valid on `App.Person`. - - To add functions and properties to instances of - a constructor by extending the constructor's prototype - see `reopen` - - @method reopenClass - */ - reopenClass: function() { - var l = arguments.length; - var args = new Array(l); - if (l > 0) { - for (var i = 0; i < l; i++) { - args[i] = arguments[i]; - } - } - - apply(this.ClassMixin, reopen, args); - applyMixin(this, arguments, false); - return this; - }, - - detect: function(obj) { - if ('function' !== typeof obj) { return false; } - while(obj) { - if (obj===this) { return true; } - obj = obj.superclass; - } - return false; - }, - - detectInstance: function(obj) { - return obj instanceof this; - }, - - /** - In some cases, you may want to annotate computed properties with additional - metadata about how they function or what values they operate on. For - example, computed property functions may close over variables that are then - no longer available for introspection. - - You can pass a hash of these values to a computed property like this: - - ```javascript - person: function() { - var personId = this.get('personId'); - return App.Person.create({ id: personId }); - }.property().meta({ type: App.Person }) - ``` - - Once you've done this, you can retrieve the values saved to the computed - property from your class like this: - - ```javascript - MyClass.metaForProperty('person'); - ``` - - This will return the original hash that was passed to `meta()`. - - @static - @method metaForProperty - @param key {String} property name - */ - metaForProperty: function(key) { - var meta = this.proto()['__ember_meta__']; - var desc = meta && meta.descs[key]; - - Ember.assert("metaForProperty() could not find a computed property with key '"+key+"'.", !!desc && desc instanceof ComputedProperty); - return desc._meta || {}; - }, - - _computedProperties: computed(function() { - hasCachedComputedProperties = true; - var proto = this.proto(); - var descs = meta(proto).descs; - var property; - var properties = []; - - for (var name in descs) { - property = descs[name]; - - if (property instanceof ComputedProperty) { - properties.push({ - name: name, - meta: property._meta - }); - } - } - return properties; - }).readOnly(), - - /** - Iterate over each computed property for the class, passing its name - and any associated metadata (see `metaForProperty`) to the callback. - - @static - @method eachComputedProperty - @param {Function} callback - @param {Object} binding - */ - eachComputedProperty: function(callback, binding) { - var property, name; - var empty = {}; - - var properties = get(this, '_computedProperties'); - - for (var i = 0, length = properties.length; i < length; i++) { - property = properties[i]; - name = property.name; - callback.call(binding || this, property.name, property.meta || empty); - } - } - }; - - function injectedPropertyAssertion() { - Ember.assert("Injected properties are invalid", validatePropertyInjections(this)); - } - - function addOnLookupHandler() { - Ember.runInDebug(function() { - /** - Provides lookup-time type validation for injected properties. - - @private - @method _onLookup - */ - ClassMixinProps._onLookup = injectedPropertyAssertion; - }); - } - - - addOnLookupHandler(); - - /** - Returns a hash of property names and container names that injected - properties will lookup on the container lazily. - - @method _lazyInjections - @return {Object} Hash of all lazy injected property keys to container names - */ - ClassMixinProps._lazyInjections = function() { - var injections = {}; - var proto = this.proto(); - var descs = meta(proto).descs; - var key, desc; - - for (key in descs) { - desc = descs[key]; - if (desc instanceof InjectedProperty) { - injections[key] = desc.type + ':' + (desc.name || key); - } - } - - return injections; - }; - - - var ClassMixin = Mixin.create(ClassMixinProps); - - ClassMixin.ownerConstructor = CoreObject; - - CoreObject.ClassMixin = ClassMixin; - - ClassMixin.apply(CoreObject); - - CoreObject.reopen({ - didDefineProperty: function(proto, key, value) { - if (hasCachedComputedProperties === false) { return; } - if (value instanceof Ember.ComputedProperty) { - var cache = Ember.meta(this.constructor).cache; - - if (cache._computedProperties !== undefined) { - cache._computedProperties = undefined; - } - } - } - }); - - __exports__["default"] = CoreObject; - }); -enifed("ember-runtime/system/deferred", - ["ember-metal/core","ember-runtime/mixins/deferred","ember-runtime/system/object","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - var DeferredMixin = __dependency2__["default"]; - var EmberObject = __dependency3__["default"]; - - var Deferred = EmberObject.extend(DeferredMixin, { - init: function() { - Ember.deprecate('Usage of Ember.Deferred is deprecated.', false, { url: 'http://emberjs.com/guides/deprecations/#toc_deprecate-ember-deferredmixin-and-ember-deferred' }); - this._super(); - } - }); - - Deferred.reopenClass({ - promise: function(callback, binding) { - var deferred = Deferred.create(); - callback.call(binding, deferred); - return deferred; - } - }); - - __exports__["default"] = Deferred; - }); -enifed("ember-runtime/system/each_proxy", - ["ember-metal/core","ember-metal/property_get","ember-metal/utils","ember-metal/enumerable_utils","ember-metal/array","ember-runtime/mixins/array","ember-runtime/system/object","ember-metal/computed","ember-metal/observer","ember-metal/events","ember-metal/properties","ember-metal/property_events","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - var Ember = __dependency1__["default"]; - // Ember.assert - - var get = __dependency2__.get; - var guidFor = __dependency3__.guidFor; - var forEach = __dependency4__.forEach; - var indexOf = __dependency5__.indexOf; - var EmberArray = __dependency6__["default"]; - // ES6TODO: WAT? Circular dep? - var EmberObject = __dependency7__["default"]; - var computed = __dependency8__.computed; - var addObserver = __dependency9__.addObserver; - var addBeforeObserver = __dependency9__.addBeforeObserver; - var removeBeforeObserver = __dependency9__.removeBeforeObserver; - var removeObserver = __dependency9__.removeObserver; - var typeOf = __dependency3__.typeOf; - var watchedEvents = __dependency10__.watchedEvents; - var defineProperty = __dependency11__.defineProperty; - var beginPropertyChanges = __dependency12__.beginPropertyChanges; - var propertyDidChange = __dependency12__.propertyDidChange; - var propertyWillChange = __dependency12__.propertyWillChange; - var endPropertyChanges = __dependency12__.endPropertyChanges; - var changeProperties = __dependency12__.changeProperties; - - var EachArray = EmberObject.extend(EmberArray, { - - init: function(content, keyName, owner) { - this._super(); - this._keyName = keyName; - this._owner = owner; - this._content = content; - }, - - objectAt: function(idx) { - var item = this._content.objectAt(idx); - return item && get(item, this._keyName); - }, - - length: computed(function() { - var content = this._content; - return content ? get(content, 'length') : 0; - }) - - }); - - var IS_OBSERVER = /^.+:(before|change)$/; - - function addObserverForContentKey(content, keyName, proxy, idx, loc) { - var objects = proxy._objects; - var guid; - if (!objects) objects = proxy._objects = {}; - - while(--loc>=idx) { - var item = content.objectAt(loc); - if (item) { - Ember.assert('When using @each to observe the array ' + content + ', the array must return an object', typeOf(item) === 'instance' || typeOf(item) === 'object'); - addBeforeObserver(item, keyName, proxy, 'contentKeyWillChange'); - addObserver(item, keyName, proxy, 'contentKeyDidChange'); - - // keep track of the index each item was found at so we can map - // it back when the obj changes. - guid = guidFor(item); - if (!objects[guid]) objects[guid] = []; - objects[guid].push(loc); - } - } - } - - function removeObserverForContentKey(content, keyName, proxy, idx, loc) { - var objects = proxy._objects; - if (!objects) objects = proxy._objects = {}; - var indicies, guid; - - while(--loc>=idx) { - var item = content.objectAt(loc); - if (item) { - removeBeforeObserver(item, keyName, proxy, 'contentKeyWillChange'); - removeObserver(item, keyName, proxy, 'contentKeyDidChange'); - - guid = guidFor(item); - indicies = objects[guid]; - indicies[indexOf.call(indicies, loc)] = null; - } - } - } - - /** - This is the object instance returned when you get the `@each` property on an - array. It uses the unknownProperty handler to automatically create - EachArray instances for property names. - - @private - @class EachProxy - @namespace Ember - @extends Ember.Object - */ - var EachProxy = EmberObject.extend({ - - init: function(content) { - this._super(); - this._content = content; - content.addArrayObserver(this); - - // in case someone is already observing some keys make sure they are - // added - forEach(watchedEvents(this), function(eventName) { - this.didAddListener(eventName); - }, this); - }, - - /** - You can directly access mapped properties by simply requesting them. - The `unknownProperty` handler will generate an EachArray of each item. - - @method unknownProperty - @param keyName {String} - @param value {*} - */ - unknownProperty: function(keyName, value) { - var ret; - ret = new EachArray(this._content, keyName, this); - defineProperty(this, keyName, null, ret); - this.beginObservingContentKey(keyName); - return ret; - }, - - // .......................................................... - // ARRAY CHANGES - // Invokes whenever the content array itself changes. - - arrayWillChange: function(content, idx, removedCnt, addedCnt) { - var keys = this._keys; - var key, lim; - - lim = removedCnt>0 ? idx+removedCnt : -1; - beginPropertyChanges(this); - - for(key in keys) { - if (!keys.hasOwnProperty(key)) { continue; } - - if (lim>0) { removeObserverForContentKey(content, key, this, idx, lim); } - - propertyWillChange(this, key); - } - - propertyWillChange(this._content, '@each'); - endPropertyChanges(this); - }, - - arrayDidChange: function(content, idx, removedCnt, addedCnt) { - var keys = this._keys; - var lim; - - lim = addedCnt>0 ? idx+addedCnt : -1; - changeProperties(function() { - for(var key in keys) { - if (!keys.hasOwnProperty(key)) { continue; } - - if (lim>0) { addObserverForContentKey(content, key, this, idx, lim); } - - propertyDidChange(this, key); - } - - propertyDidChange(this._content, '@each'); - }, this); - }, - - // .......................................................... - // LISTEN FOR NEW OBSERVERS AND OTHER EVENT LISTENERS - // Start monitoring keys based on who is listening... - - didAddListener: function(eventName) { - if (IS_OBSERVER.test(eventName)) { - this.beginObservingContentKey(eventName.slice(0, -7)); - } - }, - - didRemoveListener: function(eventName) { - if (IS_OBSERVER.test(eventName)) { - this.stopObservingContentKey(eventName.slice(0, -7)); - } - }, - - // .......................................................... - // CONTENT KEY OBSERVING - // Actual watch keys on the source content. - - beginObservingContentKey: function(keyName) { - var keys = this._keys; - if (!keys) keys = this._keys = {}; - if (!keys[keyName]) { - keys[keyName] = 1; - var content = this._content; - var len = get(content, 'length'); - - addObserverForContentKey(content, keyName, this, 0, len); - } else { - keys[keyName]++; - } - }, - - stopObservingContentKey: function(keyName) { - var keys = this._keys; - if (keys && (keys[keyName]>0) && (--keys[keyName]<=0)) { - var content = this._content; - var len = get(content, 'length'); - - removeObserverForContentKey(content, keyName, this, 0, len); - } - }, - - contentKeyWillChange: function(obj, keyName) { - propertyWillChange(this, keyName); - }, - - contentKeyDidChange: function(obj, keyName) { - propertyDidChange(this, keyName); - } - }); - - __exports__.EachArray = EachArray; - __exports__.EachProxy = EachProxy; - }); -enifed("ember-runtime/system/lazy_load", - ["ember-metal/core","ember-metal/array","ember-runtime/system/native_array","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - /*globals CustomEvent */ - - var Ember = __dependency1__["default"]; - // Ember.ENV.EMBER_LOAD_HOOKS - var forEach = __dependency2__.forEach; - // make sure Ember.A is setup. - - /** - @module ember - @submodule ember-runtime - */ - - var loadHooks = Ember.ENV.EMBER_LOAD_HOOKS || {}; - var loaded = {}; - - /** - Detects when a specific package of Ember (e.g. 'Ember.Handlebars') - has fully loaded and is available for extension. - - The provided `callback` will be called with the `name` passed - resolved from a string into the object: - - ``` javascript - Ember.onLoad('Ember.Handlebars' function(hbars) { - hbars.registerHelper(...); - }); - ``` - - @method onLoad - @for Ember - @param name {String} name of hook - @param callback {Function} callback to be called - */ - function onLoad(name, callback) { - var object; - - loadHooks[name] = loadHooks[name] || Ember.A(); - loadHooks[name].pushObject(callback); - - if (object = loaded[name]) { - callback(object); - } - } - - __exports__.onLoad = onLoad;/** - Called when an Ember.js package (e.g Ember.Handlebars) has finished - loading. Triggers any callbacks registered for this event. - - @method runLoadHooks - @for Ember - @param name {String} name of hook - @param object {Object} object to pass to callbacks - */ - function runLoadHooks(name, object) { - loaded[name] = object; - - if (typeof window === 'object' && typeof window.dispatchEvent === 'function' && typeof CustomEvent === "function") { - var event = new CustomEvent(name, {detail: object, name: name}); - window.dispatchEvent(event); - } - - if (loadHooks[name]) { - forEach.call(loadHooks[name], function(callback) { - callback(object); - }); - } - } - - __exports__.runLoadHooks = runLoadHooks; - }); -enifed("ember-runtime/system/namespace", - ["ember-metal/core","ember-metal/property_get","ember-metal/array","ember-metal/utils","ember-metal/mixin","ember-runtime/system/object","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - // Ember.lookup, Ember.BOOTED, Ember.deprecate, Ember.NAME_KEY, Ember.anyUnprocessedMixins - var Ember = __dependency1__["default"]; - var get = __dependency2__.get; - var indexOf = __dependency3__.indexOf; - var GUID_KEY = __dependency4__.GUID_KEY; - var guidFor = __dependency4__.guidFor; - var Mixin = __dependency5__.Mixin; - - var EmberObject = __dependency6__["default"]; - - /** - A Namespace is an object usually used to contain other objects or methods - such as an application or framework. Create a namespace anytime you want - to define one of these new containers. - - # Example Usage - - ```javascript - MyFramework = Ember.Namespace.create({ - VERSION: '1.0.0' - }); - ``` - - @class Namespace - @namespace Ember - @extends Ember.Object - */ - var Namespace = EmberObject.extend({ - isNamespace: true, - - init: function() { - Namespace.NAMESPACES.push(this); - Namespace.PROCESSED = false; - }, - - toString: function() { - var name = get(this, 'name') || get(this, 'modulePrefix'); - if (name) { return name; } - - findNamespaces(); - return this[NAME_KEY]; - }, - - nameClasses: function() { - processNamespace([this.toString()], this, {}); - }, - - destroy: function() { - var namespaces = Namespace.NAMESPACES; - var toString = this.toString(); - - if (toString) { - Ember.lookup[toString] = undefined; - delete Namespace.NAMESPACES_BY_ID[toString]; - } - namespaces.splice(indexOf.call(namespaces, this), 1); - this._super(); - } - }); - - Namespace.reopenClass({ - NAMESPACES: [Ember], - NAMESPACES_BY_ID: {}, - PROCESSED: false, - processAll: processAllNamespaces, - byName: function(name) { - if (!Ember.BOOTED) { - processAllNamespaces(); - } - - return NAMESPACES_BY_ID[name]; - } - }); - - var NAMESPACES_BY_ID = Namespace.NAMESPACES_BY_ID; - - var hasOwnProp = ({}).hasOwnProperty; - - function processNamespace(paths, root, seen) { - var idx = paths.length; - - NAMESPACES_BY_ID[paths.join('.')] = root; - - // Loop over all of the keys in the namespace, looking for classes - for(var key in root) { - if (!hasOwnProp.call(root, key)) { continue; } - var obj = root[key]; - - // If we are processing the `Ember` namespace, for example, the - // `paths` will start with `["Ember"]`. Every iteration through - // the loop will update the **second** element of this list with - // the key, so processing `Ember.View` will make the Array - // `['Ember', 'View']`. - paths[idx] = key; - - // If we have found an unprocessed class - if (obj && obj.toString === classToString) { - // Replace the class' `toString` with the dot-separated path - // and set its `NAME_KEY` - obj.toString = makeToString(paths.join('.')); - obj[NAME_KEY] = paths.join('.'); - - // Support nested namespaces - } else if (obj && obj.isNamespace) { - // Skip aliased namespaces - if (seen[guidFor(obj)]) { continue; } - seen[guidFor(obj)] = true; - - // Process the child namespace - processNamespace(paths, obj, seen); - } - } - - paths.length = idx; // cut out last item - } - - var STARTS_WITH_UPPERCASE = /^[A-Z]/; - - function tryIsNamespace(lookup, prop) { - try { - var obj = lookup[prop]; - return obj && obj.isNamespace && obj; - } catch (e) { - // continue - } - } - - function findNamespaces() { - var lookup = Ember.lookup; - var obj; - - if (Namespace.PROCESSED) { return; } - - for (var prop in lookup) { - // Only process entities that start with uppercase A-Z - if (!STARTS_WITH_UPPERCASE.test(prop)) { continue; } - - // Unfortunately, some versions of IE don't support window.hasOwnProperty - if (lookup.hasOwnProperty && !lookup.hasOwnProperty(prop)) { continue; } - - // At times we are not allowed to access certain properties for security reasons. - // There are also times where even if we can access them, we are not allowed to access their properties. - obj = tryIsNamespace(lookup, prop); - if (obj) { - obj[NAME_KEY] = prop; - } - } - } - - var NAME_KEY = Ember.NAME_KEY = GUID_KEY + '_name'; - - function superClassString(mixin) { - var superclass = mixin.superclass; - if (superclass) { - if (superclass[NAME_KEY]) { return superclass[NAME_KEY]; } - else { return superClassString(superclass); } - } else { - return; - } - } - - function classToString() { - if (!Ember.BOOTED && !this[NAME_KEY]) { - processAllNamespaces(); - } - - var ret; - - if (this[NAME_KEY]) { - ret = this[NAME_KEY]; - } else if (this._toString) { - ret = this._toString; - } else { - var str = superClassString(this); - if (str) { - ret = "(subclass of " + str + ")"; - } else { - ret = "(unknown mixin)"; - } - this.toString = makeToString(ret); - } - - return ret; - } - - function processAllNamespaces() { - var unprocessedNamespaces = !Namespace.PROCESSED; - var unprocessedMixins = Ember.anyUnprocessedMixins; - - if (unprocessedNamespaces) { - findNamespaces(); - Namespace.PROCESSED = true; - } - - if (unprocessedNamespaces || unprocessedMixins) { - var namespaces = Namespace.NAMESPACES; - var namespace; - - for (var i=0, l=namespaces.length; i 0) { - NativeArray = NativeArray.without.apply(NativeArray, ignore); - } - - /** - Creates an `Ember.NativeArray` from an Array like object. - Does not modify the original object. Ember.A is not needed if - `Ember.EXTEND_PROTOTYPES` is `true` (the default value). However, - it is recommended that you use Ember.A when creating addons for - ember or when you can not guarantee that `Ember.EXTEND_PROTOTYPES` - will be `true`. - - Example - - ```js - var Pagination = Ember.CollectionView.extend({ - tagName: 'ul', - classNames: ['pagination'], - - init: function() { - this._super(); - if (!this.get('content')) { - this.set('content', Ember.A()); - } - } - }); - ``` - - @method A - @for Ember - @return {Ember.NativeArray} - */ - var A = function(arr) { - if (arr === undefined) { arr = []; } - return EmberArray.detect(arr) ? arr : NativeArray.apply(arr); - }; - - /** - Activates the mixin on the Array.prototype if not already applied. Calling - this method more than once is safe. This will be called when ember is loaded - unless you have `Ember.EXTEND_PROTOTYPES` or `Ember.EXTEND_PROTOTYPES.Array` - set to `false`. - - Example - - ```js - if (Ember.EXTEND_PROTOTYPES === true || Ember.EXTEND_PROTOTYPES.Array) { - Ember.NativeArray.activate(); - } - ``` - - @method activate - @for Ember.NativeArray - @static - @return {void} - */ - NativeArray.activate = function() { - NativeArray.apply(Array.prototype); - - A = function(arr) { return arr || []; }; - }; - - if (Ember.EXTEND_PROTOTYPES === true || Ember.EXTEND_PROTOTYPES.Array) { - NativeArray.activate(); - } - - Ember.A = A; // ES6TODO: Setting A onto the object returned by ember-metal/core to avoid circles - __exports__.A = A; - __exports__.NativeArray = NativeArray; - __exports__["default"] = NativeArray; - }); -enifed("ember-runtime/system/object", - ["ember-runtime/system/core_object","ember-runtime/mixins/observable","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - - var CoreObject = __dependency1__["default"]; - var Observable = __dependency2__["default"]; - - /** - `Ember.Object` is the main base class for all Ember objects. It is a subclass - of `Ember.CoreObject` with the `Ember.Observable` mixin applied. For details, - see the documentation for each of these. - - @class Object - @namespace Ember - @extends Ember.CoreObject - @uses Ember.Observable - */ - var EmberObject = CoreObject.extend(Observable); - EmberObject.toString = function() { - return "Ember.Object"; - }; - - __exports__["default"] = EmberObject; - }); -enifed("ember-runtime/system/object_proxy", - ["ember-runtime/system/object","ember-runtime/mixins/-proxy","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var EmberObject = __dependency1__["default"]; - var _ProxyMixin = __dependency2__["default"]; - - /** - `Ember.ObjectProxy` forwards all properties not defined by the proxy itself - to a proxied `content` object. - - ```javascript - object = Ember.Object.create({ - name: 'Foo' - }); - - proxy = Ember.ObjectProxy.create({ - content: object - }); - - // Access and change existing properties - proxy.get('name') // 'Foo' - proxy.set('name', 'Bar'); - object.get('name') // 'Bar' - - // Create new 'description' property on `object` - proxy.set('description', 'Foo is a whizboo baz'); - object.get('description') // 'Foo is a whizboo baz' - ``` - - While `content` is unset, setting a property to be delegated will throw an - Error. - - ```javascript - proxy = Ember.ObjectProxy.create({ - content: null, - flag: null - }); - proxy.set('flag', true); - proxy.get('flag'); // true - proxy.get('foo'); // undefined - proxy.set('foo', 'data'); // throws Error - ``` - - Delegated properties can be bound to and will change when content is updated. - - Computed properties on the proxy itself can depend on delegated properties. - - ```javascript - ProxyWithComputedProperty = Ember.ObjectProxy.extend({ - fullName: function () { - var firstName = this.get('firstName'), - lastName = this.get('lastName'); - if (firstName && lastName) { - return firstName + ' ' + lastName; - } - return firstName || lastName; - }.property('firstName', 'lastName') - }); - - proxy = ProxyWithComputedProperty.create(); - - proxy.get('fullName'); // undefined - proxy.set('content', { - firstName: 'Tom', lastName: 'Dale' - }); // triggers property change for fullName on proxy - - proxy.get('fullName'); // 'Tom Dale' - ``` - - @class ObjectProxy - @namespace Ember - @extends Ember.Object - @extends Ember._ProxyMixin - */ - - __exports__["default"] = EmberObject.extend(_ProxyMixin); - }); -enifed("ember-runtime/system/service", - ["ember-runtime/system/object","ember-runtime/inject","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var Object = __dependency1__["default"]; - var createInjectionHelper = __dependency2__.createInjectionHelper; - - var Service; - - - /** - @class Service - @namespace Ember - @extends Ember.Object - */ - Service = Object.extend(); - - /** - Creates a property that lazily looks up a service in the container. There - are no restrictions as to what objects a service can be injected into. - - Example: - - ```javascript - App.ApplicationRoute = Ember.Route.extend({ - authManager: Ember.inject.service('auth'), - - model: function() { - return this.get('authManager').findCurrentUser(); - } - }); - ``` - - This example will create an `authManager` property on the application route - that looks up the `auth` service in the container, making it easily - accessible in the `model` hook. - - @method inject.service - @for Ember - @param {String} name (optional) name of the service to inject, defaults to - the property's name - @return {Ember.InjectedProperty} injection descriptor instance - */ - createInjectionHelper('service'); - - - __exports__["default"] = Service; - }); -enifed("ember-runtime/system/set", - ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/utils","ember-metal/is_none","ember-runtime/system/string","ember-runtime/system/core_object","ember-runtime/mixins/mutable_enumerable","ember-runtime/mixins/enumerable","ember-runtime/mixins/copyable","ember-runtime/mixins/freezable","ember-metal/error","ember-metal/property_events","ember-metal/mixin","ember-metal/computed","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - var Ember = __dependency1__["default"]; - // Ember.isNone, Ember.A - - var get = __dependency2__.get; - var set = __dependency3__.set; - var guidFor = __dependency4__.guidFor; - var isNone = __dependency5__["default"]; - var fmt = __dependency6__.fmt; - var CoreObject = __dependency7__["default"]; - var MutableEnumerable = __dependency8__["default"]; - var Enumerable = __dependency9__["default"]; - var Copyable = __dependency10__["default"]; - var Freezable = __dependency11__.Freezable; - var FROZEN_ERROR = __dependency11__.FROZEN_ERROR; - var EmberError = __dependency12__["default"]; - var propertyWillChange = __dependency13__.propertyWillChange; - var propertyDidChange = __dependency13__.propertyDidChange; - var aliasMethod = __dependency14__.aliasMethod; - var computed = __dependency15__.computed; - - /** - An unordered collection of objects. - - A Set works a bit like an array except that its items are not ordered. You - can create a set to efficiently test for membership for an object. You can - also iterate through a set just like an array, even accessing objects by - index, however there is no guarantee as to their order. - - All Sets are observable via the Enumerable Observer API - which works - on any enumerable object including both Sets and Arrays. - - ## Creating a Set - - You can create a set like you would most objects using - `new Ember.Set()`. Most new sets you create will be empty, but you can - also initialize the set with some content by passing an array or other - enumerable of objects to the constructor. - - Finally, you can pass in an existing set and the set will be copied. You - can also create a copy of a set by calling `Ember.Set#copy()`. - - ```javascript - // creates a new empty set - var foundNames = new Ember.Set(); - - // creates a set with four names in it. - var names = new Ember.Set(["Charles", "Tom", "Juan", "Alex"]); // :P - - // creates a copy of the names set. - var namesCopy = new Ember.Set(names); - - // same as above. - var anotherNamesCopy = names.copy(); - ``` - - ## Adding/Removing Objects - - You generally add or remove objects from a set using `add()` or - `remove()`. You can add any type of object including primitives such as - numbers, strings, and booleans. - - Unlike arrays, objects can only exist one time in a set. If you call `add()` - on a set with the same object multiple times, the object will only be added - once. Likewise, calling `remove()` with the same object multiple times will - remove the object the first time and have no effect on future calls until - you add the object to the set again. - - NOTE: You cannot add/remove `null` or `undefined` to a set. Any attempt to do - so will be ignored. - - In addition to add/remove you can also call `push()`/`pop()`. Push behaves - just like `add()` but `pop()`, unlike `remove()` will pick an arbitrary - object, remove it and return it. This is a good way to use a set as a job - queue when you don't care which order the jobs are executed in. - - ## Testing for an Object - - To test for an object's presence in a set you simply call - `Ember.Set#contains()`. - - ## Observing changes - - When using `Ember.Set`, you can observe the `"[]"` property to be - alerted whenever the content changes. You can also add an enumerable - observer to the set to be notified of specific objects that are added and - removed from the set. See [Ember.Enumerable](/api/classes/Ember.Enumerable.html) - for more information on enumerables. - - This is often unhelpful. If you are filtering sets of objects, for instance, - it is very inefficient to re-filter all of the items each time the set - changes. It would be better if you could just adjust the filtered set based - on what was changed on the original set. The same issue applies to merging - sets, as well. - - ## Other Methods - - `Ember.Set` primary implements other mixin APIs. For a complete reference - on the methods you will use with `Ember.Set`, please consult these mixins. - The most useful ones will be `Ember.Enumerable` and - `Ember.MutableEnumerable` which implement most of the common iterator - methods you are used to on Array. - - Note that you can also use the `Ember.Copyable` and `Ember.Freezable` - APIs on `Ember.Set` as well. Once a set is frozen it can no longer be - modified. The benefit of this is that when you call `frozenCopy()` on it, - Ember will avoid making copies of the set. This allows you to write - code that can know with certainty when the underlying set data will or - will not be modified. - - @class Set - @namespace Ember - @extends Ember.CoreObject - @uses Ember.MutableEnumerable - @uses Ember.Copyable - @uses Ember.Freezable - @since Ember 0.9 - @deprecated - */ - __exports__["default"] = CoreObject.extend(MutableEnumerable, Copyable, Freezable, { - - // .......................................................... - // IMPLEMENT ENUMERABLE APIS - // - - /** - This property will change as the number of objects in the set changes. - - @property length - @type number - @default 0 - */ - length: 0, - - /** - Clears the set. This is useful if you want to reuse an existing set - without having to recreate it. - - ```javascript - var colors = new Ember.Set(["red", "green", "blue"]); - colors.length; // 3 - colors.clear(); - colors.length; // 0 - ``` - - @method clear - @return {Ember.Set} An empty Set - */ - clear: function() { - if (this.isFrozen) { throw new EmberError(FROZEN_ERROR); } - - var len = get(this, 'length'); - if (len === 0) { return this; } - - var guid; - - this.enumerableContentWillChange(len, 0); - propertyWillChange(this, 'firstObject'); - propertyWillChange(this, 'lastObject'); - - for (var i=0; i < len; i++) { - guid = guidFor(this[i]); - delete this[guid]; - delete this[i]; - } - - set(this, 'length', 0); - - propertyDidChange(this, 'firstObject'); - propertyDidChange(this, 'lastObject'); - this.enumerableContentDidChange(len, 0); - - return this; - }, - - /** - Returns true if the passed object is also an enumerable that contains the - same objects as the receiver. - - ```javascript - var colors = ["red", "green", "blue"], - same_colors = new Ember.Set(colors); - - same_colors.isEqual(colors); // true - same_colors.isEqual(["purple", "brown"]); // false - ``` - - @method isEqual - @param {Ember.Set} obj the other object. - @return {Boolean} - */ - isEqual: function(obj) { - // fail fast - if (!Enumerable.detect(obj)) return false; - - var loc = get(this, 'length'); - if (get(obj, 'length') !== loc) return false; - - while(--loc >= 0) { - if (!obj.contains(this[loc])) return false; - } - - return true; - }, - - /** - Adds an object to the set. Only non-`null` objects can be added to a set - and those can only be added once. If the object is already in the set or - the passed value is null this method will have no effect. - - This is an alias for `Ember.MutableEnumerable.addObject()`. - - ```javascript - var colors = new Ember.Set(); - colors.add("blue"); // ["blue"] - colors.add("blue"); // ["blue"] - colors.add("red"); // ["blue", "red"] - colors.add(null); // ["blue", "red"] - colors.add(undefined); // ["blue", "red"] - ``` - - @method add - @param {Object} obj The object to add. - @return {Ember.Set} The set itself. - */ - add: aliasMethod('addObject'), - - /** - Removes the object from the set if it is found. If you pass a `null` value - or an object that is already not in the set, this method will have no - effect. This is an alias for `Ember.MutableEnumerable.removeObject()`. - - ```javascript - var colors = new Ember.Set(["red", "green", "blue"]); - colors.remove("red"); // ["blue", "green"] - colors.remove("purple"); // ["blue", "green"] - colors.remove(null); // ["blue", "green"] - ``` - - @method remove - @param {Object} obj The object to remove - @return {Ember.Set} The set itself. - */ - remove: aliasMethod('removeObject'), - - /** - Removes the last element from the set and returns it, or `null` if it's empty. - - ```javascript - var colors = new Ember.Set(["green", "blue"]); - colors.pop(); // "blue" - colors.pop(); // "green" - colors.pop(); // null - ``` - - @method pop - @return {Object} The removed object from the set or null. - */ - pop: function() { - if (get(this, 'isFrozen')) throw new EmberError(FROZEN_ERROR); - var obj = this.length > 0 ? this[this.length-1] : null; - this.remove(obj); - return obj; - }, - - /** - Inserts the given object on to the end of the set. It returns - the set itself. - - This is an alias for `Ember.MutableEnumerable.addObject()`. - - ```javascript - var colors = new Ember.Set(); - colors.push("red"); // ["red"] - colors.push("green"); // ["red", "green"] - colors.push("blue"); // ["red", "green", "blue"] - ``` - - @method push - @return {Ember.Set} The set itself. - */ - push: aliasMethod('addObject'), - - /** - Removes the last element from the set and returns it, or `null` if it's empty. - - This is an alias for `Ember.Set.pop()`. - - ```javascript - var colors = new Ember.Set(["green", "blue"]); - colors.shift(); // "blue" - colors.shift(); // "green" - colors.shift(); // null - ``` - - @method shift - @return {Object} The removed object from the set or null. - */ - shift: aliasMethod('pop'), - - /** - Inserts the given object on to the end of the set. It returns - the set itself. - - This is an alias of `Ember.Set.push()` - - ```javascript - var colors = new Ember.Set(); - colors.unshift("red"); // ["red"] - colors.unshift("green"); // ["red", "green"] - colors.unshift("blue"); // ["red", "green", "blue"] - ``` - - @method unshift - @return {Ember.Set} The set itself. - */ - unshift: aliasMethod('push'), - - /** - Adds each object in the passed enumerable to the set. - - This is an alias of `Ember.MutableEnumerable.addObjects()` - - ```javascript - var colors = new Ember.Set(); - colors.addEach(["red", "green", "blue"]); // ["red", "green", "blue"] - ``` - - @method addEach - @param {Ember.Enumerable} objects the objects to add. - @return {Ember.Set} The set itself. - */ - addEach: aliasMethod('addObjects'), - - /** - Removes each object in the passed enumerable to the set. - - This is an alias of `Ember.MutableEnumerable.removeObjects()` - - ```javascript - var colors = new Ember.Set(["red", "green", "blue"]); - colors.removeEach(["red", "blue"]); // ["green"] - ``` - - @method removeEach - @param {Ember.Enumerable} objects the objects to remove. - @return {Ember.Set} The set itself. - */ - removeEach: aliasMethod('removeObjects'), - - // .......................................................... - // PRIVATE ENUMERABLE SUPPORT - // - - init: function(items) { - Ember.deprecate('Ember.Set is deprecated and will be removed in a future release.'); - this._super(); - if (items) this.addObjects(items); - }, - - // implement Ember.Enumerable - nextObject: function(idx) { - return this[idx]; - }, - - // more optimized version - firstObject: computed(function() { - return this.length > 0 ? this[0] : undefined; - }), - - // more optimized version - lastObject: computed(function() { - return this.length > 0 ? this[this.length-1] : undefined; - }), - - // implements Ember.MutableEnumerable - addObject: function(obj) { - if (get(this, 'isFrozen')) throw new EmberError(FROZEN_ERROR); - if (isNone(obj)) return this; // nothing to do - - var guid = guidFor(obj); - var idx = this[guid]; - var len = get(this, 'length'); - var added; - - if (idx>=0 && idx=0 && idx=0; - }, - - copy: function() { - var C = this.constructor, ret = new C(), loc = get(this, 'length'); - set(ret, 'length', loc); - while(--loc>=0) { - ret[loc] = this[loc]; - ret[guidFor(this[loc])] = loc; - } - return ret; - }, - - toString: function() { - var len = this.length, idx, array = []; - for(idx = 0; idx < len; idx++) { - array[idx] = this[idx]; - } - return fmt("Ember.Set<%@>", [array.join(',')]); - } - }); - }); -enifed("ember-runtime/system/string", - ["ember-metal/core","ember-metal/utils","ember-metal/cache","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-runtime - */ - var Ember = __dependency1__["default"]; - // Ember.STRINGS, Ember.FEATURES - var isArray = __dependency2__.isArray; - var emberInspect = __dependency2__.inspect; - - var Cache = __dependency3__["default"]; - - var STRING_DASHERIZE_REGEXP = (/[ _]/g); - - var STRING_DASHERIZE_CACHE = new Cache(1000, function(key) { - return decamelize(key).replace(STRING_DASHERIZE_REGEXP, '-'); - }); - - var CAMELIZE_CACHE = new Cache(1000, function(key) { - return key.replace(STRING_CAMELIZE_REGEXP, function(match, separator, chr) { - return chr ? chr.toUpperCase() : ''; - }).replace(/^([A-Z])/, function(match, separator, chr) { - return match.toLowerCase(); - }); - }); - - var CLASSIFY_CACHE = new Cache(1000, function(str) { - var parts = str.split("."); - var out = []; - - for (var i=0, l=parts.length; i 2) { - cachedFormats = new Array(arguments.length - 1); - - for (var i = 1, l = arguments.length; i < l; i++) { - cachedFormats[i - 1] = arguments[i]; - } - } - - // first, replace any ORDERED replacements. - var idx = 0; // the current index for non-numerical replacements - return str.replace(/%@([0-9]+)?/g, function(s, argIndex) { - argIndex = (argIndex) ? parseInt(argIndex, 10) - 1 : idx++; - s = cachedFormats[argIndex]; - return (s === null) ? '(null)' : (s === undefined) ? '' : emberInspect(s); - }); - } - - function loc(str, formats) { - if (!isArray(formats) || arguments.length > 2) { - formats = Array.prototype.slice.call(arguments, 1); - } - - str = Ember.STRINGS[str] || str; - return fmt(str, formats); - } - - function w(str) { - return str.split(/\s+/); - } - - function decamelize(str) { - return DECAMELIZE_CACHE.get(str); - } - - function dasherize(str) { - return STRING_DASHERIZE_CACHE.get(str); - } - - function camelize(str) { - return CAMELIZE_CACHE.get(str); - } - - function classify(str) { - return CLASSIFY_CACHE.get(str); - } - - function underscore(str) { - return UNDERSCORE_CACHE.get(str); - } - - function capitalize(str) { - return CAPITALIZE_CACHE.get(str); - } - - /** - Defines the hash of localized strings for the current language. Used by - the `Ember.String.loc()` helper. To localize, add string values to this - hash. - - @property STRINGS - @for Ember - @type Hash - */ - Ember.STRINGS = {}; - - /** - Defines string helper methods including string formatting and localization. - Unless `Ember.EXTEND_PROTOTYPES.String` is `false` these methods will also be - added to the `String.prototype` as well. - - @class String - @namespace Ember - @static - */ - __exports__["default"] = { - /** - Apply formatting options to the string. This will look for occurrences - of "%@" in your string and substitute them with the arguments you pass into - this method. If you want to control the specific order of replacement, - you can add a number after the key as well to indicate which argument - you want to insert. - - Ordered insertions are most useful when building loc strings where values - you need to insert may appear in different orders. - - ```javascript - "Hello %@ %@".fmt('John', 'Doe'); // "Hello John Doe" - "Hello %@2, %@1".fmt('John', 'Doe'); // "Hello Doe, John" - ``` - - @method fmt - @param {String} str The string to format - @param {Array} formats An array of parameters to interpolate into string. - @return {String} formatted string - */ - fmt: fmt, - - /** - Formats the passed string, but first looks up the string in the localized - strings hash. This is a convenient way to localize text. See - `Ember.String.fmt()` for more information on formatting. - - Note that it is traditional but not required to prefix localized string - keys with an underscore or other character so you can easily identify - localized strings. - - ```javascript - Ember.STRINGS = { - '_Hello World': 'Bonjour le monde', - '_Hello %@ %@': 'Bonjour %@ %@' - }; - - Ember.String.loc("_Hello World"); // 'Bonjour le monde'; - Ember.String.loc("_Hello %@ %@", ["John", "Smith"]); // "Bonjour John Smith"; - ``` - - @method loc - @param {String} str The string to format - @param {Array} formats Optional array of parameters to interpolate into string. - @return {String} formatted string - */ - loc: loc, - - /** - Splits a string into separate units separated by spaces, eliminating any - empty strings in the process. This is a convenience method for split that - is mostly useful when applied to the `String.prototype`. - - ```javascript - Ember.String.w("alpha beta gamma").forEach(function(key) { - console.log(key); - }); - - // > alpha - // > beta - // > gamma - ``` - - @method w - @param {String} str The string to split - @return {Array} array containing the split strings - */ - w: w, - - /** - Converts a camelized string into all lower case separated by underscores. - - ```javascript - 'innerHTML'.decamelize(); // 'inner_html' - 'action_name'.decamelize(); // 'action_name' - 'css-class-name'.decamelize(); // 'css-class-name' - 'my favorite items'.decamelize(); // 'my favorite items' - ``` - - @method decamelize - @param {String} str The string to decamelize. - @return {String} the decamelized string. - */ - decamelize: decamelize, - - /** - Replaces underscores, spaces, or camelCase with dashes. - - ```javascript - 'innerHTML'.dasherize(); // 'inner-html' - 'action_name'.dasherize(); // 'action-name' - 'css-class-name'.dasherize(); // 'css-class-name' - 'my favorite items'.dasherize(); // 'my-favorite-items' - ``` - - @method dasherize - @param {String} str The string to dasherize. - @return {String} the dasherized string. - */ - dasherize: dasherize, - - /** - Returns the lowerCamelCase form of a string. - - ```javascript - 'innerHTML'.camelize(); // 'innerHTML' - 'action_name'.camelize(); // 'actionName' - 'css-class-name'.camelize(); // 'cssClassName' - 'my favorite items'.camelize(); // 'myFavoriteItems' - 'My Favorite Items'.camelize(); // 'myFavoriteItems' - ``` - - @method camelize - @param {String} str The string to camelize. - @return {String} the camelized string. - */ - camelize: camelize, - - /** - Returns the UpperCamelCase form of a string. - - ```javascript - 'innerHTML'.classify(); // 'InnerHTML' - 'action_name'.classify(); // 'ActionName' - 'css-class-name'.classify(); // 'CssClassName' - 'my favorite items'.classify(); // 'MyFavoriteItems' - ``` - - @method classify - @param {String} str the string to classify - @return {String} the classified string - */ - classify: classify, - - /** - More general than decamelize. Returns the lower\_case\_and\_underscored - form of a string. - - ```javascript - 'innerHTML'.underscore(); // 'inner_html' - 'action_name'.underscore(); // 'action_name' - 'css-class-name'.underscore(); // 'css_class_name' - 'my favorite items'.underscore(); // 'my_favorite_items' - ``` - - @method underscore - @param {String} str The string to underscore. - @return {String} the underscored string. - */ - underscore: underscore, - - /** - Returns the Capitalized form of a string - - ```javascript - 'innerHTML'.capitalize() // 'InnerHTML' - 'action_name'.capitalize() // 'Action_name' - 'css-class-name'.capitalize() // 'Css-class-name' - 'my favorite items'.capitalize() // 'My favorite items' - ``` - - @method capitalize - @param {String} str The string to capitalize. - @return {String} The capitalized string. - */ - capitalize: capitalize - }; - - __exports__.fmt = fmt; - __exports__.loc = loc; - __exports__.w = w; - __exports__.decamelize = decamelize; - __exports__.dasherize = dasherize; - __exports__.camelize = camelize; - __exports__.classify = classify; - __exports__.underscore = underscore; - __exports__.capitalize = capitalize; - }); -enifed("ember-runtime/system/subarray", - ["ember-metal/error","ember-metal/enumerable_utils","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var EmberError = __dependency1__["default"]; - var EnumerableUtils = __dependency2__["default"]; - - var RETAIN = 'r'; - var FILTER = 'f'; - - function Operation(type, count) { - this.type = type; - this.count = count; - } - - __exports__["default"] = SubArray; - - /** - An `Ember.SubArray` tracks an array in a way similar to, but more specialized - than, `Ember.TrackedArray`. It is useful for keeping track of the indexes of - items within a filtered array. - - @class SubArray - @namespace Ember - */ - function SubArray (length) { - if (arguments.length < 1) { length = 0; } - - if (length > 0) { - this._operations = [new Operation(RETAIN, length)]; - } else { - this._operations = []; - } - } - - - SubArray.prototype = { - /** - Track that an item was added to the tracked array. - - @method addItem - - @param {Number} index The index of the item in the tracked array. - @param {Boolean} match `true` iff the item is included in the subarray. - - @return {number} The index of the item in the subarray. - */ - addItem: function(index, match) { - var returnValue = -1; - var itemType = match ? RETAIN : FILTER; - var self = this; - - this._findOperation(index, function(operation, operationIndex, rangeStart, rangeEnd, seenInSubArray) { - var newOperation, splitOperation; - - if (itemType === operation.type) { - ++operation.count; - } else if (index === rangeStart) { - // insert to the left of `operation` - self._operations.splice(operationIndex, 0, new Operation(itemType, 1)); - } else { - newOperation = new Operation(itemType, 1); - splitOperation = new Operation(operation.type, rangeEnd - index + 1); - operation.count = index - rangeStart; - - self._operations.splice(operationIndex + 1, 0, newOperation, splitOperation); - } - - if (match) { - if (operation.type === RETAIN) { - returnValue = seenInSubArray + (index - rangeStart); - } else { - returnValue = seenInSubArray; - } - } - - self._composeAt(operationIndex); - }, function(seenInSubArray) { - self._operations.push(new Operation(itemType, 1)); - - if (match) { - returnValue = seenInSubArray; - } - - self._composeAt(self._operations.length-1); - }); - - return returnValue; - }, - - /** - Track that an item was removed from the tracked array. - - @method removeItem - - @param {Number} index The index of the item in the tracked array. - - @return {number} The index of the item in the subarray, or `-1` if the item - was not in the subarray. - */ - removeItem: function(index) { - var returnValue = -1; - var self = this; - - this._findOperation(index, function (operation, operationIndex, rangeStart, rangeEnd, seenInSubArray) { - if (operation.type === RETAIN) { - returnValue = seenInSubArray + (index - rangeStart); - } - - if (operation.count > 1) { - --operation.count; - } else { - self._operations.splice(operationIndex, 1); - self._composeAt(operationIndex); - } - }, function() { - throw new EmberError("Can't remove an item that has never been added."); - }); - - return returnValue; - }, - - - _findOperation: function (index, foundCallback, notFoundCallback) { - var seenInSubArray = 0; - var operationIndex, len, operation, rangeStart, rangeEnd; - - // OPTIMIZE: change to balanced tree - // find leftmost operation to the right of `index` - for (operationIndex = rangeStart = 0, len = this._operations.length; operationIndex < len; rangeStart = rangeEnd + 1, ++operationIndex) { - operation = this._operations[operationIndex]; - rangeEnd = rangeStart + operation.count - 1; - - if (index >= rangeStart && index <= rangeEnd) { - foundCallback(operation, operationIndex, rangeStart, rangeEnd, seenInSubArray); - return; - } else if (operation.type === RETAIN) { - seenInSubArray += operation.count; - } - } - - notFoundCallback(seenInSubArray); - }, - - _composeAt: function(index) { - var op = this._operations[index]; - var otherOp; - - if (!op) { - // Composing out of bounds is a no-op, as when removing the last operation - // in the list. - return; - } - - if (index > 0) { - otherOp = this._operations[index-1]; - if (otherOp.type === op.type) { - op.count += otherOp.count; - this._operations.splice(index-1, 1); - --index; - } - } - - if (index < this._operations.length-1) { - otherOp = this._operations[index+1]; - if (otherOp.type === op.type) { - op.count += otherOp.count; - this._operations.splice(index+1, 1); - } - } - }, - - toString: function () { - var str = ""; - EnumerableUtils.forEach(this._operations, function (operation) { - str += " " + operation.type + ":" + operation.count; - }); - return str.substring(1); - } - }; - }); -enifed("ember-runtime/system/tracked_array", - ["ember-metal/property_get","ember-metal/enumerable_utils","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var get = __dependency1__.get; - var forEach = __dependency2__.forEach; - - var RETAIN = 'r'; - var INSERT = 'i'; - var DELETE = 'd'; - - __exports__["default"] = TrackedArray; - - /** - An `Ember.TrackedArray` tracks array operations. It's useful when you want to - lazily compute the indexes of items in an array after they've been shifted by - subsequent operations. - - @class TrackedArray - @namespace Ember - @param {Array} [items=[]] The array to be tracked. This is used just to get - the initial items for the starting state of retain:n. - */ - function TrackedArray(items) { - if (arguments.length < 1) { items = []; } - - var length = get(items, 'length'); - - if (length) { - this._operations = [new ArrayOperation(RETAIN, length, items)]; - } else { - this._operations = []; - } - } - - TrackedArray.RETAIN = RETAIN; - TrackedArray.INSERT = INSERT; - TrackedArray.DELETE = DELETE; - - TrackedArray.prototype = { - - /** - Track that `newItems` were added to the tracked array at `index`. - - @method addItems - @param index - @param newItems - */ - addItems: function (index, newItems) { - var count = get(newItems, 'length'); - if (count < 1) { return; } - - var match = this._findArrayOperation(index); - var arrayOperation = match.operation; - var arrayOperationIndex = match.index; - var arrayOperationRangeStart = match.rangeStart; - var composeIndex, newArrayOperation; - - newArrayOperation = new ArrayOperation(INSERT, count, newItems); - - if (arrayOperation) { - if (!match.split) { - // insert left of arrayOperation - this._operations.splice(arrayOperationIndex, 0, newArrayOperation); - composeIndex = arrayOperationIndex; - } else { - this._split(arrayOperationIndex, index - arrayOperationRangeStart, newArrayOperation); - composeIndex = arrayOperationIndex + 1; - } - } else { - // insert at end - this._operations.push(newArrayOperation); - composeIndex = arrayOperationIndex; - } - - this._composeInsert(composeIndex); - }, - - /** - Track that `count` items were removed at `index`. - - @method removeItems - @param index - @param count - */ - removeItems: function (index, count) { - if (count < 1) { return; } - - var match = this._findArrayOperation(index); - var arrayOperationIndex = match.index; - var arrayOperationRangeStart = match.rangeStart; - var newArrayOperation, composeIndex; - - newArrayOperation = new ArrayOperation(DELETE, count); - if (!match.split) { - // insert left of arrayOperation - this._operations.splice(arrayOperationIndex, 0, newArrayOperation); - composeIndex = arrayOperationIndex; - } else { - this._split(arrayOperationIndex, index - arrayOperationRangeStart, newArrayOperation); - composeIndex = arrayOperationIndex + 1; - } - - return this._composeDelete(composeIndex); - }, - - /** - Apply all operations, reducing them to retain:n, for `n`, the number of - items in the array. - - `callback` will be called for each operation and will be passed the following arguments: - - * {array} items The items for the given operation - * {number} offset The computed offset of the items, ie the index in the - array of the first item for this operation. - * {string} operation The type of the operation. One of - `Ember.TrackedArray.{RETAIN, DELETE, INSERT}` - - @method apply - @param {Function} callback - */ - apply: function (callback) { - var items = []; - var offset = 0; - - forEach(this._operations, function (arrayOperation, operationIndex) { - callback(arrayOperation.items, offset, arrayOperation.type, operationIndex); - - if (arrayOperation.type !== DELETE) { - offset += arrayOperation.count; - items = items.concat(arrayOperation.items); - } - }); - - this._operations = [new ArrayOperation(RETAIN, items.length, items)]; - }, - - /** - Return an `ArrayOperationMatch` for the operation that contains the item at `index`. - - @method _findArrayOperation - - @param {Number} index the index of the item whose operation information - should be returned. - @private - */ - _findArrayOperation: function (index) { - var split = false; - var arrayOperationIndex, arrayOperation, - arrayOperationRangeStart, arrayOperationRangeEnd, - len; - - // OPTIMIZE: we could search these faster if we kept a balanced tree. - // find leftmost arrayOperation to the right of `index` - for (arrayOperationIndex = arrayOperationRangeStart = 0, len = this._operations.length; arrayOperationIndex < len; ++arrayOperationIndex) { - arrayOperation = this._operations[arrayOperationIndex]; - - if (arrayOperation.type === DELETE) { continue; } - - arrayOperationRangeEnd = arrayOperationRangeStart + arrayOperation.count - 1; - - if (index === arrayOperationRangeStart) { - break; - } else if (index > arrayOperationRangeStart && index <= arrayOperationRangeEnd) { - split = true; - break; - } else { - arrayOperationRangeStart = arrayOperationRangeEnd + 1; - } - } - - return new ArrayOperationMatch(arrayOperation, arrayOperationIndex, split, arrayOperationRangeStart); - }, - - _split: function (arrayOperationIndex, splitIndex, newArrayOperation) { - var arrayOperation = this._operations[arrayOperationIndex]; - var splitItems = arrayOperation.items.slice(splitIndex); - var splitArrayOperation = new ArrayOperation(arrayOperation.type, splitItems.length, splitItems); - - // truncate LHS - arrayOperation.count = splitIndex; - arrayOperation.items = arrayOperation.items.slice(0, splitIndex); - - this._operations.splice(arrayOperationIndex + 1, 0, newArrayOperation, splitArrayOperation); - }, - - // see SubArray for a better implementation. - _composeInsert: function (index) { - var newArrayOperation = this._operations[index]; - var leftArrayOperation = this._operations[index-1]; // may be undefined - var rightArrayOperation = this._operations[index+1]; // may be undefined - var leftOp = leftArrayOperation && leftArrayOperation.type; - var rightOp = rightArrayOperation && rightArrayOperation.type; - - if (leftOp === INSERT) { - // merge left - leftArrayOperation.count += newArrayOperation.count; - leftArrayOperation.items = leftArrayOperation.items.concat(newArrayOperation.items); - - if (rightOp === INSERT) { - // also merge right (we have split an insert with an insert) - leftArrayOperation.count += rightArrayOperation.count; - leftArrayOperation.items = leftArrayOperation.items.concat(rightArrayOperation.items); - this._operations.splice(index, 2); - } else { - // only merge left - this._operations.splice(index, 1); - } - } else if (rightOp === INSERT) { - // merge right - newArrayOperation.count += rightArrayOperation.count; - newArrayOperation.items = newArrayOperation.items.concat(rightArrayOperation.items); - this._operations.splice(index + 1, 1); - } - }, - - _composeDelete: function (index) { - var arrayOperation = this._operations[index]; - var deletesToGo = arrayOperation.count; - var leftArrayOperation = this._operations[index-1]; // may be undefined - var leftOp = leftArrayOperation && leftArrayOperation.type; - var nextArrayOperation; - var nextOp; - var nextCount; - var removeNewAndNextOp = false; - var removedItems = []; - - if (leftOp === DELETE) { - arrayOperation = leftArrayOperation; - index -= 1; - } - - for (var i = index + 1; deletesToGo > 0; ++i) { - nextArrayOperation = this._operations[i]; - nextOp = nextArrayOperation.type; - nextCount = nextArrayOperation.count; - - if (nextOp === DELETE) { - arrayOperation.count += nextCount; - continue; - } - - if (nextCount > deletesToGo) { - // d:2 {r,i}:5 we reduce the retain or insert, but it stays - removedItems = removedItems.concat(nextArrayOperation.items.splice(0, deletesToGo)); - nextArrayOperation.count -= deletesToGo; - - // In the case where we truncate the last arrayOperation, we don't need to - // remove it; also the deletesToGo reduction is not the entirety of - // nextCount - i -= 1; - nextCount = deletesToGo; - - deletesToGo = 0; - } else { - if (nextCount === deletesToGo) { - // Handle edge case of d:2 i:2 in which case both operations go away - // during composition. - removeNewAndNextOp = true; - } - removedItems = removedItems.concat(nextArrayOperation.items); - deletesToGo -= nextCount; - } - - if (nextOp === INSERT) { - // d:2 i:3 will result in delete going away - arrayOperation.count -= nextCount; - } - } - - if (arrayOperation.count > 0) { - // compose our new delete with possibly several operations to the right of - // disparate types - this._operations.splice(index+1, i-1-index); - } else { - // The delete operation can go away; it has merely reduced some other - // operation, as in d:3 i:4; it may also have eliminated that operation, - // as in d:3 i:3. - this._operations.splice(index, removeNewAndNextOp ? 2 : 1); - } - - return removedItems; - }, - - toString: function () { - var str = ""; - forEach(this._operations, function (operation) { - str += " " + operation.type + ":" + operation.count; - }); - return str.substring(1); - } - }; - - /** - Internal data structure to represent an array operation. - - @method ArrayOperation - @private - @param {String} type The type of the operation. One of - `Ember.TrackedArray.{RETAIN, INSERT, DELETE}` - @param {Number} count The number of items in this operation. - @param {Array} items The items of the operation, if included. RETAIN and - INSERT include their items, DELETE does not. - */ - function ArrayOperation (operation, count, items) { - this.type = operation; // RETAIN | INSERT | DELETE - this.count = count; - this.items = items; - } - - /** - Internal data structure used to include information when looking up operations - by item index. - - @method ArrayOperationMatch - @private - @param {ArrayOperation} operation - @param {Number} index The index of `operation` in the array of operations. - @param {Boolean} split Whether or not the item index searched for would - require a split for a new operation type. - @param {Number} rangeStart The index of the first item in the operation, - with respect to the tracked array. The index of the last item can be computed - from `rangeStart` and `operation.count`. - */ - function ArrayOperationMatch(operation, index, split, rangeStart) { - this.operation = operation; - this.index = index; - this.split = split; - this.rangeStart = rangeStart; - } - }); -enifed("ember-template-compiler", - ["ember-metal/core","ember-template-compiler/system/precompile","ember-template-compiler/system/compile","ember-template-compiler/system/template","ember-template-compiler/plugins","ember-template-compiler/plugins/transform-each-in-to-hash","ember-template-compiler/plugins/transform-with-as-to-hash","ember-template-compiler/compat","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) { - "use strict"; - var _Ember = __dependency1__["default"]; - var precompile = __dependency2__["default"]; - var compile = __dependency3__["default"]; - var template = __dependency4__["default"]; - var registerPlugin = __dependency5__.registerPlugin; - - var TransformEachInToHash = __dependency6__["default"]; - var TransformWithAsToHash = __dependency7__["default"]; - - // used for adding Ember.Handlebars.compile for backwards compat - - registerPlugin('ast', TransformWithAsToHash); - registerPlugin('ast', TransformEachInToHash); - - __exports__._Ember = _Ember; - __exports__.precompile = precompile; - __exports__.compile = compile; - __exports__.template = template; - __exports__.registerPlugin = registerPlugin; - }); -enifed("ember-template-compiler/compat", - ["ember-metal/core","ember-template-compiler/compat/precompile","ember-template-compiler/system/compile","ember-template-compiler/system/template"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__) { - "use strict"; - var Ember = __dependency1__["default"]; - var precompile = __dependency2__["default"]; - var compile = __dependency3__["default"]; - var template = __dependency4__["default"]; - - var EmberHandlebars = Ember.Handlebars = Ember.Handlebars || {}; - - EmberHandlebars.precompile = precompile; - EmberHandlebars.compile = compile; - EmberHandlebars.template = template; - }); -enifed("ember-template-compiler/compat/precompile", - ["exports"], - function(__exports__) { - "use strict"; - /** - @module ember - @submodule ember-template-compiler - */ - - var compile, compileSpec; - - __exports__["default"] = function(string) { - if ((!compile || !compileSpec) && Ember.__loader.registry['htmlbars-compiler/compiler']) { - var Compiler = requireModule('htmlbars-compiler/compiler'); - - compile = Compiler.compile; - compileSpec = Compiler.compileSpec; - } - - if (!compile || !compileSpec) { - throw new Error('Cannot call `precompile` without the template compiler loaded. Please load `ember-template-compiler.js` prior to calling `precompile`.'); - } - - var asObject = arguments[1] === undefined ? true : arguments[1]; - var compileFunc = asObject ? compile : compileSpec; - - return compileFunc(string); - } - }); -enifed("ember-template-compiler/plugins", - ["exports"], - function(__exports__) { - "use strict"; - /** - @module ember - @submodule ember-template-compiler - */ - - /** - @private - @property helpers - */ - var plugins = { - ast: [ ] - }; - - /** - Adds an AST plugin to be used by Ember.HTMLBars.compile. - - @private - @method registerASTPlugin - */ - function registerPlugin(type, Plugin) { - if (!plugins[type]) { - throw new Error('Attempting to register "' + Plugin + '" as "' + type + '" which is not a valid HTMLBars plugin type.'); - } - - plugins[type].push(Plugin); - } - - __exports__.registerPlugin = registerPlugin;__exports__["default"] = plugins; - }); -enifed("ember-template-compiler/plugins/transform-each-in-to-hash", - ["exports"], - function(__exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - - /** - An HTMLBars AST transformation that replaces all instances of - - ```handlebars - {{#each item in items}} - {{/each}} - ``` - - with - - ```handlebars - {{#each items keyword="item"}} - {{/each}} - ``` - - @class TransformEachInToHash - @private - */ - function TransformEachInToHash() { - // set later within HTMLBars to the syntax package - this.syntax = null; - } - - /** - @private - @method transform - @param {AST} The AST to be transformed. - */ - TransformEachInToHash.prototype.transform = function TransformEachInToHash_transform(ast) { - var pluginContext = this; - var walker = new pluginContext.syntax.Walker(); - var b = pluginContext.syntax.builders; - - walker.visit(ast, function(node) { - if (pluginContext.validate(node)) { - - if (node.program && node.program.blockParams.length) { - throw new Error('You cannot use keyword (`{{each foo in bar}}`) and block params (`{{each bar as |foo|}}`) at the same time.'); - } - - var removedParams = node.sexpr.params.splice(0, 2); - var keyword = removedParams[0].original; - - // TODO: This may not be necessary. - if (!node.sexpr.hash) { - node.sexpr.hash = b.hash(); - } - - node.sexpr.hash.pairs.push(b.pair( - 'keyword', - b.string(keyword) - )); - } - }); - - return ast; - }; - - TransformEachInToHash.prototype.validate = function TransformEachInToHash_validate(node) { - return (node.type === 'BlockStatement' || node.type === 'MustacheStatement') && - node.sexpr.path.original === 'each' && - node.sexpr.params.length === 3 && - node.sexpr.params[1].type === 'PathExpression' && - node.sexpr.params[1].original === 'in'; - }; - - __exports__["default"] = TransformEachInToHash; - }); -enifed("ember-template-compiler/plugins/transform-with-as-to-hash", - ["exports"], - function(__exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - /** - An HTMLBars AST transformation that replaces all instances of - - ```handlebars - {{#with foo.bar as bar}} - {{/with}} - ``` - - with - - ```handlebars - {{#with foo.bar as |bar|}} - {{/with}} - ``` - - @private - @class TransformWithAsToHash - */ - function TransformWithAsToHash() { - // set later within HTMLBars to the syntax package - this.syntax = null; - } - - /** - @private - @method transform - @param {AST} The AST to be transformed. - */ - TransformWithAsToHash.prototype.transform = function TransformWithAsToHash_transform(ast) { - var pluginContext = this; - var walker = new pluginContext.syntax.Walker(); - - walker.visit(ast, function(node) { - if (pluginContext.validate(node)) { - - if (node.program && node.program.blockParams.length) { - throw new Error('You cannot use keyword (`{{with foo as bar}}`) and block params (`{{with foo as |bar|}}`) at the same time.'); - } - - var removedParams = node.sexpr.params.splice(1, 2); - var keyword = removedParams[1].original; - node.program.blockParams = [ keyword ]; - } - }); - - return ast; - }; - - TransformWithAsToHash.prototype.validate = function TransformWithAsToHash_validate(node) { - return node.type === 'BlockStatement' && - node.sexpr.path.original === 'with' && - node.sexpr.params.length === 3 && - node.sexpr.params[1].type === 'PathExpression' && - node.sexpr.params[1].original === 'as'; - }; - - __exports__["default"] = TransformWithAsToHash; - }); -enifed("ember-template-compiler/system/compile", - ["ember-template-compiler/system/compile_options","ember-template-compiler/system/template","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-template-compiler - */ - - var compile; - var compileOptions = __dependency1__["default"]; - var template = __dependency2__["default"]; - - /** - Uses HTMLBars `compile` function to process a string into a compiled template. - - This is not present in production builds. - - @private - @method compile - @param {String} templateString This is the string to be compiled by HTMLBars. - */ - __exports__["default"] = function(templateString) { - if (!compile && Ember.__loader.registry['htmlbars-compiler/compiler']) { - compile = requireModule('htmlbars-compiler/compiler').compile; - } - - if (!compile) { - throw new Error('Cannot call `compile` without the template compiler loaded. Please load `ember-template-compiler.js` prior to calling `compile`.'); - } - - var templateSpec = compile(templateString, compileOptions()); - - return template(templateSpec); - } - }); -enifed("ember-template-compiler/system/compile_options", - ["ember-metal/core","ember-template-compiler/plugins","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-template-compiler - */ - - var Ember = __dependency1__["default"]; - var plugins = __dependency2__["default"]; - - /** - @private - @property compileOptions - */ - __exports__["default"] = function() { - var disableComponentGeneration = true; - - return { - disableComponentGeneration: disableComponentGeneration, - - plugins: plugins - }; - } - }); -enifed("ember-template-compiler/system/precompile", - ["ember-template-compiler/system/compile_options","exports"], - function(__dependency1__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-template-compiler - */ - - var compileOptions = __dependency1__["default"]; - var compileSpec; - - /** - Uses HTMLBars `compile` function to process a string into a compiled template string. - The returned string must be passed through `Ember.HTMLBars.template`. - - This is not present in production builds. - - @private - @method precompile - @param {String} templateString This is the string to be compiled by HTMLBars. - */ - __exports__["default"] = function(templateString) { - if (!compileSpec && Ember.__loader.registry['htmlbars-compiler/compiler']) { - compileSpec = requireModule('htmlbars-compiler/compiler').compileSpec; - } - - if (!compileSpec) { - throw new Error('Cannot call `compileSpec` without the template compiler loaded. Please load `ember-template-compiler.js` prior to calling `compileSpec`.'); - } - - return compileSpec(templateString, compileOptions()); - } - }); -enifed("ember-template-compiler/system/template", - ["exports"], - function(__exports__) { - "use strict"; - /** - @module ember - @submodule ember-template-compiler - */ - - /** - Augments the detault precompiled output of an HTMLBars template with - additional information needed by Ember. - - @private - @method template - @param {Function} templateSpec This is the compiled HTMLBars template spec. - */ - - __exports__["default"] = function(templateSpec) { - templateSpec.isTop = true; - templateSpec.isMethod = false; - - return templateSpec; - } - }); -enifed("ember-testing", - ["ember-metal/core","ember-testing/initializers","ember-testing/support","ember-testing/setup_for_testing","ember-testing/test","ember-testing/adapters/adapter","ember-testing/adapters/qunit","ember-testing/helpers"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__) { - "use strict"; - var Ember = __dependency1__["default"]; - - // to setup initializer - // to handle various edge cases - - var setupForTesting = __dependency4__["default"]; - var Test = __dependency5__["default"]; - var Adapter = __dependency6__["default"]; - var QUnitAdapter = __dependency7__["default"]; - // adds helpers to helpers object in Test - - /** - Ember Testing - - @module ember - @submodule ember-testing - @requires ember-application - */ - - Ember.Test = Test; - Ember.Test.Adapter = Adapter; - Ember.Test.QUnitAdapter = QUnitAdapter; - Ember.setupForTesting = setupForTesting; - }); -enifed("ember-testing/adapters/adapter", - ["ember-runtime/system/object","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var EmberObject = __dependency1__["default"]; - - function K() { return this; } - - /** - @module ember - @submodule ember-testing - */ - - /** - The primary purpose of this class is to create hooks that can be implemented - by an adapter for various test frameworks. - - @class Adapter - @namespace Ember.Test - */ - var Adapter = EmberObject.extend({ - /** - This callback will be called whenever an async operation is about to start. - - Override this to call your framework's methods that handle async - operations. - - @public - @method asyncStart - */ - asyncStart: K, - - /** - This callback will be called whenever an async operation has completed. - - @public - @method asyncEnd - */ - asyncEnd: K, - - /** - Override this method with your testing framework's false assertion. - This function is called whenever an exception occurs causing the testing - promise to fail. - - QUnit example: - - ```javascript - exception: function(error) { - ok(false, error); - }; - ``` - - @public - @method exception - @param {String} error The exception to be raised. - */ - exception: function(error) { - throw error; - } - }); - - __exports__["default"] = Adapter; - }); -enifed("ember-testing/adapters/qunit", - ["ember-testing/adapters/adapter","ember-metal/utils","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var Adapter = __dependency1__["default"]; - var inspect = __dependency2__.inspect; - - /** - This class implements the methods defined by Ember.Test.Adapter for the - QUnit testing framework. - - @class QUnitAdapter - @namespace Ember.Test - @extends Ember.Test.Adapter - */ - __exports__["default"] = Adapter.extend({ - asyncStart: function() { - QUnit.stop(); - }, - asyncEnd: function() { - QUnit.start(); - }, - exception: function(error) { - ok(false, inspect(error)); - } - }); - }); -enifed("ember-testing/helpers", - ["ember-metal/property_get","ember-metal/error","ember-metal/run_loop","ember-views/system/jquery","ember-testing/test"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__) { - "use strict"; - var get = __dependency1__.get; - var EmberError = __dependency2__["default"]; - var run = __dependency3__["default"]; - var jQuery = __dependency4__["default"]; - var Test = __dependency5__["default"]; - - /** - * @module ember - * @submodule ember-testing - */ - - var helper = Test.registerHelper; - var asyncHelper = Test.registerAsyncHelper; - var countAsync = 0; - - function currentRouteName(app){ - var appController = app.__container__.lookup('controller:application'); - - return get(appController, 'currentRouteName'); - } - - function currentPath(app){ - var appController = app.__container__.lookup('controller:application'); - - return get(appController, 'currentPath'); - } - - function currentURL(app){ - var router = app.__container__.lookup('router:main'); - - return get(router, 'location').getURL(); - } - - function pauseTest(){ - Test.adapter.asyncStart(); - return new Ember.RSVP.Promise(function(){ }, 'TestAdapter paused promise'); - } - - function visit(app, url) { - var router = app.__container__.lookup('router:main'); - router.location.setURL(url); - - if (app._readinessDeferrals > 0) { - router['initialURL'] = url; - run(app, 'advanceReadiness'); - delete router['initialURL']; - } else { - run(app, app.handleURL, url); - } - - return app.testHelpers.wait(); - } - - function click(app, selector, context) { - var $el = app.testHelpers.findWithAssert(selector, context); - run($el, 'mousedown'); - - if ($el.is(':input, [contenteditable=true]')) { - var type = $el.prop('type'); - if (type !== 'checkbox' && type !== 'radio' && type !== 'hidden') { - run($el, function(){ - // Firefox does not trigger the `focusin` event if the window - // does not have focus. If the document doesn't have focus just - // use trigger('focusin') instead. - if (!document.hasFocus || document.hasFocus()) { - this.focus(); - } else { - this.trigger('focusin'); - } - }); - } - } - - run($el, 'mouseup'); - run($el, 'click'); - - return app.testHelpers.wait(); - } - - function triggerEvent(app, selector, contextOrType, typeOrOptions, possibleOptions){ - var arity = arguments.length; - var context, type, options; - - if (arity === 3) { - // context and options are optional, so this is - // app, selector, type - context = null; - type = contextOrType; - options = {}; - } else if (arity === 4) { - // context and options are optional, so this is - if (typeof typeOrOptions === "object") { // either - // app, selector, type, options - context = null; - type = contextOrType; - options = typeOrOptions; - } else { // or - // app, selector, context, type - context = contextOrType; - type = typeOrOptions; - options = {}; - } - } else { - context = contextOrType; - type = typeOrOptions; - options = possibleOptions; - } - - var $el = app.testHelpers.findWithAssert(selector, context); - - var event = jQuery.Event(type, options); - - run($el, 'trigger', event); - - return app.testHelpers.wait(); - } - - function keyEvent(app, selector, contextOrType, typeOrKeyCode, keyCode) { - var context, type; - - if (typeof keyCode === 'undefined') { - context = null; - keyCode = typeOrKeyCode; - type = contextOrType; - } else { - context = contextOrType; - type = typeOrKeyCode; - } - - return app.testHelpers.triggerEvent(selector, context, type, { keyCode: keyCode, which: keyCode }); - } - - function fillIn(app, selector, contextOrText, text) { - var $el, context; - if (typeof text === 'undefined') { - text = contextOrText; - } else { - context = contextOrText; - } - $el = app.testHelpers.findWithAssert(selector, context); - run(function() { - $el.val(text).change(); - }); - return app.testHelpers.wait(); - } - - function findWithAssert(app, selector, context) { - var $el = app.testHelpers.find(selector, context); - if ($el.length === 0) { - throw new EmberError("Element " + selector + " not found."); - } - return $el; - } - - function find(app, selector, context) { - var $el; - context = context || get(app, 'rootElement'); - $el = app.$(selector, context); - - return $el; - } - - function andThen(app, callback) { - return app.testHelpers.wait(callback(app)); - } - - function wait(app, value) { - return Test.promise(function(resolve) { - // If this is the first async promise, kick off the async test - if (++countAsync === 1) { - Test.adapter.asyncStart(); - } - - // Every 10ms, poll for the async thing to have finished - var watcher = setInterval(function() { - var router = app.__container__.lookup('router:main'); - - // 1. If the router is loading, keep polling - var routerIsLoading = router.router && !!router.router.activeTransition; - if (routerIsLoading) { return; } - - // 2. If there are pending Ajax requests, keep polling - if (Test.pendingAjaxRequests) { return; } - - // 3. If there are scheduled timers or we are inside of a run loop, keep polling - if (run.hasScheduledTimers() || run.currentRunLoop) { return; } - if (Test.waiters && Test.waiters.any(function(waiter) { - var context = waiter[0]; - var callback = waiter[1]; - return !callback.call(context); - })) { return; } - // Stop polling - clearInterval(watcher); - - // If this is the last async promise, end the async test - if (--countAsync === 0) { - Test.adapter.asyncEnd(); - } - - // Synchronously resolve the promise - run(null, resolve, value); - }, 10); - }); - - } - - - /** - * Loads a route, sets up any controllers, and renders any templates associated - * with the route as though a real user had triggered the route change while - * using your app. - * - * Example: - * - * ```javascript - * visit('posts/index').then(function() { - * // assert something - * }); - * ``` - * - * @method visit - * @param {String} url the name of the route - * @return {RSVP.Promise} - */ - asyncHelper('visit', visit); - - /** - * Clicks an element and triggers any actions triggered by the element's `click` - * event. - * - * Example: - * - * ```javascript - * click('.some-jQuery-selector').then(function() { - * // assert something - * }); - * ``` - * - * @method click - * @param {String} selector jQuery selector for finding element on the DOM - * @return {RSVP.Promise} - */ - asyncHelper('click', click); - - /** - * Simulates a key event, e.g. `keypress`, `keydown`, `keyup` with the desired keyCode - * - * Example: - * - * ```javascript - * keyEvent('.some-jQuery-selector', 'keypress', 13).then(function() { - * // assert something - * }); - * ``` - * - * @method keyEvent - * @param {String} selector jQuery selector for finding element on the DOM - * @param {String} type the type of key event, e.g. `keypress`, `keydown`, `keyup` - * @param {Number} keyCode the keyCode of the simulated key event - * @return {RSVP.Promise} - * @since 1.5.0 - */ - asyncHelper('keyEvent', keyEvent); - - /** - * Fills in an input element with some text. - * - * Example: - * - * ```javascript - * fillIn('#email', 'you@example.com').then(function() { - * // assert something - * }); - * ``` - * - * @method fillIn - * @param {String} selector jQuery selector finding an input element on the DOM - * to fill text with - * @param {String} text text to place inside the input element - * @return {RSVP.Promise} - */ - asyncHelper('fillIn', fillIn); - - /** - * Finds an element in the context of the app's container element. A simple alias - * for `app.$(selector)`. - * - * Example: - * - * ```javascript - * var $el = find('.my-selector'); - * ``` - * - * @method find - * @param {String} selector jQuery string selector for element lookup - * @return {Object} jQuery object representing the results of the query - */ - helper('find', find); - - /** - * Like `find`, but throws an error if the element selector returns no results. - * - * Example: - * - * ```javascript - * var $el = findWithAssert('.doesnt-exist'); // throws error - * ``` - * - * @method findWithAssert - * @param {String} selector jQuery selector string for finding an element within - * the DOM - * @return {Object} jQuery object representing the results of the query - * @throws {Error} throws error if jQuery object returned has a length of 0 - */ - helper('findWithAssert', findWithAssert); - - /** - Causes the run loop to process any pending events. This is used to ensure that - any async operations from other helpers (or your assertions) have been processed. - - This is most often used as the return value for the helper functions (see 'click', - 'fillIn','visit',etc). - - Example: - - ```javascript - Ember.Test.registerAsyncHelper('loginUser', function(app, username, password) { - visit('secured/path/here') - .fillIn('#username', username) - .fillIn('#password', password) - .click('.submit') - - return app.testHelpers.wait(); - }); - - @method wait - @param {Object} value The value to be returned. - @return {RSVP.Promise} - */ - asyncHelper('wait', wait); - asyncHelper('andThen', andThen); - - - /** - Returns the currently active route name. - - Example: - - ```javascript - function validateRouteName(){ - equal(currentRouteName(), 'some.path', "correct route was transitioned into."); - } - - visit('/some/path').then(validateRouteName) - ``` - - @method currentRouteName - @return {Object} The name of the currently active route. - @since 1.5.0 - */ - helper('currentRouteName', currentRouteName); - - /** - Returns the current path. - - Example: - - ```javascript - function validateURL(){ - equal(currentPath(), 'some.path.index', "correct path was transitioned into."); - } - - click('#some-link-id').then(validateURL); - ``` - - @method currentPath - @return {Object} The currently active path. - @since 1.5.0 - */ - helper('currentPath', currentPath); - - /** - Returns the current URL. - - Example: - - ```javascript - function validateURL(){ - equal(currentURL(), '/some/path', "correct URL was transitioned into."); - } - - click('#some-link-id').then(validateURL); - ``` - - @method currentURL - @return {Object} The currently active URL. - @since 1.5.0 - */ - helper('currentURL', currentURL); - - - /** - Pauses the current test - this is useful for debugging while testing or for test-driving. - It allows you to inspect the state of your application at any point. - - Example (The test will pause before clicking the button): - - ```javascript - visit('/') - return pauseTest(); - - click('.btn'); - ``` - - @since 1.9.0 - @method pauseTest - @return {Object} A promise that will never resolve - */ - helper('pauseTest', pauseTest); - - - /** - Triggers the given DOM event on the element identified by the provided selector. - - Example: - - ```javascript - triggerEvent('#some-elem-id', 'blur'); - ``` - - This is actually used internally by the `keyEvent` helper like so: - - ```javascript - triggerEvent('#some-elem-id', 'keypress', { keyCode: 13 }); - ``` - - @method triggerEvent - @param {String} selector jQuery selector for finding element on the DOM - @param {String} [context] jQuery selector that will limit the selector - argument to find only within the context's children - @param {String} type The event type to be triggered. - @param {Object} [options] The options to be passed to jQuery.Event. - @return {RSVP.Promise} - @since 1.5.0 - */ - asyncHelper('triggerEvent', triggerEvent); - }); -enifed("ember-testing/initializers", - ["ember-runtime/system/lazy_load"], - function(__dependency1__) { - "use strict"; - var onLoad = __dependency1__.onLoad; - - var name = 'deferReadiness in `testing` mode'; - - onLoad('Ember.Application', function(Application) { - if (!Application.initializers[name]) { - Application.initializer({ - name: name, - - initialize: function(container, application){ - if (application.testing) { - application.deferReadiness(); - } - } - }); - } - }); - }); -enifed("ember-testing/setup_for_testing", - ["ember-metal/core","ember-testing/adapters/qunit","ember-views/system/jquery","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // import Test from "ember-testing/test"; // ES6TODO: fix when cycles are supported - var QUnitAdapter = __dependency2__["default"]; - var jQuery = __dependency3__["default"]; - - var Test, requests; - - function incrementAjaxPendingRequests(_, xhr){ - requests.push(xhr); - Test.pendingAjaxRequests = requests.length; - } - - function decrementAjaxPendingRequests(_, xhr){ - for (var i=0;i') - .css({ position: 'absolute', left: '-1000px', top: '-1000px' }) - .appendTo('body') - .on('click', handler) - .trigger('click') - .remove(); - } - - $(function() { - /* - Determine whether a checkbox checked using jQuery's "click" method will have - the correct value for its checked property. - - If we determine that the current jQuery version exhibits this behavior, - patch it to work correctly as in the commit for the actual fix: - https://github.com/jquery/jquery/commit/1fb2f92. - */ - testCheckboxClick(function() { - if (!this.checked && !$.event.special.click) { - $.event.special.click = { - // For checkbox, fire native event so checked state will be right - trigger: function() { - if ($.nodeName( this, "input" ) && this.type === "checkbox" && this.click) { - this.click(); - return false; - } - } - }; - } - }); - - // Try again to verify that the patch took effect or blow up. - testCheckboxClick(function() { - Ember.warn("clicked checkboxes should be checked! the jQuery patch didn't work", this.checked); - }); - }); - }); -enifed("ember-testing/test", - ["ember-metal/core","ember-metal/run_loop","ember-metal/platform","ember-runtime/ext/rsvp","ember-testing/setup_for_testing","ember-application/system/application","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - var emberRun = __dependency2__["default"]; - var create = __dependency3__.create; - var RSVP = __dependency4__["default"]; - var setupForTesting = __dependency5__["default"]; - var EmberApplication = __dependency6__["default"]; - - /** - @module ember - @submodule ember-testing - */ - var slice = [].slice; - var helpers = {}; - var injectHelpersCallbacks = []; - - /** - This is a container for an assortment of testing related functionality: - - * Choose your default test adapter (for your framework of choice). - * Register/Unregister additional test helpers. - * Setup callbacks to be fired when the test helpers are injected into - your application. - - @class Test - @namespace Ember - */ - var Test = { - /** - Hash containing all known test helpers. - - @property _helpers - @private - @since 1.7.0 - */ - _helpers: helpers, - - /** - `registerHelper` is used to register a test helper that will be injected - when `App.injectTestHelpers` is called. - - The helper method will always be called with the current Application as - the first parameter. - - For example: - - ```javascript - Ember.Test.registerHelper('boot', function(app) { - Ember.run(app, app.advanceReadiness); - }); - ``` - - This helper can later be called without arguments because it will be - called with `app` as the first parameter. - - ```javascript - App = Ember.Application.create(); - App.injectTestHelpers(); - boot(); - ``` - - @public - @method registerHelper - @param {String} name The name of the helper method to add. - @param {Function} helperMethod - @param options {Object} - */ - registerHelper: function(name, helperMethod) { - helpers[name] = { - method: helperMethod, - meta: { wait: false } - }; - }, - - /** - `registerAsyncHelper` is used to register an async test helper that will be injected - when `App.injectTestHelpers` is called. - - The helper method will always be called with the current Application as - the first parameter. - - For example: - - ```javascript - Ember.Test.registerAsyncHelper('boot', function(app) { - Ember.run(app, app.advanceReadiness); - }); - ``` - - The advantage of an async helper is that it will not run - until the last async helper has completed. All async helpers - after it will wait for it complete before running. - - - For example: - - ```javascript - Ember.Test.registerAsyncHelper('deletePost', function(app, postId) { - click('.delete-' + postId); - }); - - // ... in your test - visit('/post/2'); - deletePost(2); - visit('/post/3'); - deletePost(3); - ``` - - @public - @method registerAsyncHelper - @param {String} name The name of the helper method to add. - @param {Function} helperMethod - @since 1.2.0 - */ - registerAsyncHelper: function(name, helperMethod) { - helpers[name] = { - method: helperMethod, - meta: { wait: true } - }; - }, - - /** - Remove a previously added helper method. - - Example: - - ```javascript - Ember.Test.unregisterHelper('wait'); - ``` - - @public - @method unregisterHelper - @param {String} name The helper to remove. - */ - unregisterHelper: function(name) { - delete helpers[name]; - delete Test.Promise.prototype[name]; - }, - - /** - Used to register callbacks to be fired whenever `App.injectTestHelpers` - is called. - - The callback will receive the current application as an argument. - - Example: - - ```javascript - Ember.Test.onInjectHelpers(function() { - Ember.$(document).ajaxSend(function() { - Test.pendingAjaxRequests++; - }); - - Ember.$(document).ajaxComplete(function() { - Test.pendingAjaxRequests--; - }); - }); - ``` - - @public - @method onInjectHelpers - @param {Function} callback The function to be called. - */ - onInjectHelpers: function(callback) { - injectHelpersCallbacks.push(callback); - }, - - /** - This returns a thenable tailored for testing. It catches failed - `onSuccess` callbacks and invokes the `Ember.Test.adapter.exception` - callback in the last chained then. - - This method should be returned by async helpers such as `wait`. - - @public - @method promise - @param {Function} resolver The function used to resolve the promise. - */ - promise: function(resolver) { - return new Test.Promise(resolver); - }, - - /** - Used to allow ember-testing to communicate with a specific testing - framework. - - You can manually set it before calling `App.setupForTesting()`. - - Example: - - ```javascript - Ember.Test.adapter = MyCustomAdapter.create() - ``` - - If you do not set it, ember-testing will default to `Ember.Test.QUnitAdapter`. - - @public - @property adapter - @type {Class} The adapter to be used. - @default Ember.Test.QUnitAdapter - */ - adapter: null, - - /** - Replacement for `Ember.RSVP.resolve` - The only difference is this uses - an instance of `Ember.Test.Promise` - - @public - @method resolve - @param {Mixed} The value to resolve - @since 1.2.0 - */ - resolve: function(val) { - return Test.promise(function(resolve) { - return resolve(val); - }); - }, - - /** - This allows ember-testing to play nicely with other asynchronous - events, such as an application that is waiting for a CSS3 - transition or an IndexDB transaction. - - For example: - - ```javascript - Ember.Test.registerWaiter(function() { - return myPendingTransactions() == 0; - }); - ``` - The `context` argument allows you to optionally specify the `this` - with which your callback will be invoked. - - For example: - - ```javascript - Ember.Test.registerWaiter(MyDB, MyDB.hasPendingTransactions); - ``` - - @public - @method registerWaiter - @param {Object} context (optional) - @param {Function} callback - @since 1.2.0 - */ - registerWaiter: function(context, callback) { - if (arguments.length === 1) { - callback = context; - context = null; - } - if (!this.waiters) { - this.waiters = Ember.A(); - } - this.waiters.push([context, callback]); - }, - /** - `unregisterWaiter` is used to unregister a callback that was - registered with `registerWaiter`. - - @public - @method unregisterWaiter - @param {Object} context (optional) - @param {Function} callback - @since 1.2.0 - */ - unregisterWaiter: function(context, callback) { - if (!this.waiters) { return; } - if (arguments.length === 1) { - callback = context; - context = null; - } - this.waiters = Ember.A(this.waiters.filter(function(elt) { - return !(elt[0] === context && elt[1] === callback); - })); - } - }; - - function helper(app, name) { - var fn = helpers[name].method; - var meta = helpers[name].meta; - - return function() { - var args = slice.call(arguments); - var lastPromise = Test.lastPromise; - - args.unshift(app); - - // some helpers are not async and - // need to return a value immediately. - // example: `find` - if (!meta.wait) { - return fn.apply(app, args); - } - - if (!lastPromise) { - // It's the first async helper in current context - lastPromise = fn.apply(app, args); - } else { - // wait for last helper's promise to resolve - // and then execute - run(function() { - lastPromise = Test.resolve(lastPromise).then(function() { - return fn.apply(app, args); - }); - }); - } - - return lastPromise; - }; - } - - function run(fn) { - if (!emberRun.currentRunLoop) { - emberRun(fn); - } else { - fn(); - } - } - - EmberApplication.reopen({ - /** - This property contains the testing helpers for the current application. These - are created once you call `injectTestHelpers` on your `Ember.Application` - instance. The included helpers are also available on the `window` object by - default, but can be used from this object on the individual application also. - - @property testHelpers - @type {Object} - @default {} - */ - testHelpers: {}, - - /** - This property will contain the original methods that were registered - on the `helperContainer` before `injectTestHelpers` is called. - - When `removeTestHelpers` is called, these methods are restored to the - `helperContainer`. - - @property originalMethods - @type {Object} - @default {} - @private - @since 1.3.0 - */ - originalMethods: {}, - - - /** - This property indicates whether or not this application is currently in - testing mode. This is set when `setupForTesting` is called on the current - application. - - @property testing - @type {Boolean} - @default false - @since 1.3.0 - */ - testing: false, - - /** - This hook defers the readiness of the application, so that you can start - the app when your tests are ready to run. It also sets the router's - location to 'none', so that the window's location will not be modified - (preventing both accidental leaking of state between tests and interference - with your testing framework). - - Example: - - ``` - App.setupForTesting(); - ``` - - @method setupForTesting - */ - setupForTesting: function() { - setupForTesting(); - - this.testing = true; - - this.Router.reopen({ - location: 'none' - }); - }, - - /** - This will be used as the container to inject the test helpers into. By - default the helpers are injected into `window`. - - @property helperContainer - @type {Object} The object to be used for test helpers. - @default window - @since 1.2.0 - */ - helperContainer: window, - - /** - This injects the test helpers into the `helperContainer` object. If an object is provided - it will be used as the helperContainer. If `helperContainer` is not set it will default - to `window`. If a function of the same name has already been defined it will be cached - (so that it can be reset if the helper is removed with `unregisterHelper` or - `removeTestHelpers`). - - Any callbacks registered with `onInjectHelpers` will be called once the - helpers have been injected. - - Example: - ``` - App.injectTestHelpers(); - ``` - - @method injectTestHelpers - */ - injectTestHelpers: function(helperContainer) { - if (helperContainer) { this.helperContainer = helperContainer; } - - this.testHelpers = {}; - for (var name in helpers) { - this.originalMethods[name] = this.helperContainer[name]; - this.testHelpers[name] = this.helperContainer[name] = helper(this, name); - protoWrap(Test.Promise.prototype, name, helper(this, name), helpers[name].meta.wait); - } - - for(var i = 0, l = injectHelpersCallbacks.length; i < l; i++) { - injectHelpersCallbacks[i](this); - } - }, - - /** - This removes all helpers that have been registered, and resets and functions - that were overridden by the helpers. - - Example: - - ```javascript - App.removeTestHelpers(); - ``` - - @public - @method removeTestHelpers - */ - removeTestHelpers: function() { - for (var name in helpers) { - this.helperContainer[name] = this.originalMethods[name]; - delete this.testHelpers[name]; - delete this.originalMethods[name]; - } - } - }); - - // This method is no longer needed - // But still here for backwards compatibility - // of helper chaining - function protoWrap(proto, name, callback, isAsync) { - proto[name] = function() { - var args = arguments; - if (isAsync) { - return callback.apply(this, args); - } else { - return this.then(function() { - return callback.apply(this, args); - }); - } - }; - } - - Test.Promise = function() { - RSVP.Promise.apply(this, arguments); - Test.lastPromise = this; - }; - - Test.Promise.prototype = create(RSVP.Promise.prototype); - Test.Promise.prototype.constructor = Test.Promise; - - // Patch `then` to isolate async methods - // specifically `Ember.Test.lastPromise` - var originalThen = RSVP.Promise.prototype.then; - Test.Promise.prototype.then = function(onSuccess, onFailure) { - return originalThen.call(this, function(val) { - return isolate(onSuccess, val); - }, onFailure); - }; - - // This method isolates nested async methods - // so that they don't conflict with other last promises. - // - // 1. Set `Ember.Test.lastPromise` to null - // 2. Invoke method - // 3. Return the last promise created during method - // 4. Restore `Ember.Test.lastPromise` to original value - function isolate(fn, val) { - var value, lastPromise; - - // Reset lastPromise for nested helpers - Test.lastPromise = null; - - value = fn(val); - - lastPromise = Test.lastPromise; - - // If the method returned a promise - // return that promise. If not, - // return the last async helper's promise - if ((value && (value instanceof Test.Promise)) || !lastPromise) { - return value; - } else { - run(function() { - lastPromise = Test.resolve(lastPromise).then(function() { - return value; - }); - }); - return lastPromise; - } - } - - __exports__["default"] = Test; - }); -enifed("ember-views", - ["ember-runtime","ember-views/system/jquery","ember-views/system/utils","ember-views/system/render_buffer","ember-views/system/ext","ember-views/views/states","ember-views/views/core_view","ember-views/views/view","ember-views/views/container_view","ember-views/views/collection_view","ember-views/views/component","ember-views/system/event_dispatcher","ember-views/mixins/view_target_action_support","ember-views/component_lookup","ember-views/views/checkbox","ember-views/mixins/text_support","ember-views/views/text_field","ember-views/views/text_area","ember-views/views/bound_view","ember-views/views/simple_bound_view","ember-views/views/metamorph_view","ember-views/views/select","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __dependency17__, __dependency18__, __dependency19__, __dependency20__, __dependency21__, __dependency22__, __exports__) { - "use strict"; - /** - Ember Views - - @module ember - @submodule ember-views - @requires ember-runtime - @main ember-views - */ - - // BEGIN IMPORTS - var Ember = __dependency1__["default"]; - var jQuery = __dependency2__["default"]; - var isSimpleClick = __dependency3__.isSimpleClick; - var getViewClientRects = __dependency3__.getViewClientRects; - var getViewBoundingClientRect = __dependency3__.getViewBoundingClientRect; - var RenderBuffer = __dependency4__["default"]; - // for the side effect of extending Ember.run.queues - var cloneStates = __dependency6__.cloneStates; - var states = __dependency6__.states; - - var CoreView = __dependency7__["default"]; - var View = __dependency8__["default"]; - var ContainerView = __dependency9__["default"]; - var CollectionView = __dependency10__["default"]; - var Component = __dependency11__["default"]; - - var EventDispatcher = __dependency12__["default"]; - var ViewTargetActionSupport = __dependency13__["default"]; - var ComponentLookup = __dependency14__["default"]; - var Checkbox = __dependency15__["default"]; - var TextSupport = __dependency16__["default"]; - var TextField = __dependency17__["default"]; - var TextArea = __dependency18__["default"]; - - var BoundView = __dependency19__["default"]; - var SimpleBoundView = __dependency20__["default"]; - var _MetamorphView = __dependency21__["default"]; - var _SimpleMetamorphView = __dependency21__._SimpleMetamorphView; - var _Metamorph = __dependency21__._Metamorph; - var Select = __dependency22__.Select; - var SelectOption = __dependency22__.SelectOption; - var SelectOptgroup = __dependency22__.SelectOptgroup; - // END IMPORTS - - /** - Alias for jQuery - - @method $ - @for Ember - */ - - // BEGIN EXPORTS - Ember.$ = jQuery; - - Ember.ViewTargetActionSupport = ViewTargetActionSupport; - Ember.RenderBuffer = RenderBuffer; - - var ViewUtils = Ember.ViewUtils = {}; - ViewUtils.isSimpleClick = isSimpleClick; - ViewUtils.getViewClientRects = getViewClientRects; - ViewUtils.getViewBoundingClientRect = getViewBoundingClientRect; - - Ember.CoreView = CoreView; - Ember.View = View; - Ember.View.states = states; - Ember.View.cloneStates = cloneStates; - Ember.Checkbox = Checkbox; - Ember.TextField = TextField; - Ember.TextArea = TextArea; - - Ember._SimpleBoundView = SimpleBoundView; - Ember._BoundView = BoundView; - Ember._SimpleMetamorphView = _SimpleMetamorphView; - Ember._MetamorphView = _MetamorphView; - Ember._Metamorph = _Metamorph; - Ember.Select = Select; - Ember.SelectOption = SelectOption; - Ember.SelectOptgroup = SelectOptgroup; - - Ember.TextSupport = TextSupport; - Ember.ComponentLookup = ComponentLookup; - Ember.ContainerView = ContainerView; - Ember.CollectionView = CollectionView; - Ember.Component = Component; - Ember.EventDispatcher = EventDispatcher; - // END EXPORTS - - __exports__["default"] = Ember; - }); -enifed("ember-views/attr_nodes/attr_node", - ["ember-metal/streams/utils","ember-metal/run_loop","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var read = __dependency1__.read; - var subscribe = __dependency1__.subscribe; - var unsubscribe = __dependency1__.unsubscribe; - var run = __dependency2__["default"]; - - function AttrNode(attrName, attrValue) { - this.init(attrName, attrValue); - } - - AttrNode.prototype.init = function init(attrName, simpleAttrValue){ - this.isView = true; - - // That these semantics are used is very unfortunate. - this.tagName = ''; - this.classNameBindings = []; - - this.attrName = attrName; - this.attrValue = simpleAttrValue; - this.isDirty = true; - this.lastValue = null; - - subscribe(this.attrValue, this.rerender, this); - }; - - AttrNode.prototype.renderIfDirty = function renderIfDirty(){ - if (this.isDirty) { - var value = read(this.attrValue); - if (value !== this.lastValue) { - this._renderer.renderTree(this, this._parentView); - } else { - this.isDirty = false; - } - } - }; - - AttrNode.prototype.render = function render(buffer) { - this.isDirty = false; - var value = read(this.attrValue); - - this._morph.setContent(value); - - this.lastValue = value; - }; - - AttrNode.prototype.rerender = function render() { - this.isDirty = true; - run.schedule('render', this, this.renderIfDirty); - }; - - AttrNode.prototype.destroy = function render() { - this.isDirty = false; - unsubscribe(this.attrValue, this.rerender, this); - - var parent = this._parentView; - if (parent) { parent.removeChild(this); } - }; - - __exports__["default"] = AttrNode; - }); -enifed("ember-views/attr_nodes/legacy_bind", - ["./attr_node","ember-runtime/system/string","ember-metal/utils","ember-metal/streams/utils","ember-metal/platform/create","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-htmlbars - */ - - var AttrNode = __dependency1__["default"]; - var fmt = __dependency2__.fmt; - var typeOf = __dependency3__.typeOf; - var read = __dependency4__.read; - var create = __dependency5__["default"]; - - function LegacyBindAttrNode(attrName, attrValue) { - this.init(attrName, attrValue); - } - - LegacyBindAttrNode.prototype = create(AttrNode.prototype); - - LegacyBindAttrNode.prototype.render = function render(buffer) { - this.isDirty = false; - var value = read(this.attrValue); - var type = typeOf(value); - - Ember.assert(fmt("Attributes must be numbers, strings or booleans, not %@", [value]), - value === null || value === undefined || type === 'number' || type === 'string' || type === 'boolean'); - - this._morph.setContent(value); - - this.lastValue = value; - }; - - __exports__["default"] = LegacyBindAttrNode; - }); -enifed("ember-views/component_lookup", - ["ember-runtime/system/object","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var EmberObject = __dependency1__["default"]; - - __exports__["default"] = EmberObject.extend({ - lookupFactory: function(name, container) { - - container = container || this.container; - - var fullName = 'component:' + name; - var templateFullName = 'template:components/' + name; - var templateRegistered = container && container.has(templateFullName); - - if (templateRegistered) { - container.injection(fullName, 'layout', templateFullName); - } - - var Component = container.lookupFactory(fullName); - - // Only treat as a component if either the component - // or a template has been registered. - if (templateRegistered || Component) { - if (!Component) { - container.register(fullName, Ember.Component); - Component = container.lookupFactory(fullName); - } - return Component; - } - } - }); - }); -enifed("ember-views/mixins/component_template_deprecation", - ["ember-metal/core","ember-metal/property_get","ember-metal/mixin","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // Ember.deprecate - var get = __dependency2__.get; - var Mixin = __dependency3__.Mixin; - - /** - The ComponentTemplateDeprecation mixin is used to provide a useful - deprecation warning when using either `template` or `templateName` with - a component. The `template` and `templateName` properties specified at - extend time are moved to `layout` and `layoutName` respectively. - - `Ember.ComponentTemplateDeprecation` is used internally by Ember in - `Ember.Component`. - - @class ComponentTemplateDeprecation - @namespace Ember - */ - __exports__["default"] = Mixin.create({ - /** - @private - - Moves `templateName` to `layoutName` and `template` to `layout` at extend - time if a layout is not also specified. - - Note that this currently modifies the mixin themselves, which is technically - dubious but is practically of little consequence. This may change in the - future. - - @method willMergeMixin - @since 1.4.0 - */ - willMergeMixin: function(props) { - // must call _super here to ensure that the ActionHandler - // mixin is setup properly (moves actions -> _actions) - // - // Calling super is only OK here since we KNOW that - // there is another Mixin loaded first. - this._super.apply(this, arguments); - - var deprecatedProperty, replacementProperty; - var layoutSpecified = (props.layoutName || props.layout || get(this, 'layoutName')); - - if (props.templateName && !layoutSpecified) { - deprecatedProperty = 'templateName'; - replacementProperty = 'layoutName'; - - props.layoutName = props.templateName; - delete props['templateName']; - } - - if (props.template && !layoutSpecified) { - deprecatedProperty = 'template'; - replacementProperty = 'layout'; - - props.layout = props.template; - delete props['template']; - } - - Ember.deprecate('Do not specify ' + deprecatedProperty + ' on a Component, use ' + replacementProperty + ' instead.', !deprecatedProperty); - } - }); - }); -enifed("ember-views/mixins/text_support", - ["ember-metal/property_get","ember-metal/property_set","ember-metal/mixin","ember-runtime/mixins/target_action_support","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-views - */ - - var get = __dependency1__.get; - var set = __dependency2__.set; - var Mixin = __dependency3__.Mixin; - var TargetActionSupport = __dependency4__["default"]; - - /** - `TextSupport` is a shared mixin used by both `Ember.TextField` and - `Ember.TextArea`. `TextSupport` adds a number of methods that allow you to - specify a controller action to invoke when a certain event is fired on your - text field or textarea. The specifed controller action would get the current - value of the field passed in as the only argument unless the value of - the field is empty. In that case, the instance of the field itself is passed - in as the only argument. - - Let's use the pressing of the escape key as an example. If you wanted to - invoke a controller action when a user presses the escape key while on your - field, you would use the `escape-press` attribute on your field like so: - - ```handlebars - {{! application.hbs}} - - {{input escape-press='alertUser'}} - ``` - - ```javascript - App = Ember.Application.create(); - - App.ApplicationController = Ember.Controller.extend({ - actions: { - alertUser: function ( currentValue ) { - alert( 'escape pressed, current value: ' + currentValue ); - } - } - }); - ``` - - The following chart is a visual representation of what takes place when the - escape key is pressed in this scenario: - - The Template - +---------------------------+ - | | - | escape-press='alertUser' | - | | TextSupport Mixin - +----+----------------------+ +-------------------------------+ - | | cancel method | - | escape button pressed | | - +-------------------------------> | checks for the `escape-press` | - | attribute and pulls out the | - +-------------------------------+ | `alertUser` value | - | action name 'alertUser' +-------------------------------+ - | sent to controller - v - Controller - +------------------------------------------ + - | | - | actions: { | - | alertUser: function( currentValue ){ | - | alert( 'the esc key was pressed!' ) | - | } | - | } | - | | - +-------------------------------------------+ - - Here are the events that we currently support along with the name of the - attribute you would need to use on your field. To reiterate, you would use the - attribute name like so: - - ```handlebars - {{input attribute-name='controllerAction'}} - ``` - - +--------------------+----------------+ - | | | - | event | attribute name | - +--------------------+----------------+ - | new line inserted | insert-newline | - | | | - | enter key pressed | insert-newline | - | | | - | cancel key pressed | escape-press | - | | | - | focusin | focus-in | - | | | - | focusout | focus-out | - | | | - | keypress | key-press | - | | | - | keyup | key-up | - | | | - | keydown | key-down | - +--------------------+----------------+ - - @class TextSupport - @namespace Ember - @uses Ember.TargetActionSupport - @extends Ember.Mixin - @private - */ - var TextSupport = Mixin.create(TargetActionSupport, { - value: "", - - attributeBindings: [ - 'autocapitalize', - 'autocorrect', - 'autofocus', - 'disabled', - 'form', - 'maxlength', - 'placeholder', - 'readonly', - 'required', - 'selectionDirection', - 'spellcheck', - 'tabindex', - 'title' - ], - placeholder: null, - disabled: false, - maxlength: null, - - init: function() { - this._super(); - this.on("paste", this, this._elementValueDidChange); - this.on("cut", this, this._elementValueDidChange); - this.on("input", this, this._elementValueDidChange); - }, - - /** - The action to be sent when the user presses the return key. - - This is similar to the `{{action}}` helper, but is fired when - the user presses the return key when editing a text field, and sends - the value of the field as the context. - - @property action - @type String - @default null - */ - action: null, - - /** - The event that should send the action. - - Options are: - - * `enter`: the user pressed enter - * `keyPress`: the user pressed a key - - @property onEvent - @type String - @default enter - */ - onEvent: 'enter', - - /** - Whether the `keyUp` event that triggers an `action` to be sent continues - propagating to other views. - - By default, when the user presses the return key on their keyboard and - the text field has an `action` set, the action will be sent to the view's - controller and the key event will stop propagating. - - If you would like parent views to receive the `keyUp` event even after an - action has been dispatched, set `bubbles` to true. - - @property bubbles - @type Boolean - @default false - */ - bubbles: false, - - interpretKeyEvents: function(event) { - var map = TextSupport.KEY_EVENTS; - var method = map[event.keyCode]; - - this._elementValueDidChange(); - if (method) { return this[method](event); } - }, - - _elementValueDidChange: function() { - set(this, 'value', this.$().val()); - }, - - change: function(event) { - this._elementValueDidChange(event); - }, - - /** - Allows you to specify a controller action to invoke when either the `enter` - key is pressed or, in the case of the field being a textarea, when a newline - is inserted. To use this method, give your field an `insert-newline` - attribute. The value of that attribute should be the name of the action - in your controller that you wish to invoke. - - For an example on how to use the `insert-newline` attribute, please - reference the example near the top of this file. - - @method insertNewline - @param {Event} event - */ - insertNewline: function(event) { - sendAction('enter', this, event); - sendAction('insert-newline', this, event); - }, - - /** - Allows you to specify a controller action to invoke when the escape button - is pressed. To use this method, give your field an `escape-press` - attribute. The value of that attribute should be the name of the action - in your controller that you wish to invoke. - - For an example on how to use the `escape-press` attribute, please reference - the example near the top of this file. - - @method cancel - @param {Event} event - */ - cancel: function(event) { - sendAction('escape-press', this, event); - }, - - /** - Allows you to specify a controller action to invoke when a field receives - focus. To use this method, give your field a `focus-in` attribute. The value - of that attribute should be the name of the action in your controller - that you wish to invoke. - - For an example on how to use the `focus-in` attribute, please reference the - example near the top of this file. - - @method focusIn - @param {Event} event - */ - focusIn: function(event) { - sendAction('focus-in', this, event); - }, - - /** - Allows you to specify a controller action to invoke when a field loses - focus. To use this method, give your field a `focus-out` attribute. The value - of that attribute should be the name of the action in your controller - that you wish to invoke. - - For an example on how to use the `focus-out` attribute, please reference the - example near the top of this file. - - @method focusOut - @param {Event} event - */ - focusOut: function(event) { - this._elementValueDidChange(event); - sendAction('focus-out', this, event); - }, - - /** - Allows you to specify a controller action to invoke when a key is pressed. - To use this method, give your field a `key-press` attribute. The value of - that attribute should be the name of the action in your controller you - that wish to invoke. - - For an example on how to use the `key-press` attribute, please reference the - example near the top of this file. - - @method keyPress - @param {Event} event - */ - keyPress: function(event) { - sendAction('key-press', this, event); - }, - - /** - Allows you to specify a controller action to invoke when a key-up event is - fired. To use this method, give your field a `key-up` attribute. The value - of that attribute should be the name of the action in your controller - that you wish to invoke. - - For an example on how to use the `key-up` attribute, please reference the - example near the top of this file. - - @method keyUp - @param {Event} event - */ - keyUp: function(event) { - this.interpretKeyEvents(event); - - this.sendAction('key-up', get(this, 'value'), event); - }, - - /** - Allows you to specify a controller action to invoke when a key-down event is - fired. To use this method, give your field a `key-down` attribute. The value - of that attribute should be the name of the action in your controller that - you wish to invoke. - - For an example on how to use the `key-down` attribute, please reference the - example near the top of this file. - - @method keyDown - @param {Event} event - */ - keyDown: function(event) { - this.sendAction('key-down', get(this, 'value'), event); - } - }); - - TextSupport.KEY_EVENTS = { - 13: 'insertNewline', - 27: 'cancel' - }; - - // In principle, this shouldn't be necessary, but the legacy - // sendAction semantics for TextField are different from - // the component semantics so this method normalizes them. - function sendAction(eventName, view, event) { - var action = get(view, eventName); - var on = get(view, 'onEvent'); - var value = get(view, 'value'); - - // back-compat support for keyPress as an event name even though - // it's also a method name that consumes the event (and therefore - // incompatible with sendAction semantics). - if (on === eventName || (on === 'keyPress' && eventName === 'key-press')) { - view.sendAction('action', value); - } - - view.sendAction(eventName, value); - - if (action || on === eventName) { - if(!get(view, 'bubbles')) { - event.stopPropagation(); - } - } - } - - __exports__["default"] = TextSupport; - }); -enifed("ember-views/mixins/view_target_action_support", - ["ember-metal/mixin","ember-runtime/mixins/target_action_support","ember-metal/alias","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var Mixin = __dependency1__.Mixin; - var TargetActionSupport = __dependency2__["default"]; - var alias = __dependency3__["default"]; - - /** - `Ember.ViewTargetActionSupport` is a mixin that can be included in a - view class to add a `triggerAction` method with semantics similar to - the Handlebars `{{action}}` helper. It provides intelligent defaults - for the action's target: the view's controller; and the context that is - sent with the action: the view's context. - - Note: In normal Ember usage, the `{{action}}` helper is usually the best - choice. This mixin is most often useful when you are doing more complex - event handling in custom View subclasses. - - For example: - - ```javascript - App.SaveButtonView = Ember.View.extend(Ember.ViewTargetActionSupport, { - action: 'save', - click: function() { - this.triggerAction(); // Sends the `save` action, along with the current context - // to the current controller - } - }); - ``` - - The `action` can be provided as properties of an optional object argument - to `triggerAction` as well. - - ```javascript - App.SaveButtonView = Ember.View.extend(Ember.ViewTargetActionSupport, { - click: function() { - this.triggerAction({ - action: 'save' - }); // Sends the `save` action, along with the current context - // to the current controller - } - }); - ``` - - @class ViewTargetActionSupport - @namespace Ember - @extends Ember.TargetActionSupport - */ - __exports__["default"] = Mixin.create(TargetActionSupport, { - /** - @property target - */ - target: alias('controller'), - /** - @property actionContext - */ - actionContext: alias('context') - }); - }); -enifed("ember-views/streams/class_name_binding", - ["ember-metal/streams/utils","ember-metal/property_get","ember-runtime/system/string","ember-metal/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var chain = __dependency1__.chain; - var read = __dependency1__.read; - var get = __dependency2__.get; - var dasherize = __dependency3__.dasherize; - var isArray = __dependency4__.isArray; - - /** - Parse a path and return an object which holds the parsed properties. - - For example a path like "content.isEnabled:enabled:disabled" will return the - following object: - - ```javascript - { - path: "content.isEnabled", - className: "enabled", - falsyClassName: "disabled", - classNames: ":enabled:disabled" - } - ``` - - @method parsePropertyPath - @static - @private - */ - function parsePropertyPath(path) { - var split = path.split(':'); - var propertyPath = split[0]; - var classNames = ""; - var className, falsyClassName; - - // check if the property is defined as prop:class or prop:trueClass:falseClass - if (split.length > 1) { - className = split[1]; - if (split.length === 3) { - falsyClassName = split[2]; - } - - classNames = ':' + className; - if (falsyClassName) { - classNames += ":" + falsyClassName; - } - } - - return { - path: propertyPath, - classNames: classNames, - className: (className === '') ? undefined : className, - falsyClassName: falsyClassName - }; - } - - __exports__.parsePropertyPath = parsePropertyPath;/** - Get the class name for a given value, based on the path, optional - `className` and optional `falsyClassName`. - - - if a `className` or `falsyClassName` has been specified: - - if the value is truthy and `className` has been specified, - `className` is returned - - if the value is falsy and `falsyClassName` has been specified, - `falsyClassName` is returned - - otherwise `null` is returned - - if the value is `true`, the dasherized last part of the supplied path - is returned - - if the value is not `false`, `undefined` or `null`, the `value` - is returned - - if none of the above rules apply, `null` is returned - - @method classStringForValue - @param path - @param val - @param className - @param falsyClassName - @static - @private - */ - function classStringForValue(path, val, className, falsyClassName) { - if(isArray(val)) { - val = get(val, 'length') !== 0; - } - - // When using the colon syntax, evaluate the truthiness or falsiness - // of the value to determine which className to return - if (className || falsyClassName) { - if (className && !!val) { - return className; - - } else if (falsyClassName && !val) { - return falsyClassName; - - } else { - return null; - } - - // If value is a Boolean and true, return the dasherized property - // name. - } else if (val === true) { - // Normalize property path to be suitable for use - // as a class name. For exaple, content.foo.barBaz - // becomes bar-baz. - var parts = path.split('.'); - return dasherize(parts[parts.length-1]); - - // If the value is not false, undefined, or null, return the current - // value of the property. - } else if (val !== false && val != null) { - return val; - - // Nothing to display. Return null so that the old class is removed - // but no new class is added. - } else { - return null; - } - } - - __exports__.classStringForValue = classStringForValue;function streamifyClassNameBinding(view, classNameBinding, prefix){ - prefix = prefix || ''; - Ember.assert("classNameBindings must not have spaces in them. Multiple class name bindings can be provided as elements of an array, e.g. ['foo', ':bar']", classNameBinding.indexOf(' ') === -1); - var parsedPath = parsePropertyPath(classNameBinding); - if (parsedPath.path === '') { - return classStringForValue( - parsedPath.path, - true, - parsedPath.className, - parsedPath.falsyClassName - ); - } else { - var pathValue = view.getStream(prefix+parsedPath.path); - return chain(pathValue, function() { - return classStringForValue( - parsedPath.path, - read(pathValue), - parsedPath.className, - parsedPath.falsyClassName - ); - }); - } - } - - __exports__.streamifyClassNameBinding = streamifyClassNameBinding; - }); -enifed("ember-views/streams/conditional_stream", - ["ember-metal/streams/stream","ember-metal/streams/utils","ember-metal/platform","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var Stream = __dependency1__["default"]; - var read = __dependency2__.read; - var subscribe = __dependency2__.subscribe; - var unsubscribe = __dependency2__.unsubscribe; - var create = __dependency3__.create; - - function ConditionalStream(test, consequent, alternate) { - this.init(); - - this.oldTestResult = undefined; - this.test = test; - this.consequent = consequent; - this.alternate = alternate; - } - - ConditionalStream.prototype = create(Stream.prototype); - - ConditionalStream.prototype.valueFn = function() { - var oldTestResult = this.oldTestResult; - var newTestResult = !!read(this.test); - - if (newTestResult !== oldTestResult) { - switch (oldTestResult) { - case true: unsubscribe(this.consequent, this.notify, this); break; - case false: unsubscribe(this.alternate, this.notify, this); break; - case undefined: subscribe(this.test, this.notify, this); - } - - switch (newTestResult) { - case true: subscribe(this.consequent, this.notify, this); break; - case false: subscribe(this.alternate, this.notify, this); - } - - this.oldTestResult = newTestResult; - } - - return newTestResult ? read(this.consequent) : read(this.alternate); - }; - - __exports__["default"] = ConditionalStream; - }); -enifed("ember-views/streams/context_stream", - ["ember-metal/core","ember-metal/merge","ember-metal/platform","ember-metal/path_cache","ember-metal/streams/stream","ember-metal/streams/simple","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - - var merge = __dependency2__["default"]; - var create = __dependency3__.create; - var isGlobal = __dependency4__.isGlobal; - var Stream = __dependency5__["default"]; - var SimpleStream = __dependency6__["default"]; - - function ContextStream(view) { - Ember.assert("ContextStream error: the argument is not a view", view && view.isView); - - this.init(); - this.view = view; - } - - ContextStream.prototype = create(Stream.prototype); - - merge(ContextStream.prototype, { - value: function() {}, - - _makeChildStream: function(key, _fullPath) { - var stream; - - if (key === '' || key === 'this') { - stream = this.view._baseContext; - } else if (isGlobal(key) && Ember.lookup[key]) { - Ember.deprecate("Global lookup of " + _fullPath + " from a Handlebars template is deprecated."); - stream = new SimpleStream(Ember.lookup[key]); - stream._isGlobal = true; - } else if (key in this.view._keywords) { - stream = new SimpleStream(this.view._keywords[key]); - } else { - stream = new SimpleStream(this.view._baseContext.get(key)); - } - - stream._isRoot = true; - - if (key === 'controller') { - stream._isController = true; - } - - return stream; - } - }); - - __exports__["default"] = ContextStream; - }); -enifed("ember-views/streams/key_stream", - ["ember-metal/core","ember-metal/merge","ember-metal/platform","ember-metal/property_get","ember-metal/property_set","ember-metal/observer","ember-metal/streams/stream","ember-metal/streams/utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - - var merge = __dependency2__["default"]; - var create = __dependency3__.create; - var get = __dependency4__.get; - var set = __dependency5__.set; - var addObserver = __dependency6__.addObserver; - var removeObserver = __dependency6__.removeObserver; - var Stream = __dependency7__["default"]; - var read = __dependency8__.read; - var isStream = __dependency8__.isStream; - - function KeyStream(source, key) { - Ember.assert("KeyStream error: key must be a non-empty string", typeof key === 'string' && key.length > 0); - Ember.assert("KeyStream error: key must not have a '.'", key.indexOf('.') === -1); - - this.init(); - this.source = source; - this.obj = undefined; - this.key = key; - - if (isStream(source)) { - source.subscribe(this._didChange, this); - } - } - - KeyStream.prototype = create(Stream.prototype); - - merge(KeyStream.prototype, { - valueFn: function() { - var prevObj = this.obj; - var nextObj = read(this.source); - - if (nextObj !== prevObj) { - if (prevObj && typeof prevObj === 'object') { - removeObserver(prevObj, this.key, this, this._didChange); - } - - if (nextObj && typeof nextObj === 'object') { - addObserver(nextObj, this.key, this, this._didChange); - } - - this.obj = nextObj; - } - - if (nextObj) { - return get(nextObj, this.key); - } - }, - - setValue: function(value) { - if (this.obj) { - set(this.obj, this.key, value); - } - }, - - setSource: function(nextSource) { - Ember.assert("KeyStream error: source must be an object", typeof nextSource === 'object'); - - var prevSource = this.source; - - if (nextSource !== prevSource) { - if (isStream(prevSource)) { - prevSource.unsubscribe(this._didChange, this); - } - - if (isStream(nextSource)) { - nextSource.subscribe(this._didChange, this); - } - - this.source = nextSource; - this.notify(); - } - }, - - _didChange: function() { - this.notify(); - }, - - _super$destroy: Stream.prototype.destroy, - - destroy: function() { - if (this._super$destroy()) { - if (isStream(this.source)) { - this.source.unsubscribe(this._didChange, this); - } - - if (this.obj && typeof this.obj === 'object') { - removeObserver(this.obj, this.key, this, this._didChange); - } - - this.source = undefined; - this.obj = undefined; - return true; - } - } - }); - - __exports__["default"] = KeyStream; - - // The transpiler does not resolve cycles, so we export - // the `_makeChildStream` method onto `Stream` here. - - Stream.prototype._makeChildStream = function(key) { - return new KeyStream(this, key); - }; - }); -enifed("ember-views/streams/utils", - ["ember-metal/core","ember-metal/property_get","ember-metal/path_cache","ember-runtime/system/string","ember-metal/streams/utils","ember-views/views/view","ember-runtime/mixins/controller","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - var get = __dependency2__.get; - var isGlobal = __dependency3__.isGlobal; - var fmt = __dependency4__.fmt; - var read = __dependency5__.read; - var isStream = __dependency5__.isStream; - var View = __dependency6__["default"]; - var ControllerMixin = __dependency7__["default"]; - - function readViewFactory(object, container) { - var value = read(object); - var viewClass; - - if (typeof value === 'string') { - if (isGlobal(value)) { - viewClass = get(null, value); - Ember.deprecate('Resolved the view "'+value+'" on the global context. Pass a view name to be looked up on the container instead, such as {{view "select"}}.', !viewClass, { url: 'http://emberjs.com/guides/deprecations/#toc_global-lookup-of-views' }); - } else { - Ember.assert("View requires a container to resolve views not passed in through the context", !!container); - viewClass = container.lookupFactory('view:'+value); - } - } else { - viewClass = value; - } - - Ember.assert(fmt(value+" must be a subclass or an instance of Ember.View, not %@", [viewClass]), View.detect(viewClass) || View.detectInstance(viewClass)); - - return viewClass; - } - - __exports__.readViewFactory = readViewFactory;function readUnwrappedModel(object) { - if (isStream(object)) { - var result = object.value(); - - // If the path is exactly `controller` then we don't unwrap it. - if (!object._isController) { - while (ControllerMixin.detect(result)) { - result = get(result, 'model'); - } - } - - return result; - } else { - return object; - } - } - - __exports__.readUnwrappedModel = readUnwrappedModel; - }); -enifed("ember-views/system/action_manager", - ["exports"], - function(__exports__) { - "use strict"; - /** - @module ember - @submodule ember-views - */ - - function ActionManager() {} - - /** - Global action id hash. - - @private - @property registeredActions - @type Object - */ - ActionManager.registeredActions = {}; - - __exports__["default"] = ActionManager; - }); -enifed("ember-views/system/event_dispatcher", - ["ember-metal/core","ember-metal/property_get","ember-metal/property_set","ember-metal/is_none","ember-metal/run_loop","ember-metal/utils","ember-runtime/system/string","ember-runtime/system/object","ember-views/system/jquery","ember-views/system/action_manager","ember-views/views/view","ember-metal/merge","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-views - */ - var Ember = __dependency1__["default"]; - // Ember.assert - - var get = __dependency2__.get; - var set = __dependency3__.set; - var isNone = __dependency4__["default"]; - var run = __dependency5__["default"]; - var typeOf = __dependency6__.typeOf; - var fmt = __dependency7__.fmt; - var EmberObject = __dependency8__["default"]; - var jQuery = __dependency9__["default"]; - var ActionManager = __dependency10__["default"]; - var View = __dependency11__["default"]; - var merge = __dependency12__["default"]; - - //ES6TODO: - // find a better way to do Ember.View.views without global state - - /** - `Ember.EventDispatcher` handles delegating browser events to their - corresponding `Ember.Views.` For example, when you click on a view, - `Ember.EventDispatcher` ensures that that view's `mouseDown` method gets - called. - - @class EventDispatcher - @namespace Ember - @private - @extends Ember.Object - */ - __exports__["default"] = EmberObject.extend({ - - /** - The set of events names (and associated handler function names) to be setup - and dispatched by the `EventDispatcher`. Custom events can added to this list at setup - time, generally via the `Ember.Application.customEvents` hash. Only override this - default set to prevent the EventDispatcher from listening on some events all together. - - This set will be modified by `setup` to also include any events added at that time. - - @property events - @type Object - */ - events: { - touchstart : 'touchStart', - touchmove : 'touchMove', - touchend : 'touchEnd', - touchcancel : 'touchCancel', - keydown : 'keyDown', - keyup : 'keyUp', - keypress : 'keyPress', - mousedown : 'mouseDown', - mouseup : 'mouseUp', - contextmenu : 'contextMenu', - click : 'click', - dblclick : 'doubleClick', - mousemove : 'mouseMove', - focusin : 'focusIn', - focusout : 'focusOut', - mouseenter : 'mouseEnter', - mouseleave : 'mouseLeave', - submit : 'submit', - input : 'input', - change : 'change', - dragstart : 'dragStart', - drag : 'drag', - dragenter : 'dragEnter', - dragleave : 'dragLeave', - dragover : 'dragOver', - drop : 'drop', - dragend : 'dragEnd' - }, - - /** - The root DOM element to which event listeners should be attached. Event - listeners will be attached to the document unless this is overridden. - - Can be specified as a DOMElement or a selector string. - - The default body is a string since this may be evaluated before document.body - exists in the DOM. - - @private - @property rootElement - @type DOMElement - @default 'body' - */ - rootElement: 'body', - - /** - It enables events to be dispatched to the view's `eventManager.` When present, - this object takes precedence over handling of events on the view itself. - - Note that most Ember applications do not use this feature. If your app also - does not use it, consider setting this property to false to gain some performance - improvement by allowing the EventDispatcher to skip the search for the - `eventManager` on the view tree. - - ```javascript - var EventDispatcher = Em.EventDispatcher.extend({ - events: { - click : 'click', - focusin : 'focusIn', - focusout : 'focusOut', - change : 'change' - }, - canDispatchToEventManager: false - }); - container.register('event_dispatcher:main', EventDispatcher); - ``` - - @property canDispatchToEventManager - @type boolean - @default 'true' - @since 1.7.0 - */ - canDispatchToEventManager: true, - - /** - Sets up event listeners for standard browser events. - - This will be called after the browser sends a `DOMContentReady` event. By - default, it will set up all of the listeners on the document body. If you - would like to register the listeners on a different element, set the event - dispatcher's `root` property. - - @private - @method setup - @param addedEvents {Hash} - */ - setup: function(addedEvents, rootElement) { - var event, events = get(this, 'events'); - - merge(events, addedEvents || {}); - - if (!isNone(rootElement)) { - set(this, 'rootElement', rootElement); - } - - rootElement = jQuery(get(this, 'rootElement')); - - Ember.assert(fmt('You cannot use the same root element (%@) multiple times in an Ember.Application', [rootElement.selector || rootElement[0].tagName]), !rootElement.is('.ember-application')); - Ember.assert('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', !rootElement.closest('.ember-application').length); - Ember.assert('You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.find('.ember-application').length); - - rootElement.addClass('ember-application'); - - Ember.assert('Unable to add "ember-application" class to rootElement. Make sure you set rootElement to the body or an element in the body.', rootElement.is('.ember-application')); - - for (event in events) { - if (events.hasOwnProperty(event)) { - this.setupHandler(rootElement, event, events[event]); - } - } - }, - - /** - Registers an event listener on the rootElement. If the given event is - triggered, the provided event handler will be triggered on the target view. - - If the target view does not implement the event handler, or if the handler - returns `false`, the parent view will be called. The event will continue to - bubble to each successive parent view until it reaches the top. - - @private - @method setupHandler - @param {Element} rootElement - @param {String} event the browser-originated event to listen to - @param {String} eventName the name of the method to call on the view - */ - setupHandler: function(rootElement, event, eventName) { - var self = this; - - rootElement.on(event + '.ember', '.ember-view', function(evt, triggeringManager) { - var view = View.views[this.id]; - var result = true; - - var manager = self.canDispatchToEventManager ? self._findNearestEventManager(view, eventName) : null; - - if (manager && manager !== triggeringManager) { - result = self._dispatchEvent(manager, evt, eventName, view); - } else if (view) { - result = self._bubbleEvent(view, evt, eventName); - } - - return result; - }); - - rootElement.on(event + '.ember', '[data-ember-action]', function(evt) { - var actionId = jQuery(evt.currentTarget).attr('data-ember-action'); - var action = ActionManager.registeredActions[actionId]; - - // We have to check for action here since in some cases, jQuery will trigger - // an event on `removeChild` (i.e. focusout) after we've already torn down the - // action handlers for the view. - if (action && action.eventName === eventName) { - return action.handler(evt); - } - }); - }, - - _findNearestEventManager: function(view, eventName) { - var manager = null; - - while (view) { - manager = get(view, 'eventManager'); - if (manager && manager[eventName]) { break; } - - view = get(view, 'parentView'); - } - - return manager; - }, - - _dispatchEvent: function(object, evt, eventName, view) { - var result = true; - - var handler = object[eventName]; - if (typeOf(handler) === 'function') { - result = run(object, handler, evt, view); - // Do not preventDefault in eventManagers. - evt.stopPropagation(); - } - else { - result = this._bubbleEvent(view, evt, eventName); - } - - return result; - }, - - _bubbleEvent: function(view, evt, eventName) { - return run.join(view, view.handleEvent, eventName, evt); - }, - - destroy: function() { - var rootElement = get(this, 'rootElement'); - jQuery(rootElement).off('.ember', '**').removeClass('ember-application'); - return this._super(); - }, - - toString: function() { - return '(EventDispatcher)'; - } - }); - }); -enifed("ember-views/system/ext", - ["ember-metal/run_loop"], - function(__dependency1__) { - "use strict"; - /** - @module ember - @submodule ember-views - */ - - var run = __dependency1__["default"]; - - // Add a new named queue for rendering views that happens - // after bindings have synced, and a queue for scheduling actions - // that that should occur after view rendering. - run._addQueue('render', 'actions'); - run._addQueue('afterRender', 'render'); - }); -enifed("ember-views/system/jquery", - ["ember-metal/core","ember-metal/enumerable_utils","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var Ember = __dependency1__["default"]; - // Ember.assert - - // ES6TODO: the functions on EnumerableUtils need their own exports - var forEach = __dependency2__.forEach; - - /** - Ember Views - - @module ember - @submodule ember-views - @requires ember-runtime - @main ember-views - */ - - var jQuery = (Ember.imports && Ember.imports.jQuery) || (this && this.jQuery); - if (!jQuery && typeof eriuqer === 'function') { - jQuery = eriuqer('jquery'); - } - - Ember.assert("Ember Views require jQuery between 1.7 and 2.1", jQuery && - (jQuery().jquery.match(/^((1\.(7|8|9|10|11))|(2\.(0|1)))(\.\d+)?(pre|rc\d?)?/) || - Ember.ENV.FORCE_JQUERY)); - - /** - @module ember - @submodule ember-views - */ - if (jQuery) { - // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dndevents - var dragEvents = [ - 'dragstart', - 'drag', - 'dragenter', - 'dragleave', - 'dragover', - 'drop', - 'dragend' - ]; - - // Copies the `dataTransfer` property from a browser event object onto the - // jQuery event object for the specified events - forEach(dragEvents, function(eventName) { - jQuery.event.fixHooks[eventName] = { - props: ['dataTransfer'] - }; - }); - } - - __exports__["default"] = jQuery; - }); -enifed("ember-views/system/render_buffer", - ["ember-views/system/jquery","morph","ember-metal/core","ember-metal/platform","morph/dom-helper/prop","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - /** - @module ember - @submodule ember-views - */ - - var jQuery = __dependency1__["default"]; - var DOMHelper = __dependency2__.DOMHelper; - var Ember = __dependency3__["default"]; - var create = __dependency4__.create; - var normalizeProperty = __dependency5__.normalizeProperty; - - // The HTML spec allows for "omitted start tags". These tags are optional - // when their intended child is the first thing in the parent tag. For - // example, this is a tbody start tag: - // - // - // - // - // - // The tbody may be omitted, and the browser will accept and render: - // - //
    - // - // - // However, the omitted start tag will still be added to the DOM. Here - // we test the string and context to see if the browser is about to - // perform this cleanup, but with a special allowance for disregarding - // - ``` - - And associate it by name using a view's `templateName` property: - - ```javascript - AView = Ember.View.extend({ - templateName: 'some-template' - }); - ``` - - If you have nested resources, your Handlebars template will look like this: - - ```html - - ``` - - And `templateName` property: - - ```javascript - AView = Ember.View.extend({ - templateName: 'posts/new' - }); - ``` - - Using a value for `templateName` that does not have a Handlebars template - with a matching `data-template-name` attribute will throw an error. - - For views classes that may have a template later defined (e.g. as the block - portion of a `{{view}}` Handlebars helper call in another template or in - a subclass), you can provide a `defaultTemplate` property set to compiled - template function. If a template is not later provided for the view instance - the `defaultTemplate` value will be used: - - ```javascript - AView = Ember.View.extend({ - defaultTemplate: Ember.Handlebars.compile('I was the default'), - template: null, - templateName: null - }); - ``` - - Will result in instances with an HTML representation of: - - ```html -
    I was the default
    - ``` - - If a `template` or `templateName` is provided it will take precedence over - `defaultTemplate`: - - ```javascript - AView = Ember.View.extend({ - defaultTemplate: Ember.Handlebars.compile('I was the default') - }); - - aView = AView.create({ - template: Ember.Handlebars.compile('I was the template, not default') - }); - ``` - - Will result in the following HTML representation when rendered: - - ```html -
    I was the template, not default
    - ``` - - ## View Context - - The default context of the compiled template is the view's controller: - - ```javascript - AView = Ember.View.extend({ - template: Ember.Handlebars.compile('Hello {{excitedGreeting}}') - }); - - aController = Ember.Object.create({ - firstName: 'Barry', - excitedGreeting: function() { - return this.get("content.firstName") + "!!!" - }.property() - }); - - aView = AView.create({ - controller: aController - }); - ``` - - Will result in an HTML representation of: - - ```html -
    Hello Barry!!!
    - ``` - - A context can also be explicitly supplied through the view's `context` - property. If the view has neither `context` nor `controller` properties, the - `parentView`'s context will be used. - - ## Layouts - - Views can have a secondary template that wraps their main template. Like - primary templates, layouts can be any function that accepts an optional - context parameter and returns a string of HTML that will be inserted inside - view's tag. Views whose HTML element is self closing (e.g. ``) - cannot have a layout and this property will be ignored. - - Most typically in Ember a layout will be a compiled `Ember.Handlebars` - template. - - A view's layout can be set directly with the `layout` property or reference - an existing Handlebars template by name with the `layoutName` property. - - A template used as a layout must contain a single use of the Handlebars - `{{yield}}` helper. The HTML contents of a view's rendered `template` will be - inserted at this location: - - ```javascript - AViewWithLayout = Ember.View.extend({ - layout: Ember.Handlebars.compile("
    {{yield}}
    "), - template: Ember.Handlebars.compile("I got wrapped") - }); - ``` - - Will result in view instances with an HTML representation of: - - ```html -
    -
    - I got wrapped -
    -
    - ``` - - See [Ember.Handlebars.helpers.yield](/api/classes/Ember.Handlebars.helpers.html#method_yield) - for more information. - - ## Responding to Browser Events - - Views can respond to user-initiated events in one of three ways: method - implementation, through an event manager, and through `{{action}}` helper use - in their template or layout. - - ### Method Implementation - - Views can respond to user-initiated events by implementing a method that - matches the event name. A `jQuery.Event` object will be passed as the - argument to this method. - - ```javascript - AView = Ember.View.extend({ - click: function(event) { - // will be called when when an instance's - // rendered element is clicked - } - }); - ``` - - ### Event Managers - - Views can define an object as their `eventManager` property. This object can - then implement methods that match the desired event names. Matching events - that occur on the view's rendered HTML or the rendered HTML of any of its DOM - descendants will trigger this method. A `jQuery.Event` object will be passed - as the first argument to the method and an `Ember.View` object as the - second. The `Ember.View` will be the view whose rendered HTML was interacted - with. This may be the view with the `eventManager` property or one of its - descendent views. - - ```javascript - AView = Ember.View.extend({ - eventManager: Ember.Object.create({ - doubleClick: function(event, view) { - // will be called when when an instance's - // rendered element or any rendering - // of this views's descendent - // elements is clicked - } - }) - }); - ``` - - An event defined for an event manager takes precedence over events of the - same name handled through methods on the view. - - ```javascript - AView = Ember.View.extend({ - mouseEnter: function(event) { - // will never trigger. - }, - eventManager: Ember.Object.create({ - mouseEnter: function(event, view) { - // takes precedence over AView#mouseEnter - } - }) - }); - ``` - - Similarly a view's event manager will take precedence for events of any views - rendered as a descendent. A method name that matches an event name will not - be called if the view instance was rendered inside the HTML representation of - a view that has an `eventManager` property defined that handles events of the - name. Events not handled by the event manager will still trigger method calls - on the descendent. - - ```javascript - var App = Ember.Application.create(); - App.OuterView = Ember.View.extend({ - template: Ember.Handlebars.compile("outer {{#view 'inner'}}inner{{/view}} outer"), - eventManager: Ember.Object.create({ - mouseEnter: function(event, view) { - // view might be instance of either - // OuterView or InnerView depending on - // where on the page the user interaction occurred - } - }) - }); - - App.InnerView = Ember.View.extend({ - click: function(event) { - // will be called if rendered inside - // an OuterView because OuterView's - // eventManager doesn't handle click events - }, - mouseEnter: function(event) { - // will never be called if rendered inside - // an OuterView. - } - }); - ``` - - ### Handlebars `{{action}}` Helper - - See [Handlebars.helpers.action](/api/classes/Ember.Handlebars.helpers.html#method_action). - - ### Event Names - - All of the event handling approaches described above respond to the same set - of events. The names of the built-in events are listed below. (The hash of - built-in events exists in `Ember.EventDispatcher`.) Additional, custom events - can be registered by using `Ember.Application.customEvents`. - - Touch events: - - * `touchStart` - * `touchMove` - * `touchEnd` - * `touchCancel` - - Keyboard events - - * `keyDown` - * `keyUp` - * `keyPress` - - Mouse events - - * `mouseDown` - * `mouseUp` - * `contextMenu` - * `click` - * `doubleClick` - * `mouseMove` - * `focusIn` - * `focusOut` - * `mouseEnter` - * `mouseLeave` - - Form events: - - * `submit` - * `change` - * `focusIn` - * `focusOut` - * `input` - - HTML5 drag and drop events: - - * `dragStart` - * `drag` - * `dragEnter` - * `dragLeave` - * `dragOver` - * `dragEnd` - * `drop` - - ## Handlebars `{{view}}` Helper - - Other `Ember.View` instances can be included as part of a view's template by - using the `{{view}}` Handlebars helper. See [Ember.Handlebars.helpers.view](/api/classes/Ember.Handlebars.helpers.html#method_view) - for additional information. - - @class View - @namespace Ember - @extends Ember.CoreView - */ - var View = CoreView.extend({ - - concatenatedProperties: ['classNames', 'classNameBindings', 'attributeBindings'], - - /** - @property isView - @type Boolean - @default true - @static - */ - isView: true, - - // .......................................................... - // TEMPLATE SUPPORT - // - - /** - The name of the template to lookup if no template is provided. - - By default `Ember.View` will lookup a template with this name in - `Ember.TEMPLATES` (a shared global object). - - @property templateName - @type String - @default null - */ - templateName: null, - - /** - The name of the layout to lookup if no layout is provided. - - By default `Ember.View` will lookup a template with this name in - `Ember.TEMPLATES` (a shared global object). - - @property layoutName - @type String - @default null - */ - layoutName: null, - - /** - Used to identify this view during debugging - - @property instrumentDisplay - @type String - */ - instrumentDisplay: computed(function() { - if (this.helperName) { - return '{{' + this.helperName + '}}'; - } - }), - - /** - The template used to render the view. This should be a function that - accepts an optional context parameter and returns a string of HTML that - will be inserted into the DOM relative to its parent view. - - In general, you should set the `templateName` property instead of setting - the template yourself. - - @property template - @type Function - */ - template: computed('templateName', function(key, value) { - if (value !== undefined) { return value; } - - var templateName = get(this, 'templateName'); - var template = this.templateForName(templateName, 'template'); - - Ember.assert("You specified the templateName " + templateName + " for " + this + ", but it did not exist.", !templateName || !!template); - - return template || get(this, 'defaultTemplate'); - }), - - _controller: null, - - /** - The controller managing this view. If this property is set, it will be - made available for use by the template. - - @property controller - @type Object - */ - controller: computed(function(key, value) { - if (arguments.length === 2) { - this._controller = value; - return value; - } - - if (this._controller) { - return this._controller; - } - - var parentView = get(this, '_parentView'); - return parentView ? get(parentView, 'controller') : null; - }), - - /** - A view may contain a layout. A layout is a regular template but - supersedes the `template` property during rendering. It is the - responsibility of the layout template to retrieve the `template` - property from the view (or alternatively, call `Handlebars.helpers.yield`, - `{{yield}}`) to render it in the correct location. - - This is useful for a view that has a shared wrapper, but which delegates - the rendering of the contents of the wrapper to the `template` property - on a subclass. - - @property layout - @type Function - */ - layout: computed(function(key) { - var layoutName = get(this, 'layoutName'); - var layout = this.templateForName(layoutName, 'layout'); - - Ember.assert("You specified the layoutName " + layoutName + " for " + this + ", but it did not exist.", !layoutName || !!layout); - - return layout || get(this, 'defaultLayout'); - }).property('layoutName'), - - _yield: function(context, options, morph) { - var template = get(this, 'template'); - - if (template) { - var useHTMLBars = false; - - useHTMLBars = template.isHTMLBars; - - - if (useHTMLBars) { - return template.render(this, options, morph.contextualElement); - } else { - return template(context, options); - } - } - }, - - _blockArguments: EMPTY_ARRAY, - - templateForName: function(name, type) { - if (!name) { return; } - Ember.assert("templateNames are not allowed to contain periods: "+name, name.indexOf('.') === -1); - - if (!this.container) { - throw new EmberError('Container was not found when looking up a views template. ' + - 'This is most likely due to manually instantiating an Ember.View. ' + - 'See: http://git.io/EKPpnA'); - } - - return this.container.lookup('template:' + name); - }, - - /** - The object from which templates should access properties. - - This object will be passed to the template function each time the render - method is called, but it is up to the individual function to decide what - to do with it. - - By default, this will be the view's controller. - - @property context - @type Object - */ - context: computed(function(key, value) { - if (arguments.length === 2) { - set(this, '_context', value); - return value; - } else { - return get(this, '_context'); - } - })["volatile"](), - - /** - Private copy of the view's template context. This can be set directly - by Handlebars without triggering the observer that causes the view - to be re-rendered. - - The context of a view is looked up as follows: - - 1. Supplied context (usually by Handlebars) - 2. Specified controller - 3. `parentView`'s context (for a child of a ContainerView) - - The code in Handlebars that overrides the `_context` property first - checks to see whether the view has a specified controller. This is - something of a hack and should be revisited. - - @property _context - @private - */ - _context: computed(function(key, value) { - if (arguments.length === 2) { - return value; - } - - var parentView, controller; - - if (controller = get(this, 'controller')) { - return controller; - } - - parentView = this._parentView; - if (parentView) { - return get(parentView, '_context'); - } - - return null; - }), - - /** - If a value that affects template rendering changes, the view should be - re-rendered to reflect the new value. - - @method _contextDidChange - @private - */ - _contextDidChange: observer('context', function() { - this.rerender(); - }), - - /** - If `false`, the view will appear hidden in DOM. - - @property isVisible - @type Boolean - @default null - */ - isVisible: true, - - /** - Array of child views. You should never edit this array directly. - Instead, use `appendChild` and `removeFromParent`. - - @property childViews - @type Array - @default [] - @private - */ - childViews: childViewsProperty, - - _childViews: EMPTY_ARRAY, - - // When it's a virtual view, we need to notify the parent that their - // childViews will change. - _childViewsWillChange: beforeObserver('childViews', function() { - if (this.isVirtual) { - var parentView = get(this, 'parentView'); - if (parentView) { propertyWillChange(parentView, 'childViews'); } - } - }), - - // When it's a virtual view, we need to notify the parent that their - // childViews did change. - _childViewsDidChange: observer('childViews', function() { - if (this.isVirtual) { - var parentView = get(this, 'parentView'); - if (parentView) { propertyDidChange(parentView, 'childViews'); } - } - }), - - /** - Return the nearest ancestor that is an instance of the provided - class. - - @method nearestInstanceOf - @param {Class} klass Subclass of Ember.View (or Ember.View itself) - @return Ember.View - @deprecated - */ - nearestInstanceOf: function(klass) { - Ember.deprecate("nearestInstanceOf is deprecated and will be removed from future releases. Use nearestOfType."); - var view = get(this, 'parentView'); - - while (view) { - if (view instanceof klass) { return view; } - view = get(view, 'parentView'); - } - }, - - /** - Return the nearest ancestor that is an instance of the provided - class or mixin. - - @method nearestOfType - @param {Class,Mixin} klass Subclass of Ember.View (or Ember.View itself), - or an instance of Ember.Mixin. - @return Ember.View - */ - nearestOfType: function(klass) { - var view = get(this, 'parentView'); - var isOfType = klass instanceof Mixin ? - function(view) { return klass.detect(view); } : - function(view) { return klass.detect(view.constructor); }; - - while (view) { - if (isOfType(view)) { return view; } - view = get(view, 'parentView'); - } - }, - - /** - Return the nearest ancestor that has a given property. - - @method nearestWithProperty - @param {String} property A property name - @return Ember.View - */ - nearestWithProperty: function(property) { - var view = get(this, 'parentView'); - - while (view) { - if (property in view) { return view; } - view = get(view, 'parentView'); - } - }, - - /** - Return the nearest ancestor whose parent is an instance of - `klass`. - - @method nearestChildOf - @param {Class} klass Subclass of Ember.View (or Ember.View itself) - @return Ember.View - */ - nearestChildOf: function(klass) { - var view = get(this, 'parentView'); - - while (view) { - if (get(view, 'parentView') instanceof klass) { return view; } - view = get(view, 'parentView'); - } - }, - - /** - When the parent view changes, recursively invalidate `controller` - - @method _parentViewDidChange - @private - */ - _parentViewDidChange: observer('_parentView', function() { - if (this.isDestroying) { return; } - - this._setupKeywords(); - this.trigger('parentViewDidChange'); - - if (get(this, 'parentView.controller') && !get(this, 'controller')) { - this.notifyPropertyChange('controller'); - } - }), - - _controllerDidChange: observer('controller', function() { - if (this.isDestroying) { return; } - - this.rerender(); - - this.forEachChildView(function(view) { - view.propertyDidChange('controller'); - }); - }), - - _setupKeywords: function() { - var keywords = this._keywords; - var contextView = this._contextView || this._parentView; - - if (contextView) { - var parentKeywords = contextView._keywords; - - keywords.view = this.isVirtual ? parentKeywords.view : this; - - for (var name in parentKeywords) { - if (keywords[name]) continue; - keywords[name] = parentKeywords[name]; - } - } else { - keywords.view = this.isVirtual ? null : this; - } - }, - - /** - Called on your view when it should push strings of HTML into a - `Ember.RenderBuffer`. Most users will want to override the `template` - or `templateName` properties instead of this method. - - By default, `Ember.View` will look for a function in the `template` - property and invoke it with the value of `context`. The value of - `context` will be the view's controller unless you override it. - - @method render - @param {Ember.RenderBuffer} buffer The render buffer - */ - render: function(buffer) { - // If this view has a layout, it is the responsibility of the - // the layout to render the view's template. Otherwise, render the template - // directly. - var template = get(this, 'layout') || get(this, 'template'); - - if (template) { - var context = get(this, 'context'); - var output; - - var data = { - view: this, - buffer: buffer, - isRenderData: true - }; - - // Invoke the template with the provided template context, which - // is the view's controller by default. A hash of data is also passed that provides - // the template with access to the view and render buffer. - - // The template should write directly to the render buffer instead - // of returning a string. - var options = { data: data }; - var useHTMLBars = false; - - - useHTMLBars = template.isHTMLBars; - - - if (useHTMLBars) { - Ember.assert('template must be an object. Did you mean to call Ember.Handlebars.compile("...") or specify templateName instead?', typeof template === 'object'); - var env = Ember.merge(buildHTMLBarsDefaultEnv(), options); - output = template.render(this, env, buffer.innerContextualElement(), this._blockArguments); - } else { - Ember.assert('template must be a function. Did you mean to call Ember.Handlebars.compile("...") or specify templateName instead?', typeof template === 'function'); - output = template(context, options); - } - - // If the template returned a string instead of writing to the buffer, - // push the string onto the buffer. - if (output !== undefined) { buffer.push(output); } - } - }, - - /** - Renders the view again. This will work regardless of whether the - view is already in the DOM or not. If the view is in the DOM, the - rendering process will be deferred to give bindings a chance - to synchronize. - - If children were added during the rendering process using `appendChild`, - `rerender` will remove them, because they will be added again - if needed by the next `render`. - - In general, if the display of your view changes, you should modify - the DOM element directly instead of manually calling `rerender`, which can - be slow. - - @method rerender - */ - rerender: function() { - return this.currentState.rerender(this); - }, - - /** - Iterates over the view's `classNameBindings` array, inserts the value - of the specified property into the `classNames` array, then creates an - observer to update the view's element if the bound property ever changes - in the future. - - @method _applyClassNameBindings - @private - */ - _applyClassNameBindings: function(classBindings) { - var classNames = this.classNames; - var elem, newClass, dasherizedClass; - - // Loop through all of the configured bindings. These will be either - // property names ('isUrgent') or property paths relative to the view - // ('content.isUrgent') - forEach(classBindings, function(binding) { - - var boundBinding; - if (isStream(binding)) { - boundBinding = binding; - } else { - boundBinding = streamifyClassNameBinding(this, binding, '_view.'); - } - - // Variable in which the old class value is saved. The observer function - // closes over this variable, so it knows which string to remove when - // the property changes. - var oldClass; - - // Set up an observer on the context. If the property changes, toggle the - // class name. - var observer = this._wrapAsScheduled(function() { - // Get the current value of the property - elem = this.$(); - newClass = read(boundBinding); - - // If we had previously added a class to the element, remove it. - if (oldClass) { - elem.removeClass(oldClass); - // Also remove from classNames so that if the view gets rerendered, - // the class doesn't get added back to the DOM. - classNames.removeObject(oldClass); - } - - // If necessary, add a new class. Make sure we keep track of it so - // it can be removed in the future. - if (newClass) { - elem.addClass(newClass); - oldClass = newClass; - } else { - oldClass = null; - } - }); - - // Get the class name for the property at its current value - dasherizedClass = read(boundBinding); - - if (dasherizedClass) { - // Ensure that it gets into the classNames array - // so it is displayed when we render. - addObject(classNames, dasherizedClass); - - // Save a reference to the class name so we can remove it - // if the observer fires. Remember that this variable has - // been closed over by the observer. - oldClass = dasherizedClass; - } - - subscribe(boundBinding, observer, this); - // Remove className so when the view is rerendered, - // the className is added based on binding reevaluation - this.one('willClearRender', function() { - if (oldClass) { - classNames.removeObject(oldClass); - oldClass = null; - } - }); - - }, this); - }, - - _unspecifiedAttributeBindings: null, - - /** - Iterates through the view's attribute bindings, sets up observers for each, - then applies the current value of the attributes to the passed render buffer. - - @method _applyAttributeBindings - @param {Ember.RenderBuffer} buffer - @private - */ - _applyAttributeBindings: function(buffer, attributeBindings) { - var attributeValue; - var unspecifiedAttributeBindings = this._unspecifiedAttributeBindings = this._unspecifiedAttributeBindings || {}; - - forEach(attributeBindings, function(binding) { - var split = binding.split(':'); - var property = split[0]; - var attributeName = split[1] || property; - - Ember.assert('You cannot use class as an attributeBinding, use classNameBindings instead.', attributeName !== 'class'); - - if (property in this) { - this._setupAttributeBindingObservation(property, attributeName); - - // Determine the current value and add it to the render buffer - // if necessary. - attributeValue = get(this, property); - View.applyAttributeBindings(buffer, attributeName, attributeValue); - } else { - unspecifiedAttributeBindings[property] = attributeName; - } - }, this); - - // Lazily setup setUnknownProperty after attributeBindings are initially applied - this.setUnknownProperty = this._setUnknownProperty; - }, - - _setupAttributeBindingObservation: function(property, attributeName) { - var attributeValue, elem; - - // Create an observer to add/remove/change the attribute if the - // JavaScript property changes. - var observer = function() { - elem = this.$(); - - attributeValue = get(this, property); - - var normalizedName = normalizeProperty(elem, attributeName.toLowerCase()) || attributeName; - View.applyAttributeBindings(elem, normalizedName, attributeValue); - }; - - this.registerObserver(this, property, observer); - }, - - /** - We're using setUnknownProperty as a hook to setup attributeBinding observers for - properties that aren't defined on a view at initialization time. - - Note: setUnknownProperty will only be called once for each property. - - @method setUnknownProperty - @param key - @param value - @private - */ - setUnknownProperty: null, // Gets defined after initialization by _applyAttributeBindings - - _setUnknownProperty: function(key, value) { - var attributeName = this._unspecifiedAttributeBindings && this._unspecifiedAttributeBindings[key]; - if (attributeName) { - this._setupAttributeBindingObservation(key, attributeName); - } - - defineProperty(this, key); - return set(this, key, value); - }, - - /** - Given a property name, returns a dasherized version of that - property name if the property evaluates to a non-falsy value. - - For example, if the view has property `isUrgent` that evaluates to true, - passing `isUrgent` to this method will return `"is-urgent"`. - - @method _classStringForProperty - @param property - @private - */ - _classStringForProperty: function(parsedPath) { - return View._classStringForValue(parsedPath.path, parsedPath.stream.value(), parsedPath.className, parsedPath.falsyClassName); - }, - - // .......................................................... - // ELEMENT SUPPORT - // - - /** - Returns the current DOM element for the view. - - @property element - @type DOMElement - */ - element: null, - - /** - Returns a jQuery object for this view's element. If you pass in a selector - string, this method will return a jQuery object, using the current element - as its buffer. - - For example, calling `view.$('li')` will return a jQuery object containing - all of the `li` elements inside the DOM element of this view. - - @method $ - @param {String} [selector] a jQuery-compatible selector string - @return {jQuery} the jQuery object for the DOM node - */ - $: function(sel) { - return this.currentState.$(this, sel); - }, - - mutateChildViews: function(callback) { - var childViews = this._childViews; - var idx = childViews.length; - var view; - - while(--idx >= 0) { - view = childViews[idx]; - callback(this, view, idx); - } - - return this; - }, - - forEachChildView: function(callback) { - var childViews = this._childViews; - - if (!childViews) { return this; } - - var len = childViews.length; - var view, idx; - - for (idx = 0; idx < len; idx++) { - view = childViews[idx]; - callback(view); - } - - return this; - }, - - /** - Appends the view's element to the specified parent element. - - If the view does not have an HTML representation yet, `createElement()` - will be called automatically. - - Note that this method just schedules the view to be appended; the DOM - element will not be appended to the given element until all bindings have - finished synchronizing. - - This is not typically a function that you will need to call directly when - building your application. You might consider using `Ember.ContainerView` - instead. If you do need to use `appendTo`, be sure that the target element - you are providing is associated with an `Ember.Application` and does not - have an ancestor element that is associated with an Ember view. - - @method appendTo - @param {String|DOMElement|jQuery} A selector, element, HTML string, or jQuery object - @return {Ember.View} receiver - */ - appendTo: function(selector) { - var target = jQuery(selector); - - Ember.assert("You tried to append to (" + selector + ") but that isn't in the DOM", target.length > 0); - Ember.assert("You cannot append to an existing Ember.View. Consider using Ember.ContainerView instead.", !target.is('.ember-view') && !target.parents().is('.ember-view')); - - this.constructor.renderer.appendTo(this, target[0]); - - return this; - }, - - /** - Replaces the content of the specified parent element with this view's - element. If the view does not have an HTML representation yet, - the element will be generated automatically. - - Note that this method just schedules the view to be appended; the DOM - element will not be appended to the given element until all bindings have - finished synchronizing - - @method replaceIn - @param {String|DOMElement|jQuery} target A selector, element, HTML string, or jQuery object - @return {Ember.View} received - */ - replaceIn: function(selector) { - var target = jQuery(selector); - - Ember.assert("You tried to replace in (" + selector + ") but that isn't in the DOM", target.length > 0); - Ember.assert("You cannot replace an existing Ember.View. Consider using Ember.ContainerView instead.", !target.is('.ember-view') && !target.parents().is('.ember-view')); - - this.constructor.renderer.replaceIn(this, target[0]); - - return this; - }, - - /** - Appends the view's element to the document body. If the view does - not have an HTML representation yet - the element will be generated automatically. - - If your application uses the `rootElement` property, you must append - the view within that element. Rendering views outside of the `rootElement` - is not supported. - - Note that this method just schedules the view to be appended; the DOM - element will not be appended to the document body until all bindings have - finished synchronizing. - - @method append - @return {Ember.View} receiver - */ - append: function() { - return this.appendTo(document.body); - }, - - /** - Removes the view's element from the element to which it is attached. - - @method remove - @return {Ember.View} receiver - */ - remove: function() { - // What we should really do here is wait until the end of the run loop - // to determine if the element has been re-appended to a different - // element. - // In the interim, we will just re-render if that happens. It is more - // important than elements get garbage collected. - if (!this.removedFromDOM) { this.destroyElement(); } - }, - - /** - The HTML `id` of the view's element in the DOM. You can provide this - value yourself but it must be unique (just as in HTML): - - ```handlebars - {{my-component elementId="a-really-cool-id"}} - ``` - - If not manually set a default value will be provided by the framework. - - Once rendered an element's `elementId` is considered immutable and you - should never change it. - - @property elementId - @type String - */ - elementId: null, - - /** - Attempts to discover the element in the parent element. The default - implementation looks for an element with an ID of `elementId` (or the - view's guid if `elementId` is null). You can override this method to - provide your own form of lookup. For example, if you want to discover your - element using a CSS class name instead of an ID. - - @method findElementInParentElement - @param {DOMElement} parentElement The parent's DOM element - @return {DOMElement} The discovered element - */ - findElementInParentElement: function(parentElem) { - var id = "#" + this.elementId; - return jQuery(id)[0] || jQuery(id, parentElem)[0]; - }, - - /** - Creates a DOM representation of the view and all of its child views by - recursively calling the `render()` method. - - After the element has been inserted into the DOM, `didInsertElement` will - be called on this view and all of its child views. - - @method createElement - @return {Ember.View} receiver - */ - createElement: function() { - if (this.element) { return this; } - - this._didCreateElementWithoutMorph = true; - this.constructor.renderer.renderTree(this); - - return this; - }, - - /** - Called when a view is going to insert an element into the DOM. - - @event willInsertElement - */ - willInsertElement: K, - - /** - Called when the element of the view has been inserted into the DOM - or after the view was re-rendered. Override this function to do any - set up that requires an element in the document body. - - When a view has children, didInsertElement will be called on the - child view(s) first, bubbling upwards through the hierarchy. - - @event didInsertElement - */ - didInsertElement: K, - - /** - Called when the view is about to rerender, but before anything has - been torn down. This is a good opportunity to tear down any manual - observers you have installed based on the DOM state - - @event willClearRender - */ - willClearRender: K, - - /** - Destroys any existing element along with the element for any child views - as well. If the view does not currently have a element, then this method - will do nothing. - - If you implement `willDestroyElement()` on your view, then this method will - be invoked on your view before your element is destroyed to give you a - chance to clean up any event handlers, etc. - - If you write a `willDestroyElement()` handler, you can assume that your - `didInsertElement()` handler was called earlier for the same element. - - You should not call or override this method yourself, but you may - want to implement the above callbacks. - - @method destroyElement - @return {Ember.View} receiver - */ - destroyElement: function() { - return this.currentState.destroyElement(this); - }, - - /** - Called when the element of the view is going to be destroyed. Override - this function to do any teardown that requires an element, like removing - event listeners. - - Please note: any property changes made during this event will have no - effect on object observers. - - @event willDestroyElement - */ - willDestroyElement: K, - - /** - Called when the parentView property has changed. - - @event parentViewDidChange - */ - parentViewDidChange: K, - - instrumentName: 'view', - - instrumentDetails: function(hash) { - hash.template = get(this, 'templateName'); - this._super(hash); - }, - - beforeRender: function(buffer) {}, - - afterRender: function(buffer) {}, - - applyAttributesToBuffer: function(buffer) { - // Creates observers for all registered class name and attribute bindings, - // then adds them to the element. - var classNameBindings = this.classNameBindings; - if (classNameBindings.length) { - this._applyClassNameBindings(classNameBindings); - } - - // Pass the render buffer so the method can apply attributes directly. - // This isn't needed for class name bindings because they use the - // existing classNames infrastructure. - var attributeBindings = this.attributeBindings; - if (attributeBindings.length) { - this._applyAttributeBindings(buffer, attributeBindings); - } - - buffer.setClasses(this.classNames); - buffer.id(this.elementId); - - var role = get(this, 'ariaRole'); - if (role) { - buffer.attr('role', role); - } - - if (get(this, 'isVisible') === false) { - buffer.style('display', 'none'); - } - }, - - // .......................................................... - // STANDARD RENDER PROPERTIES - // - - /** - Tag name for the view's outer element. The tag name is only used when an - element is first created. If you change the `tagName` for an element, you - must destroy and recreate the view element. - - By default, the render buffer will use a `
    ` tag for views. - - @property tagName - @type String - @default null - */ - - // We leave this null by default so we can tell the difference between - // the default case and a user-specified tag. - tagName: null, - - /** - The WAI-ARIA role of the control represented by this view. For example, a - button may have a role of type 'button', or a pane may have a role of - type 'alertdialog'. This property is used by assistive software to help - visually challenged users navigate rich web applications. - - The full list of valid WAI-ARIA roles is available at: - [http://www.w3.org/TR/wai-aria/roles#roles_categorization](http://www.w3.org/TR/wai-aria/roles#roles_categorization) - - @property ariaRole - @type String - @default null - */ - ariaRole: null, - - /** - Standard CSS class names to apply to the view's outer element. This - property automatically inherits any class names defined by the view's - superclasses as well. - - @property classNames - @type Array - @default ['ember-view'] - */ - classNames: ['ember-view'], - - /** - A list of properties of the view to apply as class names. If the property - is a string value, the value of that string will be applied as a class - name. - - ```javascript - // Applies the 'high' class to the view element - Ember.View.extend({ - classNameBindings: ['priority'] - priority: 'high' - }); - ``` - - If the value of the property is a Boolean, the name of that property is - added as a dasherized class name. - - ```javascript - // Applies the 'is-urgent' class to the view element - Ember.View.extend({ - classNameBindings: ['isUrgent'] - isUrgent: true - }); - ``` - - If you would prefer to use a custom value instead of the dasherized - property name, you can pass a binding like this: - - ```javascript - // Applies the 'urgent' class to the view element - Ember.View.extend({ - classNameBindings: ['isUrgent:urgent'] - isUrgent: true - }); - ``` - - This list of properties is inherited from the view's superclasses as well. - - @property classNameBindings - @type Array - @default [] - */ - classNameBindings: EMPTY_ARRAY, - - /** - A list of properties of the view to apply as attributes. If the property is - a string value, the value of that string will be applied as the attribute. - - ```javascript - // Applies the type attribute to the element - // with the value "button", like
    - Ember.View.extend({ - attributeBindings: ['type'], - type: 'button' - }); - ``` - - If the value of the property is a Boolean, the name of that property is - added as an attribute. - - ```javascript - // Renders something like
    - Ember.View.extend({ - attributeBindings: ['enabled'], - enabled: true - }); - ``` - - @property attributeBindings - */ - attributeBindings: EMPTY_ARRAY, - - // ....................................................... - // CORE DISPLAY METHODS - // - - /** - Setup a view, but do not finish waking it up. - - * configure `childViews` - * register the view with the global views hash, which is used for event - dispatch - - @method init - @private - */ - init: function() { - if (!this.isVirtual && !this.elementId) { - this.elementId = guidFor(this); - } - - this._super(); - - // setup child views. be sure to clone the child views array first - this._childViews = this._childViews.slice(); - this._baseContext = undefined; - this._contextStream = undefined; - this._streamBindings = undefined; - - if (!this._keywords) { - this._keywords = create(null); - } - this._keywords._view = this; - this._keywords.view = undefined; - this._keywords.controller = new KeyStream(this, 'controller'); - this._setupKeywords(); - - Ember.assert("Only arrays are allowed for 'classNameBindings'", typeOf(this.classNameBindings) === 'array'); - this.classNameBindings = emberA(this.classNameBindings.slice()); - - Ember.assert("Only arrays of static class strings are allowed for 'classNames'. For dynamic classes, use 'classNameBindings'.", typeOf(this.classNames) === 'array'); - this.classNames = emberA(this.classNames.slice()); - }, - - appendChild: function(view, options) { - return this.currentState.appendChild(this, view, options); - }, - - /** - Removes the child view from the parent view. - - @method removeChild - @param {Ember.View} view - @return {Ember.View} receiver - */ - removeChild: function(view) { - // If we're destroying, the entire subtree will be - // freed, and the DOM will be handled separately, - // so no need to mess with childViews. - if (this.isDestroying) { return; } - - // update parent node - set(view, '_parentView', null); - - // remove view from childViews array. - var childViews = this._childViews; - - removeObject(childViews, view); - - this.propertyDidChange('childViews'); // HUH?! what happened to will change? - - return this; - }, - - /** - Removes all children from the `parentView`. - - @method removeAllChildren - @return {Ember.View} receiver - */ - removeAllChildren: function() { - return this.mutateChildViews(function(parentView, view) { - parentView.removeChild(view); - }); - }, - - destroyAllChildren: function() { - return this.mutateChildViews(function(parentView, view) { - view.destroy(); - }); - }, - - /** - Removes the view from its `parentView`, if one is found. Otherwise - does nothing. - - @method removeFromParent - @return {Ember.View} receiver - */ - removeFromParent: function() { - var parent = this._parentView; - - // Remove DOM element from parent - this.remove(); - - if (parent) { parent.removeChild(this); } - return this; - }, - - /** - You must call `destroy` on a view to destroy the view (and all of its - child views). This will remove the view from any parent node, then make - sure that the DOM element managed by the view can be released by the - memory manager. - - @method destroy - */ - destroy: function() { - // get parentView before calling super because it'll be destroyed - var nonVirtualParentView = get(this, 'parentView'); - var viewName = this.viewName; - - if (!this._super()) { return; } - - // remove from non-virtual parent view if viewName was specified - if (viewName && nonVirtualParentView) { - nonVirtualParentView.set(viewName, null); - } - - return this; - }, - - /** - Instantiates a view to be added to the childViews array during view - initialization. You generally will not call this method directly unless - you are overriding `createChildViews()`. Note that this method will - automatically configure the correct settings on the new view instance to - act as a child of the parent. - - @method createChildView - @param {Class|String} viewClass - @param {Hash} [attrs] Attributes to add - @return {Ember.View} new instance - */ - createChildView: function(view, attrs) { - if (!view) { - throw new TypeError("createChildViews first argument must exist"); - } - - if (view.isView && view._parentView === this && view.container === this.container) { - return view; - } - - attrs = attrs || {}; - attrs._parentView = this; - - if (CoreView.detect(view)) { - attrs.container = this.container; - view = view.create(attrs); - - // don't set the property on a virtual view, as they are invisible to - // consumers of the view API - if (view.viewName) { - set(get(this, 'concreteView'), view.viewName, view); - } - } else if ('string' === typeof view) { - var fullName = 'view:' + view; - var ViewKlass = this.container.lookupFactory(fullName); - - Ember.assert("Could not find view: '" + fullName + "'", !!ViewKlass); - - view = ViewKlass.create(attrs); - } else { - Ember.assert('You must pass instance or subclass of View', view.isView); - - attrs.container = this.container; - setProperties(view, attrs); - } - - return view; - }, - - becameVisible: K, - becameHidden: K, - - /** - When the view's `isVisible` property changes, toggle the visibility - element of the actual DOM element. - - @method _isVisibleDidChange - @private - */ - _isVisibleDidChange: observer('isVisible', function() { - if (this._isVisible === get(this, 'isVisible')) { return ; } - run.scheduleOnce('render', this, this._toggleVisibility); - }), - - _toggleVisibility: function() { - var $el = this.$(); - var isVisible = get(this, 'isVisible'); - - if (this._isVisible === isVisible) { return ; } - - // It's important to keep these in sync, even if we don't yet have - // an element in the DOM to manipulate: - this._isVisible = isVisible; - - if (!$el) { return; } - - $el.toggle(isVisible); - - if (this._isAncestorHidden()) { return; } - - if (isVisible) { - this._notifyBecameVisible(); - } else { - this._notifyBecameHidden(); - } - }, - - _notifyBecameVisible: function() { - this.trigger('becameVisible'); - - this.forEachChildView(function(view) { - var isVisible = get(view, 'isVisible'); - - if (isVisible || isVisible === null) { - view._notifyBecameVisible(); - } - }); - }, - - _notifyBecameHidden: function() { - this.trigger('becameHidden'); - this.forEachChildView(function(view) { - var isVisible = get(view, 'isVisible'); - - if (isVisible || isVisible === null) { - view._notifyBecameHidden(); - } - }); - }, - - _isAncestorHidden: function() { - var parent = get(this, 'parentView'); - - while (parent) { - if (get(parent, 'isVisible') === false) { return true; } - - parent = get(parent, 'parentView'); - } - - return false; - }, - transitionTo: function(state, children) { - Ember.deprecate("Ember.View#transitionTo has been deprecated, it is for internal use only"); - this._transitionTo(state, children); - }, - _transitionTo: function(state, children) { - var priorState = this.currentState; - var currentState = this.currentState = this._states[state]; - this._state = state; - - if (priorState && priorState.exit) { priorState.exit(this); } - if (currentState.enter) { currentState.enter(this); } - }, - - // ....................................................... - // EVENT HANDLING - // - - /** - Handle events from `Ember.EventDispatcher` - - @method handleEvent - @param eventName {String} - @param evt {Event} - @private - */ - handleEvent: function(eventName, evt) { - return this.currentState.handleEvent(this, eventName, evt); - }, - - registerObserver: function(root, path, target, observer) { - if (!observer && 'function' === typeof target) { - observer = target; - target = null; - } - - if (!root || typeof root !== 'object') { - return; - } - - var scheduledObserver = this._wrapAsScheduled(observer); - - addObserver(root, path, target, scheduledObserver); - - this.one('willClearRender', function() { - removeObserver(root, path, target, scheduledObserver); - }); - }, - - _wrapAsScheduled: function(fn) { - var view = this; - var stateCheckedFn = function() { - view.currentState.invokeObserver(this, fn); - }; - var scheduledFn = function() { - run.scheduleOnce('render', this, stateCheckedFn); - }; - return scheduledFn; - }, - - getStream: function(path) { - var stream = this._getContextStream().get(path); - - stream._label = path; - - return stream; - }, - - _getBindingForStream: function(pathOrStream) { - if (this._streamBindings === undefined) { - this._streamBindings = create(null); - this.one('willDestroyElement', this, this._destroyStreamBindings); - } - - var path = pathOrStream; - if (isStream(pathOrStream)) { - path = pathOrStream._label; - - if (!path) { - // if no _label is present on the provided stream - // it is likely a subexpr and cannot be set (so it - // does not need a StreamBinding) - return pathOrStream; - } - } - - if (this._streamBindings[path] !== undefined) { - return this._streamBindings[path]; - } else { - var stream = this._getContextStream().get(path); - var streamBinding = new StreamBinding(stream); - - streamBinding._label = path; - - return this._streamBindings[path] = streamBinding; - } - }, - - _destroyStreamBindings: function() { - var streamBindings = this._streamBindings; - for (var path in streamBindings) { - streamBindings[path].destroy(); - } - this._streamBindings = undefined; - }, - - _getContextStream: function() { - if (this._contextStream === undefined) { - this._baseContext = new KeyStream(this, 'context'); - this._contextStream = new ContextStream(this); - this.one('willDestroyElement', this, this._destroyContextStream); - } - - return this._contextStream; - }, - - _destroyContextStream: function() { - this._baseContext.destroy(); - this._baseContext = undefined; - this._contextStream.destroy(); - this._contextStream = undefined; - }, - - _unsubscribeFromStreamBindings: function() { - for (var key in this._streamBindingSubscriptions) { - var streamBinding = this[key + 'Binding']; - var callback = this._streamBindingSubscriptions[key]; - streamBinding.unsubscribe(callback); - } - } - }); - - deprecateProperty(View.prototype, 'state', '_state'); - deprecateProperty(View.prototype, 'states', '_states'); - - /* - Describe how the specified actions should behave in the various - states that a view can exist in. Possible states: - - * preRender: when a view is first instantiated, and after its - element was destroyed, it is in the preRender state - * inBuffer: once a view has been rendered, but before it has - been inserted into the DOM, it is in the inBuffer state - * hasElement: the DOM representation of the view is created, - and is ready to be inserted - * inDOM: once a view has been inserted into the DOM it is in - the inDOM state. A view spends the vast majority of its - existence in this state. - * destroyed: once a view has been destroyed (using the destroy - method), it is in this state. No further actions can be invoked - on a destroyed view. - */ - - // in the destroyed state, everything is illegal - - // before rendering has begun, all legal manipulations are noops. - - // inside the buffer, legal manipulations are done on the buffer - - // once the view has been inserted into the DOM, legal manipulations - // are done on the DOM element. - - var mutation = EmberObject.extend(Evented).create(); - // TODO MOVE TO RENDERER HOOKS - View.addMutationListener = function(callback) { - mutation.on('change', callback); - }; - - View.removeMutationListener = function(callback) { - mutation.off('change', callback); - }; - - View.notifyMutationListeners = function() { - mutation.trigger('change'); - }; - - /** - Global views hash - - @property views - @static - @type Hash - */ - View.views = {}; - - // If someone overrides the child views computed property when - // defining their class, we want to be able to process the user's - // supplied childViews and then restore the original computed property - // at view initialization time. This happens in Ember.ContainerView's init - // method. - View.childViewsProperty = childViewsProperty; - - // Used by Handlebars helpers, view element attributes - View.applyAttributeBindings = function(elem, name, initialValue) { - var value = sanitizeAttributeValue(elem[0], name, initialValue); - var type = typeOf(value); - - // if this changes, also change the logic in ember-handlebars/lib/helpers/binding.js - if (name !== 'value' && (type === 'string' || (type === 'number' && !isNaN(value)))) { - if (value !== elem.attr(name)) { - elem.attr(name, value); - } - } else if (name === 'value' || type === 'boolean') { - if (isNone(value) || value === false) { - // `null`, `undefined` or `false` should remove attribute - elem.removeAttr(name); - // In IE8 `prop` couldn't remove attribute when name is `required`. - if (name === 'required') { - elem.removeProp(name); - } else { - elem.prop(name, ''); - } - } else if (value !== elem.prop(name)) { - // value should always be properties - elem.prop(name, value); - } - } else if (!value) { - elem.removeAttr(name); - } - }; - - __exports__["default"] = View; - }); -enifed("ember-views/views/with_view", - ["ember-metal/property_set","ember-metal/utils","ember-views/views/bound_view","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - - /** - @module ember - @submodule ember-views - */ - - var set = __dependency1__.set; - var apply = __dependency2__.apply; - var BoundView = __dependency3__["default"]; - - __exports__["default"] = BoundView.extend({ - init: function() { - apply(this, this._super, arguments); - - var controllerName = this.templateHash.controller; - - if (controllerName) { - var previousContext = this.previousContext; - var controller = this.container.lookupFactory('controller:'+controllerName).create({ - parentController: previousContext, - target: previousContext - }); - - this._generatedController = controller; - - if (this.preserveContext) { - this._blockArguments = [ controller ]; - this.lazyValue.subscribe(function(modelStream) { - set(controller, 'model', modelStream.value()); - }); - } else { - set(this, 'controller', controller); - this.valueNormalizerFunc = function(result) { - controller.set('model', result); - return controller; - }; - } - - set(controller, 'model', this.lazyValue.value()); - } else { - if (this.preserveContext) { - this._blockArguments = [ this.lazyValue ]; - } - } - }, - - willDestroy: function() { - this._super(); - - if (this._generatedController) { - this._generatedController.destroy(); - } - } - }); - }); -enifed("ember", - ["ember-metal","ember-runtime","ember-views","ember-routing","ember-application","ember-extension-support","ember-htmlbars","ember-routing-htmlbars","ember-runtime/system/lazy_load"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__) { - "use strict"; - /* global navigator */ - // require the main entry points for each of these packages - // this is so that the global exports occur properly - - var runLoadHooks = __dependency9__.runLoadHooks; - - if (Ember.__loader.registry['ember-template-compiler']) { - requireModule('ember-template-compiler'); - } - - // do this to ensure that Ember.Test is defined properly on the global - // if it is present. - if (Ember.__loader.registry['ember-testing']) { - requireModule('ember-testing'); - } - - runLoadHooks('Ember'); - - /** - Ember - - @module ember - */ - - Ember.deprecate('Usage of Ember is deprecated for Internet Explorer 6 and 7, support will be removed in the next major version.', !navigator.userAgent.match(/MSIE [67]/)); - }); -enifed("htmlbars-util", - ["./htmlbars-util/safe-string","./htmlbars-util/handlebars/utils","./htmlbars-util/namespaces","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var SafeString = __dependency1__["default"]; - var escapeExpression = __dependency2__.escapeExpression; - var getAttrNamespace = __dependency3__.getAttrNamespace; - - __exports__.SafeString = SafeString; - __exports__.escapeExpression = escapeExpression; - __exports__.getAttrNamespace = getAttrNamespace; - }); -enifed("htmlbars-util/array-utils", - ["exports"], - function(__exports__) { - "use strict"; - function forEach(array, callback, binding) { - var i, l; - if (binding === undefined) { - for (i = 0, l = array.length; i < l; i++) { - callback(array[i], i, array); - } - } else { - for (i = 0, l = array.length; i < l; i++) { - callback.call(binding, array[i], i, array); - } - } - } - - __exports__.forEach = forEach;function map(array, callback) { - var output = []; - var i, l; - - for (i = 0, l = array.length; i < l; i++) { - output.push(callback(array[i], i, array)); - } - - return output; - } - - __exports__.map = map;var getIdx; - if (Array.prototype.indexOf) { - getIdx = function(array, obj, from){ - return array.indexOf(obj, from); - }; - } else { - getIdx = function(array, obj, from) { - if (from === undefined || from === null) { - from = 0; - } else if (from < 0) { - from = Math.max(0, array.length + from); - } - for (var i = from, l= array.length; i < l; i++) { - if (array[i] === obj) { - return i; - } - } - return -1; - }; - } - - var indexOfArray = getIdx; - __exports__.indexOfArray = indexOfArray; - }); -enifed("htmlbars-util/handlebars/safe-string", - ["exports"], - function(__exports__) { - "use strict"; - // Build out our basic SafeString type - function SafeString(string) { - this.string = string; - } - - SafeString.prototype.toString = SafeString.prototype.toHTML = function() { - return "" + this.string; - }; - - __exports__["default"] = SafeString; - }); -enifed("htmlbars-util/handlebars/utils", - ["./safe-string","exports"], - function(__dependency1__, __exports__) { - "use strict"; - /*jshint -W004 */ - var SafeString = __dependency1__["default"]; - - var escape = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'", - "`": "`" - }; - - var badChars = /[&<>"'`]/g; - var possible = /[&<>"'`]/; - - function escapeChar(chr) { - return escape[chr]; - } - - function extend(obj /* , ...source */) { - for (var i = 1; i < arguments.length; i++) { - for (var key in arguments[i]) { - if (Object.prototype.hasOwnProperty.call(arguments[i], key)) { - obj[key] = arguments[i][key]; - } - } - } - - return obj; - } - - __exports__.extend = extend;var toString = Object.prototype.toString; - __exports__.toString = toString; - // Sourced from lodash - // https://github.com/bestiejs/lodash/blob/master/LICENSE.txt - var isFunction = function(value) { - return typeof value === 'function'; - }; - // fallback for older versions of Chrome and Safari - /* istanbul ignore next */ - if (isFunction(/x/)) { - isFunction = function(value) { - return typeof value === 'function' && toString.call(value) === '[object Function]'; - }; - } - var isFunction; - __exports__.isFunction = isFunction; - /* istanbul ignore next */ - var isArray = Array.isArray || function(value) { - return (value && typeof value === 'object') ? toString.call(value) === '[object Array]' : false; - }; - __exports__.isArray = isArray; - - function escapeExpression(string) { - // don't escape SafeStrings, since they're already safe - if (string && string.toHTML) { - return string.toHTML(); - } else if (string == null) { - return ""; - } else if (!string) { - return string + ''; - } - - // Force a string conversion as this will be done by the append regardless and - // the regex test will do this transparently behind the scenes, causing issues if - // an object's to string has escaped characters in it. - string = "" + string; - - if(!possible.test(string)) { return string; } - return string.replace(badChars, escapeChar); - } - - __exports__.escapeExpression = escapeExpression;function isEmpty(value) { - if (!value && value !== 0) { - return true; - } else if (isArray(value) && value.length === 0) { - return true; - } else { - return false; - } - } - - __exports__.isEmpty = isEmpty;function appendContextPath(contextPath, id) { - return (contextPath ? contextPath + '.' : '') + id; - } - - __exports__.appendContextPath = appendContextPath; - }); -enifed("htmlbars-util/namespaces", - ["exports"], - function(__exports__) { - "use strict"; - // ref http://dev.w3.org/html5/spec-LC/namespaces.html - var defaultNamespaces = { - html: 'http://www.w3.org/1999/xhtml', - mathml: 'http://www.w3.org/1998/Math/MathML', - svg: 'http://www.w3.org/2000/svg', - xlink: 'http://www.w3.org/1999/xlink', - xml: 'http://www.w3.org/XML/1998/namespace' - }; - - function getAttrNamespace(attrName) { - var namespace; - - var colonIndex = attrName.indexOf(':'); - if (colonIndex !== -1) { - var prefix = attrName.slice(0, colonIndex); - namespace = defaultNamespaces[prefix]; - } - - return namespace || null; - } - - __exports__.getAttrNamespace = getAttrNamespace; - }); -enifed("htmlbars-util/object-utils", - ["exports"], - function(__exports__) { - "use strict"; - function merge(options, defaults) { - for (var prop in defaults) { - if (options.hasOwnProperty(prop)) { continue; } - options[prop] = defaults[prop]; - } - return options; - } - - __exports__.merge = merge; - }); -enifed("htmlbars-util/quoting", - ["exports"], - function(__exports__) { - "use strict"; - function escapeString(str) { - str = str.replace(/\\/g, "\\\\"); - str = str.replace(/"/g, '\\"'); - str = str.replace(/\n/g, "\\n"); - return str; - } - - __exports__.escapeString = escapeString; - - function string(str) { - return '"' + escapeString(str) + '"'; - } - - __exports__.string = string; - - function array(a) { - return "[" + a + "]"; - } - - __exports__.array = array; - - function hash(pairs) { - return "{" + pairs.join(", ") + "}"; - } - - __exports__.hash = hash;function repeat(chars, times) { - var str = ""; - while (times--) { - str += chars; - } - return str; - } - - __exports__.repeat = repeat; - }); -enifed("htmlbars-util/safe-string", - ["./handlebars/safe-string","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var SafeString = __dependency1__["default"]; - - __exports__["default"] = SafeString; - }); -enifed("morph", - ["./morph/morph","./morph/attr-morph","./morph/dom-helper","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var Morph = __dependency1__["default"]; - var AttrMorph = __dependency2__["default"]; - var DOMHelper = __dependency3__["default"]; - - __exports__.Morph = Morph; - __exports__.AttrMorph = AttrMorph; - __exports__.DOMHelper = DOMHelper; - }); -enifed("morph/attr-morph", - ["./attr-morph/sanitize-attribute-value","./dom-helper/prop","./dom-helper/build-html-dom","../htmlbars-util","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var sanitizeAttributeValue = __dependency1__.sanitizeAttributeValue; - var isAttrRemovalValue = __dependency2__.isAttrRemovalValue; - var normalizeProperty = __dependency2__.normalizeProperty; - var svgNamespace = __dependency3__.svgNamespace; - var getAttrNamespace = __dependency4__.getAttrNamespace; - - function updateProperty(value) { - this.domHelper.setPropertyStrict(this.element, this.attrName, value); - } - - function updateAttribute(value) { - if (isAttrRemovalValue(value)) { - this.domHelper.removeAttribute(this.element, this.attrName); - } else { - this.domHelper.setAttribute(this.element, this.attrName, value); - } - } - - function updateAttributeNS(value) { - if (isAttrRemovalValue(value)) { - this.domHelper.removeAttribute(this.element, this.attrName); - } else { - this.domHelper.setAttributeNS(this.element, this.namespace, this.attrName, value); - } - } - - function AttrMorph(element, attrName, domHelper, namespace) { - this.element = element; - this.domHelper = domHelper; - this.namespace = namespace !== undefined ? namespace : getAttrNamespace(attrName); - this.escaped = true; - - var normalizedAttrName = normalizeProperty(this.element, attrName); - if (this.namespace) { - this._update = updateAttributeNS; - this.attrName = attrName; - } else { - if (element.namespaceURI === svgNamespace || attrName === 'style' || !normalizedAttrName) { - this.attrName = attrName; - this._update = updateAttribute; - } else { - this.attrName = normalizedAttrName; - this._update = updateProperty; - } - } - } - - AttrMorph.prototype.setContent = function (value) { - if (this.escaped) { - var sanitized = sanitizeAttributeValue(this.element, this.attrName, value); - this._update(sanitized, this.namespace); - } else { - this._update(value, this.namespace); - } - }; - - __exports__["default"] = AttrMorph; - }); -enifed("morph/attr-morph/sanitize-attribute-value", - ["exports"], - function(__exports__) { - "use strict"; - /* jshint scripturl:true */ - - var parsingNode; - var badProtocols = { - 'javascript:': true, - 'vbscript:': true - }; - - var badTags = { - 'A': true, - 'BODY': true, - 'LINK': true, - 'IMG': true, - 'IFRAME': true - }; - - var badAttributes = { - 'href': true, - 'src': true, - 'background': true - }; - __exports__.badAttributes = badAttributes; - function sanitizeAttributeValue(element, attribute, value) { - var tagName; - - if (!parsingNode) { - parsingNode = document.createElement('a'); - } - - if (!element) { - tagName = null; - } else { - tagName = element.tagName; - } - - if (value && value.toHTML) { - return value.toHTML(); - } - - if ((tagName === null || badTags[tagName]) && badAttributes[attribute]) { - parsingNode.href = value; - - if (badProtocols[parsingNode.protocol] === true) { - return 'unsafe:' + value; - } - } - - return value; - } - - __exports__.sanitizeAttributeValue = sanitizeAttributeValue; - }); -enifed("morph/dom-helper", - ["../morph/morph","../morph/attr-morph","./dom-helper/build-html-dom","./dom-helper/classes","./dom-helper/prop","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - var Morph = __dependency1__["default"]; - var AttrMorph = __dependency2__["default"]; - var buildHTMLDOM = __dependency3__.buildHTMLDOM; - var svgNamespace = __dependency3__.svgNamespace; - var svgHTMLIntegrationPoints = __dependency3__.svgHTMLIntegrationPoints; - var addClasses = __dependency4__.addClasses; - var removeClasses = __dependency4__.removeClasses; - var normalizeProperty = __dependency5__.normalizeProperty; - var isAttrRemovalValue = __dependency5__.isAttrRemovalValue; - - var doc = typeof document === 'undefined' ? false : document; - - var deletesBlankTextNodes = doc && (function(document){ - var element = document.createElement('div'); - element.appendChild( document.createTextNode('') ); - var clonedElement = element.cloneNode(true); - return clonedElement.childNodes.length === 0; - })(doc); - - var ignoresCheckedAttribute = doc && (function(document){ - var element = document.createElement('input'); - element.setAttribute('checked', 'checked'); - var clonedElement = element.cloneNode(false); - return !clonedElement.checked; - })(doc); - - var canRemoveSvgViewBoxAttribute = doc && (doc.createElementNS ? (function(document){ - var element = document.createElementNS(svgNamespace, 'svg'); - element.setAttribute('viewBox', '0 0 100 100'); - element.removeAttribute('viewBox'); - return !element.getAttribute('viewBox'); - })(doc) : true); - - var canClone = doc && (function(document){ - var element = document.createElement('div'); - element.appendChild( document.createTextNode(' ')); - element.appendChild( document.createTextNode(' ')); - var clonedElement = element.cloneNode(true); - return clonedElement.childNodes[0].nodeValue === ' '; - })(doc); - - // This is not the namespace of the element, but of - // the elements inside that elements. - function interiorNamespace(element){ - if ( - element && - element.namespaceURI === svgNamespace && - !svgHTMLIntegrationPoints[element.tagName] - ) { - return svgNamespace; - } else { - return null; - } - } - - // The HTML spec allows for "omitted start tags". These tags are optional - // when their intended child is the first thing in the parent tag. For - // example, this is a tbody start tag: - // - //
    - // - // - // - // The tbody may be omitted, and the browser will accept and render: - // - //
    - // - // - // However, the omitted start tag will still be added to the DOM. Here - // we test the string and context to see if the browser is about to - // perform this cleanup. - // - // http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#optional-tags - // describes which tags are omittable. The spec for tbody and colgroup - // explains this behavior: - // - // http://www.whatwg.org/specs/web-apps/current-work/multipage/tables.html#the-tbody-element - // http://www.whatwg.org/specs/web-apps/current-work/multipage/tables.html#the-colgroup-element - // - - var omittedStartTagChildTest = /<([\w:]+)/; - function detectOmittedStartTag(string, contextualElement){ - // Omitted start tags are only inside table tags. - if (contextualElement.tagName === 'TABLE') { - var omittedStartTagChildMatch = omittedStartTagChildTest.exec(string); - if (omittedStartTagChildMatch) { - var omittedStartTagChild = omittedStartTagChildMatch[1]; - // It is already asserted that the contextual element is a table - // and not the proper start tag. Just see if a tag was omitted. - return omittedStartTagChild === 'tr' || - omittedStartTagChild === 'col'; - } - } - } - - function buildSVGDOM(html, dom){ - var div = dom.document.createElement('div'); - div.innerHTML = ''+html+''; - return div.firstChild.childNodes; - } - - /* - * A class wrapping DOM functions to address environment compatibility, - * namespaces, contextual elements for morph un-escaped content - * insertion. - * - * When entering a template, a DOMHelper should be passed: - * - * template(context, { hooks: hooks, dom: new DOMHelper() }); - * - * TODO: support foreignObject as a passed contextual element. It has - * a namespace (svg) that does not match its internal namespace - * (xhtml). - * - * @class DOMHelper - * @constructor - * @param {HTMLDocument} _document The document DOM methods are proxied to - */ - function DOMHelper(_document){ - this.document = _document || document; - if (!this.document) { - throw new Error("A document object must be passed to the DOMHelper, or available on the global scope"); - } - this.canClone = canClone; - this.namespace = null; - } - - var prototype = DOMHelper.prototype; - prototype.constructor = DOMHelper; - - prototype.getElementById = function(id, rootNode) { - rootNode = rootNode || this.document; - return rootNode.getElementById(id); - }; - - prototype.insertBefore = function(element, childElement, referenceChild) { - return element.insertBefore(childElement, referenceChild); - }; - - prototype.appendChild = function(element, childElement) { - return element.appendChild(childElement); - }; - - prototype.childAt = function(element, indices) { - var child = element; - - for (var i = 0; i < indices.length; i++) { - child = child.childNodes.item(indices[i]); - } - - return child; - }; - - // Note to a Fellow Implementor: - // Ahh, accessing a child node at an index. Seems like it should be so simple, - // doesn't it? Unfortunately, this particular method has caused us a surprising - // amount of pain. As you'll note below, this method has been modified to walk - // the linked list of child nodes rather than access the child by index - // directly, even though there are two (2) APIs in the DOM that do this for us. - // If you're thinking to yourself, "What an oversight! What an opportunity to - // optimize this code!" then to you I say: stop! For I have a tale to tell. - // - // First, this code must be compatible with simple-dom for rendering on the - // server where there is no real DOM. Previously, we accessed a child node - // directly via `element.childNodes[index]`. While we *could* in theory do a - // full-fidelity simulation of a live `childNodes` array, this is slow, - // complicated and error-prone. - // - // "No problem," we thought, "we'll just use the similar - // `childNodes.item(index)` API." Then, we could just implement our own `item` - // method in simple-dom and walk the child node linked list there, allowing - // us to retain the performance advantages of the (surely optimized) `item()` - // API in the browser. - // - // Unfortunately, an enterprising soul named Samy Alzahrani discovered that in - // IE8, accessing an item out-of-bounds via `item()` causes an exception where - // other browsers return null. This necessitated a... check of - // `childNodes.length`, bringing us back around to having to support a - // full-fidelity `childNodes` array! - // - // Worst of all, Kris Selden investigated how browsers are actualy implemented - // and discovered that they're all linked lists under the hood anyway. Accessing - // `childNodes` requires them to allocate a new live collection backed by that - // linked list, which is itself a rather expensive operation. Our assumed - // optimization had backfired! That is the danger of magical thinking about - // the performance of native implementations. - // - // And this, my friends, is why the following implementation just walks the - // linked list, as surprised as that may make you. Please ensure you understand - // the above before changing this and submitting a PR. - // - // Tom Dale, January 18th, 2015, Portland OR - prototype.childAtIndex = function(element, index) { - var node = element.firstChild; - - for (var idx = 0; node && idx < index; idx++) { - node = node.nextSibling; - } - - return node; - }; - - prototype.appendText = function(element, text) { - return element.appendChild(this.document.createTextNode(text)); - }; - - prototype.setAttribute = function(element, name, value) { - element.setAttribute(name, String(value)); - }; - - prototype.setAttributeNS = function(element, namespace, name, value) { - element.setAttributeNS(namespace, name, String(value)); - }; - - if (canRemoveSvgViewBoxAttribute){ - prototype.removeAttribute = function(element, name) { - element.removeAttribute(name); - }; - } else { - prototype.removeAttribute = function(element, name) { - if (element.tagName === 'svg' && name === 'viewBox') { - element.setAttribute(name, null); - } else { - element.removeAttribute(name); - } - }; - } - - prototype.setPropertyStrict = function(element, name, value) { - element[name] = value; - }; - - prototype.setProperty = function(element, name, value, namespace) { - var lowercaseName = name.toLowerCase(); - if (element.namespaceURI === svgNamespace || lowercaseName === 'style') { - if (isAttrRemovalValue(value)) { - element.removeAttribute(name); - } else { - if (namespace) { - element.setAttributeNS(namespace, name, value); - } else { - element.setAttribute(name, value); - } - } - } else { - var normalized = normalizeProperty(element, name); - if (normalized) { - element[normalized] = value; - } else { - if (isAttrRemovalValue(value)) { - element.removeAttribute(name); - } else { - if (namespace && element.setAttributeNS) { - element.setAttributeNS(namespace, name, value); - } else { - element.setAttribute(name, value); - } - } - } - } - }; - - if (doc && doc.createElementNS) { - // Only opt into namespace detection if a contextualElement - // is passed. - prototype.createElement = function(tagName, contextualElement) { - var namespace = this.namespace; - if (contextualElement) { - if (tagName === 'svg') { - namespace = svgNamespace; - } else { - namespace = interiorNamespace(contextualElement); - } - } - if (namespace) { - return this.document.createElementNS(namespace, tagName); - } else { - return this.document.createElement(tagName); - } - }; - prototype.setAttributeNS = function(element, namespace, name, value) { - element.setAttributeNS(namespace, name, String(value)); - }; - } else { - prototype.createElement = function(tagName) { - return this.document.createElement(tagName); - }; - prototype.setAttributeNS = function(element, namespace, name, value) { - element.setAttribute(name, String(value)); - }; - } - - prototype.addClasses = addClasses; - prototype.removeClasses = removeClasses; - - prototype.setNamespace = function(ns) { - this.namespace = ns; - }; - - prototype.detectNamespace = function(element) { - this.namespace = interiorNamespace(element); - }; - - prototype.createDocumentFragment = function(){ - return this.document.createDocumentFragment(); - }; - - prototype.createTextNode = function(text){ - return this.document.createTextNode(text); - }; - - prototype.createComment = function(text){ - return this.document.createComment(text); - }; - - prototype.repairClonedNode = function(element, blankChildTextNodes, isChecked){ - if (deletesBlankTextNodes && blankChildTextNodes.length > 0) { - for (var i=0, len=blankChildTextNodes.length;i]*selected/; - return function detectAutoSelectedOption(select, option, html) { //jshint ignore:line - return select.selectedIndex === 0 && - !detectAutoSelectedOptionRegex.test(html); - }; - })(); - } else { - detectAutoSelectedOption = function detectAutoSelectedOption(select, option, html) { //jshint ignore:line - var selectedAttribute = option.getAttribute('selected'); - return select.selectedIndex === 0 && ( - selectedAttribute === null || - ( selectedAttribute !== '' && selectedAttribute.toLowerCase() !== 'selected' ) - ); - }; - } - - var tagNamesRequiringInnerHTMLFix = doc && (function(document) { - var tagNamesRequiringInnerHTMLFix; - // IE 9 and earlier don't allow us to set innerHTML on col, colgroup, frameset, - // html, style, table, tbody, tfoot, thead, title, tr. Detect this and add - // them to an initial list of corrected tags. - // - // Here we are only dealing with the ones which can have child nodes. - // - var tableNeedsInnerHTMLFix; - var tableInnerHTMLTestElement = document.createElement('table'); - try { - tableInnerHTMLTestElement.innerHTML = ''; - } catch (e) { - } finally { - tableNeedsInnerHTMLFix = (tableInnerHTMLTestElement.childNodes.length === 0); - } - if (tableNeedsInnerHTMLFix) { - tagNamesRequiringInnerHTMLFix = { - colgroup: ['table'], - table: [], - tbody: ['table'], - tfoot: ['table'], - thead: ['table'], - tr: ['table', 'tbody'] - }; - } - - // IE 8 doesn't allow setting innerHTML on a select tag. Detect this and - // add it to the list of corrected tags. - // - var selectInnerHTMLTestElement = document.createElement('select'); - selectInnerHTMLTestElement.innerHTML = ''; - if (!selectInnerHTMLTestElement.childNodes[0]) { - tagNamesRequiringInnerHTMLFix = tagNamesRequiringInnerHTMLFix || {}; - tagNamesRequiringInnerHTMLFix.select = []; - } - return tagNamesRequiringInnerHTMLFix; - })(doc); - - function scriptSafeInnerHTML(element, html) { - // without a leading text node, IE will drop a leading script tag. - html = '­'+html; - - element.innerHTML = html; - - var nodes = element.childNodes; - - // Look for ­ to remove it. - var shyElement = nodes[0]; - while (shyElement.nodeType === 1 && !shyElement.nodeName) { - shyElement = shyElement.firstChild; - } - // At this point it's the actual unicode character. - if (shyElement.nodeType === 3 && shyElement.nodeValue.charAt(0) === "\u00AD") { - var newValue = shyElement.nodeValue.slice(1); - if (newValue.length) { - shyElement.nodeValue = shyElement.nodeValue.slice(1); - } else { - shyElement.parentNode.removeChild(shyElement); - } - } - - return nodes; - } - - function buildDOMWithFix(html, contextualElement){ - var tagName = contextualElement.tagName; - - // Firefox versions < 11 do not have support for element.outerHTML. - var outerHTML = contextualElement.outerHTML || new XMLSerializer().serializeToString(contextualElement); - if (!outerHTML) { - throw "Can't set innerHTML on "+tagName+" in this browser"; - } - - var wrappingTags = tagNamesRequiringInnerHTMLFix[tagName.toLowerCase()]; - var startTag = outerHTML.match(new RegExp("<"+tagName+"([^>]*)>", 'i'))[0]; - var endTag = ''; - - var wrappedHTML = [startTag, html, endTag]; - - var i = wrappingTags.length; - var wrappedDepth = 1 + i; - while(i--) { - wrappedHTML.unshift('<'+wrappingTags[i]+'>'); - wrappedHTML.push(''); - } - - var wrapper = document.createElement('div'); - scriptSafeInnerHTML(wrapper, wrappedHTML.join('')); - var element = wrapper; - while (wrappedDepth--) { - element = element.firstChild; - while (element && element.nodeType !== 1) { - element = element.nextSibling; - } - } - while (element && element.tagName !== tagName) { - element = element.nextSibling; - } - return element ? element.childNodes : []; - } - - var buildDOM; - if (needsShy) { - buildDOM = function buildDOM(html, contextualElement, dom){ - contextualElement = dom.cloneNode(contextualElement, false); - scriptSafeInnerHTML(contextualElement, html); - return contextualElement.childNodes; - }; - } else { - buildDOM = function buildDOM(html, contextualElement, dom){ - contextualElement = dom.cloneNode(contextualElement, false); - contextualElement.innerHTML = html; - return contextualElement.childNodes; - }; - } - - var buildIESafeDOM; - if (tagNamesRequiringInnerHTMLFix || movesWhitespace) { - buildIESafeDOM = function buildIESafeDOM(html, contextualElement, dom) { - // Make a list of the leading text on script nodes. Include - // script tags without any whitespace for easier processing later. - var spacesBefore = []; - var spacesAfter = []; - if (typeof html === 'string') { - html = html.replace(/(\s*)()(\s*)/g, function(match, tag, spaces) { - spacesAfter.push(spaces); - return tag; - }); - } - - // Fetch nodes - var nodes; - if (tagNamesRequiringInnerHTMLFix[contextualElement.tagName.toLowerCase()]) { - // buildDOMWithFix uses string wrappers for problematic innerHTML. - nodes = buildDOMWithFix(html, contextualElement); - } else { - nodes = buildDOM(html, contextualElement, dom); - } - - // Build a list of script tags, the nodes themselves will be - // mutated as we add test nodes. - var i, j, node, nodeScriptNodes; - var scriptNodes = []; - for (i=0;i 0) { - textNode = dom.document.createTextNode(spaceBefore); - scriptNode.parentNode.insertBefore(textNode, scriptNode); - } - - spaceAfter = spacesAfter[i]; - if (spaceAfter && spaceAfter.length > 0) { - textNode = dom.document.createTextNode(spaceAfter); - scriptNode.parentNode.insertBefore(textNode, scriptNode.nextSibling); - } - } - - return nodes; - }; - } else { - buildIESafeDOM = buildDOM; - } - - // When parsing innerHTML, the browser may set up DOM with some things - // not desired. For example, with a select element context and option - // innerHTML the first option will be marked selected. - // - // This method cleans up some of that, resetting those values back to - // their defaults. - // - function buildSafeDOM(html, contextualElement, dom) { - var childNodes = buildIESafeDOM(html, contextualElement, dom); - - if (contextualElement.tagName === 'SELECT') { - // Walk child nodes - for (var i = 0; childNodes[i]; i++) { - // Find and process the first option child node - if (childNodes[i].tagName === 'OPTION') { - if (detectAutoSelectedOption(childNodes[i].parentNode, childNodes[i], html)) { - // If the first node is selected but does not have an attribute, - // presume it is not really selected. - childNodes[i].parentNode.selectedIndex = -1; - } - break; - } - } - } - - return childNodes; - } - - var buildHTMLDOM; - if (needsIntegrationPointFix) { - buildHTMLDOM = function buildHTMLDOM(html, contextualElement, dom){ - if (svgHTMLIntegrationPoints[contextualElement.tagName]) { - return buildSafeDOM(html, document.createElement('div'), dom); - } else { - return buildSafeDOM(html, contextualElement, dom); - } - }; - } else { - buildHTMLDOM = buildSafeDOM; - } - - __exports__.buildHTMLDOM = buildHTMLDOM; - }); -enifed("morph/dom-helper/classes", - ["exports"], - function(__exports__) { - "use strict"; - var doc = typeof document === 'undefined' ? false : document; - - // PhantomJS has a broken classList. See https://github.com/ariya/phantomjs/issues/12782 - var canClassList = doc && (function(){ - var d = document.createElement('div'); - if (!d.classList) { - return false; - } - d.classList.add('boo'); - d.classList.add('boo', 'baz'); - return (d.className === 'boo baz'); - })(); - - function buildClassList(element) { - var classString = (element.getAttribute('class') || ''); - return classString !== '' && classString !== ' ' ? classString.split(' ') : []; - } - - function intersect(containingArray, valuesArray) { - var containingIndex = 0; - var containingLength = containingArray.length; - var valuesIndex = 0; - var valuesLength = valuesArray.length; - - var intersection = new Array(valuesLength); - - // TODO: rewrite this loop in an optimal manner - for (;containingIndex 0 ? existingClasses.join(' ') : ''); - } - } - - function removeClassesViaAttribute(element, classNames) { - var existingClasses = buildClassList(element); - - var indexes = intersect(classNames, existingClasses); - var didChange = false; - var newClasses = []; - - for (var i=0, l=existingClasses.length; i 0 ? newClasses.join(' ') : ''); - } - } - - var addClasses, removeClasses; - if (canClassList) { - addClasses = function addClasses(element, classNames) { - if (element.classList) { - if (classNames.length === 1) { - element.classList.add(classNames[0]); - } else if (classNames.length === 2) { - element.classList.add(classNames[0], classNames[1]); - } else { - element.classList.add.apply(element.classList, classNames); - } - } else { - addClassesViaAttribute(element, classNames); - } - }; - removeClasses = function removeClasses(element, classNames) { - if (element.classList) { - if (classNames.length === 1) { - element.classList.remove(classNames[0]); - } else if (classNames.length === 2) { - element.classList.remove(classNames[0], classNames[1]); - } else { - element.classList.remove.apply(element.classList, classNames); - } - } else { - removeClassesViaAttribute(element, classNames); - } - }; - } else { - addClasses = addClassesViaAttribute; - removeClasses = removeClassesViaAttribute; - } - - __exports__.addClasses = addClasses; - __exports__.removeClasses = removeClasses; - }); -enifed("morph/dom-helper/prop", - ["exports"], - function(__exports__) { - "use strict"; - function isAttrRemovalValue(value) { - return value === null || value === undefined; - } - - __exports__.isAttrRemovalValue = isAttrRemovalValue;// TODO should this be an o_create kind of thing? - var propertyCaches = {}; - __exports__.propertyCaches = propertyCaches; - function normalizeProperty(element, attrName) { - var tagName = element.tagName; - var key; - var cache = propertyCaches[tagName]; - if (!cache) { - // TODO should this be an o_create kind of thing? - cache = {}; - for (key in element) { - cache[key.toLowerCase()] = key; - } - propertyCaches[tagName] = cache; - } - - // presumes that the attrName has been lowercased. - return cache[attrName]; - } - - __exports__.normalizeProperty = normalizeProperty; - }); -enifed("morph/morph", - ["exports"], - function(__exports__) { - "use strict"; - var splice = Array.prototype.splice; - - function ensureStartEnd(start, end) { - if (start === null || end === null) { - throw new Error('a fragment parent must have boundary nodes in order to detect insertion'); - } - } - - function ensureContext(contextualElement) { - if (!contextualElement || contextualElement.nodeType !== 1) { - throw new Error('An element node must be provided for a contextualElement, you provided ' + - (contextualElement ? 'nodeType ' + contextualElement.nodeType : 'nothing')); - } - } - - // TODO: this is an internal API, this should be an assert - function Morph(parent, start, end, domHelper, contextualElement) { - if (parent.nodeType === 11) { - ensureStartEnd(start, end); - this.element = null; - } else { - this.element = parent; - } - this._parent = parent; - this.start = start; - this.end = end; - this.domHelper = domHelper; - ensureContext(contextualElement); - this.contextualElement = contextualElement; - this.escaped = true; - this.reset(); - } - - Morph.prototype.reset = function() { - this.text = null; - this.owner = null; - this.morphs = null; - this.before = null; - this.after = null; - }; - - Morph.prototype.parent = function () { - if (!this.element) { - var parent = this.start.parentNode; - if (this._parent !== parent) { - this._parent = parent; - } - if (parent.nodeType === 1) { - this.element = parent; - } - } - return this._parent; - }; - - Morph.prototype.destroy = function () { - if (this.owner) { - this.owner.removeMorph(this); - } else { - clear(this.element || this.parent(), this.start, this.end); - } - }; - - Morph.prototype.removeMorph = function (morph) { - var morphs = this.morphs; - for (var i=0, l=morphs.length; i 0 ? morphs[index-1] : null; - var after = index < morphs.length ? morphs[index] : null; - var start = before === null ? this.start : (before.end === null ? parent.lastChild : before.end.previousSibling); - var end = after === null ? this.end : (after.start === null ? parent.firstChild : after.start.nextSibling); - var morph = new Morph(parent, start, end, this.domHelper, this.contextualElement); - - morph.owner = this; - morph._update(parent, node); - - if (before !== null) { - morph.before = before; - before.end = start.nextSibling; - before.after = morph; - } - - if (after !== null) { - morph.after = after; - after.before = morph; - after.start = end.previousSibling; - } - - this.morphs.splice(index, 0, morph); - return morph; - }; - - Morph.prototype.replace = function (index, removedLength, addedNodes) { - if (this.morphs === null) { - this.morphs = []; - } - var parent = this.element || this.parent(); - var morphs = this.morphs; - var before = index > 0 ? morphs[index-1] : null; - var after = index+removedLength < morphs.length ? morphs[index+removedLength] : null; - var start = before === null ? this.start : (before.end === null ? parent.lastChild : before.end.previousSibling); - var end = after === null ? this.end : (after.start === null ? parent.firstChild : after.start.nextSibling); - var addedLength = addedNodes === undefined ? 0 : addedNodes.length; - var args, i, current; - - if (removedLength > 0) { - clear(parent, start, end); - } - - if (addedLength === 0) { - if (before !== null) { - before.after = after; - before.end = end; - } - if (after !== null) { - after.before = before; - after.start = start; - } - morphs.splice(index, removedLength); - return; - } - - args = new Array(addedLength+2); - if (addedLength > 0) { - for (i=0; i " + n.nextStates.map(function(s) { return s.debug() }).join(" or ") + " )"; - }).join(", ") - } - END IF **/ - - // This is a somewhat naive strategy, but should work in a lot of cases - // A better strategy would properly resolve /posts/:id/new and /posts/edit/:id. - // - // This strategy generally prefers more static and less dynamic matching. - // Specifically, it - // - // * prefers fewer stars to more, then - // * prefers using stars for less of the match to more, then - // * prefers fewer dynamic segments to more, then - // * prefers more static segments to more - function sortSolutions(states) { - return states.sort(function(a, b) { - if (a.types.stars !== b.types.stars) { return a.types.stars - b.types.stars; } - - if (a.types.stars) { - if (a.types.statics !== b.types.statics) { return b.types.statics - a.types.statics; } - if (a.types.dynamics !== b.types.dynamics) { return b.types.dynamics - a.types.dynamics; } - } - - if (a.types.dynamics !== b.types.dynamics) { return a.types.dynamics - b.types.dynamics; } - if (a.types.statics !== b.types.statics) { return b.types.statics - a.types.statics; } - - return 0; - }); - } - - function recognizeChar(states, ch) { - var nextStates = []; - - for (var i=0, l=states.length; i 2 && key.slice(keyLength -2) === '[]') { - isArray = true; - key = key.slice(0, keyLength - 2); - if(!queryParams[key]) { - queryParams[key] = []; - } - } - value = pair[1] ? decodeQueryParamPart(pair[1]) : ''; - } - if (isArray) { - queryParams[key].push(value); - } else { - queryParams[key] = value; - } - } - return queryParams; - }, - - recognize: function(path) { - var states = [ this.rootState ], - pathLen, i, l, queryStart, queryParams = {}, - isSlashDropped = false; - - queryStart = path.indexOf('?'); - if (queryStart !== -1) { - var queryString = path.substr(queryStart + 1, path.length); - path = path.substr(0, queryStart); - queryParams = this.parseQueryString(queryString); - } - - path = decodeURI(path); - - // DEBUG GROUP path - - if (path.charAt(0) !== "/") { path = "/" + path; } - - pathLen = path.length; - if (pathLen > 1 && path.charAt(pathLen - 1) === "/") { - path = path.substr(0, pathLen - 1); - isSlashDropped = true; - } - - for (i=0, l=path.length; i= 0 && proceed; --i) { - var route = routes[i]; - recognizer.add(routes, { as: route.handler }); - proceed = route.path === '/' || route.path === '' || route.handler.slice(-6) === '.index'; - } - }); - }, - - hasRoute: function(route) { - return this.recognizer.hasRoute(route); - }, - - queryParamsTransition: function(changelist, wasTransitioning, oldState, newState) { - var router = this; - - fireQueryParamDidChange(this, newState, changelist); - - if (!wasTransitioning && this.activeTransition) { - // One of the handlers in queryParamsDidChange - // caused a transition. Just return that transition. - return this.activeTransition; - } else { - // Running queryParamsDidChange didn't change anything. - // Just update query params and be on our way. - - // We have to return a noop transition that will - // perform a URL update at the end. This gives - // the user the ability to set the url update - // method (default is replaceState). - var newTransition = new Transition(this); - newTransition.queryParamsOnly = true; - - oldState.queryParams = finalizeQueryParamChange(this, newState.handlerInfos, newState.queryParams, newTransition); - - newTransition.promise = newTransition.promise.then(function(result) { - updateURL(newTransition, oldState, true); - if (router.didTransition) { - router.didTransition(router.currentHandlerInfos); - } - return result; - }, null, promiseLabel("Transition complete")); - return newTransition; - } - }, - - // NOTE: this doesn't really belong here, but here - // it shall remain until our ES6 transpiler can - // handle cyclical deps. - transitionByIntent: function(intent, isIntermediate) { - try { - return getTransitionByIntent.apply(this, arguments); - } catch(e) { - return new Transition(this, intent, null, e); - } - }, - - /** - Clears the current and target route handlers and triggers exit - on each of them starting at the leaf and traversing up through - its ancestors. - */ - reset: function() { - if (this.state) { - forEach(this.state.handlerInfos.slice().reverse(), function(handlerInfo) { - var handler = handlerInfo.handler; - callHook(handler, 'exit'); - }); - } - - this.state = new TransitionState(); - this.currentHandlerInfos = null; - }, - - activeTransition: null, - - /** - var handler = handlerInfo.handler; - The entry point for handling a change to the URL (usually - via the back and forward button). - - Returns an Array of handlers and the parameters associated - with those parameters. - - @param {String} url a URL to process - - @return {Array} an Array of `[handler, parameter]` tuples - */ - handleURL: function(url) { - // Perform a URL-based transition, but don't change - // the URL afterward, since it already happened. - var args = slice.call(arguments); - if (url.charAt(0) !== '/') { args[0] = '/' + url; } - - return doTransition(this, args).method(null); - }, - - /** - Hook point for updating the URL. - - @param {String} url a URL to update to - */ - updateURL: function() { - throw new Error("updateURL is not implemented"); - }, - - /** - Hook point for replacing the current URL, i.e. with replaceState - - By default this behaves the same as `updateURL` - - @param {String} url a URL to update to - */ - replaceURL: function(url) { - this.updateURL(url); - }, - - /** - Transition into the specified named route. - - If necessary, trigger the exit callback on any handlers - that are no longer represented by the target route. - - @param {String} name the name of the route - */ - transitionTo: function(name) { - return doTransition(this, arguments); - }, - - intermediateTransitionTo: function(name) { - return doTransition(this, arguments, true); - }, - - refresh: function(pivotHandler) { - var state = this.activeTransition ? this.activeTransition.state : this.state; - var handlerInfos = state.handlerInfos; - var params = {}; - for (var i = 0, len = handlerInfos.length; i < len; ++i) { - var handlerInfo = handlerInfos[i]; - params[handlerInfo.name] = handlerInfo.params || {}; - } - - log(this, "Starting a refresh transition"); - var intent = new NamedTransitionIntent({ - name: handlerInfos[handlerInfos.length - 1].name, - pivotHandler: pivotHandler || handlerInfos[0].handler, - contexts: [], // TODO collect contexts...? - queryParams: this._changedQueryParams || state.queryParams || {} - }); - - return this.transitionByIntent(intent, false); - }, - - /** - Identical to `transitionTo` except that the current URL will be replaced - if possible. - - This method is intended primarily for use with `replaceState`. - - @param {String} name the name of the route - */ - replaceWith: function(name) { - return doTransition(this, arguments).method('replace'); - }, - - /** - Take a named route and context objects and generate a - URL. - - @param {String} name the name of the route to generate - a URL for - @param {...Object} objects a list of objects to serialize - - @return {String} a URL - */ - generate: function(handlerName) { - - var partitionedArgs = extractQueryParams(slice.call(arguments, 1)), - suppliedParams = partitionedArgs[0], - queryParams = partitionedArgs[1]; - - // Construct a TransitionIntent with the provided params - // and apply it to the present state of the router. - var intent = new NamedTransitionIntent({ name: handlerName, contexts: suppliedParams }); - var state = intent.applyToState(this.state, this.recognizer, this.getHandler); - var params = {}; - - for (var i = 0, len = state.handlerInfos.length; i < len; ++i) { - var handlerInfo = state.handlerInfos[i]; - var handlerParams = handlerInfo.serialize(); - merge(params, handlerParams); - } - params.queryParams = queryParams; - - return this.recognizer.generate(handlerName, params); - }, - - applyIntent: function(handlerName, contexts) { - var intent = new NamedTransitionIntent({ - name: handlerName, - contexts: contexts - }); - - var state = this.activeTransition && this.activeTransition.state || this.state; - return intent.applyToState(state, this.recognizer, this.getHandler); - }, - - isActiveIntent: function(handlerName, contexts, queryParams) { - var targetHandlerInfos = this.state.handlerInfos, - found = false, names, object, handlerInfo, handlerObj, i, len; - - if (!targetHandlerInfos.length) { return false; } - - var targetHandler = targetHandlerInfos[targetHandlerInfos.length - 1].name; - var recogHandlers = this.recognizer.handlersFor(targetHandler); - - var index = 0; - for (len = recogHandlers.length; index < len; ++index) { - handlerInfo = targetHandlerInfos[index]; - if (handlerInfo.name === handlerName) { break; } - } - - if (index === recogHandlers.length) { - // The provided route name isn't even in the route hierarchy. - return false; - } - - var state = new TransitionState(); - state.handlerInfos = targetHandlerInfos.slice(0, index + 1); - recogHandlers = recogHandlers.slice(0, index + 1); - - var intent = new NamedTransitionIntent({ - name: targetHandler, - contexts: contexts - }); - - var newState = intent.applyToHandlers(state, recogHandlers, this.getHandler, targetHandler, true, true); - - var handlersEqual = handlerInfosEqual(newState.handlerInfos, state.handlerInfos); - if (!queryParams || !handlersEqual) { - return handlersEqual; - } - - // Get a hash of QPs that will still be active on new route - var activeQPsOnNewHandler = {}; - merge(activeQPsOnNewHandler, queryParams); - - var activeQueryParams = this.state.queryParams; - for (var key in activeQueryParams) { - if (activeQueryParams.hasOwnProperty(key) && - activeQPsOnNewHandler.hasOwnProperty(key)) { - activeQPsOnNewHandler[key] = activeQueryParams[key]; - } - } - - return handlersEqual && !getChangelist(activeQPsOnNewHandler, queryParams); - }, - - isActive: function(handlerName) { - var partitionedArgs = extractQueryParams(slice.call(arguments, 1)); - return this.isActiveIntent(handlerName, partitionedArgs[0], partitionedArgs[1]); - }, - - trigger: function(name) { - var args = slice.call(arguments); - trigger(this, this.currentHandlerInfos, false, args); - }, - - /** - Hook point for logging transition status updates. - - @param {String} message The message to log. - */ - log: null, - - _willChangeContextEvent: 'willChangeContext', - _triggerWillChangeContext: function(handlerInfos, newTransition) { - trigger(this, handlerInfos, true, [this._willChangeContextEvent, newTransition]); - }, - - _triggerWillLeave: function(handlerInfos, newTransition, leavingChecker) { - trigger(this, handlerInfos, true, ['willLeave', newTransition, leavingChecker]); - } - }; - - /** - @private - - Fires queryParamsDidChange event - */ - function fireQueryParamDidChange(router, newState, queryParamChangelist) { - // If queryParams changed trigger event - if (queryParamChangelist) { - - // This is a little hacky but we need some way of storing - // changed query params given that no activeTransition - // is guaranteed to have occurred. - router._changedQueryParams = queryParamChangelist.all; - trigger(router, newState.handlerInfos, true, ['queryParamsDidChange', queryParamChangelist.changed, queryParamChangelist.all, queryParamChangelist.removed]); - router._changedQueryParams = null; - } - } - - /** - @private - - Takes an Array of `HandlerInfo`s, figures out which ones are - exiting, entering, or changing contexts, and calls the - proper handler hooks. - - For example, consider the following tree of handlers. Each handler is - followed by the URL segment it handles. - - ``` - |~index ("/") - | |~posts ("/posts") - | | |-showPost ("/:id") - | | |-newPost ("/new") - | | |-editPost ("/edit") - | |~about ("/about/:id") - ``` - - Consider the following transitions: - - 1. A URL transition to `/posts/1`. - 1. Triggers the `*model` callbacks on the - `index`, `posts`, and `showPost` handlers - 2. Triggers the `enter` callback on the same - 3. Triggers the `setup` callback on the same - 2. A direct transition to `newPost` - 1. Triggers the `exit` callback on `showPost` - 2. Triggers the `enter` callback on `newPost` - 3. Triggers the `setup` callback on `newPost` - 3. A direct transition to `about` with a specified - context object - 1. Triggers the `exit` callback on `newPost` - and `posts` - 2. Triggers the `serialize` callback on `about` - 3. Triggers the `enter` callback on `about` - 4. Triggers the `setup` callback on `about` - - @param {Router} transition - @param {TransitionState} newState - */ - function setupContexts(router, newState, transition) { - var partition = partitionHandlers(router.state, newState); - - forEach(partition.exited, function(handlerInfo) { - var handler = handlerInfo.handler; - delete handler.context; - - callHook(handler, 'reset', true, transition); - callHook(handler, 'exit', transition); - }); - - var oldState = router.oldState = router.state; - router.state = newState; - var currentHandlerInfos = router.currentHandlerInfos = partition.unchanged.slice(); - - try { - forEach(partition.reset, function(handlerInfo) { - var handler = handlerInfo.handler; - callHook(handler, 'reset', false, transition); - }); - - forEach(partition.updatedContext, function(handlerInfo) { - return handlerEnteredOrUpdated(currentHandlerInfos, handlerInfo, false, transition); - }); - - forEach(partition.entered, function(handlerInfo) { - return handlerEnteredOrUpdated(currentHandlerInfos, handlerInfo, true, transition); - }); - } catch(e) { - router.state = oldState; - router.currentHandlerInfos = oldState.handlerInfos; - throw e; - } - - router.state.queryParams = finalizeQueryParamChange(router, currentHandlerInfos, newState.queryParams, transition); - } - - - /** - @private - - Helper method used by setupContexts. Handles errors or redirects - that may happen in enter/setup. - */ - function handlerEnteredOrUpdated(currentHandlerInfos, handlerInfo, enter, transition) { - - var handler = handlerInfo.handler, - context = handlerInfo.context; - - if (enter) { - callHook(handler, 'enter', transition); - } - if (transition && transition.isAborted) { - throw new TransitionAborted(); - } - - handler.context = context; - callHook(handler, 'contextDidChange'); - - callHook(handler, 'setup', context, transition); - if (transition && transition.isAborted) { - throw new TransitionAborted(); - } - - currentHandlerInfos.push(handlerInfo); - - return true; - } - - - /** - @private - - This function is called when transitioning from one URL to - another to determine which handlers are no longer active, - which handlers are newly active, and which handlers remain - active but have their context changed. - - Take a list of old handlers and new handlers and partition - them into four buckets: - - * unchanged: the handler was active in both the old and - new URL, and its context remains the same - * updated context: the handler was active in both the - old and new URL, but its context changed. The handler's - `setup` method, if any, will be called with the new - context. - * exited: the handler was active in the old URL, but is - no longer active. - * entered: the handler was not active in the old URL, but - is now active. - - The PartitionedHandlers structure has four fields: - - * `updatedContext`: a list of `HandlerInfo` objects that - represent handlers that remain active but have a changed - context - * `entered`: a list of `HandlerInfo` objects that represent - handlers that are newly active - * `exited`: a list of `HandlerInfo` objects that are no - longer active. - * `unchanged`: a list of `HanderInfo` objects that remain active. - - @param {Array[HandlerInfo]} oldHandlers a list of the handler - information for the previous URL (or `[]` if this is the - first handled transition) - @param {Array[HandlerInfo]} newHandlers a list of the handler - information for the new URL - - @return {Partition} - */ - function partitionHandlers(oldState, newState) { - var oldHandlers = oldState.handlerInfos; - var newHandlers = newState.handlerInfos; - - var handlers = { - updatedContext: [], - exited: [], - entered: [], - unchanged: [] - }; - - var handlerChanged, contextChanged = false, i, l; - - for (i=0, l=newHandlers.length; i= 0; --i) { - var handlerInfo = handlerInfos[i]; - merge(params, handlerInfo.params); - if (handlerInfo.handler.inaccessibleByURL) { - urlMethod = null; - } - } - - if (urlMethod) { - params.queryParams = transition._visibleQueryParams || state.queryParams; - var url = router.recognizer.generate(handlerName, params); - - if (urlMethod === 'replace') { - router.replaceURL(url); - } else { - router.updateURL(url); - } - } - } - - /** - @private - - Updates the URL (if necessary) and calls `setupContexts` - to update the router's array of `currentHandlerInfos`. - */ - function finalizeTransition(transition, newState) { - - try { - log(transition.router, transition.sequence, "Resolved all models on destination route; finalizing transition."); - - var router = transition.router, - handlerInfos = newState.handlerInfos, - seq = transition.sequence; - - // Run all the necessary enter/setup/exit hooks - setupContexts(router, newState, transition); - - // Check if a redirect occurred in enter/setup - if (transition.isAborted) { - // TODO: cleaner way? distinguish b/w targetHandlerInfos? - router.state.handlerInfos = router.currentHandlerInfos; - return Promise.reject(logAbort(transition)); - } - - updateURL(transition, newState, transition.intent.url); - - transition.isActive = false; - router.activeTransition = null; - - trigger(router, router.currentHandlerInfos, true, ['didTransition']); - - if (router.didTransition) { - router.didTransition(router.currentHandlerInfos); - } - - log(router, transition.sequence, "TRANSITION COMPLETE."); - - // Resolve with the final handler. - return handlerInfos[handlerInfos.length - 1].handler; - } catch(e) { - if (!((e instanceof TransitionAborted))) { - //var erroneousHandler = handlerInfos.pop(); - var infos = transition.state.handlerInfos; - transition.trigger(true, 'error', e, transition, infos[infos.length-1].handler); - transition.abort(); - } - - throw e; - } - } - - /** - @private - - Begins and returns a Transition based on the provided - arguments. Accepts arguments in the form of both URL - transitions and named transitions. - - @param {Router} router - @param {Array[Object]} args arguments passed to transitionTo, - replaceWith, or handleURL - */ - function doTransition(router, args, isIntermediate) { - // Normalize blank transitions to root URL transitions. - var name = args[0] || '/'; - - var lastArg = args[args.length-1]; - var queryParams = {}; - if (lastArg && lastArg.hasOwnProperty('queryParams')) { - queryParams = pop.call(args).queryParams; - } - - var intent; - if (args.length === 0) { - - log(router, "Updating query params"); - - // A query param update is really just a transition - // into the route you're already on. - var handlerInfos = router.state.handlerInfos; - intent = new NamedTransitionIntent({ - name: handlerInfos[handlerInfos.length - 1].name, - contexts: [], - queryParams: queryParams - }); - - } else if (name.charAt(0) === '/') { - - log(router, "Attempting URL transition to " + name); - intent = new URLTransitionIntent({ url: name }); - - } else { - - log(router, "Attempting transition to " + name); - intent = new NamedTransitionIntent({ - name: args[0], - contexts: slice.call(args, 1), - queryParams: queryParams - }); - } - - return router.transitionByIntent(intent, isIntermediate); - } - - function handlerInfosEqual(handlerInfos, otherHandlerInfos) { - if (handlerInfos.length !== otherHandlerInfos.length) { - return false; - } - - for (var i = 0, len = handlerInfos.length; i < len; ++i) { - if (handlerInfos[i] !== otherHandlerInfos[i]) { - return false; - } - } - return true; - } - - function finalizeQueryParamChange(router, resolvedHandlers, newQueryParams, transition) { - // We fire a finalizeQueryParamChange event which - // gives the new route hierarchy a chance to tell - // us which query params it's consuming and what - // their final values are. If a query param is - // no longer consumed in the final route hierarchy, - // its serialized segment will be removed - // from the URL. - - for (var k in newQueryParams) { - if (newQueryParams.hasOwnProperty(k) && - newQueryParams[k] === null) { - delete newQueryParams[k]; - } - } - - var finalQueryParamsArray = []; - trigger(router, resolvedHandlers, true, ['finalizeQueryParamChange', newQueryParams, finalQueryParamsArray, transition]); - - if (transition) { - transition._visibleQueryParams = {}; - } - - var finalQueryParams = {}; - for (var i = 0, len = finalQueryParamsArray.length; i < len; ++i) { - var qp = finalQueryParamsArray[i]; - finalQueryParams[qp.key] = qp.value; - if (transition && qp.visible !== false) { - transition._visibleQueryParams[qp.key] = qp.value; - } - } - return finalQueryParams; - } - - function notifyExistingHandlers(router, newState, newTransition) { - var oldHandlers = router.state.handlerInfos, - changing = [], - leavingIndex = null, - leaving, leavingChecker, i, oldHandlerLen, oldHandler, newHandler; - - oldHandlerLen = oldHandlers.length; - for (i = 0; i < oldHandlerLen; i++) { - oldHandler = oldHandlers[i]; - newHandler = newState.handlerInfos[i]; - - if (!newHandler || oldHandler.name !== newHandler.name) { - leavingIndex = i; - break; - } - - if (!newHandler.isResolved) { - changing.push(oldHandler); - } - } - - if (leavingIndex !== null) { - leaving = oldHandlers.slice(leavingIndex, oldHandlerLen); - leavingChecker = function(name) { - for (var h = 0, len = leaving.length; h < len; h++) { - if (leaving[h].name === name) { - return true; - } - } - return false; - }; - - router._triggerWillLeave(leaving, newTransition, leavingChecker); - } - - if (changing.length > 0) { - router._triggerWillChangeContext(changing, newTransition); - } - - trigger(router, oldHandlers, true, ['willTransition', newTransition]); - } - - __exports__["default"] = Router; - }); -enifed("router/transition-intent", - ["./utils","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var merge = __dependency1__.merge; - - function TransitionIntent(props) { - this.initialize(props); - - // TODO: wat - this.data = this.data || {}; - } - - TransitionIntent.prototype = { - initialize: null, - applyToState: null - }; - - __exports__["default"] = TransitionIntent; - }); -enifed("router/transition-intent/named-transition-intent", - ["../transition-intent","../transition-state","../handler-info/factory","../utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var TransitionIntent = __dependency1__["default"]; - var TransitionState = __dependency2__["default"]; - var handlerInfoFactory = __dependency3__["default"]; - var isParam = __dependency4__.isParam; - var extractQueryParams = __dependency4__.extractQueryParams; - var merge = __dependency4__.merge; - var subclass = __dependency4__.subclass; - - __exports__["default"] = subclass(TransitionIntent, { - name: null, - pivotHandler: null, - contexts: null, - queryParams: null, - - initialize: function(props) { - this.name = props.name; - this.pivotHandler = props.pivotHandler; - this.contexts = props.contexts || []; - this.queryParams = props.queryParams; - }, - - applyToState: function(oldState, recognizer, getHandler, isIntermediate) { - - var partitionedArgs = extractQueryParams([this.name].concat(this.contexts)), - pureArgs = partitionedArgs[0], - queryParams = partitionedArgs[1], - handlers = recognizer.handlersFor(pureArgs[0]); - - var targetRouteName = handlers[handlers.length-1].handler; - - return this.applyToHandlers(oldState, handlers, getHandler, targetRouteName, isIntermediate); - }, - - applyToHandlers: function(oldState, handlers, getHandler, targetRouteName, isIntermediate, checkingIfActive) { - - var i, len; - var newState = new TransitionState(); - var objects = this.contexts.slice(0); - - var invalidateIndex = handlers.length; - - // Pivot handlers are provided for refresh transitions - if (this.pivotHandler) { - for (i = 0, len = handlers.length; i < len; ++i) { - if (getHandler(handlers[i].handler) === this.pivotHandler) { - invalidateIndex = i; - break; - } - } - } - - var pivotHandlerFound = !this.pivotHandler; - - for (i = handlers.length - 1; i >= 0; --i) { - var result = handlers[i]; - var name = result.handler; - var handler = getHandler(name); - - var oldHandlerInfo = oldState.handlerInfos[i]; - var newHandlerInfo = null; - - if (result.names.length > 0) { - if (i >= invalidateIndex) { - newHandlerInfo = this.createParamHandlerInfo(name, handler, result.names, objects, oldHandlerInfo); - } else { - newHandlerInfo = this.getHandlerInfoForDynamicSegment(name, handler, result.names, objects, oldHandlerInfo, targetRouteName, i); - } - } else { - // This route has no dynamic segment. - // Therefore treat as a param-based handlerInfo - // with empty params. This will cause the `model` - // hook to be called with empty params, which is desirable. - newHandlerInfo = this.createParamHandlerInfo(name, handler, result.names, objects, oldHandlerInfo); - } - - if (checkingIfActive) { - // If we're performing an isActive check, we want to - // serialize URL params with the provided context, but - // ignore mismatches between old and new context. - newHandlerInfo = newHandlerInfo.becomeResolved(null, newHandlerInfo.context); - var oldContext = oldHandlerInfo && oldHandlerInfo.context; - if (result.names.length > 0 && newHandlerInfo.context === oldContext) { - // If contexts match in isActive test, assume params also match. - // This allows for flexibility in not requiring that every last - // handler provide a `serialize` method - newHandlerInfo.params = oldHandlerInfo && oldHandlerInfo.params; - } - newHandlerInfo.context = oldContext; - } - - var handlerToUse = oldHandlerInfo; - if (i >= invalidateIndex || newHandlerInfo.shouldSupercede(oldHandlerInfo)) { - invalidateIndex = Math.min(i, invalidateIndex); - handlerToUse = newHandlerInfo; - } - - if (isIntermediate && !checkingIfActive) { - handlerToUse = handlerToUse.becomeResolved(null, handlerToUse.context); - } - - newState.handlerInfos.unshift(handlerToUse); - } - - if (objects.length > 0) { - throw new Error("More context objects were passed than there are dynamic segments for the route: " + targetRouteName); - } - - if (!isIntermediate) { - this.invalidateChildren(newState.handlerInfos, invalidateIndex); - } - - merge(newState.queryParams, this.queryParams || {}); - - return newState; - }, - - invalidateChildren: function(handlerInfos, invalidateIndex) { - for (var i = invalidateIndex, l = handlerInfos.length; i < l; ++i) { - var handlerInfo = handlerInfos[i]; - handlerInfos[i] = handlerInfos[i].getUnresolved(); - } - }, - - getHandlerInfoForDynamicSegment: function(name, handler, names, objects, oldHandlerInfo, targetRouteName, i) { - - var numNames = names.length; - var objectToUse; - if (objects.length > 0) { - - // Use the objects provided for this transition. - objectToUse = objects[objects.length - 1]; - if (isParam(objectToUse)) { - return this.createParamHandlerInfo(name, handler, names, objects, oldHandlerInfo); - } else { - objects.pop(); - } - } else if (oldHandlerInfo && oldHandlerInfo.name === name) { - // Reuse the matching oldHandlerInfo - return oldHandlerInfo; - } else { - if (this.preTransitionState) { - var preTransitionHandlerInfo = this.preTransitionState.handlerInfos[i]; - objectToUse = preTransitionHandlerInfo && preTransitionHandlerInfo.context; - } else { - // Ideally we should throw this error to provide maximal - // information to the user that not enough context objects - // were provided, but this proves too cumbersome in Ember - // in cases where inner template helpers are evaluated - // before parent helpers un-render, in which cases this - // error somewhat prematurely fires. - //throw new Error("Not enough context objects were provided to complete a transition to " + targetRouteName + ". Specifically, the " + name + " route needs an object that can be serialized into its dynamic URL segments [" + names.join(', ') + "]"); - return oldHandlerInfo; - } - } - - return handlerInfoFactory('object', { - name: name, - handler: handler, - context: objectToUse, - names: names - }); - }, - - createParamHandlerInfo: function(name, handler, names, objects, oldHandlerInfo) { - var params = {}; - - // Soak up all the provided string/numbers - var numNames = names.length; - while (numNames--) { - - // Only use old params if the names match with the new handler - var oldParams = (oldHandlerInfo && name === oldHandlerInfo.name && oldHandlerInfo.params) || {}; - - var peek = objects[objects.length - 1]; - var paramName = names[numNames]; - if (isParam(peek)) { - params[paramName] = "" + objects.pop(); - } else { - // If we're here, this means only some of the params - // were string/number params, so try and use a param - // value from a previous handler. - if (oldParams.hasOwnProperty(paramName)) { - params[paramName] = oldParams[paramName]; - } else { - throw new Error("You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route " + name); - } - } - } - - return handlerInfoFactory('param', { - name: name, - handler: handler, - params: params - }); - } - }); - }); -enifed("router/transition-intent/url-transition-intent", - ["../transition-intent","../transition-state","../handler-info/factory","../utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var TransitionIntent = __dependency1__["default"]; - var TransitionState = __dependency2__["default"]; - var handlerInfoFactory = __dependency3__["default"]; - var oCreate = __dependency4__.oCreate; - var merge = __dependency4__.merge; - var subclass = __dependency4__.subclass; - - __exports__["default"] = subclass(TransitionIntent, { - url: null, - - initialize: function(props) { - this.url = props.url; - }, - - applyToState: function(oldState, recognizer, getHandler) { - var newState = new TransitionState(); - - var results = recognizer.recognize(this.url), - queryParams = {}, - i, len; - - if (!results) { - throw new UnrecognizedURLError(this.url); - } - - var statesDiffer = false; - - for (i = 0, len = results.length; i < len; ++i) { - var result = results[i]; - var name = result.handler; - var handler = getHandler(name); - - if (handler.inaccessibleByURL) { - throw new UnrecognizedURLError(this.url); - } - - var newHandlerInfo = handlerInfoFactory('param', { - name: name, - handler: handler, - params: result.params - }); - - var oldHandlerInfo = oldState.handlerInfos[i]; - if (statesDiffer || newHandlerInfo.shouldSupercede(oldHandlerInfo)) { - statesDiffer = true; - newState.handlerInfos[i] = newHandlerInfo; - } else { - newState.handlerInfos[i] = oldHandlerInfo; - } - } - - merge(newState.queryParams, results.queryParams); - - return newState; - } - }); - - /** - Promise reject reasons passed to promise rejection - handlers for failed transitions. - */ - function UnrecognizedURLError(message) { - this.message = (message || "UnrecognizedURLError"); - this.name = "UnrecognizedURLError"; - } - }); -enifed("router/transition-state", - ["./handler-info","./utils","rsvp/promise","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var ResolvedHandlerInfo = __dependency1__.ResolvedHandlerInfo; - var forEach = __dependency2__.forEach; - var promiseLabel = __dependency2__.promiseLabel; - var callHook = __dependency2__.callHook; - var Promise = __dependency3__["default"]; - - function TransitionState(other) { - this.handlerInfos = []; - this.queryParams = {}; - this.params = {}; - } - - TransitionState.prototype = { - handlerInfos: null, - queryParams: null, - params: null, - - promiseLabel: function(label) { - var targetName = ''; - forEach(this.handlerInfos, function(handlerInfo) { - if (targetName !== '') { - targetName += '.'; - } - targetName += handlerInfo.name; - }); - return promiseLabel("'" + targetName + "': " + label); - }, - - resolve: function(shouldContinue, payload) { - var self = this; - // First, calculate params for this state. This is useful - // information to provide to the various route hooks. - var params = this.params; - forEach(this.handlerInfos, function(handlerInfo) { - params[handlerInfo.name] = handlerInfo.params || {}; - }); - - payload = payload || {}; - payload.resolveIndex = 0; - - var currentState = this; - var wasAborted = false; - - // The prelude RSVP.resolve() asyncs us into the promise land. - return Promise.resolve(null, this.promiseLabel("Start transition")) - .then(resolveOneHandlerInfo, null, this.promiseLabel('Resolve handler'))['catch'](handleError, this.promiseLabel('Handle error')); - - function innerShouldContinue() { - return Promise.resolve(shouldContinue(), currentState.promiseLabel("Check if should continue"))['catch'](function(reason) { - // We distinguish between errors that occurred - // during resolution (e.g. beforeModel/model/afterModel), - // and aborts due to a rejecting promise from shouldContinue(). - wasAborted = true; - return Promise.reject(reason); - }, currentState.promiseLabel("Handle abort")); - } - - function handleError(error) { - // This is the only possible - // reject value of TransitionState#resolve - var handlerInfos = currentState.handlerInfos; - var errorHandlerIndex = payload.resolveIndex >= handlerInfos.length ? - handlerInfos.length - 1 : payload.resolveIndex; - return Promise.reject({ - error: error, - handlerWithError: currentState.handlerInfos[errorHandlerIndex].handler, - wasAborted: wasAborted, - state: currentState - }); - } - - function proceed(resolvedHandlerInfo) { - var wasAlreadyResolved = currentState.handlerInfos[payload.resolveIndex].isResolved; - - // Swap the previously unresolved handlerInfo with - // the resolved handlerInfo - currentState.handlerInfos[payload.resolveIndex++] = resolvedHandlerInfo; - - if (!wasAlreadyResolved) { - // Call the redirect hook. The reason we call it here - // vs. afterModel is so that redirects into child - // routes don't re-run the model hooks for this - // already-resolved route. - var handler = resolvedHandlerInfo.handler; - callHook(handler, 'redirect', resolvedHandlerInfo.context, payload); - } - - // Proceed after ensuring that the redirect hook - // didn't abort this transition by transitioning elsewhere. - return innerShouldContinue().then(resolveOneHandlerInfo, null, currentState.promiseLabel('Resolve handler')); - } - - function resolveOneHandlerInfo() { - if (payload.resolveIndex === currentState.handlerInfos.length) { - // This is is the only possible - // fulfill value of TransitionState#resolve - return { - error: null, - state: currentState - }; - } - - var handlerInfo = currentState.handlerInfos[payload.resolveIndex]; - - return handlerInfo.resolve(innerShouldContinue, payload) - .then(proceed, null, currentState.promiseLabel('Proceed')); - } - } - }; - - __exports__["default"] = TransitionState; - }); -enifed("router/transition", - ["rsvp/promise","./handler-info","./utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var Promise = __dependency1__["default"]; - var ResolvedHandlerInfo = __dependency2__.ResolvedHandlerInfo; - var trigger = __dependency3__.trigger; - var slice = __dependency3__.slice; - var log = __dependency3__.log; - var promiseLabel = __dependency3__.promiseLabel; - - /** - @private - - A Transition is a thennable (a promise-like object) that represents - an attempt to transition to another route. It can be aborted, either - explicitly via `abort` or by attempting another transition while a - previous one is still underway. An aborted transition can also - be `retry()`d later. - */ - function Transition(router, intent, state, error) { - var transition = this; - this.state = state || router.state; - this.intent = intent; - this.router = router; - this.data = this.intent && this.intent.data || {}; - this.resolvedModels = {}; - this.queryParams = {}; - - if (error) { - this.promise = Promise.reject(error); - this.error = error; - return; - } - - if (state) { - this.params = state.params; - this.queryParams = state.queryParams; - this.handlerInfos = state.handlerInfos; - - var len = state.handlerInfos.length; - if (len) { - this.targetName = state.handlerInfos[len-1].name; - } - - for (var i = 0; i < len; ++i) { - var handlerInfo = state.handlerInfos[i]; - - // TODO: this all seems hacky - if (!handlerInfo.isResolved) { break; } - this.pivotHandler = handlerInfo.handler; - } - - this.sequence = Transition.currentSequence++; - this.promise = state.resolve(checkForAbort, this)['catch'](function(result) { - if (result.wasAborted || transition.isAborted) { - return Promise.reject(logAbort(transition)); - } else { - transition.trigger('error', result.error, transition, result.handlerWithError); - transition.abort(); - return Promise.reject(result.error); - } - }, promiseLabel('Handle Abort')); - } else { - this.promise = Promise.resolve(this.state); - this.params = {}; - } - - function checkForAbort() { - if (transition.isAborted) { - return Promise.reject(undefined, promiseLabel("Transition aborted - reject")); - } - } - } - - Transition.currentSequence = 0; - - Transition.prototype = { - targetName: null, - urlMethod: 'update', - intent: null, - params: null, - pivotHandler: null, - resolveIndex: 0, - handlerInfos: null, - resolvedModels: null, - isActive: true, - state: null, - queryParamsOnly: false, - - isTransition: true, - - isExiting: function(handler) { - var handlerInfos = this.handlerInfos; - for (var i = 0, len = handlerInfos.length; i < len; ++i) { - var handlerInfo = handlerInfos[i]; - if (handlerInfo.name === handler || handlerInfo.handler === handler) { - return false; - } - } - return true; - }, - - /** - @public - - The Transition's internal promise. Calling `.then` on this property - is that same as calling `.then` on the Transition object itself, but - this property is exposed for when you want to pass around a - Transition's promise, but not the Transition object itself, since - Transition object can be externally `abort`ed, while the promise - cannot. - */ - promise: null, - - /** - @public - - Custom state can be stored on a Transition's `data` object. - This can be useful for decorating a Transition within an earlier - hook and shared with a later hook. Properties set on `data` will - be copied to new transitions generated by calling `retry` on this - transition. - */ - data: null, - - /** - @public - - A standard promise hook that resolves if the transition - succeeds and rejects if it fails/redirects/aborts. - - Forwards to the internal `promise` property which you can - use in situations where you want to pass around a thennable, - but not the Transition itself. - - @param {Function} onFulfilled - @param {Function} onRejected - @param {String} label optional string for labeling the promise. - Useful for tooling. - @return {Promise} - */ - then: function(onFulfilled, onRejected, label) { - return this.promise.then(onFulfilled, onRejected, label); - }, - - /** - @public - - Forwards to the internal `promise` property which you can - use in situations where you want to pass around a thennable, - but not the Transition itself. - - @method catch - @param {Function} onRejection - @param {String} label optional string for labeling the promise. - Useful for tooling. - @return {Promise} - */ - "catch": function(onRejection, label) { - return this.promise["catch"](onRejection, label); - }, - - /** - @public - - Forwards to the internal `promise` property which you can - use in situations where you want to pass around a thennable, - but not the Transition itself. - - @method finally - @param {Function} callback - @param {String} label optional string for labeling the promise. - Useful for tooling. - @return {Promise} - */ - "finally": function(callback, label) { - return this.promise["finally"](callback, label); - }, - - /** - @public - - Aborts the Transition. Note you can also implicitly abort a transition - by initiating another transition while a previous one is underway. - */ - abort: function() { - if (this.isAborted) { return this; } - log(this.router, this.sequence, this.targetName + ": transition was aborted"); - this.intent.preTransitionState = this.router.state; - this.isAborted = true; - this.isActive = false; - this.router.activeTransition = null; - return this; - }, - - /** - @public - - Retries a previously-aborted transition (making sure to abort the - transition if it's still active). Returns a new transition that - represents the new attempt to transition. - */ - retry: function() { - // TODO: add tests for merged state retry()s - this.abort(); - return this.router.transitionByIntent(this.intent, false); - }, - - /** - @public - - Sets the URL-changing method to be employed at the end of a - successful transition. By default, a new Transition will just - use `updateURL`, but passing 'replace' to this method will - cause the URL to update using 'replaceWith' instead. Omitting - a parameter will disable the URL change, allowing for transitions - that don't update the URL at completion (this is also used for - handleURL, since the URL has already changed before the - transition took place). - - @param {String} method the type of URL-changing method to use - at the end of a transition. Accepted values are 'replace', - falsy values, or any other non-falsy value (which is - interpreted as an updateURL transition). - - @return {Transition} this transition - */ - method: function(method) { - this.urlMethod = method; - return this; - }, - - /** - @public - - Fires an event on the current list of resolved/resolving - handlers within this transition. Useful for firing events - on route hierarchies that haven't fully been entered yet. - - Note: This method is also aliased as `send` - - @param {Boolean} [ignoreFailure=false] a boolean specifying whether unhandled events throw an error - @param {String} name the name of the event to fire - */ - trigger: function (ignoreFailure) { - var args = slice.call(arguments); - if (typeof ignoreFailure === 'boolean') { - args.shift(); - } else { - // Throw errors on unhandled trigger events by default - ignoreFailure = false; - } - trigger(this.router, this.state.handlerInfos.slice(0, this.resolveIndex + 1), ignoreFailure, args); - }, - - /** - @public - - Transitions are aborted and their promises rejected - when redirects occur; this method returns a promise - that will follow any redirects that occur and fulfill - with the value fulfilled by any redirecting transitions - that occur. - - @return {Promise} a promise that fulfills with the same - value that the final redirecting transition fulfills with - */ - followRedirects: function() { - var router = this.router; - return this.promise['catch'](function(reason) { - if (router.activeTransition) { - return router.activeTransition.followRedirects(); - } - return Promise.reject(reason); - }); - }, - - toString: function() { - return "Transition (sequence " + this.sequence + ")"; - }, - - /** - @private - */ - log: function(message) { - log(this.router, this.sequence, message); - } - }; - - // Alias 'trigger' as 'send' - Transition.prototype.send = Transition.prototype.trigger; - - /** - @private - - Logs and returns a TransitionAborted error. - */ - function logAbort(transition) { - log(transition.router, transition.sequence, "detected abort."); - return new TransitionAborted(); - } - - function TransitionAborted(message) { - this.message = (message || "TransitionAborted"); - this.name = "TransitionAborted"; - } - - __exports__.Transition = Transition; - __exports__.logAbort = logAbort; - __exports__.TransitionAborted = TransitionAborted; - }); -enifed("router/utils", - ["exports"], - function(__exports__) { - "use strict"; - var slice = Array.prototype.slice; - - var _isArray; - if (!Array.isArray) { - _isArray = function (x) { - return Object.prototype.toString.call(x) === "[object Array]"; - }; - } else { - _isArray = Array.isArray; - } - - var isArray = _isArray; - __exports__.isArray = isArray; - function merge(hash, other) { - for (var prop in other) { - if (other.hasOwnProperty(prop)) { hash[prop] = other[prop]; } - } - } - - var oCreate = Object.create || function(proto) { - function F() {} - F.prototype = proto; - return new F(); - }; - __exports__.oCreate = oCreate; - /** - @private - - Extracts query params from the end of an array - **/ - function extractQueryParams(array) { - var len = (array && array.length), head, queryParams; - - if(len && len > 0 && array[len - 1] && array[len - 1].hasOwnProperty('queryParams')) { - queryParams = array[len - 1].queryParams; - head = slice.call(array, 0, len - 1); - return [head, queryParams]; - } else { - return [array, null]; - } - } - - __exports__.extractQueryParams = extractQueryParams;/** - @private - - Coerces query param properties and array elements into strings. - **/ - function coerceQueryParamsToString(queryParams) { - for (var key in queryParams) { - if (typeof queryParams[key] === 'number') { - queryParams[key] = '' + queryParams[key]; - } else if (isArray(queryParams[key])) { - for (var i = 0, l = queryParams[key].length; i < l; i++) { - queryParams[key][i] = '' + queryParams[key][i]; - } - } - } - } - /** - @private - */ - function log(router, sequence, msg) { - if (!router.log) { return; } - - if (arguments.length === 3) { - router.log("Transition #" + sequence + ": " + msg); - } else { - msg = sequence; - router.log(msg); - } - } - - __exports__.log = log;function bind(context, fn) { - var boundArgs = arguments; - return function(value) { - var args = slice.call(boundArgs, 2); - args.push(value); - return fn.apply(context, args); - }; - } - - __exports__.bind = bind;function isParam(object) { - return (typeof object === "string" || object instanceof String || typeof object === "number" || object instanceof Number); - } - - - function forEach(array, callback) { - for (var i=0, l=array.length; i=0; i--) { - var handlerInfo = handlerInfos[i], - handler = handlerInfo.handler; - - if (handler.events && handler.events[name]) { - if (handler.events[name].apply(handler, args) === true) { - eventWasHandled = true; - } else { - return; - } - } - } - - if (!eventWasHandled && !ignoreFailure) { - throw new Error("Nothing handled the event '" + name + "'."); - } - } - - __exports__.trigger = trigger;function getChangelist(oldObject, newObject) { - var key; - var results = { - all: {}, - changed: {}, - removed: {} - }; - - merge(results.all, newObject); - - var didChange = false; - coerceQueryParamsToString(oldObject); - coerceQueryParamsToString(newObject); - - // Calculate removals - for (key in oldObject) { - if (oldObject.hasOwnProperty(key)) { - if (!newObject.hasOwnProperty(key)) { - didChange = true; - results.removed[key] = oldObject[key]; - } - } - } - - // Calculate changes - for (key in newObject) { - if (newObject.hasOwnProperty(key)) { - if (isArray(oldObject[key]) && isArray(newObject[key])) { - if (oldObject[key].length !== newObject[key].length) { - results.changed[key] = newObject[key]; - didChange = true; - } else { - for (var i = 0, l = oldObject[key].length; i < l; i++) { - if (oldObject[key][i] !== newObject[key][i]) { - results.changed[key] = newObject[key]; - didChange = true; - } - } - } - } - else { - if (oldObject[key] !== newObject[key]) { - results.changed[key] = newObject[key]; - didChange = true; - } - } - } - } - - return didChange && results; - } - - __exports__.getChangelist = getChangelist;function promiseLabel(label) { - return 'Router: ' + label; - } - - __exports__.promiseLabel = promiseLabel;function subclass(parentConstructor, proto) { - function C(props) { - parentConstructor.call(this, props || {}); - } - C.prototype = oCreate(parentConstructor.prototype); - merge(C.prototype, proto); - return C; - } - - __exports__.subclass = subclass;function resolveHook(obj, hookName) { - if (!obj) { return; } - var underscored = "_" + hookName; - return obj[underscored] && underscored || - obj[hookName] && hookName; - } - - function callHook(obj, hookName) { - var args = slice.call(arguments, 2); - return applyHook(obj, hookName, args); - } - - function applyHook(obj, _hookName, args) { - var hookName = resolveHook(obj, _hookName); - if (hookName) { - return obj[hookName].apply(obj, args); - } - } - - __exports__.merge = merge; - __exports__.slice = slice; - __exports__.isParam = isParam; - __exports__.coerceQueryParamsToString = coerceQueryParamsToString; - __exports__.callHook = callHook; - __exports__.resolveHook = resolveHook; - __exports__.applyHook = applyHook; - }); -enifed("rsvp", - ["./rsvp/promise","./rsvp/events","./rsvp/node","./rsvp/all","./rsvp/all-settled","./rsvp/race","./rsvp/hash","./rsvp/hash-settled","./rsvp/rethrow","./rsvp/defer","./rsvp/config","./rsvp/map","./rsvp/resolve","./rsvp/reject","./rsvp/filter","./rsvp/asap","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __dependency9__, __dependency10__, __dependency11__, __dependency12__, __dependency13__, __dependency14__, __dependency15__, __dependency16__, __exports__) { - "use strict"; - var Promise = __dependency1__["default"]; - var EventTarget = __dependency2__["default"]; - var denodeify = __dependency3__["default"]; - var all = __dependency4__["default"]; - var allSettled = __dependency5__["default"]; - var race = __dependency6__["default"]; - var hash = __dependency7__["default"]; - var hashSettled = __dependency8__["default"]; - var rethrow = __dependency9__["default"]; - var defer = __dependency10__["default"]; - var config = __dependency11__.config; - var configure = __dependency11__.configure; - var map = __dependency12__["default"]; - var resolve = __dependency13__["default"]; - var reject = __dependency14__["default"]; - var filter = __dependency15__["default"]; - var asap = __dependency16__["default"]; - - config.async = asap; // default async is asap; - var cast = resolve; - function async(callback, arg) { - config.async(callback, arg); - } - - function on() { - config.on.apply(config, arguments); - } - - function off() { - config.off.apply(config, arguments); - } - - // Set up instrumentation through `window.__PROMISE_INTRUMENTATION__` - if (typeof window !== 'undefined' && typeof window['__PROMISE_INSTRUMENTATION__'] === 'object') { - var callbacks = window['__PROMISE_INSTRUMENTATION__']; - configure('instrument', true); - for (var eventName in callbacks) { - if (callbacks.hasOwnProperty(eventName)) { - on(eventName, callbacks[eventName]); - } - } - } - - __exports__.cast = cast; - __exports__.Promise = Promise; - __exports__.EventTarget = EventTarget; - __exports__.all = all; - __exports__.allSettled = allSettled; - __exports__.race = race; - __exports__.hash = hash; - __exports__.hashSettled = hashSettled; - __exports__.rethrow = rethrow; - __exports__.defer = defer; - __exports__.denodeify = denodeify; - __exports__.configure = configure; - __exports__.on = on; - __exports__.off = off; - __exports__.resolve = resolve; - __exports__.reject = reject; - __exports__.async = async; - __exports__.map = map; - __exports__.filter = filter; - }); -enifed("rsvp.umd", - ["./rsvp"], - function(__dependency1__) { - "use strict"; - var Promise = __dependency1__.Promise; - var allSettled = __dependency1__.allSettled; - var hash = __dependency1__.hash; - var hashSettled = __dependency1__.hashSettled; - var denodeify = __dependency1__.denodeify; - var on = __dependency1__.on; - var off = __dependency1__.off; - var map = __dependency1__.map; - var filter = __dependency1__.filter; - var resolve = __dependency1__.resolve; - var reject = __dependency1__.reject; - var rethrow = __dependency1__.rethrow; - var all = __dependency1__.all; - var defer = __dependency1__.defer; - var EventTarget = __dependency1__.EventTarget; - var configure = __dependency1__.configure; - var race = __dependency1__.race; - var async = __dependency1__.async; - - var RSVP = { - 'race': race, - 'Promise': Promise, - 'allSettled': allSettled, - 'hash': hash, - 'hashSettled': hashSettled, - 'denodeify': denodeify, - 'on': on, - 'off': off, - 'map': map, - 'filter': filter, - 'resolve': resolve, - 'reject': reject, - 'all': all, - 'rethrow': rethrow, - 'defer': defer, - 'EventTarget': EventTarget, - 'configure': configure, - 'async': async - }; - - /* global define:true module:true window: true */ - if (typeof enifed === 'function' && enifed['amd']) { - enifed(function() { return RSVP; }); - } else if (typeof module !== 'undefined' && module['exports']) { - module['exports'] = RSVP; - } else if (typeof this !== 'undefined') { - this['RSVP'] = RSVP; - } - }); -enifed("rsvp/-internal", - ["./utils","./instrument","./config","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var objectOrFunction = __dependency1__.objectOrFunction; - var isFunction = __dependency1__.isFunction; - - var instrument = __dependency2__["default"]; - - var config = __dependency3__.config; - - function withOwnPromise() { - return new TypeError('A promises callback cannot return that same promise.'); - } - - function noop() {} - - var PENDING = void 0; - var FULFILLED = 1; - var REJECTED = 2; - - var GET_THEN_ERROR = new ErrorObject(); - - function getThen(promise) { - try { - return promise.then; - } catch(error) { - GET_THEN_ERROR.error = error; - return GET_THEN_ERROR; - } - } - - function tryThen(then, value, fulfillmentHandler, rejectionHandler) { - try { - then.call(value, fulfillmentHandler, rejectionHandler); - } catch(e) { - return e; - } - } - - function handleForeignThenable(promise, thenable, then) { - config.async(function(promise) { - var sealed = false; - var error = tryThen(then, thenable, function(value) { - if (sealed) { return; } - sealed = true; - if (thenable !== value) { - resolve(promise, value); - } else { - fulfill(promise, value); - } - }, function(reason) { - if (sealed) { return; } - sealed = true; - - reject(promise, reason); - }, 'Settle: ' + (promise._label || ' unknown promise')); - - if (!sealed && error) { - sealed = true; - reject(promise, error); - } - }, promise); - } - - function handleOwnThenable(promise, thenable) { - if (thenable._state === FULFILLED) { - fulfill(promise, thenable._result); - } else if (promise._state === REJECTED) { - reject(promise, thenable._result); - } else { - subscribe(thenable, undefined, function(value) { - if (thenable !== value) { - resolve(promise, value); - } else { - fulfill(promise, value); - } - }, function(reason) { - reject(promise, reason); - }); - } - } - - function handleMaybeThenable(promise, maybeThenable) { - if (maybeThenable.constructor === promise.constructor) { - handleOwnThenable(promise, maybeThenable); - } else { - var then = getThen(maybeThenable); - - if (then === GET_THEN_ERROR) { - reject(promise, GET_THEN_ERROR.error); - } else if (then === undefined) { - fulfill(promise, maybeThenable); - } else if (isFunction(then)) { - handleForeignThenable(promise, maybeThenable, then); - } else { - fulfill(promise, maybeThenable); - } - } - } - - function resolve(promise, value) { - if (promise === value) { - fulfill(promise, value); - } else if (objectOrFunction(value)) { - handleMaybeThenable(promise, value); - } else { - fulfill(promise, value); - } - } - - function publishRejection(promise) { - if (promise._onerror) { - promise._onerror(promise._result); - } - - publish(promise); - } - - function fulfill(promise, value) { - if (promise._state !== PENDING) { return; } - - promise._result = value; - promise._state = FULFILLED; - - if (promise._subscribers.length === 0) { - if (config.instrument) { - instrument('fulfilled', promise); - } - } else { - config.async(publish, promise); - } - } - - function reject(promise, reason) { - if (promise._state !== PENDING) { return; } - promise._state = REJECTED; - promise._result = reason; - - config.async(publishRejection, promise); - } - - function subscribe(parent, child, onFulfillment, onRejection) { - var subscribers = parent._subscribers; - var length = subscribers.length; - - parent._onerror = null; - - subscribers[length] = child; - subscribers[length + FULFILLED] = onFulfillment; - subscribers[length + REJECTED] = onRejection; - - if (length === 0 && parent._state) { - config.async(publish, parent); - } - } - - function publish(promise) { - var subscribers = promise._subscribers; - var settled = promise._state; - - if (config.instrument) { - instrument(settled === FULFILLED ? 'fulfilled' : 'rejected', promise); - } - - if (subscribers.length === 0) { return; } - - var child, callback, detail = promise._result; - - for (var i = 0; i < subscribers.length; i += 3) { - child = subscribers[i]; - callback = subscribers[i + settled]; - - if (child) { - invokeCallback(settled, child, callback, detail); - } else { - callback(detail); - } - } - - promise._subscribers.length = 0; - } - - function ErrorObject() { - this.error = null; - } - - var TRY_CATCH_ERROR = new ErrorObject(); - - function tryCatch(callback, detail) { - try { - return callback(detail); - } catch(e) { - TRY_CATCH_ERROR.error = e; - return TRY_CATCH_ERROR; - } - } - - function invokeCallback(settled, promise, callback, detail) { - var hasCallback = isFunction(callback), - value, error, succeeded, failed; - - if (hasCallback) { - value = tryCatch(callback, detail); - - if (value === TRY_CATCH_ERROR) { - failed = true; - error = value.error; - value = null; - } else { - succeeded = true; - } - - if (promise === value) { - reject(promise, withOwnPromise()); - return; - } - - } else { - value = detail; - succeeded = true; - } - - if (promise._state !== PENDING) { - // noop - } else if (hasCallback && succeeded) { - resolve(promise, value); - } else if (failed) { - reject(promise, error); - } else if (settled === FULFILLED) { - fulfill(promise, value); - } else if (settled === REJECTED) { - reject(promise, value); - } - } - - function initializePromise(promise, resolver) { - try { - resolver(function resolvePromise(value){ - resolve(promise, value); - }, function rejectPromise(reason) { - reject(promise, reason); - }); - } catch(e) { - reject(promise, e); - } - } - - __exports__.noop = noop; - __exports__.resolve = resolve; - __exports__.reject = reject; - __exports__.fulfill = fulfill; - __exports__.subscribe = subscribe; - __exports__.publish = publish; - __exports__.publishRejection = publishRejection; - __exports__.initializePromise = initializePromise; - __exports__.invokeCallback = invokeCallback; - __exports__.FULFILLED = FULFILLED; - __exports__.REJECTED = REJECTED; - __exports__.PENDING = PENDING; - }); -enifed("rsvp/all-settled", - ["./enumerator","./promise","./utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var Enumerator = __dependency1__["default"]; - var makeSettledResult = __dependency1__.makeSettledResult; - var Promise = __dependency2__["default"]; - var o_create = __dependency3__.o_create; - - function AllSettled(Constructor, entries, label) { - this._superConstructor(Constructor, entries, false /* don't abort on reject */, label); - } - - AllSettled.prototype = o_create(Enumerator.prototype); - AllSettled.prototype._superConstructor = Enumerator; - AllSettled.prototype._makeResult = makeSettledResult; - AllSettled.prototype._validationError = function() { - return new Error('allSettled must be called with an array'); - }; - - /** - `RSVP.allSettled` is similar to `RSVP.all`, but instead of implementing - a fail-fast method, it waits until all the promises have returned and - shows you all the results. This is useful if you want to handle multiple - promises' failure states together as a set. - - Returns a promise that is fulfilled when all the given promises have been - settled. The return promise is fulfilled with an array of the states of - the promises passed into the `promises` array argument. - - Each state object will either indicate fulfillment or rejection, and - provide the corresponding value or reason. The states will take one of - the following formats: - - ```javascript - { state: 'fulfilled', value: value } - or - { state: 'rejected', reason: reason } - ``` - - Example: - - ```javascript - var promise1 = RSVP.Promise.resolve(1); - var promise2 = RSVP.Promise.reject(new Error('2')); - var promise3 = RSVP.Promise.reject(new Error('3')); - var promises = [ promise1, promise2, promise3 ]; - - RSVP.allSettled(promises).then(function(array){ - // array == [ - // { state: 'fulfilled', value: 1 }, - // { state: 'rejected', reason: Error }, - // { state: 'rejected', reason: Error } - // ] - // Note that for the second item, reason.message will be '2', and for the - // third item, reason.message will be '3'. - }, function(error) { - // Not run. (This block would only be called if allSettled had failed, - // for instance if passed an incorrect argument type.) - }); - ``` - - @method allSettled - @static - @for RSVP - @param {Array} promises - @param {String} label - optional string that describes the promise. - Useful for tooling. - @return {Promise} promise that is fulfilled with an array of the settled - states of the constituent promises. - */ - - __exports__["default"] = function allSettled(entries, label) { - return new AllSettled(Promise, entries, label).promise; - } - }); -enifed("rsvp/all", - ["./promise","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Promise = __dependency1__["default"]; - - /** - This is a convenient alias for `RSVP.Promise.all`. - - @method all - @static - @for RSVP - @param {Array} array Array of promises. - @param {String} label An optional label. This is useful - for tooling. - */ - __exports__["default"] = function all(array, label) { - return Promise.all(array, label); - } - }); -enifed("rsvp/asap", - ["exports"], - function(__exports__) { - "use strict"; - var len = 0; - - __exports__["default"] = function asap(callback, arg) { - queue[len] = callback; - queue[len + 1] = arg; - len += 2; - if (len === 2) { - // If len is 1, that means that we need to schedule an async flush. - // If additional callbacks are queued before the queue is flushed, they - // will be processed by this flush that we are scheduling. - scheduleFlush(); - } - } - - var browserWindow = (typeof window !== 'undefined') ? window : undefined - var browserGlobal = browserWindow || {}; - var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; - - // test for web worker but not in IE10 - var isWorker = typeof Uint8ClampedArray !== 'undefined' && - typeof importScripts !== 'undefined' && - typeof MessageChannel !== 'undefined'; - - // node - function useNextTick() { - return function() { - process.nextTick(flush); - }; - } - - // vertx - function useVertxTimer() { - return function() { - vertxNext(flush); - }; - } - - function useMutationObserver() { - var iterations = 0; - var observer = new BrowserMutationObserver(flush); - var node = document.createTextNode(''); - observer.observe(node, { characterData: true }); - - return function() { - node.data = (iterations = ++iterations % 2); - }; - } - - // web worker - function useMessageChannel() { - var channel = new MessageChannel(); - channel.port1.onmessage = flush; - return function () { - channel.port2.postMessage(0); - }; - } - - function useSetTimeout() { - return function() { - setTimeout(flush, 1); - }; - } - - var queue = new Array(1000); - function flush() { - for (var i = 0; i < len; i+=2) { - var callback = queue[i]; - var arg = queue[i+1]; - - callback(arg); - - queue[i] = undefined; - queue[i+1] = undefined; - } - - len = 0; - } - - function attemptVertex() { - try { - var vertx = eriuqer('vertx'); - var vertxNext = vertx.runOnLoop || vertx.runOnContext; - return useVertxTimer(); - } catch(e) { - return useSetTimeout(); - } - } - - var scheduleFlush; - // Decide what async method to use to triggering processing of queued callbacks: - if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') { - scheduleFlush = useNextTick(); - } else if (BrowserMutationObserver) { - scheduleFlush = useMutationObserver(); - } else if (isWorker) { - scheduleFlush = useMessageChannel(); - } else if (browserWindow === undefined && typeof eriuqer === 'function') { - scheduleFlush = attemptVertex(); - } else { - scheduleFlush = useSetTimeout(); - } - }); -enifed("rsvp/config", - ["./events","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var EventTarget = __dependency1__["default"]; - - var config = { - instrument: false - }; - - EventTarget.mixin(config); - - function configure(name, value) { - if (name === 'onerror') { - // handle for legacy users that expect the actual - // error to be passed to their function added via - // `RSVP.configure('onerror', someFunctionHere);` - config.on('error', value); - return; - } - - if (arguments.length === 2) { - config[name] = value; - } else { - return config[name]; - } - } - - __exports__.config = config; - __exports__.configure = configure; - }); -enifed("rsvp/defer", - ["./promise","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Promise = __dependency1__["default"]; - - /** - `RSVP.defer` returns an object similar to jQuery's `$.Deferred`. - `RSVP.defer` should be used when porting over code reliant on `$.Deferred`'s - interface. New code should use the `RSVP.Promise` constructor instead. - - The object returned from `RSVP.defer` is a plain object with three properties: - - * promise - an `RSVP.Promise`. - * reject - a function that causes the `promise` property on this object to - become rejected - * resolve - a function that causes the `promise` property on this object to - become fulfilled. - - Example: - - ```javascript - var deferred = RSVP.defer(); - - deferred.resolve("Success!"); - - defered.promise.then(function(value){ - // value here is "Success!" - }); - ``` - - @method defer - @static - @for RSVP - @param {String} label optional string for labeling the promise. - Useful for tooling. - @return {Object} - */ - - __exports__["default"] = function defer(label) { - var deferred = { }; - - deferred['promise'] = new Promise(function(resolve, reject) { - deferred['resolve'] = resolve; - deferred['reject'] = reject; - }, label); - - return deferred; - } - }); -enifed("rsvp/enumerator", - ["./utils","./-internal","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var isArray = __dependency1__.isArray; - var isMaybeThenable = __dependency1__.isMaybeThenable; - - var noop = __dependency2__.noop; - var reject = __dependency2__.reject; - var fulfill = __dependency2__.fulfill; - var subscribe = __dependency2__.subscribe; - var FULFILLED = __dependency2__.FULFILLED; - var REJECTED = __dependency2__.REJECTED; - var PENDING = __dependency2__.PENDING; - - function makeSettledResult(state, position, value) { - if (state === FULFILLED) { - return { - state: 'fulfilled', - value: value - }; - } else { - return { - state: 'rejected', - reason: value - }; - } - } - - __exports__.makeSettledResult = makeSettledResult;function Enumerator(Constructor, input, abortOnReject, label) { - this._instanceConstructor = Constructor; - this.promise = new Constructor(noop, label); - this._abortOnReject = abortOnReject; - - if (this._validateInput(input)) { - this._input = input; - this.length = input.length; - this._remaining = input.length; - - this._init(); - - if (this.length === 0) { - fulfill(this.promise, this._result); - } else { - this.length = this.length || 0; - this._enumerate(); - if (this._remaining === 0) { - fulfill(this.promise, this._result); - } - } - } else { - reject(this.promise, this._validationError()); - } - } - - Enumerator.prototype._validateInput = function(input) { - return isArray(input); - }; - - Enumerator.prototype._validationError = function() { - return new Error('Array Methods must be provided an Array'); - }; - - Enumerator.prototype._init = function() { - this._result = new Array(this.length); - }; - - __exports__["default"] = Enumerator; - - Enumerator.prototype._enumerate = function() { - var length = this.length; - var promise = this.promise; - var input = this._input; - - for (var i = 0; promise._state === PENDING && i < length; i++) { - this._eachEntry(input[i], i); - } - }; - - Enumerator.prototype._eachEntry = function(entry, i) { - var c = this._instanceConstructor; - if (isMaybeThenable(entry)) { - if (entry.constructor === c && entry._state !== PENDING) { - entry._onerror = null; - this._settledAt(entry._state, i, entry._result); - } else { - this._willSettleAt(c.resolve(entry), i); - } - } else { - this._remaining--; - this._result[i] = this._makeResult(FULFILLED, i, entry); - } - }; - - Enumerator.prototype._settledAt = function(state, i, value) { - var promise = this.promise; - - if (promise._state === PENDING) { - this._remaining--; - - if (this._abortOnReject && state === REJECTED) { - reject(promise, value); - } else { - this._result[i] = this._makeResult(state, i, value); - } - } - - if (this._remaining === 0) { - fulfill(promise, this._result); - } - }; - - Enumerator.prototype._makeResult = function(state, i, value) { - return value; - }; - - Enumerator.prototype._willSettleAt = function(promise, i) { - var enumerator = this; - - subscribe(promise, undefined, function(value) { - enumerator._settledAt(FULFILLED, i, value); - }, function(reason) { - enumerator._settledAt(REJECTED, i, reason); - }); - }; - }); -enifed("rsvp/events", - ["exports"], - function(__exports__) { - "use strict"; - function indexOf(callbacks, callback) { - for (var i=0, l=callbacks.length; i 1; - }; - - RSVP.filter(promises, filterFn).then(function(result){ - // result is [ 2, 3 ] - }); - ``` - - If any of the `promises` given to `RSVP.filter` are rejected, the first promise - that is rejected will be given as an argument to the returned promise's - rejection handler. For example: - - ```javascript - var promise1 = RSVP.resolve(1); - var promise2 = RSVP.reject(new Error('2')); - var promise3 = RSVP.reject(new Error('3')); - var promises = [ promise1, promise2, promise3 ]; - - var filterFn = function(item){ - return item > 1; - }; - - RSVP.filter(promises, filterFn).then(function(array){ - // Code here never runs because there are rejected promises! - }, function(reason) { - // reason.message === '2' - }); - ``` - - `RSVP.filter` will also wait for any promises returned from `filterFn`. - For instance, you may want to fetch a list of users then return a subset - of those users based on some asynchronous operation: - - ```javascript - - var alice = { name: 'alice' }; - var bob = { name: 'bob' }; - var users = [ alice, bob ]; - - var promises = users.map(function(user){ - return RSVP.resolve(user); - }); - - var filterFn = function(user){ - // Here, Alice has permissions to create a blog post, but Bob does not. - return getPrivilegesForUser(user).then(function(privs){ - return privs.can_create_blog_post === true; - }); - }; - RSVP.filter(promises, filterFn).then(function(users){ - // true, because the server told us only Alice can create a blog post. - users.length === 1; - // false, because Alice is the only user present in `users` - users[0] === bob; - }); - ``` - - @method filter - @static - @for RSVP - @param {Array} promises - @param {Function} filterFn - function to be called on each resolved value to - filter the final results. - @param {String} label optional string describing the promise. Useful for - tooling. - @return {Promise} - */ - __exports__["default"] = function filter(promises, filterFn, label) { - return Promise.all(promises, label).then(function(values) { - if (!isFunction(filterFn)) { - throw new TypeError("You must pass a function as filter's second argument."); - } - - var length = values.length; - var filtered = new Array(length); - - for (var i = 0; i < length; i++) { - filtered[i] = filterFn(values[i]); - } - - return Promise.all(filtered, label).then(function(filtered) { - var results = new Array(length); - var newLength = 0; - - for (var i = 0; i < length; i++) { - if (filtered[i]) { - results[newLength] = values[i]; - newLength++; - } - } - - results.length = newLength; - - return results; - }); - }); - } - }); -enifed("rsvp/hash-settled", - ["./promise","./enumerator","./promise-hash","./utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var Promise = __dependency1__["default"]; - var makeSettledResult = __dependency2__.makeSettledResult; - var PromiseHash = __dependency3__["default"]; - var Enumerator = __dependency2__["default"]; - var o_create = __dependency4__.o_create; - - function HashSettled(Constructor, object, label) { - this._superConstructor(Constructor, object, false, label); - } - - HashSettled.prototype = o_create(PromiseHash.prototype); - HashSettled.prototype._superConstructor = Enumerator; - HashSettled.prototype._makeResult = makeSettledResult; - - HashSettled.prototype._validationError = function() { - return new Error('hashSettled must be called with an object'); - }; - - /** - `RSVP.hashSettled` is similar to `RSVP.allSettled`, but takes an object - instead of an array for its `promises` argument. - - Unlike `RSVP.all` or `RSVP.hash`, which implement a fail-fast method, - but like `RSVP.allSettled`, `hashSettled` waits until all the - constituent promises have returned and then shows you all the results - with their states and values/reasons. This is useful if you want to - handle multiple promises' failure states together as a set. - - Returns a promise that is fulfilled when all the given promises have been - settled, or rejected if the passed parameters are invalid. - - The returned promise is fulfilled with a hash that has the same key names as - the `promises` object argument. If any of the values in the object are not - promises, they will be copied over to the fulfilled object and marked with state - 'fulfilled'. - - Example: - - ```javascript - var promises = { - myPromise: RSVP.Promise.resolve(1), - yourPromise: RSVP.Promise.resolve(2), - theirPromise: RSVP.Promise.resolve(3), - notAPromise: 4 - }; - - RSVP.hashSettled(promises).then(function(hash){ - // hash here is an object that looks like: - // { - // myPromise: { state: 'fulfilled', value: 1 }, - // yourPromise: { state: 'fulfilled', value: 2 }, - // theirPromise: { state: 'fulfilled', value: 3 }, - // notAPromise: { state: 'fulfilled', value: 4 } - // } - }); - ``` - - If any of the `promises` given to `RSVP.hash` are rejected, the state will - be set to 'rejected' and the reason for rejection provided. - - Example: - - ```javascript - var promises = { - myPromise: RSVP.Promise.resolve(1), - rejectedPromise: RSVP.Promise.reject(new Error('rejection')), - anotherRejectedPromise: RSVP.Promise.reject(new Error('more rejection')), - }; - - RSVP.hashSettled(promises).then(function(hash){ - // hash here is an object that looks like: - // { - // myPromise: { state: 'fulfilled', value: 1 }, - // rejectedPromise: { state: 'rejected', reason: Error }, - // anotherRejectedPromise: { state: 'rejected', reason: Error }, - // } - // Note that for rejectedPromise, reason.message == 'rejection', - // and for anotherRejectedPromise, reason.message == 'more rejection'. - }); - ``` - - An important note: `RSVP.hashSettled` is intended for plain JavaScript objects that - are just a set of keys and values. `RSVP.hashSettled` will NOT preserve prototype - chains. - - Example: - - ```javascript - function MyConstructor(){ - this.example = RSVP.Promise.resolve('Example'); - } - - MyConstructor.prototype = { - protoProperty: RSVP.Promise.resolve('Proto Property') - }; - - var myObject = new MyConstructor(); - - RSVP.hashSettled(myObject).then(function(hash){ - // protoProperty will not be present, instead you will just have an - // object that looks like: - // { - // example: { state: 'fulfilled', value: 'Example' } - // } - // - // hash.hasOwnProperty('protoProperty'); // false - // 'undefined' === typeof hash.protoProperty - }); - ``` - - @method hashSettled - @for RSVP - @param {Object} promises - @param {String} label optional string that describes the promise. - Useful for tooling. - @return {Promise} promise that is fulfilled when when all properties of `promises` - have been settled. - @static - */ - __exports__["default"] = function hashSettled(object, label) { - return new HashSettled(Promise, object, label).promise; - } - }); -enifed("rsvp/hash", - ["./promise","./promise-hash","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var Promise = __dependency1__["default"]; - var PromiseHash = __dependency2__["default"]; - - /** - `RSVP.hash` is similar to `RSVP.all`, but takes an object instead of an array - for its `promises` argument. - - Returns a promise that is fulfilled when all the given promises have been - fulfilled, or rejected if any of them become rejected. The returned promise - is fulfilled with a hash that has the same key names as the `promises` object - argument. If any of the values in the object are not promises, they will - simply be copied over to the fulfilled object. - - Example: - - ```javascript - var promises = { - myPromise: RSVP.resolve(1), - yourPromise: RSVP.resolve(2), - theirPromise: RSVP.resolve(3), - notAPromise: 4 - }; - - RSVP.hash(promises).then(function(hash){ - // hash here is an object that looks like: - // { - // myPromise: 1, - // yourPromise: 2, - // theirPromise: 3, - // notAPromise: 4 - // } - }); - ```` - - If any of the `promises` given to `RSVP.hash` are rejected, the first promise - that is rejected will be given as the reason to the rejection handler. - - Example: - - ```javascript - var promises = { - myPromise: RSVP.resolve(1), - rejectedPromise: RSVP.reject(new Error('rejectedPromise')), - anotherRejectedPromise: RSVP.reject(new Error('anotherRejectedPromise')), - }; - - RSVP.hash(promises).then(function(hash){ - // Code here never runs because there are rejected promises! - }, function(reason) { - // reason.message === 'rejectedPromise' - }); - ``` - - An important note: `RSVP.hash` is intended for plain JavaScript objects that - are just a set of keys and values. `RSVP.hash` will NOT preserve prototype - chains. - - Example: - - ```javascript - function MyConstructor(){ - this.example = RSVP.resolve('Example'); - } - - MyConstructor.prototype = { - protoProperty: RSVP.resolve('Proto Property') - }; - - var myObject = new MyConstructor(); - - RSVP.hash(myObject).then(function(hash){ - // protoProperty will not be present, instead you will just have an - // object that looks like: - // { - // example: 'Example' - // } - // - // hash.hasOwnProperty('protoProperty'); // false - // 'undefined' === typeof hash.protoProperty - }); - ``` - - @method hash - @static - @for RSVP - @param {Object} promises - @param {String} label optional string that describes the promise. - Useful for tooling. - @return {Promise} promise that is fulfilled when all properties of `promises` - have been fulfilled, or rejected if any of them become rejected. - */ - __exports__["default"] = function hash(object, label) { - return new PromiseHash(Promise, object, label).promise; - } - }); -enifed("rsvp/instrument", - ["./config","./utils","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var config = __dependency1__.config; - var now = __dependency2__.now; - - var queue = []; - - function scheduleFlush() { - setTimeout(function() { - var entry; - for (var i = 0; i < queue.length; i++) { - entry = queue[i]; - - var payload = entry.payload; - - payload.guid = payload.key + payload.id; - payload.childGuid = payload.key + payload.childId; - if (payload.error) { - payload.stack = payload.error.stack; - } - - config.trigger(entry.name, entry.payload); - } - queue.length = 0; - }, 50); - } - - __exports__["default"] = function instrument(eventName, promise, child) { - if (1 === queue.push({ - name: eventName, - payload: { - key: promise._guidKey, - id: promise._id, - eventName: eventName, - detail: promise._result, - childId: child && child._id, - label: promise._label, - timeStamp: now(), - error: config["instrument-with-stack"] ? new Error(promise._label) : null - }})) { - scheduleFlush(); - } - } - }); -enifed("rsvp/map", - ["./promise","./utils","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var Promise = __dependency1__["default"]; - var isFunction = __dependency2__.isFunction; - - /** - `RSVP.map` is similar to JavaScript's native `map` method, except that it - waits for all promises to become fulfilled before running the `mapFn` on - each item in given to `promises`. `RSVP.map` returns a promise that will - become fulfilled with the result of running `mapFn` on the values the promises - become fulfilled with. - - For example: - - ```javascript - - var promise1 = RSVP.resolve(1); - var promise2 = RSVP.resolve(2); - var promise3 = RSVP.resolve(3); - var promises = [ promise1, promise2, promise3 ]; - - var mapFn = function(item){ - return item + 1; - }; - - RSVP.map(promises, mapFn).then(function(result){ - // result is [ 2, 3, 4 ] - }); - ``` - - If any of the `promises` given to `RSVP.map` are rejected, the first promise - that is rejected will be given as an argument to the returned promise's - rejection handler. For example: - - ```javascript - var promise1 = RSVP.resolve(1); - var promise2 = RSVP.reject(new Error('2')); - var promise3 = RSVP.reject(new Error('3')); - var promises = [ promise1, promise2, promise3 ]; - - var mapFn = function(item){ - return item + 1; - }; - - RSVP.map(promises, mapFn).then(function(array){ - // Code here never runs because there are rejected promises! - }, function(reason) { - // reason.message === '2' - }); - ``` - - `RSVP.map` will also wait if a promise is returned from `mapFn`. For example, - say you want to get all comments from a set of blog posts, but you need - the blog posts first because they contain a url to those comments. - - ```javscript - - var mapFn = function(blogPost){ - // getComments does some ajax and returns an RSVP.Promise that is fulfilled - // with some comments data - return getComments(blogPost.comments_url); - }; - - // getBlogPosts does some ajax and returns an RSVP.Promise that is fulfilled - // with some blog post data - RSVP.map(getBlogPosts(), mapFn).then(function(comments){ - // comments is the result of asking the server for the comments - // of all blog posts returned from getBlogPosts() - }); - ``` - - @method map - @static - @for RSVP - @param {Array} promises - @param {Function} mapFn function to be called on each fulfilled promise. - @param {String} label optional string for labeling the promise. - Useful for tooling. - @return {Promise} promise that is fulfilled with the result of calling - `mapFn` on each fulfilled promise or value when they become fulfilled. - The promise will be rejected if any of the given `promises` become rejected. - @static - */ - __exports__["default"] = function map(promises, mapFn, label) { - return Promise.all(promises, label).then(function(values) { - if (!isFunction(mapFn)) { - throw new TypeError("You must pass a function as map's second argument."); - } - - var length = values.length; - var results = new Array(length); - - for (var i = 0; i < length; i++) { - results[i] = mapFn(values[i]); - } - - return Promise.all(results, label); - }); - } - }); -enifed("rsvp/node", - ["./promise","./-internal","./utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var Promise = __dependency1__["default"]; - var noop = __dependency2__.noop; - var resolve = __dependency2__.resolve; - var reject = __dependency2__.reject; - var isArray = __dependency3__.isArray; - - function Result() { - this.value = undefined; - } - - var ERROR = new Result(); - var GET_THEN_ERROR = new Result(); - - function getThen(obj) { - try { - return obj.then; - } catch(error) { - ERROR.value= error; - return ERROR; - } - } - - - function tryApply(f, s, a) { - try { - f.apply(s, a); - } catch(error) { - ERROR.value = error; - return ERROR; - } - } - - function makeObject(_, argumentNames) { - var obj = {}; - var name; - var i; - var length = _.length; - var args = new Array(length); - - for (var x = 0; x < length; x++) { - args[x] = _[x]; - } - - for (i = 0; i < argumentNames.length; i++) { - name = argumentNames[i]; - obj[name] = args[i + 1]; - } - - return obj; - } - - function arrayResult(_) { - var length = _.length; - var args = new Array(length - 1); - - for (var i = 1; i < length; i++) { - args[i - 1] = _[i]; - } - - return args; - } - - function wrapThenable(then, promise) { - return { - then: function(onFulFillment, onRejection) { - return then.call(promise, onFulFillment, onRejection); - } - }; - } - - /** - `RSVP.denodeify` takes a 'node-style' function and returns a function that - will return an `RSVP.Promise`. You can use `denodeify` in Node.js or the - browser when you'd prefer to use promises over using callbacks. For example, - `denodeify` transforms the following: - - ```javascript - var fs = require('fs'); - - fs.readFile('myfile.txt', function(err, data){ - if (err) return handleError(err); - handleData(data); - }); - ``` - - into: - - ```javascript - var fs = require('fs'); - var readFile = RSVP.denodeify(fs.readFile); - - readFile('myfile.txt').then(handleData, handleError); - ``` - - If the node function has multiple success parameters, then `denodeify` - just returns the first one: - - ```javascript - var request = RSVP.denodeify(require('request')); - - request('http://example.com').then(function(res) { - // ... - }); - ``` - - However, if you need all success parameters, setting `denodeify`'s - second parameter to `true` causes it to return all success parameters - as an array: - - ```javascript - var request = RSVP.denodeify(require('request'), true); - - request('http://example.com').then(function(result) { - // result[0] -> res - // result[1] -> body - }); - ``` - - Or if you pass it an array with names it returns the parameters as a hash: - - ```javascript - var request = RSVP.denodeify(require('request'), ['res', 'body']); - - request('http://example.com').then(function(result) { - // result.res - // result.body - }); - ``` - - Sometimes you need to retain the `this`: - - ```javascript - var app = require('express')(); - var render = RSVP.denodeify(app.render.bind(app)); - ``` - - The denodified function inherits from the original function. It works in all - environments, except IE 10 and below. Consequently all properties of the original - function are available to you. However, any properties you change on the - denodeified function won't be changed on the original function. Example: - - ```javascript - var request = RSVP.denodeify(require('request')), - cookieJar = request.jar(); // <- Inheritance is used here - - request('http://example.com', {jar: cookieJar}).then(function(res) { - // cookieJar.cookies holds now the cookies returned by example.com - }); - ``` - - Using `denodeify` makes it easier to compose asynchronous operations instead - of using callbacks. For example, instead of: - - ```javascript - var fs = require('fs'); - - fs.readFile('myfile.txt', function(err, data){ - if (err) { ... } // Handle error - fs.writeFile('myfile2.txt', data, function(err){ - if (err) { ... } // Handle error - console.log('done') - }); - }); - ``` - - you can chain the operations together using `then` from the returned promise: - - ```javascript - var fs = require('fs'); - var readFile = RSVP.denodeify(fs.readFile); - var writeFile = RSVP.denodeify(fs.writeFile); - - readFile('myfile.txt').then(function(data){ - return writeFile('myfile2.txt', data); - }).then(function(){ - console.log('done') - }).catch(function(error){ - // Handle error - }); - ``` - - @method denodeify - @static - @for RSVP - @param {Function} nodeFunc a 'node-style' function that takes a callback as - its last argument. The callback expects an error to be passed as its first - argument (if an error occurred, otherwise null), and the value from the - operation as its second argument ('function(err, value){ }'). - @param {Boolean|Array} argumentNames An optional paramter that if set - to `true` causes the promise to fulfill with the callback's success arguments - as an array. This is useful if the node function has multiple success - paramters. If you set this paramter to an array with names, the promise will - fulfill with a hash with these names as keys and the success parameters as - values. - @return {Function} a function that wraps `nodeFunc` to return an - `RSVP.Promise` - @static - */ - __exports__["default"] = function denodeify(nodeFunc, options) { - var fn = function() { - var self = this; - var l = arguments.length; - var args = new Array(l + 1); - var arg; - var promiseInput = false; - - for (var i = 0; i < l; ++i) { - arg = arguments[i]; - - if (!promiseInput) { - // TODO: clean this up - promiseInput = needsPromiseInput(arg); - if (promiseInput === GET_THEN_ERROR) { - var p = new Promise(noop); - reject(p, GET_THEN_ERROR.value); - return p; - } else if (promiseInput && promiseInput !== true) { - arg = wrapThenable(promiseInput, arg); - } - } - args[i] = arg; - } - - var promise = new Promise(noop); - - args[l] = function(err, val) { - if (err) - reject(promise, err); - else if (options === undefined) - resolve(promise, val); - else if (options === true) - resolve(promise, arrayResult(arguments)); - else if (isArray(options)) - resolve(promise, makeObject(arguments, options)); - else - resolve(promise, val); - }; - - if (promiseInput) { - return handlePromiseInput(promise, args, nodeFunc, self); - } else { - return handleValueInput(promise, args, nodeFunc, self); - } - }; - - fn.__proto__ = nodeFunc; - - return fn; - } - - function handleValueInput(promise, args, nodeFunc, self) { - var result = tryApply(nodeFunc, self, args); - if (result === ERROR) { - reject(promise, result.value); - } - return promise; - } - - function handlePromiseInput(promise, args, nodeFunc, self){ - return Promise.all(args).then(function(args){ - var result = tryApply(nodeFunc, self, args); - if (result === ERROR) { - reject(promise, result.value); - } - return promise; - }); - } - - function needsPromiseInput(arg) { - if (arg && typeof arg === 'object') { - if (arg.constructor === Promise) { - return true; - } else { - return getThen(arg); - } - } else { - return false; - } - } - }); -enifed("rsvp/promise-hash", - ["./enumerator","./-internal","./utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var Enumerator = __dependency1__["default"]; - var PENDING = __dependency2__.PENDING; - var o_create = __dependency3__.o_create; - - function PromiseHash(Constructor, object, label) { - this._superConstructor(Constructor, object, true, label); - } - - __exports__["default"] = PromiseHash; - - PromiseHash.prototype = o_create(Enumerator.prototype); - PromiseHash.prototype._superConstructor = Enumerator; - PromiseHash.prototype._init = function() { - this._result = {}; - }; - - PromiseHash.prototype._validateInput = function(input) { - return input && typeof input === 'object'; - }; - - PromiseHash.prototype._validationError = function() { - return new Error('Promise.hash must be called with an object'); - }; - - PromiseHash.prototype._enumerate = function() { - var promise = this.promise; - var input = this._input; - var results = []; - - for (var key in input) { - if (promise._state === PENDING && input.hasOwnProperty(key)) { - results.push({ - position: key, - entry: input[key] - }); - } - } - - var length = results.length; - this._remaining = length; - var result; - - for (var i = 0; promise._state === PENDING && i < length; i++) { - result = results[i]; - this._eachEntry(result.entry, result.position); - } - }; - }); -enifed("rsvp/promise", - ["./config","./instrument","./utils","./-internal","./promise/all","./promise/race","./promise/resolve","./promise/reject","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __dependency8__, __exports__) { - "use strict"; - var config = __dependency1__.config; - var instrument = __dependency2__["default"]; - - var isFunction = __dependency3__.isFunction; - var now = __dependency3__.now; - - var noop = __dependency4__.noop; - var subscribe = __dependency4__.subscribe; - var initializePromise = __dependency4__.initializePromise; - var invokeCallback = __dependency4__.invokeCallback; - var FULFILLED = __dependency4__.FULFILLED; - var REJECTED = __dependency4__.REJECTED; - - var all = __dependency5__["default"]; - var race = __dependency6__["default"]; - var Resolve = __dependency7__["default"]; - var Reject = __dependency8__["default"]; - - var guidKey = 'rsvp_' + now() + '-'; - var counter = 0; - - function needsResolver() { - throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); - } - - function needsNew() { - throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); - } - __exports__["default"] = Promise; - /** - Promise objects represent the eventual result of an asynchronous operation. The - primary way of interacting with a promise is through its `then` method, which - registers callbacks to receive either a promise’s eventual value or the reason - why the promise cannot be fulfilled. - - Terminology - ----------- - - - `promise` is an object or function with a `then` method whose behavior conforms to this specification. - - `thenable` is an object or function that defines a `then` method. - - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). - - `exception` is a value that is thrown using the throw statement. - - `reason` is a value that indicates why a promise was rejected. - - `settled` the final resting state of a promise, fulfilled or rejected. - - A promise can be in one of three states: pending, fulfilled, or rejected. - - Promises that are fulfilled have a fulfillment value and are in the fulfilled - state. Promises that are rejected have a rejection reason and are in the - rejected state. A fulfillment value is never a thenable. - - Promises can also be said to *resolve* a value. If this value is also a - promise, then the original promise's settled state will match the value's - settled state. So a promise that *resolves* a promise that rejects will - itself reject, and a promise that *resolves* a promise that fulfills will - itself fulfill. - - - Basic Usage: - ------------ - - ```js - var promise = new Promise(function(resolve, reject) { - // on success - resolve(value); - - // on failure - reject(reason); - }); - - promise.then(function(value) { - // on fulfillment - }, function(reason) { - // on rejection - }); - ``` - - Advanced Usage: - --------------- - - Promises shine when abstracting away asynchronous interactions such as - `XMLHttpRequest`s. - - ```js - function getJSON(url) { - return new Promise(function(resolve, reject){ - var xhr = new XMLHttpRequest(); - - xhr.open('GET', url); - xhr.onreadystatechange = handler; - xhr.responseType = 'json'; - xhr.setRequestHeader('Accept', 'application/json'); - xhr.send(); - - function handler() { - if (this.readyState === this.DONE) { - if (this.status === 200) { - resolve(this.response); - } else { - reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); - } - } - }; - }); - } - - getJSON('/posts.json').then(function(json) { - // on fulfillment - }, function(reason) { - // on rejection - }); - ``` - - Unlike callbacks, promises are great composable primitives. - - ```js - Promise.all([ - getJSON('/posts'), - getJSON('/comments') - ]).then(function(values){ - values[0] // => postsJSON - values[1] // => commentsJSON - - return values; - }); - ``` - - @class RSVP.Promise - @param {function} resolver - @param {String} label optional string for labeling the promise. - Useful for tooling. - @constructor - */ - function Promise(resolver, label) { - this._id = counter++; - this._label = label; - this._state = undefined; - this._result = undefined; - this._subscribers = []; - - if (config.instrument) { - instrument('created', this); - } - - if (noop !== resolver) { - if (!isFunction(resolver)) { - needsResolver(); - } - - if (!(this instanceof Promise)) { - needsNew(); - } - - initializePromise(this, resolver); - } - } - - Promise.cast = Resolve; // deprecated - Promise.all = all; - Promise.race = race; - Promise.resolve = Resolve; - Promise.reject = Reject; - - Promise.prototype = { - constructor: Promise, - - _guidKey: guidKey, - - _onerror: function (reason) { - config.trigger('error', reason); - }, - - /** - The primary way of interacting with a promise is through its `then` method, - which registers callbacks to receive either a promise's eventual value or the - reason why the promise cannot be fulfilled. - - ```js - findUser().then(function(user){ - // user is available - }, function(reason){ - // user is unavailable, and you are given the reason why - }); - ``` - - Chaining - -------- - - The return value of `then` is itself a promise. This second, 'downstream' - promise is resolved with the return value of the first promise's fulfillment - or rejection handler, or rejected if the handler throws an exception. - - ```js - findUser().then(function (user) { - return user.name; - }, function (reason) { - return 'default name'; - }).then(function (userName) { - // If `findUser` fulfilled, `userName` will be the user's name, otherwise it - // will be `'default name'` - }); - - findUser().then(function (user) { - throw new Error('Found user, but still unhappy'); - }, function (reason) { - throw new Error('`findUser` rejected and we're unhappy'); - }).then(function (value) { - // never reached - }, function (reason) { - // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. - // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'. - }); - ``` - If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. - - ```js - findUser().then(function (user) { - throw new PedagogicalException('Upstream error'); - }).then(function (value) { - // never reached - }).then(function (value) { - // never reached - }, function (reason) { - // The `PedgagocialException` is propagated all the way down to here - }); - ``` - - Assimilation - ------------ - - Sometimes the value you want to propagate to a downstream promise can only be - retrieved asynchronously. This can be achieved by returning a promise in the - fulfillment or rejection handler. The downstream promise will then be pending - until the returned promise is settled. This is called *assimilation*. - - ```js - findUser().then(function (user) { - return findCommentsByAuthor(user); - }).then(function (comments) { - // The user's comments are now available - }); - ``` - - If the assimliated promise rejects, then the downstream promise will also reject. - - ```js - findUser().then(function (user) { - return findCommentsByAuthor(user); - }).then(function (comments) { - // If `findCommentsByAuthor` fulfills, we'll have the value here - }, function (reason) { - // If `findCommentsByAuthor` rejects, we'll have the reason here - }); - ``` - - Simple Example - -------------- - - Synchronous Example - - ```javascript - var result; - - try { - result = findResult(); - // success - } catch(reason) { - // failure - } - ``` - - Errback Example - - ```js - findResult(function(result, err){ - if (err) { - // failure - } else { - // success - } - }); - ``` - - Promise Example; - - ```javascript - findResult().then(function(result){ - // success - }, function(reason){ - // failure - }); - ``` - - Advanced Example - -------------- - - Synchronous Example - - ```javascript - var author, books; - - try { - author = findAuthor(); - books = findBooksByAuthor(author); - // success - } catch(reason) { - // failure - } - ``` - - Errback Example - - ```js - - function foundBooks(books) { - - } - - function failure(reason) { - - } - - findAuthor(function(author, err){ - if (err) { - failure(err); - // failure - } else { - try { - findBoooksByAuthor(author, function(books, err) { - if (err) { - failure(err); - } else { - try { - foundBooks(books); - } catch(reason) { - failure(reason); - } - } - }); - } catch(error) { - failure(err); - } - // success - } - }); - ``` - - Promise Example; - - ```javascript - findAuthor(). - then(findBooksByAuthor). - then(function(books){ - // found books - }).catch(function(reason){ - // something went wrong - }); - ``` - - @method then - @param {Function} onFulfilled - @param {Function} onRejected - @param {String} label optional string for labeling the promise. - Useful for tooling. - @return {Promise} - */ - then: function(onFulfillment, onRejection, label) { - var parent = this; - var state = parent._state; - - if (state === FULFILLED && !onFulfillment || state === REJECTED && !onRejection) { - if (config.instrument) { - instrument('chained', this, this); - } - return this; - } - - parent._onerror = null; - - var child = new this.constructor(noop, label); - var result = parent._result; - - if (config.instrument) { - instrument('chained', parent, child); - } - - if (state) { - var callback = arguments[state - 1]; - config.async(function(){ - invokeCallback(state, child, callback, result); - }); - } else { - subscribe(parent, child, onFulfillment, onRejection); - } - - return child; - }, - - /** - `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same - as the catch block of a try/catch statement. - - ```js - function findAuthor(){ - throw new Error('couldn't find that author'); - } - - // synchronous - try { - findAuthor(); - } catch(reason) { - // something went wrong - } - - // async with promises - findAuthor().catch(function(reason){ - // something went wrong - }); - ``` - - @method catch - @param {Function} onRejection - @param {String} label optional string for labeling the promise. - Useful for tooling. - @return {Promise} - */ - 'catch': function(onRejection, label) { - return this.then(null, onRejection, label); - }, - - /** - `finally` will be invoked regardless of the promise's fate just as native - try/catch/finally behaves - - Synchronous example: - - ```js - findAuthor() { - if (Math.random() > 0.5) { - throw new Error(); - } - return new Author(); - } - - try { - return findAuthor(); // succeed or fail - } catch(error) { - return findOtherAuther(); - } finally { - // always runs - // doesn't affect the return value - } - ``` - - Asynchronous example: - - ```js - findAuthor().catch(function(reason){ - return findOtherAuther(); - }).finally(function(){ - // author was either found, or not - }); - ``` - - @method finally - @param {Function} callback - @param {String} label optional string for labeling the promise. - Useful for tooling. - @return {Promise} - */ - 'finally': function(callback, label) { - var constructor = this.constructor; - - return this.then(function(value) { - return constructor.resolve(callback()).then(function(){ - return value; - }); - }, function(reason) { - return constructor.resolve(callback()).then(function(){ - throw reason; - }); - }, label); - } - }; - }); -enifed("rsvp/promise/all", - ["../enumerator","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Enumerator = __dependency1__["default"]; - - /** - `RSVP.Promise.all` accepts an array of promises, and returns a new promise which - is fulfilled with an array of fulfillment values for the passed promises, or - rejected with the reason of the first passed promise to be rejected. It casts all - elements of the passed iterable to promises as it runs this algorithm. - - Example: - - ```javascript - var promise1 = RSVP.resolve(1); - var promise2 = RSVP.resolve(2); - var promise3 = RSVP.resolve(3); - var promises = [ promise1, promise2, promise3 ]; - - RSVP.Promise.all(promises).then(function(array){ - // The array here would be [ 1, 2, 3 ]; - }); - ``` - - If any of the `promises` given to `RSVP.all` are rejected, the first promise - that is rejected will be given as an argument to the returned promises's - rejection handler. For example: - - Example: - - ```javascript - var promise1 = RSVP.resolve(1); - var promise2 = RSVP.reject(new Error("2")); - var promise3 = RSVP.reject(new Error("3")); - var promises = [ promise1, promise2, promise3 ]; - - RSVP.Promise.all(promises).then(function(array){ - // Code here never runs because there are rejected promises! - }, function(error) { - // error.message === "2" - }); - ``` - - @method all - @static - @param {Array} entries array of promises - @param {String} label optional string for labeling the promise. - Useful for tooling. - @return {Promise} promise that is fulfilled when all `promises` have been - fulfilled, or rejected if any of them become rejected. - @static - */ - __exports__["default"] = function all(entries, label) { - return new Enumerator(this, entries, true /* abort on reject */, label).promise; - } - }); -enifed("rsvp/promise/race", - ["../utils","../-internal","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var isArray = __dependency1__.isArray; - - var noop = __dependency2__.noop; - var resolve = __dependency2__.resolve; - var reject = __dependency2__.reject; - var subscribe = __dependency2__.subscribe; - var PENDING = __dependency2__.PENDING; - - /** - `RSVP.Promise.race` returns a new promise which is settled in the same way as the - first passed promise to settle. - - Example: - - ```javascript - var promise1 = new RSVP.Promise(function(resolve, reject){ - setTimeout(function(){ - resolve('promise 1'); - }, 200); - }); - - var promise2 = new RSVP.Promise(function(resolve, reject){ - setTimeout(function(){ - resolve('promise 2'); - }, 100); - }); - - RSVP.Promise.race([promise1, promise2]).then(function(result){ - // result === 'promise 2' because it was resolved before promise1 - // was resolved. - }); - ``` - - `RSVP.Promise.race` is deterministic in that only the state of the first - settled promise matters. For example, even if other promises given to the - `promises` array argument are resolved, but the first settled promise has - become rejected before the other promises became fulfilled, the returned - promise will become rejected: - - ```javascript - var promise1 = new RSVP.Promise(function(resolve, reject){ - setTimeout(function(){ - resolve('promise 1'); - }, 200); - }); - - var promise2 = new RSVP.Promise(function(resolve, reject){ - setTimeout(function(){ - reject(new Error('promise 2')); - }, 100); - }); - - RSVP.Promise.race([promise1, promise2]).then(function(result){ - // Code here never runs - }, function(reason){ - // reason.message === 'promise 2' because promise 2 became rejected before - // promise 1 became fulfilled - }); - ``` - - An example real-world use case is implementing timeouts: - - ```javascript - RSVP.Promise.race([ajax('foo.json'), timeout(5000)]) - ``` - - @method race - @static - @param {Array} promises array of promises to observe - @param {String} label optional string for describing the promise returned. - Useful for tooling. - @return {Promise} a promise which settles in the same way as the first passed - promise to settle. - */ - __exports__["default"] = function race(entries, label) { - /*jshint validthis:true */ - var Constructor = this; - - var promise = new Constructor(noop, label); - - if (!isArray(entries)) { - reject(promise, new TypeError('You must pass an array to race.')); - return promise; - } - - var length = entries.length; - - function onFulfillment(value) { - resolve(promise, value); - } - - function onRejection(reason) { - reject(promise, reason); - } - - for (var i = 0; promise._state === PENDING && i < length; i++) { - subscribe(Constructor.resolve(entries[i]), undefined, onFulfillment, onRejection); - } - - return promise; - } - }); -enifed("rsvp/promise/reject", - ["../-internal","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var noop = __dependency1__.noop; - var _reject = __dependency1__.reject; - - /** - `RSVP.Promise.reject` returns a promise rejected with the passed `reason`. - It is shorthand for the following: - - ```javascript - var promise = new RSVP.Promise(function(resolve, reject){ - reject(new Error('WHOOPS')); - }); - - promise.then(function(value){ - // Code here doesn't run because the promise is rejected! - }, function(reason){ - // reason.message === 'WHOOPS' - }); - ``` - - Instead of writing the above, your code now simply becomes the following: - - ```javascript - var promise = RSVP.Promise.reject(new Error('WHOOPS')); - - promise.then(function(value){ - // Code here doesn't run because the promise is rejected! - }, function(reason){ - // reason.message === 'WHOOPS' - }); - ``` - - @method reject - @static - @param {Any} reason value that the returned promise will be rejected with. - @param {String} label optional string for identifying the returned promise. - Useful for tooling. - @return {Promise} a promise rejected with the given `reason`. - */ - __exports__["default"] = function reject(reason, label) { - /*jshint validthis:true */ - var Constructor = this; - var promise = new Constructor(noop, label); - _reject(promise, reason); - return promise; - } - }); -enifed("rsvp/promise/resolve", - ["../-internal","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var noop = __dependency1__.noop; - var _resolve = __dependency1__.resolve; - - /** - `RSVP.Promise.resolve` returns a promise that will become resolved with the - passed `value`. It is shorthand for the following: - - ```javascript - var promise = new RSVP.Promise(function(resolve, reject){ - resolve(1); - }); - - promise.then(function(value){ - // value === 1 - }); - ``` - - Instead of writing the above, your code now simply becomes the following: - - ```javascript - var promise = RSVP.Promise.resolve(1); - - promise.then(function(value){ - // value === 1 - }); - ``` - - @method resolve - @static - @param {Any} value value that the returned promise will be resolved with - @param {String} label optional string for identifying the returned promise. - Useful for tooling. - @return {Promise} a promise that will become fulfilled with the given - `value` - */ - __exports__["default"] = function resolve(object, label) { - /*jshint validthis:true */ - var Constructor = this; - - if (object && typeof object === 'object' && object.constructor === Constructor) { - return object; - } - - var promise = new Constructor(noop, label); - _resolve(promise, object); - return promise; - } - }); -enifed("rsvp/race", - ["./promise","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Promise = __dependency1__["default"]; - - /** - This is a convenient alias for `RSVP.Promise.race`. - - @method race - @static - @for RSVP - @param {Array} array Array of promises. - @param {String} label An optional label. This is useful - for tooling. - */ - __exports__["default"] = function race(array, label) { - return Promise.race(array, label); - } - }); -enifed("rsvp/reject", - ["./promise","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Promise = __dependency1__["default"]; - - /** - This is a convenient alias for `RSVP.Promise.reject`. - - @method reject - @static - @for RSVP - @param {Any} reason value that the returned promise will be rejected with. - @param {String} label optional string for identifying the returned promise. - Useful for tooling. - @return {Promise} a promise rejected with the given `reason`. - */ - __exports__["default"] = function reject(reason, label) { - return Promise.reject(reason, label); - } - }); -enifed("rsvp/resolve", - ["./promise","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Promise = __dependency1__["default"]; - - /** - This is a convenient alias for `RSVP.Promise.resolve`. - - @method resolve - @static - @for RSVP - @param {Any} value value that the returned promise will be resolved with - @param {String} label optional string for identifying the returned promise. - Useful for tooling. - @return {Promise} a promise that will become fulfilled with the given - `value` - */ - __exports__["default"] = function resolve(value, label) { - return Promise.resolve(value, label); - } - }); -enifed("rsvp/rethrow", - ["exports"], - function(__exports__) { - "use strict"; - /** - `RSVP.rethrow` will rethrow an error on the next turn of the JavaScript event - loop in order to aid debugging. - - Promises A+ specifies that any exceptions that occur with a promise must be - caught by the promises implementation and bubbled to the last handler. For - this reason, it is recommended that you always specify a second rejection - handler function to `then`. However, `RSVP.rethrow` will throw the exception - outside of the promise, so it bubbles up to your console if in the browser, - or domain/cause uncaught exception in Node. `rethrow` will also throw the - error again so the error can be handled by the promise per the spec. - - ```javascript - function throws(){ - throw new Error('Whoops!'); - } - - var promise = new RSVP.Promise(function(resolve, reject){ - throws(); - }); - - promise.catch(RSVP.rethrow).then(function(){ - // Code here doesn't run because the promise became rejected due to an - // error! - }, function (err){ - // handle the error here - }); - ``` - - The 'Whoops' error will be thrown on the next turn of the event loop - and you can watch for it in your console. You can also handle it using a - rejection handler given to `.then` or `.catch` on the returned promise. - - @method rethrow - @static - @for RSVP - @param {Error} reason reason the promise became rejected. - @throws Error - @static - */ - __exports__["default"] = function rethrow(reason) { - setTimeout(function() { - throw reason; - }); - throw reason; - } - }); -enifed("rsvp/utils", - ["exports"], - function(__exports__) { - "use strict"; - function objectOrFunction(x) { - return typeof x === 'function' || (typeof x === 'object' && x !== null); - } - - __exports__.objectOrFunction = objectOrFunction;function isFunction(x) { - return typeof x === 'function'; - } - - __exports__.isFunction = isFunction;function isMaybeThenable(x) { - return typeof x === 'object' && x !== null; - } - - __exports__.isMaybeThenable = isMaybeThenable;var _isArray; - if (!Array.isArray) { - _isArray = function (x) { - return Object.prototype.toString.call(x) === '[object Array]'; - }; - } else { - _isArray = Array.isArray; - } - - var isArray = _isArray; - __exports__.isArray = isArray; - // Date.now is not available in browsers < IE9 - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility - var now = Date.now || function() { return new Date().getTime(); }; - __exports__.now = now; - function F() { } - - var o_create = (Object.create || function (o) { - if (arguments.length > 1) { - throw new Error('Second argument not supported'); - } - if (typeof o !== 'object') { - throw new TypeError('Argument must be an object'); - } - F.prototype = o; - return new F(); - }); - __exports__.o_create = o_create; - }); -requireModule("ember"); - -})(); diff --git a/website/source/assets/javascripts/lib/ember-data-1-0.js b/website/source/assets/javascripts/lib/ember-data-1-0.js deleted file mode 100644 index 1a76339a13..0000000000 --- a/website/source/assets/javascripts/lib/ember-data-1-0.js +++ /dev/null @@ -1,13410 +0,0 @@ -(function() { - "use strict"; - var ember$data$lib$system$model$errors$invalid$$create = Ember.create; - var ember$data$lib$system$model$errors$invalid$$EmberError = Ember.Error; - - /** - A `DS.InvalidError` is used by an adapter to signal the external API - was unable to process a request because the content was not - semantically correct or meaningful per the API. Usually this means a - record failed some form of server side validation. When a promise - from an adapter is rejected with a `DS.InvalidError` the record will - transition to the `invalid` state and the errors will be set to the - `errors` property on the record. - - For Ember Data to correctly map errors to their corresponding - properties on the model, Ember Data expects each error to be - namespaced under a key that matches the property name. For example - if you had a Post model that looked like this. - - ```app/models/post.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - title: DS.attr('string'), - content: DS.attr('string') - }); - ``` - - To show an error from the server related to the `title` and - `content` properties your adapter could return a promise that - rejects with a `DS.InvalidError` object that looks like this: - - ```app/adapters/post.js - import Ember from 'ember'; - import DS from 'ember-data'; - - export default DS.RESTAdapter.extend({ - updateRecord: function() { - // Fictional adapter that always rejects - return Ember.RSVP.reject(new DS.InvalidError({ - title: ['Must be unique'], - content: ['Must not be blank'], - })); - } - }); - ``` - - Your backend may use different property names for your records the - store will attempt extract and normalize the errors using the - serializer's `extractErrors` method before the errors get added to - the the model. As a result, it is safe for the `InvalidError` to - wrap the error payload unaltered. - - Example - - ```app/adapters/application.js - import Ember from 'ember'; - import DS from 'ember-data'; - - export default DS.RESTAdapter.extend({ - ajaxError: function(jqXHR) { - var error = this._super(jqXHR); - - // 422 is used by this fictional server to signal a validation error - if (jqXHR && jqXHR.status === 422) { - var jsonErrors = Ember.$.parseJSON(jqXHR.responseText); - return new DS.InvalidError(jsonErrors); - } else { - // The ajax request failed however it is not a result of this - // record being in an invalid state so we do not return a - // `InvalidError` object. - return error; - } - } - }); - ``` - - @class InvalidError - @namespace DS - */ - function ember$data$lib$system$model$errors$invalid$$InvalidError(errors) { - ember$data$lib$system$model$errors$invalid$$EmberError.call(this, "The backend rejected the commit because it was invalid: " + Ember.inspect(errors)); - this.errors = errors; - } - - ember$data$lib$system$model$errors$invalid$$InvalidError.prototype = ember$data$lib$system$model$errors$invalid$$create(ember$data$lib$system$model$errors$invalid$$EmberError.prototype); - - var ember$data$lib$system$model$errors$invalid$$default = ember$data$lib$system$model$errors$invalid$$InvalidError; - - /** - @module ember-data - */ - - var ember$data$lib$system$adapter$$get = Ember.get; - - /** - An adapter is an object that receives requests from a store and - translates them into the appropriate action to take against your - persistence layer. The persistence layer is usually an HTTP API, but - may be anything, such as the browser's local storage. Typically the - adapter is not invoked directly instead its functionality is accessed - through the `store`. - - ### Creating an Adapter - - Create a new subclass of `DS.Adapter` in the `app/adapters` folder: - - ```app/adapters/application.js - import DS from 'ember-data'; - - export default DS.Adapter.extend({ - // ...your code here - }); - ``` - - Model-specific adapters can be created by putting your adapter - class in an `app/adapters/` + `model-name` + `.js` file of the application. - - ```app/adapters/post.js - import DS from 'ember-data'; - - export default DS.Adapter.extend({ - // ...Post-specific adapter code goes here - }); - ``` - - `DS.Adapter` is an abstract base class that you should override in your - application to customize it for your backend. The minimum set of methods - that you should implement is: - - * `find()` - * `createRecord()` - * `updateRecord()` - * `deleteRecord()` - * `findAll()` - * `findQuery()` - - To improve the network performance of your application, you can optimize - your adapter by overriding these lower-level methods: - - * `findMany()` - - - For an example implementation, see `DS.RESTAdapter`, the - included REST adapter. - - @class Adapter - @namespace DS - @extends Ember.Object - */ - - var ember$data$lib$system$adapter$$Adapter = Ember.Object.extend({ - - /** - If you would like your adapter to use a custom serializer you can - set the `defaultSerializer` property to be the name of the custom - serializer. - Note the `defaultSerializer` serializer has a lower priority than - a model specific serializer (i.e. `PostSerializer`) or the - `application` serializer. - ```app/adapters/django.js - import DS from 'ember-data'; - export default DS.Adapter.extend({ - defaultSerializer: 'django' - }); - ``` - @property defaultSerializer - @type {String} - */ - defaultSerializer: '-default', - - /** - The `find()` method is invoked when the store is asked for a record that - has not previously been loaded. In response to `find()` being called, you - should query your persistence layer for a record with the given ID. Once - found, you can asynchronously call the store's `push()` method to push - the record into the store. - Here is an example `find` implementation: - ```app/adapters/application.js - import DS from 'ember-data'; - export default DS.Adapter.extend({ - find: function(store, type, id, snapshot) { - var url = [type.modelName, id].join('/'); - return new Ember.RSVP.Promise(function(resolve, reject) { - jQuery.getJSON(url).then(function(data) { - Ember.run(null, resolve, data); - }, function(jqXHR) { - jqXHR.then = null; // tame jQuery's ill mannered promises - Ember.run(null, reject, jqXHR); - }); - }); - } - }); - ``` - @method find - @param {DS.Store} store - @param {DS.Model} type - @param {String} id - @param {DS.Snapshot} snapshot - @return {Promise} promise - */ - find: null, - - /** - The `findAll()` method is called when you call `find` on the store - without an ID (i.e. `store.find('post')`). - Example - ```app/adapters/application.js - import DS from 'ember-data'; - export default DS.Adapter.extend({ - findAll: function(store, type, sinceToken) { - var url = type; - var query = { since: sinceToken }; - return new Ember.RSVP.Promise(function(resolve, reject) { - jQuery.getJSON(url, query).then(function(data) { - Ember.run(null, resolve, data); - }, function(jqXHR) { - jqXHR.then = null; // tame jQuery's ill mannered promises - Ember.run(null, reject, jqXHR); - }); - }); - } - }); - ``` - @private - @method findAll - @param {DS.Store} store - @param {DS.Model} type - @param {String} sinceToken - @return {Promise} promise - */ - findAll: null, - - /** - This method is called when you call `find` on the store with a - query object as the second parameter (i.e. `store.find('person', { - page: 1 })`). - Example - ```app/adapters/application.js - import DS from 'ember-data'; - export default DS.Adapter.extend({ - findQuery: function(store, type, query) { - var url = type; - return new Ember.RSVP.Promise(function(resolve, reject) { - jQuery.getJSON(url, query).then(function(data) { - Ember.run(null, resolve, data); - }, function(jqXHR) { - jqXHR.then = null; // tame jQuery's ill mannered promises - Ember.run(null, reject, jqXHR); - }); - }); - } - }); - ``` - @private - @method findQuery - @param {DS.Store} store - @param {DS.Model} type - @param {Object} query - @param {DS.AdapterPopulatedRecordArray} recordArray - @return {Promise} promise - */ - findQuery: null, - - /** - If the globally unique IDs for your records should be generated on the client, - implement the `generateIdForRecord()` method. This method will be invoked - each time you create a new record, and the value returned from it will be - assigned to the record's `primaryKey`. - Most traditional REST-like HTTP APIs will not use this method. Instead, the ID - of the record will be set by the server, and your adapter will update the store - with the new ID when it calls `didCreateRecord()`. Only implement this method if - you intend to generate record IDs on the client-side. - The `generateIdForRecord()` method will be invoked with the requesting store as - the first parameter and the newly created record as the second parameter: - ```javascript - generateIdForRecord: function(store, inputProperties) { - var uuid = App.generateUUIDWithStatisticallyLowOddsOfCollision(); - return uuid; - } - ``` - @method generateIdForRecord - @param {DS.Store} store - @param {DS.Model} type the DS.Model class of the record - @param {Object} inputProperties a hash of properties to set on the - newly created record. - @return {(String|Number)} id - */ - generateIdForRecord: null, - - /** - Proxies to the serializer's `serialize` method. - Example - ```app/adapters/application.js - import DS from 'ember-data'; - export default DS.Adapter.extend({ - createRecord: function(store, type, snapshot) { - var data = this.serialize(snapshot, { includeId: true }); - var url = type; - // ... - } - }); - ``` - @method serialize - @param {DS.Snapshot} snapshot - @param {Object} options - @return {Object} serialized snapshot - */ - serialize: function (snapshot, options) { - return ember$data$lib$system$adapter$$get(snapshot.record, 'store').serializerFor(snapshot.modelName).serialize(snapshot, options); - }, - - /** - Implement this method in a subclass to handle the creation of - new records. - Serializes the record and send it to the server. - Example - ```app/adapters/application.js - import DS from 'ember-data'; - export default DS.Adapter.extend({ - createRecord: function(store, type, snapshot) { - var data = this.serialize(snapshot, { includeId: true }); - var url = type; - return new Ember.RSVP.Promise(function(resolve, reject) { - jQuery.ajax({ - type: 'POST', - url: url, - dataType: 'json', - data: data - }).then(function(data) { - Ember.run(null, resolve, data); - }, function(jqXHR) { - jqXHR.then = null; // tame jQuery's ill mannered promises - Ember.run(null, reject, jqXHR); - }); - }); - } - }); - ``` - @method createRecord - @param {DS.Store} store - @param {DS.Model} type the DS.Model class of the record - @param {DS.Snapshot} snapshot - @return {Promise} promise - */ - createRecord: null, - - /** - Implement this method in a subclass to handle the updating of - a record. - Serializes the record update and send it to the server. - Example - ```app/adapters/application.js - import DS from 'ember-data'; - export default DS.Adapter.extend({ - updateRecord: function(store, type, snapshot) { - var data = this.serialize(snapshot, { includeId: true }); - var id = snapshot.id; - var url = [type, id].join('/'); - return new Ember.RSVP.Promise(function(resolve, reject) { - jQuery.ajax({ - type: 'PUT', - url: url, - dataType: 'json', - data: data - }).then(function(data) { - Ember.run(null, resolve, data); - }, function(jqXHR) { - jqXHR.then = null; // tame jQuery's ill mannered promises - Ember.run(null, reject, jqXHR); - }); - }); - } - }); - ``` - @method updateRecord - @param {DS.Store} store - @param {DS.Model} type the DS.Model class of the record - @param {DS.Snapshot} snapshot - @return {Promise} promise - */ - updateRecord: null, - - /** - Implement this method in a subclass to handle the deletion of - a record. - Sends a delete request for the record to the server. - Example - ```app/adapters/application.js - import DS from 'ember-data'; - export default DS.Adapter.extend({ - deleteRecord: function(store, type, snapshot) { - var data = this.serialize(snapshot, { includeId: true }); - var id = snapshot.id; - var url = [type, id].join('/'); - return new Ember.RSVP.Promise(function(resolve, reject) { - jQuery.ajax({ - type: 'DELETE', - url: url, - dataType: 'json', - data: data - }).then(function(data) { - Ember.run(null, resolve, data); - }, function(jqXHR) { - jqXHR.then = null; // tame jQuery's ill mannered promises - Ember.run(null, reject, jqXHR); - }); - }); - } - }); - ``` - @method deleteRecord - @param {DS.Store} store - @param {DS.Model} type the DS.Model class of the record - @param {DS.Snapshot} snapshot - @return {Promise} promise - */ - deleteRecord: null, - - /** - By default the store will try to coalesce all `fetchRecord` calls within the same runloop - into as few requests as possible by calling groupRecordsForFindMany and passing it into a findMany call. - You can opt out of this behaviour by either not implementing the findMany hook or by setting - coalesceFindRequests to false - @property coalesceFindRequests - @type {boolean} - */ - coalesceFindRequests: true, - - /** - Find multiple records at once if coalesceFindRequests is true - @method findMany - @param {DS.Store} store - @param {DS.Model} type the DS.Model class of the records - @param {Array} ids - @param {Array} snapshots - @return {Promise} promise - */ - - /** - Organize records into groups, each of which is to be passed to separate - calls to `findMany`. - For example, if your api has nested URLs that depend on the parent, you will - want to group records by their parent. - The default implementation returns the records as a single group. - @method groupRecordsForFindMany - @param {DS.Store} store - @param {Array} snapshots - @return {Array} an array of arrays of records, each of which is to be - loaded separately by `findMany`. - */ - groupRecordsForFindMany: function (store, snapshots) { - return [snapshots]; - } - }); - - var ember$data$lib$system$adapter$$default = ember$data$lib$system$adapter$$Adapter; - - /** - @module ember-data - */ - var ember$data$lib$adapters$fixture$adapter$$get = Ember.get; - var ember$data$lib$adapters$fixture$adapter$$fmt = Ember.String.fmt; - var ember$data$lib$adapters$fixture$adapter$$indexOf = Ember.EnumerableUtils.indexOf; - - var ember$data$lib$adapters$fixture$adapter$$counter = 0; - - var ember$data$lib$adapters$fixture$adapter$$default = ember$data$lib$system$adapter$$default.extend({ - // by default, fixtures are already in normalized form - serializer: null, - // The fixture adapter does not support coalesceFindRequests - coalesceFindRequests: false, - - /** - If `simulateRemoteResponse` is `true` the `FixtureAdapter` will - wait a number of milliseconds before resolving promises with the - fixture values. The wait time can be configured via the `latency` - property. - @property simulateRemoteResponse - @type {Boolean} - @default true - */ - simulateRemoteResponse: true, - - /** - By default the `FixtureAdapter` will simulate a wait of the - `latency` milliseconds before resolving promises with the fixture - values. This behavior can be turned off via the - `simulateRemoteResponse` property. - @property latency - @type {Number} - @default 50 - */ - latency: 50, - - /** - Implement this method in order to provide data associated with a type - @method fixturesForType - @param {DS.Model} typeClass - @return {Array} - */ - fixturesForType: function (typeClass) { - if (typeClass.FIXTURES) { - var fixtures = Ember.A(typeClass.FIXTURES); - return fixtures.map(function (fixture) { - var fixtureIdType = typeof fixture.id; - if (fixtureIdType !== "number" && fixtureIdType !== "string") { - throw new Error(ember$data$lib$adapters$fixture$adapter$$fmt("the id property must be defined as a number or string for fixture %@", [fixture])); - } - fixture.id = fixture.id + ""; - return fixture; - }); - } - return null; - }, - - /** - Implement this method in order to query fixtures data - @method queryFixtures - @param {Array} fixtures - @param {Object} query - @param {DS.Model} typeClass - @return {(Promise|Array)} - */ - queryFixtures: function (fixtures, query, typeClass) { - }, - - /** - @method updateFixtures - @param {DS.Model} typeClass - @param {Array} fixture - */ - updateFixtures: function (typeClass, fixture) { - if (!typeClass.FIXTURES) { - typeClass.FIXTURES = []; - } - - var fixtures = typeClass.FIXTURES; - - this.deleteLoadedFixture(typeClass, fixture); - - fixtures.push(fixture); - }, - - /** - Implement this method in order to provide json for CRUD methods - @method mockJSON - @param {DS.Store} store - @param {DS.Model} typeClass - @param {DS.Snapshot} snapshot - */ - mockJSON: function (store, typeClass, snapshot) { - return store.serializerFor(snapshot.modelName).serialize(snapshot, { includeId: true }); - }, - - /** - @method generateIdForRecord - @param {DS.Store} store - @return {String} id - */ - generateIdForRecord: function (store) { - return "fixture-" + ember$data$lib$adapters$fixture$adapter$$counter++; - }, - - /** - @method find - @param {DS.Store} store - @param {DS.Model} typeClass - @param {String} id - @param {DS.Snapshot} snapshot - @return {Promise} promise - */ - find: function (store, typeClass, id, snapshot) { - var fixtures = this.fixturesForType(typeClass); - var fixture; - - - if (fixtures) { - fixture = Ember.A(fixtures).findBy("id", id); - } - - if (fixture) { - return this.simulateRemoteCall(function () { - return fixture; - }, this); - } - }, - - /** - @method findMany - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Array} ids - @param {Array} snapshots - @return {Promise} promise - */ - findMany: function (store, typeClass, ids, snapshots) { - var fixtures = this.fixturesForType(typeClass); - - - if (fixtures) { - fixtures = fixtures.filter(function (item) { - return ember$data$lib$adapters$fixture$adapter$$indexOf(ids, item.id) !== -1; - }); - } - - if (fixtures) { - return this.simulateRemoteCall(function () { - return fixtures; - }, this); - } - }, - - /** - @private - @method findAll - @param {DS.Store} store - @param {DS.Model} typeClass - @return {Promise} promise - */ - findAll: function (store, typeClass) { - var fixtures = this.fixturesForType(typeClass); - - - return this.simulateRemoteCall(function () { - return fixtures; - }, this); - }, - - /** - @private - @method findQuery - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} query - @param {DS.AdapterPopulatedRecordArray} array - @return {Promise} promise - */ - findQuery: function (store, typeClass, query, array) { - var fixtures = this.fixturesForType(typeClass); - - - fixtures = this.queryFixtures(fixtures, query, typeClass); - - if (fixtures) { - return this.simulateRemoteCall(function () { - return fixtures; - }, this); - } - }, - - /** - @method createRecord - @param {DS.Store} store - @param {DS.Model} typeClass - @param {DS.Snapshot} snapshot - @return {Promise} promise - */ - createRecord: function (store, typeClass, snapshot) { - var fixture = this.mockJSON(store, typeClass, snapshot); - - this.updateFixtures(typeClass, fixture); - - return this.simulateRemoteCall(function () { - return fixture; - }, this); - }, - - /** - @method updateRecord - @param {DS.Store} store - @param {DS.Model} typeClass - @param {DS.Snapshot} snapshot - @return {Promise} promise - */ - updateRecord: function (store, typeClass, snapshot) { - var fixture = this.mockJSON(store, typeClass, snapshot); - - this.updateFixtures(typeClass, fixture); - - return this.simulateRemoteCall(function () { - return fixture; - }, this); - }, - - /** - @method deleteRecord - @param {DS.Store} store - @param {DS.Model} typeClass - @param {DS.Snapshot} snapshot - @return {Promise} promise - */ - deleteRecord: function (store, typeClass, snapshot) { - this.deleteLoadedFixture(typeClass, snapshot); - - return this.simulateRemoteCall(function () { - // no payload in a deletion - return null; - }); - }, - - /* - @method deleteLoadedFixture - @private - @param typeClass - @param snapshot - */ - deleteLoadedFixture: function (typeClass, snapshot) { - var existingFixture = this.findExistingFixture(typeClass, snapshot); - - if (existingFixture) { - var index = ember$data$lib$adapters$fixture$adapter$$indexOf(typeClass.FIXTURES, existingFixture); - typeClass.FIXTURES.splice(index, 1); - return true; - } - }, - - /* - @method findExistingFixture - @private - @param typeClass - @param snapshot - */ - findExistingFixture: function (typeClass, snapshot) { - var fixtures = this.fixturesForType(typeClass); - var id = snapshot.id; - - return this.findFixtureById(fixtures, id); - }, - - /* - @method findFixtureById - @private - @param fixtures - @param id - */ - findFixtureById: function (fixtures, id) { - return Ember.A(fixtures).find(function (r) { - if ("" + ember$data$lib$adapters$fixture$adapter$$get(r, "id") === "" + id) { - return true; - } else { - return false; - } - }); - }, - - /* - @method simulateRemoteCall - @private - @param callback - @param context - */ - simulateRemoteCall: function (callback, context) { - var adapter = this; - - return new Ember.RSVP.Promise(function (resolve) { - var value = Ember.copy(callback.call(context), true); - if (ember$data$lib$adapters$fixture$adapter$$get(adapter, "simulateRemoteResponse")) { - // Schedule with setTimeout - Ember.run.later(function () { - resolve(value); - }, ember$data$lib$adapters$fixture$adapter$$get(adapter, "latency")); - } else { - // Asynchronous, but at the of the runloop with zero latency - Ember.run.schedule("actions", null, function () { - resolve(value); - }); - } - }, "DS: FixtureAdapter#simulateRemoteCall"); - } - }); - - var ember$data$lib$system$map$$Map = Ember.Map; - var ember$data$lib$system$map$$MapWithDefault = Ember.MapWithDefault; - - var ember$data$lib$system$map$$default = ember$data$lib$system$map$$Map; - var ember$data$lib$adapters$build$url$mixin$$get = Ember.get; - - var ember$data$lib$adapters$build$url$mixin$$default = Ember.Mixin.create({ - /** - Builds a URL for a given type and optional ID. - By default, it pluralizes the type's name (for example, 'post' - becomes 'posts' and 'person' becomes 'people'). To override the - pluralization see [pathForType](#method_pathForType). - If an ID is specified, it adds the ID to the path generated - for the type, separated by a `/`. - When called by RESTAdapter.findMany() the `id` and `snapshot` parameters - will be arrays of ids and snapshots. - @method buildURL - @param {String} modelName - @param {(String|Array|Object)} id single id or array of ids or query - @param {(DS.Snapshot|Array)} snapshot single snapshot or array of snapshots - @param {String} requestType - @param {Object} query object of query parameters to send for findQuery requests. - @return {String} url - */ - buildURL: function (modelName, id, snapshot, requestType, query) { - switch (requestType) { - case 'find': - return this.urlForFind(id, modelName, snapshot); - case 'findAll': - return this.urlForFindAll(modelName); - case 'findQuery': - return this.urlForFindQuery(query, modelName); - case 'findMany': - return this.urlForFindMany(id, modelName, snapshot); - case 'findHasMany': - return this.urlForFindHasMany(id, modelName); - case 'findBelongsTo': - return this.urlForFindBelongsTo(id, modelName); - case 'createRecord': - return this.urlForCreateRecord(modelName, snapshot); - case 'updateRecord': - return this.urlForUpdateRecord(id, modelName, snapshot); - case 'deleteRecord': - return this.urlForDeleteRecord(id, modelName, snapshot); - default: - return this._buildURL(modelName, id); - } - }, - - /** - @method _buildURL - @private - @param {String} modelName - @param {String} id - @return {String} url - */ - _buildURL: function (modelName, id) { - var url = []; - var host = ember$data$lib$adapters$build$url$mixin$$get(this, 'host'); - var prefix = this.urlPrefix(); - var path; - - if (modelName) { - path = this.pathForType(modelName); - if (path) { - url.push(path); - } - } - - if (id) { - url.push(encodeURIComponent(id)); - } - if (prefix) { - url.unshift(prefix); - } - - url = url.join('/'); - if (!host && url && url.charAt(0) !== '/') { - url = '/' + url; - } - - return url; - }, - - /** - * @method urlForFind - * @param {String} id - * @param {String} modelName - * @param {DS.Snapshot} snapshot - * @return {String} url - */ - urlForFind: function (id, modelName, snapshot) { - return this._buildURL(modelName, id); - }, - - /** - * @method urlForFindAll - * @param {String} modelName - * @return {String} url - */ - urlForFindAll: function (modelName) { - return this._buildURL(modelName); - }, - - /** - * @method urlForFindQuery - * @param {Object} query - * @param {String} modelName - * @return {String} url - */ - urlForFindQuery: function (query, modelName) { - return this._buildURL(modelName); - }, - - /** - * @method urlForFindMany - * @param {Array} ids - * @param {String} modelName - * @param {Array} snapshots - * @return {String} url - */ - urlForFindMany: function (ids, modelName, snapshots) { - return this._buildURL(modelName); - }, - - /** - * @method urlForFindHasMany - * @param {String} id - * @param {String} modelName - * @return {String} url - */ - urlForFindHasMany: function (id, modelName) { - return this._buildURL(modelName, id); - }, - - /** - * @method urlForFindBelongTo - * @param {String} id - * @param {String} modelName - * @return {String} url - */ - urlForFindBelongsTo: function (id, modelName) { - return this._buildURL(modelName, id); - }, - - /** - * @method urlForCreateRecord - * @param {String} modelName - * @param {DS.Snapshot} snapshot - * @return {String} url - */ - urlForCreateRecord: function (modelName, snapshot) { - return this._buildURL(modelName); - }, - - /** - * @method urlForUpdateRecord - * @param {String} id - * @param {String} modelName - * @param {DS.Snapshot} snapshot - * @return {String} url - */ - urlForUpdateRecord: function (id, modelName, snapshot) { - return this._buildURL(modelName, id); - }, - - /** - * @method urlForDeleteRecord - * @param {String} id - * @param {String} modelName - * @param {DS.Snapshot} snapshot - * @return {String} url - */ - urlForDeleteRecord: function (id, modelName, snapshot) { - return this._buildURL(modelName, id); - }, - - /** - @method urlPrefix - @private - @param {String} path - @param {String} parentURL - @return {String} urlPrefix - */ - urlPrefix: function (path, parentURL) { - var host = ember$data$lib$adapters$build$url$mixin$$get(this, 'host'); - var namespace = ember$data$lib$adapters$build$url$mixin$$get(this, 'namespace'); - var url = []; - - if (path) { - // Protocol relative url - //jscs:disable disallowEmptyBlocks - if (/^\/\//.test(path)) {} else if (path.charAt(0) === '/') { - //jscs:enable disallowEmptyBlocks - if (host) { - path = path.slice(1); - url.push(host); - } - // Relative path - } else if (!/^http(s)?:\/\//.test(path)) { - url.push(parentURL); - } - } else { - if (host) { - url.push(host); - } - if (namespace) { - url.push(namespace); - } - } - - if (path) { - url.push(path); - } - - return url.join('/'); - }, - - /** - Determines the pathname for a given type. - By default, it pluralizes the type's name (for example, - 'post' becomes 'posts' and 'person' becomes 'people'). - ### Pathname customization - For example if you have an object LineItem with an - endpoint of "/line_items/". - ```app/adapters/application.js - import DS from 'ember-data'; - export default DS.RESTAdapter.extend({ - pathForType: function(modelName) { - var decamelized = Ember.String.decamelize(modelName); - return Ember.String.pluralize(decamelized); - } - }); - ``` - @method pathForType - @param {String} modelName - @return {String} path - **/ - pathForType: function (modelName) { - var camelized = Ember.String.camelize(modelName); - return Ember.String.pluralize(camelized); - } - }); - - var ember$data$lib$adapters$rest$adapter$$get = Ember.get; - var ember$data$lib$adapters$rest$adapter$$set = Ember.set; - var ember$data$lib$adapters$rest$adapter$$forEach = Ember.ArrayPolyfills.forEach;/** - The REST adapter allows your store to communicate with an HTTP server by - transmitting JSON via XHR. Most Ember.js apps that consume a JSON API - should use the REST adapter. - - This adapter is designed around the idea that the JSON exchanged with - the server should be conventional. - - ## JSON Structure - - The REST adapter expects the JSON returned from your server to follow - these conventions. - - ### Object Root - - The JSON payload should be an object that contains the record inside a - root property. For example, in response to a `GET` request for - `/posts/1`, the JSON should look like this: - - ```js - { - "post": { - "id": 1, - "title": "I'm Running to Reform the W3C's Tag", - "author": "Yehuda Katz" - } - } - ``` - - Similarly, in response to a `GET` request for `/posts`, the JSON should - look like this: - - ```js - { - "posts": [ - { - "id": 1, - "title": "I'm Running to Reform the W3C's Tag", - "author": "Yehuda Katz" - }, - { - "id": 2, - "title": "Rails is omakase", - "author": "D2H" - } - ] - } - ``` - - ### Conventional Names - - Attribute names in your JSON payload should be the camelCased versions of - the attributes in your Ember.js models. - - For example, if you have a `Person` model: - - ```app/models/person.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - firstName: DS.attr('string'), - lastName: DS.attr('string'), - occupation: DS.attr('string') - }); - ``` - - The JSON returned should look like this: - - ```js - { - "person": { - "id": 5, - "firstName": "Barack", - "lastName": "Obama", - "occupation": "President" - } - } - ``` - - ## Customization - - ### Endpoint path customization - - Endpoint paths can be prefixed with a `namespace` by setting the namespace - property on the adapter: - - ```app/adapters/application.js - import DS from 'ember-data'; - - export default DS.RESTAdapter.extend({ - namespace: 'api/1' - }); - ``` - Requests for `App.Person` would now target `/api/1/people/1`. - - ### Host customization - - An adapter can target other hosts by setting the `host` property. - - ```app/adapters/application.js - import DS from 'ember-data'; - - export default DS.RESTAdapter.extend({ - host: 'https://api.example.com' - }); - ``` - - ### Headers customization - - Some APIs require HTTP headers, e.g. to provide an API key. Arbitrary - headers can be set as key/value pairs on the `RESTAdapter`'s `headers` - object and Ember Data will send them along with each ajax request. - - - ```app/adapters/application.js - import DS from 'ember-data'; - - export default DS.RESTAdapter.extend({ - headers: { - "API_KEY": "secret key", - "ANOTHER_HEADER": "Some header value" - } - }); - ``` - - `headers` can also be used as a computed property to support dynamic - headers. In the example below, the `session` object has been - injected into an adapter by Ember's container. - - ```app/adapters/application.js - import DS from 'ember-data'; - - export default DS.RESTAdapter.extend({ - headers: function() { - return { - "API_KEY": this.get("session.authToken"), - "ANOTHER_HEADER": "Some header value" - }; - }.property("session.authToken") - }); - ``` - - In some cases, your dynamic headers may require data from some - object outside of Ember's observer system (for example - `document.cookie`). You can use the - [volatile](/api/classes/Ember.ComputedProperty.html#method_volatile) - function to set the property into a non-cached mode causing the headers to - be recomputed with every request. - - ```app/adapters/application.js - import DS from 'ember-data'; - - export default DS.RESTAdapter.extend({ - headers: function() { - return { - "API_KEY": Ember.get(document.cookie.match(/apiKey\=([^;]*)/), "1"), - "ANOTHER_HEADER": "Some header value" - }; - }.property().volatile() - }); - ``` - - @class RESTAdapter - @constructor - @namespace DS - @extends DS.Adapter - @uses DS.BuildURLMixin - */ - var ember$data$lib$adapters$rest$adapter$$RestAdapter = ember$data$lib$system$adapter$$Adapter.extend(ember$data$lib$adapters$build$url$mixin$$default, { - defaultSerializer: "-rest", - - /** - By default, the RESTAdapter will send the query params sorted alphabetically to the - server. - For example: - ```js - store.find('posts', {sort: 'price', category: 'pets'}); - ``` - will generate a requests like this `/posts?category=pets&sort=price`, even if the - parameters were specified in a different order. - That way the generated URL will be deterministic and that simplifies caching mechanisms - in the backend. - Setting `sortQueryParams` to a falsey value will respect the original order. - In case you want to sort the query parameters with a different criteria, set - `sortQueryParams` to your custom sort function. - ```app/adapters/application.js - import DS from 'ember-data'; - export default DS.RESTAdapter.extend({ - sortQueryParams: function(params) { - var sortedKeys = Object.keys(params).sort().reverse(); - var len = sortedKeys.length, newParams = {}; - for (var i = 0; i < len; i++) { - newParams[sortedKeys[i]] = params[sortedKeys[i]]; - } - return newParams; - } - }); - ``` - @method sortQueryParams - @param {Object} obj - @return {Object} - */ - sortQueryParams: function (obj) { - var keys = Ember.keys(obj); - var len = keys.length; - if (len < 2) { - return obj; - } - var newQueryParams = {}; - var sortedKeys = keys.sort(); - - for (var i = 0; i < len; i++) { - newQueryParams[sortedKeys[i]] = obj[sortedKeys[i]]; - } - return newQueryParams; - }, - - /** - By default the RESTAdapter will send each find request coming from a `store.find` - or from accessing a relationship separately to the server. If your server supports passing - ids as a query string, you can set coalesceFindRequests to true to coalesce all find requests - within a single runloop. - For example, if you have an initial payload of: - ```javascript - { - post: { - id: 1, - comments: [1, 2] - } - } - ``` - By default calling `post.get('comments')` will trigger the following requests(assuming the - comments haven't been loaded before): - ``` - GET /comments/1 - GET /comments/2 - ``` - If you set coalesceFindRequests to `true` it will instead trigger the following request: - ``` - GET /comments?ids[]=1&ids[]=2 - ``` - Setting coalesceFindRequests to `true` also works for `store.find` requests and `belongsTo` - relationships accessed within the same runloop. If you set `coalesceFindRequests: true` - ```javascript - store.find('comment', 1); - store.find('comment', 2); - ``` - will also send a request to: `GET /comments?ids[]=1&ids[]=2` - Note: Requests coalescing rely on URL building strategy. So if you override `buildURL` in your app - `groupRecordsForFindMany` more likely should be overridden as well in order for coalescing to work. - @property coalesceFindRequests - @type {boolean} - */ - coalesceFindRequests: false, - - /** - Endpoint paths can be prefixed with a `namespace` by setting the namespace - property on the adapter: - ```app/adapters/application.js - import DS from 'ember-data'; - export default DS.RESTAdapter.extend({ - namespace: 'api/1' - }); - ``` - Requests for `App.Post` would now target `/api/1/post/`. - @property namespace - @type {String} - */ - - /** - An adapter can target other hosts by setting the `host` property. - ```app/adapters/application.js - import DS from 'ember-data'; - export default DS.RESTAdapter.extend({ - host: 'https://api.example.com' - }); - ``` - Requests for `App.Post` would now target `https://api.example.com/post/`. - @property host - @type {String} - */ - - /** - Some APIs require HTTP headers, e.g. to provide an API - key. Arbitrary headers can be set as key/value pairs on the - `RESTAdapter`'s `headers` object and Ember Data will send them - along with each ajax request. For dynamic headers see [headers - customization](/api/data/classes/DS.RESTAdapter.html#toc_headers-customization). - ```app/adapters/application.js - import DS from 'ember-data'; - export default DS.RESTAdapter.extend({ - headers: { - "API_KEY": "secret key", - "ANOTHER_HEADER": "Some header value" - } - }); - ``` - @property headers - @type {Object} - */ - - /** - Called by the store in order to fetch the JSON for a given - type and ID. - The `find` method makes an Ajax request to a URL computed by `buildURL`, and returns a - promise for the resulting payload. - This method performs an HTTP `GET` request with the id provided as part of the query string. - @method find - @param {DS.Store} store - @param {DS.Model} type - @param {String} id - @param {DS.Snapshot} snapshot - @return {Promise} promise - */ - find: function (store, type, id, snapshot) { - return this.ajax(this.buildURL(type.modelName, id, snapshot, "find"), "GET"); - }, - - /** - Called by the store in order to fetch a JSON array for all - of the records for a given type. - The `findAll` method makes an Ajax (HTTP GET) request to a URL computed by `buildURL`, and returns a - promise for the resulting payload. - @private - @method findAll - @param {DS.Store} store - @param {DS.Model} type - @param {String} sinceToken - @return {Promise} promise - */ - findAll: function (store, type, sinceToken) { - var query, url; - - if (sinceToken) { - query = { since: sinceToken }; - } - - url = this.buildURL(type.modelName, null, null, "findAll"); - - return this.ajax(url, "GET", { data: query }); - }, - - /** - Called by the store in order to fetch a JSON array for - the records that match a particular query. - The `findQuery` method makes an Ajax (HTTP GET) request to a URL computed by `buildURL`, and returns a - promise for the resulting payload. - The `query` argument is a simple JavaScript object that will be passed directly - to the server as parameters. - @private - @method findQuery - @param {DS.Store} store - @param {DS.Model} type - @param {Object} query - @return {Promise} promise - */ - findQuery: function (store, type, query) { - var url = this.buildURL(type.modelName, null, null, "findQuery", query); - - if (this.sortQueryParams) { - query = this.sortQueryParams(query); - } - - return this.ajax(url, "GET", { data: query }); - }, - - /** - Called by the store in order to fetch several records together if `coalesceFindRequests` is true - For example, if the original payload looks like: - ```js - { - "id": 1, - "title": "Rails is omakase", - "comments": [ 1, 2, 3 ] - } - ``` - The IDs will be passed as a URL-encoded Array of IDs, in this form: - ``` - ids[]=1&ids[]=2&ids[]=3 - ``` - Many servers, such as Rails and PHP, will automatically convert this URL-encoded array - into an Array for you on the server-side. If you want to encode the - IDs, differently, just override this (one-line) method. - The `findMany` method makes an Ajax (HTTP GET) request to a URL computed by `buildURL`, and returns a - promise for the resulting payload. - @method findMany - @param {DS.Store} store - @param {DS.Model} type - @param {Array} ids - @param {Array} snapshots - @return {Promise} promise - */ - findMany: function (store, type, ids, snapshots) { - var url = this.buildURL(type.modelName, ids, snapshots, "findMany"); - return this.ajax(url, "GET", { data: { ids: ids } }); - }, - - /** - Called by the store in order to fetch a JSON array for - the unloaded records in a has-many relationship that were originally - specified as a URL (inside of `links`). - For example, if your original payload looks like this: - ```js - { - "post": { - "id": 1, - "title": "Rails is omakase", - "links": { "comments": "/posts/1/comments" } - } - } - ``` - This method will be called with the parent record and `/posts/1/comments`. - The `findHasMany` method will make an Ajax (HTTP GET) request to the originally specified URL. - @method findHasMany - @param {DS.Store} store - @param {DS.Snapshot} snapshot - @param {String} url - @return {Promise} promise - */ - findHasMany: function (store, snapshot, url, relationship) { - var id = snapshot.id; - var type = snapshot.modelName; - - url = this.urlPrefix(url, this.buildURL(type, id, null, "findHasMany")); - - return this.ajax(url, "GET"); - }, - - /** - Called by the store in order to fetch a JSON array for - the unloaded records in a belongs-to relationship that were originally - specified as a URL (inside of `links`). - For example, if your original payload looks like this: - ```js - { - "person": { - "id": 1, - "name": "Tom Dale", - "links": { "group": "/people/1/group" } - } - } - ``` - This method will be called with the parent record and `/people/1/group`. - The `findBelongsTo` method will make an Ajax (HTTP GET) request to the originally specified URL. - @method findBelongsTo - @param {DS.Store} store - @param {DS.Snapshot} snapshot - @param {String} url - @return {Promise} promise - */ - findBelongsTo: function (store, snapshot, url, relationship) { - var id = snapshot.id; - var type = snapshot.modelName; - - url = this.urlPrefix(url, this.buildURL(type, id, null, "findBelongsTo")); - return this.ajax(url, "GET"); - }, - - /** - Called by the store when a newly created record is - saved via the `save` method on a model record instance. - The `createRecord` method serializes the record and makes an Ajax (HTTP POST) request - to a URL computed by `buildURL`. - See `serialize` for information on how to customize the serialized form - of a record. - @method createRecord - @param {DS.Store} store - @param {DS.Model} type - @param {DS.Snapshot} snapshot - @return {Promise} promise - */ - createRecord: function (store, type, snapshot) { - var data = {}; - var serializer = store.serializerFor(type.modelName); - var url = this.buildURL(type.modelName, null, snapshot, "createRecord"); - - serializer.serializeIntoHash(data, type, snapshot, { includeId: true }); - - return this.ajax(url, "POST", { data: data }); - }, - - /** - Called by the store when an existing record is saved - via the `save` method on a model record instance. - The `updateRecord` method serializes the record and makes an Ajax (HTTP PUT) request - to a URL computed by `buildURL`. - See `serialize` for information on how to customize the serialized form - of a record. - @method updateRecord - @param {DS.Store} store - @param {DS.Model} type - @param {DS.Snapshot} snapshot - @return {Promise} promise - */ - updateRecord: function (store, type, snapshot) { - var data = {}; - var serializer = store.serializerFor(type.modelName); - - serializer.serializeIntoHash(data, type, snapshot); - - var id = snapshot.id; - var url = this.buildURL(type.modelName, id, snapshot, "updateRecord"); - - return this.ajax(url, "PUT", { data: data }); - }, - - /** - Called by the store when a record is deleted. - The `deleteRecord` method makes an Ajax (HTTP DELETE) request to a URL computed by `buildURL`. - @method deleteRecord - @param {DS.Store} store - @param {DS.Model} type - @param {DS.Snapshot} snapshot - @return {Promise} promise - */ - deleteRecord: function (store, type, snapshot) { - var id = snapshot.id; - - return this.ajax(this.buildURL(type.modelName, id, snapshot, "deleteRecord"), "DELETE"); - }, - - _stripIDFromURL: function (store, snapshot) { - var url = this.buildURL(snapshot.modelName, snapshot.id, snapshot); - - var expandedURL = url.split("/"); - //Case when the url is of the format ...something/:id - var lastSegment = expandedURL[expandedURL.length - 1]; - var id = snapshot.id; - if (lastSegment === id) { - expandedURL[expandedURL.length - 1] = ""; - } else if (ember$data$lib$adapters$rest$adapter$$endsWith(lastSegment, "?id=" + id)) { - //Case when the url is of the format ...something?id=:id - expandedURL[expandedURL.length - 1] = lastSegment.substring(0, lastSegment.length - id.length - 1); - } - - return expandedURL.join("/"); - }, - - // http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers - maxURLLength: 2048, - - /** - Organize records into groups, each of which is to be passed to separate - calls to `findMany`. - This implementation groups together records that have the same base URL but - differing ids. For example `/comments/1` and `/comments/2` will be grouped together - because we know findMany can coalesce them together as `/comments?ids[]=1&ids[]=2` - It also supports urls where ids are passed as a query param, such as `/comments?id=1` - but not those where there is more than 1 query param such as `/comments?id=2&name=David` - Currently only the query param of `id` is supported. If you need to support others, please - override this or the `_stripIDFromURL` method. - It does not group records that have differing base urls, such as for example: `/posts/1/comments/2` - and `/posts/2/comments/3` - @method groupRecordsForFindMany - @param {DS.Store} store - @param {Array} snapshots - @return {Array} an array of arrays of records, each of which is to be - loaded separately by `findMany`. - */ - groupRecordsForFindMany: function (store, snapshots) { - var groups = ember$data$lib$system$map$$MapWithDefault.create({ defaultValue: function () { - return []; - } }); - var adapter = this; - var maxURLLength = this.maxURLLength; - - ember$data$lib$adapters$rest$adapter$$forEach.call(snapshots, function (snapshot) { - var baseUrl = adapter._stripIDFromURL(store, snapshot); - groups.get(baseUrl).push(snapshot); - }); - - function splitGroupToFitInUrl(group, maxURLLength, paramNameLength) { - var baseUrl = adapter._stripIDFromURL(store, group[0]); - var idsSize = 0; - var splitGroups = [[]]; - - ember$data$lib$adapters$rest$adapter$$forEach.call(group, function (snapshot) { - var additionalLength = encodeURIComponent(snapshot.id).length + paramNameLength; - if (baseUrl.length + idsSize + additionalLength >= maxURLLength) { - idsSize = 0; - splitGroups.push([]); - } - - idsSize += additionalLength; - - var lastGroupIndex = splitGroups.length - 1; - splitGroups[lastGroupIndex].push(snapshot); - }); - - return splitGroups; - } - - var groupsArray = []; - groups.forEach(function (group, key) { - var paramNameLength = "&ids%5B%5D=".length; - var splitGroups = splitGroupToFitInUrl(group, maxURLLength, paramNameLength); - - ember$data$lib$adapters$rest$adapter$$forEach.call(splitGroups, function (splitGroup) { - groupsArray.push(splitGroup); - }); - }); - - return groupsArray; - }, - - /** - Takes an ajax response, and returns an error payload. - Returning a `DS.InvalidError` from this method will cause the - record to transition into the `invalid` state and make the - `errors` object available on the record. When returning an - `InvalidError` the store will attempt to normalize the error data - returned from the server using the serializer's `extractErrors` - method. - Example - ```app/adapters/application.js - import DS from 'ember-data'; - export default DS.RESTAdapter.extend({ - ajaxError: function(jqXHR) { - var error = this._super(jqXHR); - if (jqXHR && jqXHR.status === 422) { - var jsonErrors = Ember.$.parseJSON(jqXHR.responseText); - return new DS.InvalidError(jsonErrors); - } else { - return error; - } - } - }); - ``` - Note: As a correctness optimization, the default implementation of - the `ajaxError` method strips out the `then` method from jquery's - ajax response (jqXHR). This is important because the jqXHR's - `then` method fulfills the promise with itself resulting in a - circular "thenable" chain which may cause problems for some - promise libraries. - @method ajaxError - @param {Object} jqXHR - @param {Object} responseText - @param {Object} errorThrown - @return {Object} jqXHR - */ - ajaxError: function (jqXHR, responseText, errorThrown) { - var isObject = jqXHR !== null && typeof jqXHR === "object"; - - if (isObject) { - jqXHR.then = null; - if (!jqXHR.errorThrown) { - if (typeof errorThrown === "string") { - jqXHR.errorThrown = new Error(errorThrown); - } else { - jqXHR.errorThrown = errorThrown; - } - } - } - - return jqXHR; - }, - - /** - Takes an ajax response, and returns the json payload. - By default this hook just returns the jsonPayload passed to it. - You might want to override it in two cases: - 1. Your API might return useful results in the request headers. - If you need to access these, you can override this hook to copy them - from jqXHR to the payload object so they can be processed in you serializer. - 2. Your API might return errors as successful responses with status code - 200 and an Errors text or object. You can return a DS.InvalidError from - this hook and it will automatically reject the promise and put your record - into the invalid state. - @method ajaxSuccess - @param {Object} jqXHR - @param {Object} jsonPayload - @return {Object} jsonPayload - */ - - ajaxSuccess: function (jqXHR, jsonPayload) { - return jsonPayload; - }, - - /** - Takes a URL, an HTTP method and a hash of data, and makes an - HTTP request. - When the server responds with a payload, Ember Data will call into `extractSingle` - or `extractArray` (depending on whether the original query was for one record or - many records). - By default, `ajax` method has the following behavior: - * It sets the response `dataType` to `"json"` - * If the HTTP method is not `"GET"`, it sets the `Content-Type` to be - `application/json; charset=utf-8` - * If the HTTP method is not `"GET"`, it stringifies the data passed in. The - data is the serialized record in the case of a save. - * Registers success and failure handlers. - @method ajax - @private - @param {String} url - @param {String} type The request type GET, POST, PUT, DELETE etc. - @param {Object} options - @return {Promise} promise - */ - ajax: function (url, type, options) { - var adapter = this; - - return new Ember.RSVP.Promise(function (resolve, reject) { - var hash = adapter.ajaxOptions(url, type, options); - - hash.success = function (json, textStatus, jqXHR) { - json = adapter.ajaxSuccess(jqXHR, json); - if (json instanceof ember$data$lib$system$model$errors$invalid$$default) { - Ember.run(null, reject, json); - } else { - Ember.run(null, resolve, json); - } - }; - - hash.error = function (jqXHR, textStatus, errorThrown) { - Ember.run(null, reject, adapter.ajaxError(jqXHR, jqXHR.responseText, errorThrown)); - }; - - Ember.$.ajax(hash); - }, "DS: RESTAdapter#ajax " + type + " to " + url); - }, - - /** - @method ajaxOptions - @private - @param {String} url - @param {String} type The request type GET, POST, PUT, DELETE etc. - @param {Object} options - @return {Object} - */ - ajaxOptions: function (url, type, options) { - var hash = options || {}; - hash.url = url; - hash.type = type; - hash.dataType = "json"; - hash.context = this; - - if (hash.data && type !== "GET") { - hash.contentType = "application/json; charset=utf-8"; - hash.data = JSON.stringify(hash.data); - } - - var headers = ember$data$lib$adapters$rest$adapter$$get(this, "headers"); - if (headers !== undefined) { - hash.beforeSend = function (xhr) { - ember$data$lib$adapters$rest$adapter$$forEach.call(Ember.keys(headers), function (key) { - xhr.setRequestHeader(key, headers[key]); - }); - }; - } - - return hash; - } - }); - - //From http://stackoverflow.com/questions/280634/endswith-in-javascript - function ember$data$lib$adapters$rest$adapter$$endsWith(string, suffix) { - if (typeof String.prototype.endsWith !== "function") { - return string.indexOf(suffix, string.length - suffix.length) !== -1; - } else { - return string.endsWith(suffix); - } - } - - if (Ember.platform.hasPropertyAccessors) { - Ember.defineProperty(ember$data$lib$adapters$rest$adapter$$RestAdapter.prototype, "maxUrlLength", { - enumerable: false, - get: function () { - return this.maxURLLength; - }, - - set: function (value) { - ember$data$lib$adapters$rest$adapter$$set(this, "maxURLLength", value); - } - }); - } - - var ember$data$lib$adapters$rest$adapter$$default = ember$data$lib$adapters$rest$adapter$$RestAdapter; - var ember$lib$main$$default = Ember; - - var ember$inflector$lib$lib$system$inflector$$capitalize = ember$lib$main$$default.String.capitalize; - - var ember$inflector$lib$lib$system$inflector$$BLANK_REGEX = /^\s*$/; - var ember$inflector$lib$lib$system$inflector$$LAST_WORD_DASHED_REGEX = /([\w/-]+[_/-])([a-z\d]+$)/; - var ember$inflector$lib$lib$system$inflector$$LAST_WORD_CAMELIZED_REGEX = /([\w/-]+)([A-Z][a-z\d]*$)/; - var ember$inflector$lib$lib$system$inflector$$CAMELIZED_REGEX = /[A-Z][a-z\d]*$/; - - function ember$inflector$lib$lib$system$inflector$$loadUncountable(rules, uncountable) { - for (var i = 0, length = uncountable.length; i < length; i++) { - rules.uncountable[uncountable[i].toLowerCase()] = true; - } - } - - function ember$inflector$lib$lib$system$inflector$$loadIrregular(rules, irregularPairs) { - var pair; - - for (var i = 0, length = irregularPairs.length; i < length; i++) { - pair = irregularPairs[i]; - - //pluralizing - rules.irregular[pair[0].toLowerCase()] = pair[1]; - rules.irregular[pair[1].toLowerCase()] = pair[1]; - - //singularizing - rules.irregularInverse[pair[1].toLowerCase()] = pair[0]; - rules.irregularInverse[pair[0].toLowerCase()] = pair[0]; - } - } - - /** - Inflector.Ember provides a mechanism for supplying inflection rules for your - application. Ember includes a default set of inflection rules, and provides an - API for providing additional rules. - - Examples: - - Creating an inflector with no rules. - - ```js - var inflector = new Ember.Inflector(); - ``` - - Creating an inflector with the default ember ruleset. - - ```js - var inflector = new Ember.Inflector(Ember.Inflector.defaultRules); - - inflector.pluralize('cow'); //=> 'kine' - inflector.singularize('kine'); //=> 'cow' - ``` - - Creating an inflector and adding rules later. - - ```javascript - var inflector = Ember.Inflector.inflector; - - inflector.pluralize('advice'); // => 'advices' - inflector.uncountable('advice'); - inflector.pluralize('advice'); // => 'advice' - - inflector.pluralize('formula'); // => 'formulas' - inflector.irregular('formula', 'formulae'); - inflector.pluralize('formula'); // => 'formulae' - - // you would not need to add these as they are the default rules - inflector.plural(/$/, 's'); - inflector.singular(/s$/i, ''); - ``` - - Creating an inflector with a nondefault ruleset. - - ```javascript - var rules = { - plurals: [ /$/, 's' ], - singular: [ /\s$/, '' ], - irregularPairs: [ - [ 'cow', 'kine' ] - ], - uncountable: [ 'fish' ] - }; - - var inflector = new Ember.Inflector(rules); - ``` - - @class Inflector - @namespace Ember - */ - function ember$inflector$lib$lib$system$inflector$$Inflector(ruleSet) { - ruleSet = ruleSet || {}; - ruleSet.uncountable = ruleSet.uncountable || ember$inflector$lib$lib$system$inflector$$makeDictionary(); - ruleSet.irregularPairs = ruleSet.irregularPairs || ember$inflector$lib$lib$system$inflector$$makeDictionary(); - - var rules = this.rules = { - plurals: ruleSet.plurals || [], - singular: ruleSet.singular || [], - irregular: ember$inflector$lib$lib$system$inflector$$makeDictionary(), - irregularInverse: ember$inflector$lib$lib$system$inflector$$makeDictionary(), - uncountable: ember$inflector$lib$lib$system$inflector$$makeDictionary() - }; - - ember$inflector$lib$lib$system$inflector$$loadUncountable(rules, ruleSet.uncountable); - ember$inflector$lib$lib$system$inflector$$loadIrregular(rules, ruleSet.irregularPairs); - - this.enableCache(); - } - - if (!Object.create && !Object.create(null).hasOwnProperty) { - throw new Error('This browser does not support Object.create(null), please polyfil with es5-sham: http://git.io/yBU2rg'); - } - - function ember$inflector$lib$lib$system$inflector$$makeDictionary() { - var cache = Object.create(null); - cache['_dict'] = null; - delete cache['_dict']; - return cache; - } - - ember$inflector$lib$lib$system$inflector$$Inflector.prototype = { - /** - @public - As inflections can be costly, and commonly the same subset of words are repeatedly - inflected an optional cache is provided. - @method enableCache - */ - enableCache: function () { - this.purgeCache(); - - this.singularize = function (word) { - this._cacheUsed = true; - return this._sCache[word] || (this._sCache[word] = this._singularize(word)); - }; - - this.pluralize = function (word) { - this._cacheUsed = true; - return this._pCache[word] || (this._pCache[word] = this._pluralize(word)); - }; - }, - - /** - @public - @method purgedCache - */ - purgeCache: function () { - this._cacheUsed = false; - this._sCache = ember$inflector$lib$lib$system$inflector$$makeDictionary(); - this._pCache = ember$inflector$lib$lib$system$inflector$$makeDictionary(); - }, - - /** - @public - disable caching - @method disableCache; - */ - disableCache: function () { - this._sCache = null; - this._pCache = null; - this.singularize = function (word) { - return this._singularize(word); - }; - - this.pluralize = function (word) { - return this._pluralize(word); - }; - }, - - /** - @method plural - @param {RegExp} regex - @param {String} string - */ - plural: function (regex, string) { - if (this._cacheUsed) { - this.purgeCache(); - } - this.rules.plurals.push([regex, string.toLowerCase()]); - }, - - /** - @method singular - @param {RegExp} regex - @param {String} string - */ - singular: function (regex, string) { - if (this._cacheUsed) { - this.purgeCache(); - } - this.rules.singular.push([regex, string.toLowerCase()]); - }, - - /** - @method uncountable - @param {String} regex - */ - uncountable: function (string) { - if (this._cacheUsed) { - this.purgeCache(); - } - ember$inflector$lib$lib$system$inflector$$loadUncountable(this.rules, [string.toLowerCase()]); - }, - - /** - @method irregular - @param {String} singular - @param {String} plural - */ - irregular: function (singular, plural) { - if (this._cacheUsed) { - this.purgeCache(); - } - ember$inflector$lib$lib$system$inflector$$loadIrregular(this.rules, [[singular, plural]]); - }, - - /** - @method pluralize - @param {String} word - */ - pluralize: function (word) { - return this._pluralize(word); - }, - - _pluralize: function (word) { - return this.inflect(word, this.rules.plurals, this.rules.irregular); - }, - /** - @method singularize - @param {String} word - */ - singularize: function (word) { - return this._singularize(word); - }, - - _singularize: function (word) { - return this.inflect(word, this.rules.singular, this.rules.irregularInverse); - }, - - /** - @protected - @method inflect - @param {String} word - @param {Object} typeRules - @param {Object} irregular - */ - inflect: function (word, typeRules, irregular) { - var inflection, substitution, result, lowercase, wordSplit, firstPhrase, lastWord, isBlank, isCamelized, isUncountable, isIrregular, rule; - - isBlank = !word || ember$inflector$lib$lib$system$inflector$$BLANK_REGEX.test(word); - - isCamelized = ember$inflector$lib$lib$system$inflector$$CAMELIZED_REGEX.test(word); - firstPhrase = ''; - - if (isBlank) { - return word; - } - - lowercase = word.toLowerCase(); - wordSplit = ember$inflector$lib$lib$system$inflector$$LAST_WORD_DASHED_REGEX.exec(word) || ember$inflector$lib$lib$system$inflector$$LAST_WORD_CAMELIZED_REGEX.exec(word); - if (wordSplit) { - firstPhrase = wordSplit[1]; - lastWord = wordSplit[2].toLowerCase(); - } - - isUncountable = this.rules.uncountable[lowercase] || this.rules.uncountable[lastWord]; - - if (isUncountable) { - return word; - } - - isIrregular = irregular && (irregular[lowercase] || irregular[lastWord]); - - if (isIrregular) { - if (irregular[lowercase]) { - return isIrregular; - } else { - isIrregular = isCamelized ? ember$inflector$lib$lib$system$inflector$$capitalize(isIrregular) : isIrregular; - return firstPhrase + isIrregular; - } - } - - for (var i = typeRules.length, min = 0; i > min; i--) { - inflection = typeRules[i - 1]; - rule = inflection[0]; - - if (rule.test(word)) { - break; - } - } - - inflection = inflection || []; - - rule = inflection[0]; - substitution = inflection[1]; - - result = word.replace(rule, substitution); - - return result; - } - }; - - var ember$inflector$lib$lib$system$inflector$$default = ember$inflector$lib$lib$system$inflector$$Inflector; - - function ember$inflector$lib$lib$system$string$$pluralize(word) { - return ember$inflector$lib$lib$system$inflector$$default.inflector.pluralize(word); - } - - function ember$inflector$lib$lib$system$string$$singularize(word) { - return ember$inflector$lib$lib$system$inflector$$default.inflector.singularize(word); - } - - var ember$inflector$lib$lib$system$inflections$$default = { - plurals: [[/$/, 's'], [/s$/i, 's'], [/^(ax|test)is$/i, '$1es'], [/(octop|vir)us$/i, '$1i'], [/(octop|vir)i$/i, '$1i'], [/(alias|status)$/i, '$1es'], [/(bu)s$/i, '$1ses'], [/(buffal|tomat)o$/i, '$1oes'], [/([ti])um$/i, '$1a'], [/([ti])a$/i, '$1a'], [/sis$/i, 'ses'], [/(?:([^f])fe|([lr])f)$/i, '$1$2ves'], [/(hive)$/i, '$1s'], [/([^aeiouy]|qu)y$/i, '$1ies'], [/(x|ch|ss|sh)$/i, '$1es'], [/(matr|vert|ind)(?:ix|ex)$/i, '$1ices'], [/^(m|l)ouse$/i, '$1ice'], [/^(m|l)ice$/i, '$1ice'], [/^(ox)$/i, '$1en'], [/^(oxen)$/i, '$1'], [/(quiz)$/i, '$1zes']], - - singular: [[/s$/i, ''], [/(ss)$/i, '$1'], [/(n)ews$/i, '$1ews'], [/([ti])a$/i, '$1um'], [/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i, '$1sis'], [/(^analy)(sis|ses)$/i, '$1sis'], [/([^f])ves$/i, '$1fe'], [/(hive)s$/i, '$1'], [/(tive)s$/i, '$1'], [/([lr])ves$/i, '$1f'], [/([^aeiouy]|qu)ies$/i, '$1y'], [/(s)eries$/i, '$1eries'], [/(m)ovies$/i, '$1ovie'], [/(x|ch|ss|sh)es$/i, '$1'], [/^(m|l)ice$/i, '$1ouse'], [/(bus)(es)?$/i, '$1'], [/(o)es$/i, '$1'], [/(shoe)s$/i, '$1'], [/(cris|test)(is|es)$/i, '$1is'], [/^(a)x[ie]s$/i, '$1xis'], [/(octop|vir)(us|i)$/i, '$1us'], [/(alias|status)(es)?$/i, '$1'], [/^(ox)en/i, '$1'], [/(vert|ind)ices$/i, '$1ex'], [/(matr)ices$/i, '$1ix'], [/(quiz)zes$/i, '$1'], [/(database)s$/i, '$1']], - - irregularPairs: [['person', 'people'], ['man', 'men'], ['child', 'children'], ['sex', 'sexes'], ['move', 'moves'], ['cow', 'kine'], ['zombie', 'zombies']], - - uncountable: ['equipment', 'information', 'rice', 'money', 'species', 'series', 'fish', 'sheep', 'jeans', 'police'] - }; - - ember$inflector$lib$lib$system$inflector$$default.inflector = new ember$inflector$lib$lib$system$inflector$$default(ember$inflector$lib$lib$system$inflections$$default); - - var ember$inflector$lib$lib$utils$register$helper$$default = ember$inflector$lib$lib$utils$register$helper$$registerHelper; - - function ember$inflector$lib$lib$utils$register$helper$$registerHelperIteration1(name, helperFunction) { - //earlier versions of ember with htmlbars used this - ember$lib$main$$default.HTMLBars.helpers[name] = helperFunction; - } - - function ember$inflector$lib$lib$utils$register$helper$$registerHelperIteration2(name, helperFunction) { - //registerHelper has been made private as _registerHelper - //this is kept here if anyone is using it - ember$lib$main$$default.HTMLBars.registerHelper(name, helperFunction); - } - - function ember$inflector$lib$lib$utils$register$helper$$registerHelperIteration3(name, helperFunction) { - //latest versin of ember uses this - ember$lib$main$$default.HTMLBars._registerHelper(name, helperFunction); - } - function ember$inflector$lib$lib$utils$register$helper$$registerHelper(name, helperFunction) { - if (ember$lib$main$$default.HTMLBars) { - var fn = ember$lib$main$$default.HTMLBars.makeBoundHelper(helperFunction); - - if (ember$lib$main$$default.HTMLBars._registerHelper) { - if (ember$lib$main$$default.HTMLBars.helpers) { - ember$inflector$lib$lib$utils$register$helper$$registerHelperIteration1(name, fn); - } else { - ember$inflector$lib$lib$utils$register$helper$$registerHelperIteration3(name, fn); - } - } else if (ember$lib$main$$default.HTMLBars.registerHelper) { - ember$inflector$lib$lib$utils$register$helper$$registerHelperIteration2(name, fn); - } - } else if (ember$lib$main$$default.Handlebars) { - ember$lib$main$$default.Handlebars.helper(name, helperFunction); - } - } - - /** - * - * If you have Ember Inflector (such as if Ember Data is present), - * singularize a word. For example, turn "oxen" into "ox". - * - * Example: - * - * {{singularize myProperty}} - * {{singularize "oxen"}} - * - * @for Ember.HTMLBars.helpers - * @method singularize - * @param {String|Property} word word to singularize - */ - ember$inflector$lib$lib$utils$register$helper$$default('singularize', function (params) { - return ember$inflector$lib$lib$system$string$$singularize(params[0]); - }); - - /** - * - * If you have Ember Inflector (such as if Ember Data is present), - * pluralize a word. For example, turn "ox" into "oxen". - * - * Example: - * - * {{pluralize count myProperty}} - * {{pluralize 1 "oxen"}} - * {{pluralize myProperty}} - * {{pluralize "ox"}} - * - * @for Ember.HTMLBars.helpers - * @method pluralize - * @param {Number|Property} [count] count of objects - * @param {String|Property} word word to pluralize - */ - ember$inflector$lib$lib$utils$register$helper$$default('pluralize', function (params) { - var count, word; - - if (params.length === 1) { - word = params[0]; - return ember$inflector$lib$lib$system$string$$pluralize(word); - } else { - count = params[0]; - word = params[1]; - - if (count !== 1) { - word = ember$inflector$lib$lib$system$string$$pluralize(word); - } - return count + ' ' + word; - } - }); - - if (ember$lib$main$$default.EXTEND_PROTOTYPES === true || ember$lib$main$$default.EXTEND_PROTOTYPES.String) { - /** - See {{#crossLink "Ember.String/pluralize"}}{{/crossLink}} - @method pluralize - @for String - */ - String.prototype.pluralize = function () { - return ember$inflector$lib$lib$system$string$$pluralize(this); - }; - - /** - See {{#crossLink "Ember.String/singularize"}}{{/crossLink}} - @method singularize - @for String - */ - String.prototype.singularize = function () { - return ember$inflector$lib$lib$system$string$$singularize(this); - }; - } - - ember$inflector$lib$lib$system$inflector$$default.defaultRules = ember$inflector$lib$lib$system$inflections$$default; - ember$lib$main$$default.Inflector = ember$inflector$lib$lib$system$inflector$$default; - - ember$lib$main$$default.String.pluralize = ember$inflector$lib$lib$system$string$$pluralize; - ember$lib$main$$default.String.singularize = ember$inflector$lib$lib$system$string$$singularize; - var ember$inflector$lib$main$$default = ember$inflector$lib$lib$system$inflector$$default; - - if (typeof define !== "undefined" && define.amd) { - define("ember-inflector", ["exports"], function (__exports__) { - __exports__["default"] = ember$inflector$lib$lib$system$inflector$$default; - return ember$inflector$lib$lib$system$inflector$$default; - }); - } else if (typeof module !== "undefined" && module["exports"]) { - module["exports"] = ember$inflector$lib$lib$system$inflector$$default; - } - - /** - @module ember-data - */ - - var activemodel$adapter$lib$system$active$model$adapter$$decamelize = Ember.String.decamelize; - var activemodel$adapter$lib$system$active$model$adapter$$underscore = Ember.String.underscore; - - /** - The ActiveModelAdapter is a subclass of the RESTAdapter designed to integrate - with a JSON API that uses an underscored naming convention instead of camelCasing. - It has been designed to work out of the box with the - [active\_model\_serializers](http://github.com/rails-api/active_model_serializers) - Ruby gem. This Adapter expects specific settings using ActiveModel::Serializers, - `embed :ids, embed_in_root: true` which sideloads the records. - - This adapter extends the DS.RESTAdapter by making consistent use of the camelization, - decamelization and pluralization methods to normalize the serialized JSON into a - format that is compatible with a conventional Rails backend and Ember Data. - - ## JSON Structure - - The ActiveModelAdapter expects the JSON returned from your server to follow - the REST adapter conventions substituting underscored keys for camelcased ones. - - Unlike the DS.RESTAdapter, async relationship keys must be the singular form - of the relationship name, followed by "_id" for DS.belongsTo relationships, - or "_ids" for DS.hasMany relationships. - - ### Conventional Names - - Attribute names in your JSON payload should be the underscored versions of - the attributes in your Ember.js models. - - For example, if you have a `Person` model: - - ```js - App.FamousPerson = DS.Model.extend({ - firstName: DS.attr('string'), - lastName: DS.attr('string'), - occupation: DS.attr('string') - }); - ``` - - The JSON returned should look like this: - - ```js - { - "famous_person": { - "id": 1, - "first_name": "Barack", - "last_name": "Obama", - "occupation": "President" - } - } - ``` - - Let's imagine that `Occupation` is just another model: - - ```js - App.Person = DS.Model.extend({ - firstName: DS.attr('string'), - lastName: DS.attr('string'), - occupation: DS.belongsTo('occupation') - }); - - App.Occupation = DS.Model.extend({ - name: DS.attr('string'), - salary: DS.attr('number'), - people: DS.hasMany('person') - }); - ``` - - The JSON needed to avoid extra server calls, should look like this: - - ```js - { - "people": [{ - "id": 1, - "first_name": "Barack", - "last_name": "Obama", - "occupation_id": 1 - }], - - "occupations": [{ - "id": 1, - "name": "President", - "salary": 100000, - "person_ids": [1] - }] - } - ``` - - @class ActiveModelAdapter - @constructor - @namespace DS - @extends DS.RESTAdapter - **/ - - var activemodel$adapter$lib$system$active$model$adapter$$ActiveModelAdapter = ember$data$lib$adapters$rest$adapter$$default.extend({ - defaultSerializer: "-active-model", - /** - The ActiveModelAdapter overrides the `pathForType` method to build - underscored URLs by decamelizing and pluralizing the object type name. - ```js - this.pathForType("famousPerson"); - //=> "famous_people" - ``` - @method pathForType - @param {String} modelName - @return String - */ - pathForType: function (modelName) { - var decamelized = activemodel$adapter$lib$system$active$model$adapter$$decamelize(modelName); - var underscored = activemodel$adapter$lib$system$active$model$adapter$$underscore(decamelized); - return ember$inflector$lib$lib$system$string$$pluralize(underscored); - }, - - /** - The ActiveModelAdapter overrides the `ajaxError` method - to return a DS.InvalidError for all 422 Unprocessable Entity - responses. - A 422 HTTP response from the server generally implies that the request - was well formed but the API was unable to process it because the - content was not semantically correct or meaningful per the API. - For more information on 422 HTTP Error code see 11.2 WebDAV RFC 4918 - https://tools.ietf.org/html/rfc4918#section-11.2 - @method ajaxError - @param {Object} jqXHR - @return error - */ - ajaxError: function (jqXHR) { - var error = this._super.apply(this, arguments); - - if (jqXHR && jqXHR.status === 422) { - var response = Ember.$.parseJSON(jqXHR.responseText); - return new ember$data$lib$system$model$errors$invalid$$default(response); - } else { - return error; - } - } - }); - - var activemodel$adapter$lib$system$active$model$adapter$$default = activemodel$adapter$lib$system$active$model$adapter$$ActiveModelAdapter; - - var ember$data$lib$system$serializer$$Serializer = Ember.Object.extend({ - /** - The `store` property is the application's `store` that contains all records. - It's injected as a service. - It can be used to push records from a non flat data structure server - response. - @property store - @type {DS.Store} - @public - */ - - /** - The `extract` method is used to deserialize the payload received from your - data source into the form that Ember Data expects. - @method extract - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @param {String} requestType - @return {Object} - */ - extract: null, - - /** - The `serialize` method is used when a record is saved in order to convert - the record into the form that your external data source expects. - `serialize` takes an optional `options` hash with a single option: - - `includeId`: If this is `true`, `serialize` should include the ID - in the serialized object it builds. - @method serialize - @param {DS.Model} record - @param {Object} [options] - @return {Object} - */ - serialize: null, - - /** - The `normalize` method is used to convert a payload received from your - external data source into the normalized form `store.push()` expects. You - should override this method, munge the hash and return the normalized - payload. - @method normalize - @param {DS.Model} typeClass - @param {Object} hash - @return {Object} - */ - normalize: function (typeClass, hash) { - return hash; - } - - }); - - var ember$data$lib$system$serializer$$default = ember$data$lib$system$serializer$$Serializer; - - var ember$data$lib$serializers$json$serializer$$get = Ember.get; - var ember$data$lib$serializers$json$serializer$$isNone = Ember.isNone; - var ember$data$lib$serializers$json$serializer$$map = Ember.ArrayPolyfills.map; - var ember$data$lib$serializers$json$serializer$$merge = Ember.merge; - - var ember$data$lib$serializers$json$serializer$$default = ember$data$lib$system$serializer$$default.extend({ - /** - The primaryKey is used when serializing and deserializing - data. Ember Data always uses the `id` property to store the id of - the record. The external source may not always follow this - convention. In these cases it is useful to override the - primaryKey property to match the primaryKey of your external - store. - Example - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - primaryKey: '_id' - }); - ``` - @property primaryKey - @type {String} - @default 'id' - */ - primaryKey: 'id', - - /** - The `attrs` object can be used to declare a simple mapping between - property names on `DS.Model` records and payload keys in the - serialized JSON object representing the record. An object with the - property `key` can also be used to designate the attribute's key on - the response payload. - Example - ```app/models/person.js - import DS from 'ember-data'; - export default DS.Model.extend({ - firstName: DS.attr('string'), - lastName: DS.attr('string'), - occupation: DS.attr('string'), - admin: DS.attr('boolean') - }); - ``` - ```app/serializers/person.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - attrs: { - admin: 'is_admin', - occupation: {key: 'career'} - } - }); - ``` - You can also remove attributes by setting the `serialize` key to - false in your mapping object. - Example - ```app/serializers/person.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - attrs: { - admin: {serialize: false}, - occupation: {key: 'career'} - } - }); - ``` - When serialized: - ```javascript - { - "firstName": "Harry", - "lastName": "Houdini", - "career": "magician" - } - ``` - Note that the `admin` is now not included in the payload. - @property attrs - @type {Object} - */ - mergedProperties: ['attrs'], - - /** - Given a subclass of `DS.Model` and a JSON object this method will - iterate through each attribute of the `DS.Model` and invoke the - `DS.Transform#deserialize` method on the matching property of the - JSON object. This method is typically called after the - serializer's `normalize` method. - @method applyTransforms - @private - @param {DS.Model} typeClass - @param {Object} data The data to transform - @return {Object} data The transformed data object - */ - applyTransforms: function (typeClass, data) { - typeClass.eachTransformedAttribute(function applyTransform(key, typeClass) { - if (!data.hasOwnProperty(key)) { - return; - } - - var transform = this.transformFor(typeClass); - data[key] = transform.deserialize(data[key]); - }, this); - - return data; - }, - - /** - Normalizes a part of the JSON payload returned by - the server. You should override this method, munge the hash - and call super if you have generic normalization to do. - It takes the type of the record that is being normalized - (as a DS.Model class), the property where the hash was - originally found, and the hash to normalize. - You can use this method, for example, to normalize underscored keys to camelized - or other general-purpose normalizations. - Example - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - normalize: function(typeClass, hash) { - var fields = Ember.get(typeClass, 'fields'); - fields.forEach(function(field) { - var payloadField = Ember.String.underscore(field); - if (field === payloadField) { return; } - hash[field] = hash[payloadField]; - delete hash[payloadField]; - }); - return this._super.apply(this, arguments); - } - }); - ``` - @method normalize - @param {DS.Model} typeClass - @param {Object} hash - @return {Object} - */ - normalize: function (typeClass, hash) { - if (!hash) { - return hash; - } - - this.normalizeId(hash); - this.normalizeAttributes(typeClass, hash); - this.normalizeRelationships(typeClass, hash); - - this.normalizeUsingDeclaredMapping(typeClass, hash); - this.applyTransforms(typeClass, hash); - return hash; - }, - - /** - You can use this method to normalize all payloads, regardless of whether they - represent single records or an array. - For example, you might want to remove some extraneous data from the payload: - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - normalizePayload: function(payload) { - delete payload.version; - delete payload.status; - return payload; - } - }); - ``` - @method normalizePayload - @param {Object} payload - @return {Object} the normalized payload - */ - normalizePayload: function (payload) { - return payload; - }, - - /** - @method normalizeAttributes - @private - */ - normalizeAttributes: function (typeClass, hash) { - var payloadKey; - - if (this.keyForAttribute) { - typeClass.eachAttribute(function (key) { - payloadKey = this.keyForAttribute(key, 'deserialize'); - if (key === payloadKey) { - return; - } - if (!hash.hasOwnProperty(payloadKey)) { - return; - } - - hash[key] = hash[payloadKey]; - delete hash[payloadKey]; - }, this); - } - }, - - /** - @method normalizeRelationships - @private - */ - normalizeRelationships: function (typeClass, hash) { - var payloadKey; - - if (this.keyForRelationship) { - typeClass.eachRelationship(function (key, relationship) { - payloadKey = this.keyForRelationship(key, relationship.kind, 'deserialize'); - if (key === payloadKey) { - return; - } - if (!hash.hasOwnProperty(payloadKey)) { - return; - } - - hash[key] = hash[payloadKey]; - delete hash[payloadKey]; - }, this); - } - }, - - /** - @method normalizeUsingDeclaredMapping - @private - */ - normalizeUsingDeclaredMapping: function (typeClass, hash) { - var attrs = ember$data$lib$serializers$json$serializer$$get(this, 'attrs'); - var payloadKey, key; - - if (attrs) { - for (key in attrs) { - payloadKey = this._getMappedKey(key); - if (!hash.hasOwnProperty(payloadKey)) { - continue; - } - - if (payloadKey !== key) { - hash[key] = hash[payloadKey]; - delete hash[payloadKey]; - } - } - } - }, - - /** - @method normalizeId - @private - */ - normalizeId: function (hash) { - var primaryKey = ember$data$lib$serializers$json$serializer$$get(this, 'primaryKey'); - - if (primaryKey === 'id') { - return; - } - - hash.id = hash[primaryKey]; - delete hash[primaryKey]; - }, - - /** - @method normalizeErrors - @private - */ - normalizeErrors: function (typeClass, hash) { - this.normalizeId(hash); - this.normalizeAttributes(typeClass, hash); - this.normalizeRelationships(typeClass, hash); - this.normalizeUsingDeclaredMapping(typeClass, hash); - }, - - /** - Looks up the property key that was set by the custom `attr` mapping - passed to the serializer. - @method _getMappedKey - @private - @param {String} key - @return {String} key - */ - _getMappedKey: function (key) { - var attrs = ember$data$lib$serializers$json$serializer$$get(this, 'attrs'); - var mappedKey; - if (attrs && attrs[key]) { - mappedKey = attrs[key]; - //We need to account for both the {title: 'post_title'} and - //{title: {key: 'post_title'}} forms - if (mappedKey.key) { - mappedKey = mappedKey.key; - } - if (typeof mappedKey === 'string') { - key = mappedKey; - } - } - - return key; - }, - - /** - Check attrs.key.serialize property to inform if the `key` - can be serialized - @method _canSerialize - @private - @param {String} key - @return {boolean} true if the key can be serialized - */ - _canSerialize: function (key) { - var attrs = ember$data$lib$serializers$json$serializer$$get(this, 'attrs'); - - return !attrs || !attrs[key] || attrs[key].serialize !== false; - }, - - // SERIALIZE - /** - Called when a record is saved in order to convert the - record into JSON. - By default, it creates a JSON object with a key for - each attribute and belongsTo relationship. - For example, consider this model: - ```app/models/comment.js - import DS from 'ember-data'; - export default DS.Model.extend({ - title: DS.attr(), - body: DS.attr(), - author: DS.belongsTo('user') - }); - ``` - The default serialization would create a JSON object like: - ```javascript - { - "title": "Rails is unagi", - "body": "Rails? Omakase? O_O", - "author": 12 - } - ``` - By default, attributes are passed through as-is, unless - you specified an attribute type (`DS.attr('date')`). If - you specify a transform, the JavaScript value will be - serialized when inserted into the JSON hash. - By default, belongs-to relationships are converted into - IDs when inserted into the JSON hash. - ## IDs - `serialize` takes an options hash with a single option: - `includeId`. If this option is `true`, `serialize` will, - by default include the ID in the JSON object it builds. - The adapter passes in `includeId: true` when serializing - a record for `createRecord`, but not for `updateRecord`. - ## Customization - Your server may expect a different JSON format than the - built-in serialization format. - In that case, you can implement `serialize` yourself and - return a JSON hash of your choosing. - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - serialize: function(snapshot, options) { - var json = { - POST_TTL: snapshot.attr('title'), - POST_BDY: snapshot.attr('body'), - POST_CMS: snapshot.hasMany('comments', { ids: true }) - } - if (options.includeId) { - json.POST_ID_ = snapshot.id; - } - return json; - } - }); - ``` - ## Customizing an App-Wide Serializer - If you want to define a serializer for your entire - application, you'll probably want to use `eachAttribute` - and `eachRelationship` on the record. - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - serialize: function(snapshot, options) { - var json = {}; - snapshot.eachAttribute(function(name) { - json[serverAttributeName(name)] = snapshot.attr(name); - }) - snapshot.eachRelationship(function(name, relationship) { - if (relationship.kind === 'hasMany') { - json[serverHasManyName(name)] = snapshot.hasMany(name, { ids: true }); - } - }); - if (options.includeId) { - json.ID_ = snapshot.id; - } - return json; - } - }); - function serverAttributeName(attribute) { - return attribute.underscore().toUpperCase(); - } - function serverHasManyName(name) { - return serverAttributeName(name.singularize()) + "_IDS"; - } - ``` - This serializer will generate JSON that looks like this: - ```javascript - { - "TITLE": "Rails is omakase", - "BODY": "Yep. Omakase.", - "COMMENT_IDS": [ 1, 2, 3 ] - } - ``` - ## Tweaking the Default JSON - If you just want to do some small tweaks on the default JSON, - you can call super first and make the tweaks on the returned - JSON. - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - serialize: function(snapshot, options) { - var json = this._super.apply(this, arguments); - json.subject = json.title; - delete json.title; - return json; - } - }); - ``` - @method serialize - @param {DS.Snapshot} snapshot - @param {Object} options - @return {Object} json - */ - serialize: function (snapshot, options) { - var json = {}; - - if (options && options.includeId) { - var id = snapshot.id; - - if (id) { - json[ember$data$lib$serializers$json$serializer$$get(this, 'primaryKey')] = id; - } - } - - snapshot.eachAttribute(function (key, attribute) { - this.serializeAttribute(snapshot, json, key, attribute); - }, this); - - snapshot.eachRelationship(function (key, relationship) { - if (relationship.kind === 'belongsTo') { - this.serializeBelongsTo(snapshot, json, relationship); - } else if (relationship.kind === 'hasMany') { - this.serializeHasMany(snapshot, json, relationship); - } - }, this); - - return json; - }, - - /** - You can use this method to customize how a serialized record is added to the complete - JSON hash to be sent to the server. By default the JSON Serializer does not namespace - the payload and just sends the raw serialized JSON object. - If your server expects namespaced keys, you should consider using the RESTSerializer. - Otherwise you can override this method to customize how the record is added to the hash. - For example, your server may expect underscored root objects. - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.RESTSerializer.extend({ - serializeIntoHash: function(data, type, snapshot, options) { - var root = Ember.String.decamelize(type.modelName); - data[root] = this.serialize(snapshot, options); - } - }); - ``` - @method serializeIntoHash - @param {Object} hash - @param {DS.Model} typeClass - @param {DS.Snapshot} snapshot - @param {Object} options - */ - serializeIntoHash: function (hash, typeClass, snapshot, options) { - ember$data$lib$serializers$json$serializer$$merge(hash, this.serialize(snapshot, options)); - }, - - /** - `serializeAttribute` can be used to customize how `DS.attr` - properties are serialized - For example if you wanted to ensure all your attributes were always - serialized as properties on an `attributes` object you could - write: - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - serializeAttribute: function(snapshot, json, key, attributes) { - json.attributes = json.attributes || {}; - this._super(snapshot, json.attributes, key, attributes); - } - }); - ``` - @method serializeAttribute - @param {DS.Snapshot} snapshot - @param {Object} json - @param {String} key - @param {Object} attribute - */ - serializeAttribute: function (snapshot, json, key, attribute) { - var type = attribute.type; - - if (this._canSerialize(key)) { - var value = snapshot.attr(key); - if (type) { - var transform = this.transformFor(type); - value = transform.serialize(value); - } - - // if provided, use the mapping provided by `attrs` in - // the serializer - var payloadKey = this._getMappedKey(key); - - if (payloadKey === key && this.keyForAttribute) { - payloadKey = this.keyForAttribute(key, 'serialize'); - } - - json[payloadKey] = value; - } - }, - - /** - `serializeBelongsTo` can be used to customize how `DS.belongsTo` - properties are serialized. - Example - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - serializeBelongsTo: function(snapshot, json, relationship) { - var key = relationship.key; - var belongsTo = snapshot.belongsTo(key); - key = this.keyForRelationship ? this.keyForRelationship(key, "belongsTo", "serialize") : key; - json[key] = Ember.isNone(belongsTo) ? belongsTo : belongsTo.record.toJSON(); - } - }); - ``` - @method serializeBelongsTo - @param {DS.Snapshot} snapshot - @param {Object} json - @param {Object} relationship - */ - serializeBelongsTo: function (snapshot, json, relationship) { - var key = relationship.key; - - if (this._canSerialize(key)) { - var belongsToId = snapshot.belongsTo(key, { id: true }); - - // if provided, use the mapping provided by `attrs` in - // the serializer - var payloadKey = this._getMappedKey(key); - if (payloadKey === key && this.keyForRelationship) { - payloadKey = this.keyForRelationship(key, 'belongsTo', 'serialize'); - } - - //Need to check whether the id is there for new&async records - if (ember$data$lib$serializers$json$serializer$$isNone(belongsToId)) { - json[payloadKey] = null; - } else { - json[payloadKey] = belongsToId; - } - - if (relationship.options.polymorphic) { - this.serializePolymorphicType(snapshot, json, relationship); - } - } - }, - - /** - `serializeHasMany` can be used to customize how `DS.hasMany` - properties are serialized. - Example - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - serializeHasMany: function(snapshot, json, relationship) { - var key = relationship.key; - if (key === 'comments') { - return; - } else { - this._super.apply(this, arguments); - } - } - }); - ``` - @method serializeHasMany - @param {DS.Snapshot} snapshot - @param {Object} json - @param {Object} relationship - */ - serializeHasMany: function (snapshot, json, relationship) { - var key = relationship.key; - - if (this._canSerialize(key)) { - var payloadKey; - - // if provided, use the mapping provided by `attrs` in - // the serializer - payloadKey = this._getMappedKey(key); - if (payloadKey === key && this.keyForRelationship) { - payloadKey = this.keyForRelationship(key, 'hasMany', 'serialize'); - } - - var relationshipType = snapshot.type.determineRelationshipType(relationship, this.store); - - if (relationshipType === 'manyToNone' || relationshipType === 'manyToMany') { - json[payloadKey] = snapshot.hasMany(key, { ids: true }); - // TODO support for polymorphic manyToNone and manyToMany relationships - } - } - }, - - /** - You can use this method to customize how polymorphic objects are - serialized. Objects are considered to be polymorphic if - `{polymorphic: true}` is pass as the second argument to the - `DS.belongsTo` function. - Example - ```app/serializers/comment.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - serializePolymorphicType: function(snapshot, json, relationship) { - var key = relationship.key, - belongsTo = snapshot.belongsTo(key); - key = this.keyForAttribute ? this.keyForAttribute(key, "serialize") : key; - if (Ember.isNone(belongsTo)) { - json[key + "_type"] = null; - } else { - json[key + "_type"] = belongsTo.modelName; - } - } - }); - ``` - @method serializePolymorphicType - @param {DS.Snapshot} snapshot - @param {Object} json - @param {Object} relationship - */ - serializePolymorphicType: Ember.K, - - // EXTRACT - - /** - The `extract` method is used to deserialize payload data from the - server. By default the `JSONSerializer` does not push the records - into the store. However records that subclass `JSONSerializer` - such as the `RESTSerializer` may push records into the store as - part of the extract call. - This method delegates to a more specific extract method based on - the `requestType`. - To override this method with a custom one, make sure to call - `return this._super(store, type, payload, id, requestType)` with your - pre-processed data. - Here's an example of using `extract` manually: - ```javascript - socket.on('message', function(message) { - var data = message.data; - var typeClass = store.modelFor(message.modelName); - var serializer = store.serializerFor(typeClass.modelName); - var record = serializer.extract(store, typeClass, data, data.id, 'single'); - store.push(message.modelName, record); - }); - ``` - @method extract - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @param {String} requestType - @return {Object} json The deserialized payload - */ - extract: function (store, typeClass, payload, id, requestType) { - this.extractMeta(store, typeClass.modelName, payload); - - var specificExtract = 'extract' + requestType.charAt(0).toUpperCase() + requestType.substr(1); - return this[specificExtract](store, typeClass, payload, id, requestType); - }, - - /** - `extractFindAll` is a hook into the extract method used when a - call is made to `DS.Store#findAll`. By default this method is an - alias for [extractArray](#method_extractArray). - @method extractFindAll - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @param {String} requestType - @return {Array} array An array of deserialized objects - */ - extractFindAll: function (store, typeClass, payload, id, requestType) { - return this.extractArray(store, typeClass, payload, id, requestType); - }, - /** - `extractFindQuery` is a hook into the extract method used when a - call is made to `DS.Store#findQuery`. By default this method is an - alias for [extractArray](#method_extractArray). - @method extractFindQuery - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @param {String} requestType - @return {Array} array An array of deserialized objects - */ - extractFindQuery: function (store, typeClass, payload, id, requestType) { - return this.extractArray(store, typeClass, payload, id, requestType); - }, - /** - `extractFindMany` is a hook into the extract method used when a - call is made to `DS.Store#findMany`. By default this method is - alias for [extractArray](#method_extractArray). - @method extractFindMany - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @param {String} requestType - @return {Array} array An array of deserialized objects - */ - extractFindMany: function (store, typeClass, payload, id, requestType) { - return this.extractArray(store, typeClass, payload, id, requestType); - }, - /** - `extractFindHasMany` is a hook into the extract method used when a - call is made to `DS.Store#findHasMany`. By default this method is - alias for [extractArray](#method_extractArray). - @method extractFindHasMany - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @param {String} requestType - @return {Array} array An array of deserialized objects - */ - extractFindHasMany: function (store, typeClass, payload, id, requestType) { - return this.extractArray(store, typeClass, payload, id, requestType); - }, - - /** - `extractCreateRecord` is a hook into the extract method used when a - call is made to `DS.Model#save` and the record is new. By default - this method is alias for [extractSave](#method_extractSave). - @method extractCreateRecord - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @param {String} requestType - @return {Object} json The deserialized payload - */ - extractCreateRecord: function (store, typeClass, payload, id, requestType) { - return this.extractSave(store, typeClass, payload, id, requestType); - }, - /** - `extractUpdateRecord` is a hook into the extract method used when - a call is made to `DS.Model#save` and the record has been updated. - By default this method is alias for [extractSave](#method_extractSave). - @method extractUpdateRecord - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @param {String} requestType - @return {Object} json The deserialized payload - */ - extractUpdateRecord: function (store, typeClass, payload, id, requestType) { - return this.extractSave(store, typeClass, payload, id, requestType); - }, - /** - `extractDeleteRecord` is a hook into the extract method used when - a call is made to `DS.Model#save` and the record has been deleted. - By default this method is alias for [extractSave](#method_extractSave). - @method extractDeleteRecord - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @param {String} requestType - @return {Object} json The deserialized payload - */ - extractDeleteRecord: function (store, typeClass, payload, id, requestType) { - return this.extractSave(store, typeClass, payload, id, requestType); - }, - - /** - `extractFind` is a hook into the extract method used when - a call is made to `DS.Store#find`. By default this method is - alias for [extractSingle](#method_extractSingle). - @method extractFind - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @param {String} requestType - @return {Object} json The deserialized payload - */ - extractFind: function (store, typeClass, payload, id, requestType) { - return this.extractSingle(store, typeClass, payload, id, requestType); - }, - /** - `extractFindBelongsTo` is a hook into the extract method used when - a call is made to `DS.Store#findBelongsTo`. By default this method is - alias for [extractSingle](#method_extractSingle). - @method extractFindBelongsTo - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @param {String} requestType - @return {Object} json The deserialized payload - */ - extractFindBelongsTo: function (store, typeClass, payload, id, requestType) { - return this.extractSingle(store, typeClass, payload, id, requestType); - }, - /** - `extractSave` is a hook into the extract method used when a call - is made to `DS.Model#save`. By default this method is alias - for [extractSingle](#method_extractSingle). - @method extractSave - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @param {String} requestType - @return {Object} json The deserialized payload - */ - extractSave: function (store, typeClass, payload, id, requestType) { - return this.extractSingle(store, typeClass, payload, id, requestType); - }, - - /** - `extractSingle` is used to deserialize a single record returned - from the adapter. - Example - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - extractSingle: function(store, typeClass, payload) { - payload.comments = payload._embedded.comment; - delete payload._embedded; - return this._super(store, typeClass, payload); - }, - }); - ``` - @method extractSingle - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @param {String} requestType - @return {Object} json The deserialized payload - */ - extractSingle: function (store, typeClass, payload, id, requestType) { - var normalizedPayload = this.normalizePayload(payload); - return this.normalize(typeClass, normalizedPayload); - }, - - /** - `extractArray` is used to deserialize an array of records - returned from the adapter. - Example - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - extractArray: function(store, typeClass, payload) { - return payload.map(function(json) { - return this.extractSingle(store, typeClass, json); - }, this); - } - }); - ``` - @method extractArray - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} arrayPayload - @param {(String|Number)} id - @param {String} requestType - @return {Array} array An array of deserialized objects - */ - extractArray: function (store, typeClass, arrayPayload, id, requestType) { - var normalizedPayload = this.normalizePayload(arrayPayload); - var serializer = this; - - return ember$data$lib$serializers$json$serializer$$map.call(normalizedPayload, function (singlePayload) { - return serializer.normalize(typeClass, singlePayload); - }); - }, - - /** - `extractMeta` is used to deserialize any meta information in the - adapter payload. By default Ember Data expects meta information to - be located on the `meta` property of the payload object. - Example - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - extractMeta: function(store, typeClass, payload) { - if (payload && payload._pagination) { - store.setMetadataFor(typeClass, payload._pagination); - delete payload._pagination; - } - } - }); - ``` - @method extractMeta - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - */ - extractMeta: function (store, typeClass, payload) { - if (payload && payload.meta) { - store.setMetadataFor(typeClass, payload.meta); - delete payload.meta; - } - }, - - /** - `extractErrors` is used to extract model errors when a call is made - to `DS.Model#save` which fails with an `InvalidError`. By default - Ember Data expects error information to be located on the `errors` - property of the payload object. - Example - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - extractErrors: function(store, typeClass, payload, id) { - if (payload && typeof payload === 'object' && payload._problems) { - payload = payload._problems; - this.normalizeErrors(typeClass, payload); - } - return payload; - } - }); - ``` - @method extractErrors - @param {DS.Store} store - @param {DS.Model} typeClass - @param {Object} payload - @param {(String|Number)} id - @return {Object} json The deserialized errors - */ - extractErrors: function (store, typeClass, payload, id) { - if (payload && typeof payload === 'object' && payload.errors) { - payload = payload.errors; - this.normalizeErrors(typeClass, payload); - } - return payload; - }, - - /** - `keyForAttribute` can be used to define rules for how to convert an - attribute name in your model to a key in your JSON. - Example - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.RESTSerializer.extend({ - keyForAttribute: function(attr, method) { - return Ember.String.underscore(attr).toUpperCase(); - } - }); - ``` - @method keyForAttribute - @param {String} key - @param {String} method - @return {String} normalized key - */ - keyForAttribute: function (key, method) { - return key; - }, - - /** - `keyForRelationship` can be used to define a custom key when - serializing and deserializing relationship properties. By default - `JSONSerializer` does not provide an implementation of this method. - Example - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - keyForRelationship: function(key, relationship, method) { - return 'rel_' + Ember.String.underscore(key); - } - }); - ``` - @method keyForRelationship - @param {String} key - @param {String} typeClass - @param {String} method - @return {String} normalized key - */ - - keyForRelationship: function (key, typeClass, method) { - return key; - }, - - // HELPERS - - /** - @method transformFor - @private - @param {String} attributeType - @param {Boolean} skipAssertion - @return {DS.Transform} transform - */ - transformFor: function (attributeType, skipAssertion) { - var transform = this.container.lookup('transform:' + attributeType); - return transform; - } - }); - - var ember$data$lib$system$normalize$model$name$$default = ember$data$lib$system$normalize$model$name$$normalizeModelName; - /** - All modelNames are dasherized internally. Changing this function may - require changes to other normalization hooks (such as typeForRoot). - @method normalizeModelName - @public - @param {String} modelName - @return {String} if the adapter can generate one, an ID - @for DS - */ - function ember$data$lib$system$normalize$model$name$$normalizeModelName(modelName) { - return Ember.String.dasherize(modelName); - } - var ember$data$lib$system$coerce$id$$default = ember$data$lib$system$coerce$id$$coerceId; - // Used by the store to normalize IDs entering the store. Despite the fact - // that developers may provide IDs as numbers (e.g., `store.find(Person, 1)`), - // it is important that internally we use strings, since IDs may be serialized - // and lose type information. For example, Ember's router may put a record's - // ID into the URL, and if we later try to deserialize that URL and find the - // corresponding record, we will not know if it is a string or a number. - - function ember$data$lib$system$coerce$id$$coerceId(id) { - return id == null ? null : id + ''; - } - - var ember$data$lib$serializers$rest$serializer$$forEach = Ember.ArrayPolyfills.forEach; - var ember$data$lib$serializers$rest$serializer$$map = Ember.ArrayPolyfills.map; - var ember$data$lib$serializers$rest$serializer$$camelize = Ember.String.camelize; - - /** - Normally, applications will use the `RESTSerializer` by implementing - the `normalize` method and individual normalizations under - `normalizeHash`. - - This allows you to do whatever kind of munging you need, and is - especially useful if your server is inconsistent and you need to - do munging differently for many different kinds of responses. - - See the `normalize` documentation for more information. - - ## Across the Board Normalization - - There are also a number of hooks that you might find useful to define - across-the-board rules for your payload. These rules will be useful - if your server is consistent, or if you're building an adapter for - an infrastructure service, like Parse, and want to encode service - conventions. - - For example, if all of your keys are underscored and all-caps, but - otherwise consistent with the names you use in your models, you - can implement across-the-board rules for how to convert an attribute - name in your model to a key in your JSON. - - ```app/serializers/application.js - import DS from 'ember-data'; - - export default DS.RESTSerializer.extend({ - keyForAttribute: function(attr, method) { - return Ember.String.underscore(attr).toUpperCase(); - } - }); - ``` - - You can also implement `keyForRelationship`, which takes the name - of the relationship as the first parameter, the kind of - relationship (`hasMany` or `belongsTo`) as the second parameter, and - the method (`serialize` or `deserialize`) as the third parameter. - - @class RESTSerializer - @namespace DS - @extends DS.JSONSerializer - */ - var ember$data$lib$serializers$rest$serializer$$RESTSerializer = ember$data$lib$serializers$json$serializer$$default.extend({ - /** - If you want to do normalizations specific to some part of the payload, you - can specify those under `normalizeHash`. - For example, given the following json where the the `IDs` under - `"comments"` are provided as `_id` instead of `id`. - ```javascript - { - "post": { - "id": 1, - "title": "Rails is omakase", - "comments": [ 1, 2 ] - }, - "comments": [{ - "_id": 1, - "body": "FIRST" - }, { - "_id": 2, - "body": "Rails is unagi" - }] - } - ``` - You use `normalizeHash` to normalize just the comments: - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.RESTSerializer.extend({ - normalizeHash: { - comments: function(hash) { - hash.id = hash._id; - delete hash._id; - return hash; - } - } - }); - ``` - The key under `normalizeHash` is usually just the original key - that was in the original payload. However, key names will be - impacted by any modifications done in the `normalizePayload` - method. The `DS.RESTSerializer`'s default implementation makes no - changes to the payload keys. - @property normalizeHash - @type {Object} - @default undefined - */ - - /** - Normalizes a part of the JSON payload returned by - the server. You should override this method, munge the hash - and call super if you have generic normalization to do. - It takes the type of the record that is being normalized - (as a DS.Model class), the property where the hash was - originally found, and the hash to normalize. - For example, if you have a payload that looks like this: - ```js - { - "post": { - "id": 1, - "title": "Rails is omakase", - "comments": [ 1, 2 ] - }, - "comments": [{ - "id": 1, - "body": "FIRST" - }, { - "id": 2, - "body": "Rails is unagi" - }] - } - ``` - The `normalize` method will be called three times: - * With `App.Post`, `"posts"` and `{ id: 1, title: "Rails is omakase", ... }` - * With `App.Comment`, `"comments"` and `{ id: 1, body: "FIRST" }` - * With `App.Comment`, `"comments"` and `{ id: 2, body: "Rails is unagi" }` - You can use this method, for example, to normalize underscored keys to camelized - or other general-purpose normalizations. - If you want to do normalizations specific to some part of the payload, you - can specify those under `normalizeHash`. - For example, if the `IDs` under `"comments"` are provided as `_id` instead of - `id`, you can specify how to normalize just the comments: - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.RESTSerializer.extend({ - normalizeHash: { - comments: function(hash) { - hash.id = hash._id; - delete hash._id; - return hash; - } - } - }); - ``` - The key under `normalizeHash` is just the original key that was in the original - payload. - @method normalize - @param {DS.Model} typeClass - @param {Object} hash - @param {String} prop - @return {Object} - */ - normalize: function (typeClass, hash, prop) { - this.normalizeId(hash); - this.normalizeAttributes(typeClass, hash); - this.normalizeRelationships(typeClass, hash); - - this.normalizeUsingDeclaredMapping(typeClass, hash); - - if (this.normalizeHash && this.normalizeHash[prop]) { - this.normalizeHash[prop](hash); - } - - this.applyTransforms(typeClass, hash); - return hash; - }, - - /** - Called when the server has returned a payload representing - a single record, such as in response to a `find` or `save`. - It is your opportunity to clean up the server's response into the normalized - form expected by Ember Data. - If you want, you can just restructure the top-level of your payload, and - do more fine-grained normalization in the `normalize` method. - For example, if you have a payload like this in response to a request for - post 1: - ```js - { - "id": 1, - "title": "Rails is omakase", - "_embedded": { - "comment": [{ - "_id": 1, - "comment_title": "FIRST" - }, { - "_id": 2, - "comment_title": "Rails is unagi" - }] - } - } - ``` - You could implement a serializer that looks like this to get your payload - into shape: - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.RESTSerializer.extend({ - // First, restructure the top-level so it's organized by type - extractSingle: function(store, typeClass, payload, id) { - var comments = payload._embedded.comment; - delete payload._embedded; - payload = { comments: comments, post: payload }; - return this._super(store, typeClass, payload, id); - }, - normalizeHash: { - // Next, normalize individual comments, which (after `extract`) - // are now located under `comments` - comments: function(hash) { - hash.id = hash._id; - hash.title = hash.comment_title; - delete hash._id; - delete hash.comment_title; - return hash; - } - } - }) - ``` - When you call super from your own implementation of `extractSingle`, the - built-in implementation will find the primary record in your normalized - payload and push the remaining records into the store. - The primary record is the single hash found under `post` or the first - element of the `posts` array. - The primary record has special meaning when the record is being created - for the first time or updated (`createRecord` or `updateRecord`). In - particular, it will update the properties of the record that was saved. - @method extractSingle - @param {DS.Store} store - @param {DS.Model} primaryTypeClass - @param {Object} rawPayload - @param {String} recordId - @return {Object} the primary response to the original request - */ - extractSingle: function (store, primaryTypeClass, rawPayload, recordId) { - var payload = this.normalizePayload(rawPayload); - var primaryRecord; - - for (var prop in payload) { - var modelName = this.modelNameFromPayloadKey(prop); - - if (!store.modelFactoryFor(modelName)) { - continue; - } - var isPrimary = this.isPrimaryType(store, modelName, primaryTypeClass); - var value = payload[prop]; - - if (value === null) { - continue; - } - - // legacy support for singular resources - if (isPrimary && Ember.typeOf(value) !== "array") { - primaryRecord = this.normalize(primaryTypeClass, value, prop); - continue; - } - - var normalizedArray = this.normalizeArray(store, modelName, value, prop); - - /*jshint loopfunc:true*/ - ember$data$lib$serializers$rest$serializer$$forEach.call(normalizedArray, function (hash) { - var isFirstCreatedRecord = isPrimary && !recordId && !primaryRecord; - var isUpdatedRecord = isPrimary && ember$data$lib$system$coerce$id$$default(hash.id) === recordId; - - // find the primary record. - // - // It's either: - // * the record with the same ID as the original request - // * in the case of a newly created record that didn't have an ID, the first - // record in the Array - if (isFirstCreatedRecord || isUpdatedRecord) { - primaryRecord = hash; - } else { - store.push(modelName, hash); - } - }, this); - } - - return primaryRecord; - }, - - /** - Called when the server has returned a payload representing - multiple records, such as in response to a `findAll` or `findQuery`. - It is your opportunity to clean up the server's response into the normalized - form expected by Ember Data. - If you want, you can just restructure the top-level of your payload, and - do more fine-grained normalization in the `normalize` method. - For example, if you have a payload like this in response to a request for - all posts: - ```js - { - "_embedded": { - "post": [{ - "id": 1, - "title": "Rails is omakase" - }, { - "id": 2, - "title": "The Parley Letter" - }], - "comment": [{ - "_id": 1, - "comment_title": "Rails is unagi", - "post_id": 1 - }, { - "_id": 2, - "comment_title": "Don't tread on me", - "post_id": 2 - }] - } - } - ``` - You could implement a serializer that looks like this to get your payload - into shape: - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.RESTSerializer.extend({ - // First, restructure the top-level so it's organized by type - // and the comments are listed under a post's `comments` key. - extractArray: function(store, type, payload) { - var posts = payload._embedded.post; - var comments = []; - var postCache = {}; - posts.forEach(function(post) { - post.comments = []; - postCache[post.id] = post; - }); - payload._embedded.comment.forEach(function(comment) { - comments.push(comment); - postCache[comment.post_id].comments.push(comment); - delete comment.post_id; - }); - payload = { comments: comments, posts: posts }; - return this._super(store, type, payload); - }, - normalizeHash: { - // Next, normalize individual comments, which (after `extract`) - // are now located under `comments` - comments: function(hash) { - hash.id = hash._id; - hash.title = hash.comment_title; - delete hash._id; - delete hash.comment_title; - return hash; - } - } - }) - ``` - When you call super from your own implementation of `extractArray`, the - built-in implementation will find the primary array in your normalized - payload and push the remaining records into the store. - The primary array is the array found under `posts`. - The primary record has special meaning when responding to `findQuery` - or `findHasMany`. In particular, the primary array will become the - list of records in the record array that kicked off the request. - If your primary array contains secondary (embedded) records of the same type, - you cannot place these into the primary array `posts`. Instead, place the - secondary items into an underscore prefixed property `_posts`, which will - push these items into the store and will not affect the resulting query. - @method extractArray - @param {DS.Store} store - @param {DS.Model} primaryTypeClass - @param {Object} rawPayload - @return {Array} The primary array that was returned in response - to the original query. - */ - extractArray: function (store, primaryTypeClass, rawPayload) { - var payload = this.normalizePayload(rawPayload); - var primaryArray; - - for (var prop in payload) { - var modelName = prop; - var forcedSecondary = false; - - if (prop.charAt(0) === "_") { - forcedSecondary = true; - modelName = prop.substr(1); - } - - var typeName = this.modelNameFromPayloadKey(modelName); - if (!store.modelFactoryFor(typeName)) { - continue; - } - - var normalizedArray = this.normalizeArray(store, typeName, payload[prop], prop); - var isPrimary = !forcedSecondary && this.isPrimaryType(store, typeName, primaryTypeClass); - - if (isPrimary) { - primaryArray = normalizedArray; - } else { - store.pushMany(typeName, normalizedArray); - } - } - - return primaryArray; - }, - - normalizeArray: function (store, typeName, arrayHash, prop) { - var typeClass = store.modelFor(typeName); - var typeSerializer = store.serializerFor(typeName); - - /*jshint loopfunc:true*/ - return ember$data$lib$serializers$rest$serializer$$map.call(arrayHash, function (hash) { - return typeSerializer.normalize(typeClass, hash, prop); - }, this); - }, - - isPrimaryType: function (store, typeName, primaryTypeClass) { - var typeClass = store.modelFor(typeName); - return typeClass.modelName === primaryTypeClass.modelName; - }, - - /** - This method allows you to push a payload containing top-level - collections of records organized per type. - ```js - { - "posts": [{ - "id": "1", - "title": "Rails is omakase", - "author", "1", - "comments": [ "1" ] - }], - "comments": [{ - "id": "1", - "body": "FIRST" - }], - "users": [{ - "id": "1", - "name": "@d2h" - }] - } - ``` - It will first normalize the payload, so you can use this to push - in data streaming in from your server structured the same way - that fetches and saves are structured. - @method pushPayload - @param {DS.Store} store - @param {Object} rawPayload - */ - pushPayload: function (store, rawPayload) { - var payload = this.normalizePayload(rawPayload); - - for (var prop in payload) { - var modelName = this.modelNameFromPayloadKey(prop); - if (!store.modelFactoryFor(modelName)) { - continue; - } - var typeClass = store.modelFor(modelName); - var typeSerializer = store.serializerFor(modelName); - - /*jshint loopfunc:true*/ - var normalizedArray = ember$data$lib$serializers$rest$serializer$$map.call(Ember.makeArray(payload[prop]), function (hash) { - return typeSerializer.normalize(typeClass, hash, prop); - }, this); - - store.pushMany(modelName, normalizedArray); - } - }, - - /** - This method is used to convert each JSON root key in the payload - into a modelName that it can use to look up the appropriate model for - that part of the payload. - For example, your server may send a model name that does not correspond with - the name of the model in your app. Let's take a look at an example model, - and an example payload: - ```app/models/post.js - import DS from 'ember-data'; - export default DS.Model.extend({ - }); - ``` - ```javascript - { - "blog/post": { - "id": "1 - } - } - ``` - Ember Data is going to normalize the payload's root key for the modelName. As a result, - it will try to look up the "blog/post" model. Since we don't have a model called "blog/post" - (or a file called app/models/blog/post.js in ember-cli), Ember Data will throw an error - because it cannot find the "blog/post" model. - Since we want to remove this namespace, we can define a serializer for the application that will - remove "blog/" from the payload key whenver it's encountered by Ember Data: - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.RESTSerializer.extend({ - modelNameFromPayloadKey: function(payloadKey) { - if (payloadKey === 'blog/post') { - return this._super(payloadKey.replace('blog/', '')); - } else { - return this._super(payloadKey); - } - } - }); - ``` - After refreshing, Ember Data will appropriately look up the "post" model. - By default the modelName for a model is its - name in dasherized form. This means that a payload key like "blogPost" would be - normalized to "blog-post" when Ember Data looks up the model. Usually, Ember Data - can use the correct inflection to do this for you. Most of the time, you won't - need to override `modelNameFromPayloadKey` for this purpose. - @method modelNameFromPayloadKey - @param {String} key - @return {String} the model's modelName - */ - modelNameFromPayloadKey: function (key) { - return ember$inflector$lib$lib$system$string$$singularize(ember$data$lib$system$normalize$model$name$$default(key)); - }, - - // SERIALIZE - - /** - Called when a record is saved in order to convert the - record into JSON. - By default, it creates a JSON object with a key for - each attribute and belongsTo relationship. - For example, consider this model: - ```app/models/comment.js - import DS from 'ember-data'; - export default DS.Model.extend({ - title: DS.attr(), - body: DS.attr(), - author: DS.belongsTo('user') - }); - ``` - The default serialization would create a JSON object like: - ```js - { - "title": "Rails is unagi", - "body": "Rails? Omakase? O_O", - "author": 12 - } - ``` - By default, attributes are passed through as-is, unless - you specified an attribute type (`DS.attr('date')`). If - you specify a transform, the JavaScript value will be - serialized when inserted into the JSON hash. - By default, belongs-to relationships are converted into - IDs when inserted into the JSON hash. - ## IDs - `serialize` takes an options hash with a single option: - `includeId`. If this option is `true`, `serialize` will, - by default include the ID in the JSON object it builds. - The adapter passes in `includeId: true` when serializing - a record for `createRecord`, but not for `updateRecord`. - ## Customization - Your server may expect a different JSON format than the - built-in serialization format. - In that case, you can implement `serialize` yourself and - return a JSON hash of your choosing. - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.RESTSerializer.extend({ - serialize: function(snapshot, options) { - var json = { - POST_TTL: snapshot.attr('title'), - POST_BDY: snapshot.attr('body'), - POST_CMS: snapshot.hasMany('comments', { ids: true }) - } - if (options.includeId) { - json.POST_ID_ = snapshot.id; - } - return json; - } - }); - ``` - ## Customizing an App-Wide Serializer - If you want to define a serializer for your entire - application, you'll probably want to use `eachAttribute` - and `eachRelationship` on the record. - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.RESTSerializer.extend({ - serialize: function(snapshot, options) { - var json = {}; - snapshot.eachAttribute(function(name) { - json[serverAttributeName(name)] = snapshot.attr(name); - }) - snapshot.eachRelationship(function(name, relationship) { - if (relationship.kind === 'hasMany') { - json[serverHasManyName(name)] = snapshot.hasMany(name, { ids: true }); - } - }); - if (options.includeId) { - json.ID_ = snapshot.id; - } - return json; - } - }); - function serverAttributeName(attribute) { - return attribute.underscore().toUpperCase(); - } - function serverHasManyName(name) { - return serverAttributeName(name.singularize()) + "_IDS"; - } - ``` - This serializer will generate JSON that looks like this: - ```js - { - "TITLE": "Rails is omakase", - "BODY": "Yep. Omakase.", - "COMMENT_IDS": [ 1, 2, 3 ] - } - ``` - ## Tweaking the Default JSON - If you just want to do some small tweaks on the default JSON, - you can call super first and make the tweaks on the returned - JSON. - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.RESTSerializer.extend({ - serialize: function(snapshot, options) { - var json = this._super(snapshot, options); - json.subject = json.title; - delete json.title; - return json; - } - }); - ``` - @method serialize - @param {DS.Snapshot} snapshot - @param {Object} options - @return {Object} json - */ - serialize: function (snapshot, options) { - return this._super.apply(this, arguments); - }, - - /** - You can use this method to customize the root keys serialized into the JSON. - By default the REST Serializer sends the modelName of a model, which is a camelized - version of the name. - For example, your server may expect underscored root objects. - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.RESTSerializer.extend({ - serializeIntoHash: function(data, type, record, options) { - var root = Ember.String.decamelize(type.modelName); - data[root] = this.serialize(record, options); - } - }); - ``` - @method serializeIntoHash - @param {Object} hash - @param {DS.Model} typeClass - @param {DS.Snapshot} snapshot - @param {Object} options - */ - serializeIntoHash: function (hash, typeClass, snapshot, options) { - var normalizedRootKey = this.payloadKeyFromModelName(typeClass.modelName); - hash[normalizedRootKey] = this.serialize(snapshot, options); - }, - - /** - You can use `payloadKeyFromModelName` to override the root key for an outgoing - request. By default, the RESTSerializer returns a camelized version of the - model's name. - For a model called TacoParty, its `modelName` would be the string `taco-party`. The RESTSerializer - will send it to the server with `tacoParty` as the root key in the JSON payload: - ```js - { - "tacoParty": { - "id": "1", - "location": "Matthew Beale's House" - } - } - ``` - For example, your server may expect dasherized root objects: - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.RESTSerializer.extend({ - payloadKeyFromModelName: function(modelName) { - return Ember.String.dasherize(modelName); - } - }); - ``` - Given a `TacoParty' model, calling `save` on a tacoModel would produce an outgoing - request like: - ```js - { - "taco-party": { - "id": "1", - "location": "Matthew Beale's House" - } - } - ``` - @method payloadKeyFromModelName - @param {String} modelName - @return {String} - */ - payloadKeyFromModelName: function (modelName) { - return ember$data$lib$serializers$rest$serializer$$camelize(modelName); - }, - - /** - Deprecated. Use modelNameFromPayloadKey instead - @method typeForRoot - @param {String} modelName - @return {String} - @deprecated - */ - typeForRoot: function (modelName) { - return this.modelNameFromPayloadKey(modelName); - }, - - /** - You can use this method to customize how polymorphic objects are serialized. - By default the JSON Serializer creates the key by appending `Type` to - the attribute and value from the model's camelcased model name. - @method serializePolymorphicType - @param {DS.Snapshot} snapshot - @param {Object} json - @param {Object} relationship - */ - serializePolymorphicType: function (snapshot, json, relationship) { - var key = relationship.key; - var belongsTo = snapshot.belongsTo(key); - key = this.keyForAttribute ? this.keyForAttribute(key, "serialize") : key; - if (Ember.isNone(belongsTo)) { - json[key + "Type"] = null; - } else { - json[key + "Type"] = Ember.String.camelize(belongsTo.modelName); - } - } - }); - - - var ember$data$lib$serializers$rest$serializer$$default = ember$data$lib$serializers$rest$serializer$$RESTSerializer; - /** - @module ember-data - */ - - var activemodel$adapter$lib$system$active$model$serializer$$forEach = Ember.EnumerableUtils.forEach; - var activemodel$adapter$lib$system$active$model$serializer$$camelize = Ember.String.camelize; - var activemodel$adapter$lib$system$active$model$serializer$$classify = Ember.String.classify; - var activemodel$adapter$lib$system$active$model$serializer$$decamelize = Ember.String.decamelize; - var activemodel$adapter$lib$system$active$model$serializer$$underscore = Ember.String.underscore; - - /** - The ActiveModelSerializer is a subclass of the RESTSerializer designed to integrate - with a JSON API that uses an underscored naming convention instead of camelCasing. - It has been designed to work out of the box with the - [active\_model\_serializers](http://github.com/rails-api/active_model_serializers) - Ruby gem. This Serializer expects specific settings using ActiveModel::Serializers, - `embed :ids, embed_in_root: true` which sideloads the records. - - This serializer extends the DS.RESTSerializer by making consistent - use of the camelization, decamelization and pluralization methods to - normalize the serialized JSON into a format that is compatible with - a conventional Rails backend and Ember Data. - - ## JSON Structure - - The ActiveModelSerializer expects the JSON returned from your server - to follow the REST adapter conventions substituting underscored keys - for camelcased ones. - - ### Conventional Names - - Attribute names in your JSON payload should be the underscored versions of - the attributes in your Ember.js models. - - For example, if you have a `Person` model: - - ```js - App.FamousPerson = DS.Model.extend({ - firstName: DS.attr('string'), - lastName: DS.attr('string'), - occupation: DS.attr('string') - }); - ``` - - The JSON returned should look like this: - - ```js - { - "famous_person": { - "id": 1, - "first_name": "Barack", - "last_name": "Obama", - "occupation": "President" - } - } - ``` - - Let's imagine that `Occupation` is just another model: - - ```js - App.Person = DS.Model.extend({ - firstName: DS.attr('string'), - lastName: DS.attr('string'), - occupation: DS.belongsTo('occupation') - }); - - App.Occupation = DS.Model.extend({ - name: DS.attr('string'), - salary: DS.attr('number'), - people: DS.hasMany('person') - }); - ``` - - The JSON needed to avoid extra server calls, should look like this: - - ```js - { - "people": [{ - "id": 1, - "first_name": "Barack", - "last_name": "Obama", - "occupation_id": 1 - }], - - "occupations": [{ - "id": 1, - "name": "President", - "salary": 100000, - "person_ids": [1] - }] - } - ``` - - @class ActiveModelSerializer - @namespace DS - @extends DS.RESTSerializer - */ - var activemodel$adapter$lib$system$active$model$serializer$$ActiveModelSerializer = ember$data$lib$serializers$rest$serializer$$default.extend({ - // SERIALIZE - - /** - Converts camelCased attributes to underscored when serializing. - @method keyForAttribute - @param {String} attribute - @return String - */ - keyForAttribute: function (attr) { - return activemodel$adapter$lib$system$active$model$serializer$$decamelize(attr); - }, - - /** - Underscores relationship names and appends "_id" or "_ids" when serializing - relationship keys. - @method keyForRelationship - @param {String} relationshipModelName - @param {String} kind - @return String - */ - keyForRelationship: function (relationshipModelName, kind) { - var key = activemodel$adapter$lib$system$active$model$serializer$$decamelize(relationshipModelName); - if (kind === "belongsTo") { - return key + "_id"; - } else if (kind === "hasMany") { - return ember$inflector$lib$lib$system$string$$singularize(key) + "_ids"; - } else { - return key; - } - }, - - /* - Does not serialize hasMany relationships by default. - */ - serializeHasMany: Ember.K, - - /** - Underscores the JSON root keys when serializing. - @method payloadKeyFromModelName - @param {String} modelName - @return {String} - */ - payloadKeyFromModelName: function (modelName) { - return activemodel$adapter$lib$system$active$model$serializer$$underscore(activemodel$adapter$lib$system$active$model$serializer$$decamelize(modelName)); - }, - - /** - Serializes a polymorphic type as a fully capitalized model name. - @method serializePolymorphicType - @param {DS.Snapshot} snapshot - @param {Object} json - @param {Object} relationship - */ - serializePolymorphicType: function (snapshot, json, relationship) { - var key = relationship.key; - var belongsTo = snapshot.belongsTo(key); - var jsonKey = activemodel$adapter$lib$system$active$model$serializer$$underscore(key + "_type"); - - if (Ember.isNone(belongsTo)) { - json[jsonKey] = null; - } else { - json[jsonKey] = activemodel$adapter$lib$system$active$model$serializer$$classify(belongsTo.modelName).replace(/(\/)([a-z])/g, function (match, separator, chr) { - return match.toUpperCase(); - }).replace("/", "::"); - } - }, - - // EXTRACT - - /** - Add extra step to `DS.RESTSerializer.normalize` so links are normalized. - If your payload looks like: - ```js - { - "post": { - "id": 1, - "title": "Rails is omakase", - "links": { "flagged_comments": "api/comments/flagged" } - } - } - ``` - The normalized version would look like this - ```js - { - "post": { - "id": 1, - "title": "Rails is omakase", - "links": { "flaggedComments": "api/comments/flagged" } - } - } - ``` - @method normalize - @param {subclass of DS.Model} typeClass - @param {Object} hash - @param {String} prop - @return Object - */ - - normalize: function (typeClass, hash, prop) { - this.normalizeLinks(hash); - - return this._super(typeClass, hash, prop); - }, - - /** - Convert `snake_cased` links to `camelCase` - @method normalizeLinks - @param {Object} data - */ - - normalizeLinks: function (data) { - if (data.links) { - var links = data.links; - - for (var link in links) { - var camelizedLink = activemodel$adapter$lib$system$active$model$serializer$$camelize(link); - - if (camelizedLink !== link) { - links[camelizedLink] = links[link]; - delete links[link]; - } - } - } - }, - - /** - Normalize the polymorphic type from the JSON. - Normalize: - ```js - { - id: "1" - minion: { type: "evil_minion", id: "12"} - } - ``` - To: - ```js - { - id: "1" - minion: { type: "evilMinion", id: "12"} - } - ``` - @param {Subclass of DS.Model} typeClass - @method normalizeRelationships - @private - */ - normalizeRelationships: function (typeClass, hash) { - - if (this.keyForRelationship) { - typeClass.eachRelationship(function (key, relationship) { - var payloadKey, payload; - if (relationship.options.polymorphic) { - payloadKey = this.keyForAttribute(key, "deserialize"); - payload = hash[payloadKey]; - if (payload && payload.type) { - payload.type = this.modelNameFromPayloadKey(payload.type); - } else if (payload && relationship.kind === "hasMany") { - var self = this; - activemodel$adapter$lib$system$active$model$serializer$$forEach(payload, function (single) { - single.type = self.modelNameFromPayloadKey(single.type); - }); - } - } else { - payloadKey = this.keyForRelationship(key, relationship.kind, "deserialize"); - if (!hash.hasOwnProperty(payloadKey)) { - return; - } - payload = hash[payloadKey]; - } - - hash[key] = payload; - - if (key !== payloadKey) { - delete hash[payloadKey]; - } - }, this); - } - }, - modelNameFromPayloadKey: function (key) { - var convertedFromRubyModule = activemodel$adapter$lib$system$active$model$serializer$$camelize(ember$inflector$lib$lib$system$string$$singularize(key)).replace(/(^|\:)([A-Z])/g, function (match, separator, chr) { - return match.toLowerCase(); - }).replace("::", "/"); - return ember$data$lib$system$normalize$model$name$$default(convertedFromRubyModule); - } - }); - - var activemodel$adapter$lib$system$active$model$serializer$$default = activemodel$adapter$lib$system$active$model$serializer$$ActiveModelSerializer; - function ember$data$lib$system$container$proxy$$ContainerProxy(container) { - this.container = container; - } - - ember$data$lib$system$container$proxy$$ContainerProxy.prototype.aliasedFactory = function (path, preLookup) { - var _this = this; - - return { - create: function () { - if (preLookup) { - preLookup(); - } - - return _this.container.lookup(path); - } - }; - }; - - ember$data$lib$system$container$proxy$$ContainerProxy.prototype.registerAlias = function (source, dest, preLookup) { - var factory = this.aliasedFactory(dest, preLookup); - - return this.container.register(source, factory); - }; - - ember$data$lib$system$container$proxy$$ContainerProxy.prototype.registerDeprecation = function (deprecated, valid) { - var preLookupCallback = function () { - }; - - return this.registerAlias(deprecated, valid, preLookupCallback); - }; - - ember$data$lib$system$container$proxy$$ContainerProxy.prototype.registerDeprecations = function (proxyPairs) { - var i, proxyPair, deprecated, valid; - - for (i = proxyPairs.length; i > 0; i--) { - proxyPair = proxyPairs[i - 1]; - deprecated = proxyPair["deprecated"]; - valid = proxyPair["valid"]; - - this.registerDeprecation(deprecated, valid); - } - }; - - var ember$data$lib$system$container$proxy$$default = ember$data$lib$system$container$proxy$$ContainerProxy; - var activemodel$adapter$lib$setup$container$$default = activemodel$adapter$lib$setup$container$$setupActiveModelAdapter; - function activemodel$adapter$lib$setup$container$$setupActiveModelAdapter(registry, application) { - var proxy = new ember$data$lib$system$container$proxy$$default(registry); - proxy.registerDeprecations([{ deprecated: "serializer:_ams", valid: "serializer:-active-model" }, { deprecated: "adapter:_ams", valid: "adapter:-active-model" }]); - - registry.register("serializer:-active-model", activemodel$adapter$lib$system$active$model$serializer$$default); - registry.register("adapter:-active-model", activemodel$adapter$lib$system$active$model$adapter$$default); - } - var ember$data$lib$core$$DS = Ember.Namespace.create({ - VERSION: '1.0.0-beta.19.2' - }); - - if (Ember.libraries) { - Ember.libraries.registerCoreLibrary('Ember Data', ember$data$lib$core$$DS.VERSION); - } - - //jshint ignore: line - var ember$data$lib$core$$EMBER_DATA_FEATURES = {}; - - Ember.merge(Ember.FEATURES, ember$data$lib$core$$EMBER_DATA_FEATURES); - - var ember$data$lib$core$$default = ember$data$lib$core$$DS; - var ember$data$lib$initializers$store$$default = ember$data$lib$initializers$store$$initializeStore; - - /** - Configures a registry for use with an Ember-Data - store. Accepts an optional namespace argument. - - @method initializeStore - @param {Ember.Registry} registry - @param {Object} [application] an application namespace - */ - function ember$data$lib$initializers$store$$initializeStore(registry, application) { - - registry.optionsForType("serializer", { singleton: false }); - registry.optionsForType("adapter", { singleton: false }); - - if (application && application.Store) { - registry.register("store:application", application.Store); - } - - // allow older names to be looked up - - var proxy = new ember$data$lib$system$container$proxy$$default(registry); - proxy.registerDeprecations([{ deprecated: "serializer:_default", valid: "serializer:-default" }, { deprecated: "serializer:_rest", valid: "serializer:-rest" }, { deprecated: "adapter:_rest", valid: "adapter:-rest" }]); - - // new go forward paths - registry.register("serializer:-default", ember$data$lib$serializers$json$serializer$$default); - registry.register("serializer:-rest", ember$data$lib$serializers$rest$serializer$$default); - registry.register("adapter:-rest", ember$data$lib$adapters$rest$adapter$$default); - } - - var ember$data$lib$transforms$base$$default = Ember.Object.extend({ - /** - When given a deserialized value from a record attribute this - method must return the serialized value. - Example - ```javascript - serialize: function(deserialized) { - return Ember.isEmpty(deserialized) ? null : Number(deserialized); - } - ``` - @method serialize - @param deserialized The deserialized value - @return The serialized value - */ - serialize: null, - - /** - When given a serialize value from a JSON object this method must - return the deserialized value for the record attribute. - Example - ```javascript - deserialize: function(serialized) { - return empty(serialized) ? null : Number(serialized); - } - ``` - @method deserialize - @param serialized The serialized value - @return The deserialized value - */ - deserialize: null - }); - - var ember$data$lib$transforms$number$$empty = Ember.isEmpty; - - function ember$data$lib$transforms$number$$isNumber(value) { - return value === value && value !== Infinity && value !== -Infinity; - } - - var ember$data$lib$transforms$number$$default = ember$data$lib$transforms$base$$default.extend({ - deserialize: function (serialized) { - var transformed; - - if (ember$data$lib$transforms$number$$empty(serialized)) { - return null; - } else { - transformed = Number(serialized); - - return ember$data$lib$transforms$number$$isNumber(transformed) ? transformed : null; - } - }, - - serialize: function (deserialized) { - var transformed; - - if (ember$data$lib$transforms$number$$empty(deserialized)) { - return null; - } else { - transformed = Number(deserialized); - - return ember$data$lib$transforms$number$$isNumber(transformed) ? transformed : null; - } - } - }); - - // Date.prototype.toISOString shim - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString - var ember$data$lib$transforms$date$$toISOString = Date.prototype.toISOString || function () { - function pad(number) { - if (number < 10) { - return '0' + number; - } - return number; - } - - return this.getUTCFullYear() + '-' + pad(this.getUTCMonth() + 1) + '-' + pad(this.getUTCDate()) + 'T' + pad(this.getUTCHours()) + ':' + pad(this.getUTCMinutes()) + ':' + pad(this.getUTCSeconds()) + '.' + (this.getUTCMilliseconds() / 1000).toFixed(3).slice(2, 5) + 'Z'; - }; - - if (Ember.SHIM_ES5) { - if (!Date.prototype.toISOString) { - Date.prototype.toISOString = ember$data$lib$transforms$date$$toISOString; - } - } - - var ember$data$lib$transforms$date$$default = ember$data$lib$transforms$base$$default.extend({ - deserialize: function (serialized) { - var type = typeof serialized; - - if (type === 'string') { - return new Date(Ember.Date.parse(serialized)); - } else if (type === 'number') { - return new Date(serialized); - } else if (serialized === null || serialized === undefined) { - // if the value is null return null - // if the value is not present in the data return undefined - return serialized; - } else { - return null; - } - }, - - serialize: function (date) { - if (date instanceof Date) { - return ember$data$lib$transforms$date$$toISOString.call(date); - } else { - return null; - } - } - }); - - var ember$data$lib$transforms$string$$none = Ember.isNone; - - var ember$data$lib$transforms$string$$default = ember$data$lib$transforms$base$$default.extend({ - deserialize: function (serialized) { - return ember$data$lib$transforms$string$$none(serialized) ? null : String(serialized); - }, - serialize: function (deserialized) { - return ember$data$lib$transforms$string$$none(deserialized) ? null : String(deserialized); - } - }); - - var ember$data$lib$transforms$boolean$$default = ember$data$lib$transforms$base$$default.extend({ - deserialize: function (serialized) { - var type = typeof serialized; - - if (type === "boolean") { - return serialized; - } else if (type === "string") { - return serialized.match(/^true$|^t$|^1$/i) !== null; - } else if (type === "number") { - return serialized === 1; - } else { - return false; - } - }, - - serialize: function (deserialized) { - return Boolean(deserialized); - } - }); - - var ember$data$lib$initializers$transforms$$default = ember$data$lib$initializers$transforms$$initializeTransforms; - - /** - Configures a registry for use with Ember-Data - transforms. - - @method initializeTransforms - @param {Ember.Registry} registry - */ - function ember$data$lib$initializers$transforms$$initializeTransforms(registry) { - registry.register('transform:boolean', ember$data$lib$transforms$boolean$$default); - registry.register('transform:date', ember$data$lib$transforms$date$$default); - registry.register('transform:number', ember$data$lib$transforms$number$$default); - registry.register('transform:string', ember$data$lib$transforms$string$$default); - } - var ember$data$lib$initializers$store$injections$$default = ember$data$lib$initializers$store$injections$$initializeStoreInjections; - /** - Configures a registry with injections on Ember applications - for the Ember-Data store. Accepts an optional namespace argument. - - @method initializeStoreInjections - @param {Ember.Registry} registry - */ - function ember$data$lib$initializers$store$injections$$initializeStoreInjections(registry) { - registry.injection('controller', 'store', 'store:main'); - registry.injection('route', 'store', 'store:main'); - registry.injection('data-adapter', 'store', 'store:main'); - }var ember$data$lib$system$promise$proxies$$Promise = Ember.RSVP.Promise; - var ember$data$lib$system$promise$proxies$$get = Ember.get; - - /** - A `PromiseArray` is an object that acts like both an `Ember.Array` - and a promise. When the promise is resolved the resulting value - will be set to the `PromiseArray`'s `content` property. This makes - it easy to create data bindings with the `PromiseArray` that will be - updated when the promise resolves. - - For more information see the [Ember.PromiseProxyMixin - documentation](/api/classes/Ember.PromiseProxyMixin.html). - - Example - - ```javascript - var promiseArray = DS.PromiseArray.create({ - promise: $.getJSON('/some/remote/data.json') - }); - - promiseArray.get('length'); // 0 - - promiseArray.then(function() { - promiseArray.get('length'); // 100 - }); - ``` - - @class PromiseArray - @namespace DS - @extends Ember.ArrayProxy - @uses Ember.PromiseProxyMixin - */ - var ember$data$lib$system$promise$proxies$$PromiseArray = Ember.ArrayProxy.extend(Ember.PromiseProxyMixin); - - /** - A `PromiseObject` is an object that acts like both an `Ember.Object` - and a promise. When the promise is resolved, then the resulting value - will be set to the `PromiseObject`'s `content` property. This makes - it easy to create data bindings with the `PromiseObject` that will - be updated when the promise resolves. - - For more information see the [Ember.PromiseProxyMixin - documentation](/api/classes/Ember.PromiseProxyMixin.html). - - Example - - ```javascript - var promiseObject = DS.PromiseObject.create({ - promise: $.getJSON('/some/remote/data.json') - }); - - promiseObject.get('name'); // null - - promiseObject.then(function() { - promiseObject.get('name'); // 'Tomster' - }); - ``` - - @class PromiseObject - @namespace DS - @extends Ember.ObjectProxy - @uses Ember.PromiseProxyMixin - */ - var ember$data$lib$system$promise$proxies$$PromiseObject = Ember.ObjectProxy.extend(Ember.PromiseProxyMixin); - - var ember$data$lib$system$promise$proxies$$promiseObject = function (promise, label) { - return ember$data$lib$system$promise$proxies$$PromiseObject.create({ - promise: ember$data$lib$system$promise$proxies$$Promise.resolve(promise, label) - }); - }; - - var ember$data$lib$system$promise$proxies$$promiseArray = function (promise, label) { - return ember$data$lib$system$promise$proxies$$PromiseArray.create({ - promise: ember$data$lib$system$promise$proxies$$Promise.resolve(promise, label) - }); - }; - - /** - A PromiseManyArray is a PromiseArray that also proxies certain method calls - to the underlying manyArray. - Right now we proxy: - - * `reload()` - * `createRecord()` - * `on()` - * `one()` - * `trigger()` - * `off()` - * `has()` - - @class PromiseManyArray - @namespace DS - @extends Ember.ArrayProxy - */ - - function ember$data$lib$system$promise$proxies$$proxyToContent(method) { - return function () { - var content = ember$data$lib$system$promise$proxies$$get(this, 'content'); - return content[method].apply(content, arguments); - }; - } - - var ember$data$lib$system$promise$proxies$$PromiseManyArray = ember$data$lib$system$promise$proxies$$PromiseArray.extend({ - reload: function () { - //I don't think this should ever happen right now, but worth guarding if we refactor the async relationships - return ember$data$lib$system$promise$proxies$$PromiseManyArray.create({ - promise: ember$data$lib$system$promise$proxies$$get(this, 'content').reload() - }); - }, - - createRecord: ember$data$lib$system$promise$proxies$$proxyToContent('createRecord'), - - on: ember$data$lib$system$promise$proxies$$proxyToContent('on'), - - one: ember$data$lib$system$promise$proxies$$proxyToContent('one'), - - trigger: ember$data$lib$system$promise$proxies$$proxyToContent('trigger'), - - off: ember$data$lib$system$promise$proxies$$proxyToContent('off'), - - has: ember$data$lib$system$promise$proxies$$proxyToContent('has') - }); - - var ember$data$lib$system$promise$proxies$$promiseManyArray = function (promise, label) { - return ember$data$lib$system$promise$proxies$$PromiseManyArray.create({ - promise: ember$data$lib$system$promise$proxies$$Promise.resolve(promise, label) - }); - }; - - /** - @module ember-data - */ - - var ember$data$lib$system$model$model$$get = Ember.get; - var ember$data$lib$system$model$model$$intersection = Ember.EnumerableUtils.intersection; - var ember$data$lib$system$model$model$$RESERVED_MODEL_PROPS = ['currentState', 'data', 'store']; - - var ember$data$lib$system$model$model$$retrieveFromCurrentState = Ember.computed('currentState', function (key) { - return ember$data$lib$system$model$model$$get(this._internalModel.currentState, key); - }).readOnly(); - - /** - - The model class that all Ember Data records descend from. - This is the public API of Ember Data models. If you are using Ember Data - in your application, this is the class you should use. - If you are working on Ember Data internals, you most likely want to be dealing - with `InternalModel` - - @class Model - @namespace DS - @extends Ember.Object - @uses Ember.Evented - */ - var ember$data$lib$system$model$model$$Model = Ember.Object.extend(Ember.Evented, { - _recordArrays: undefined, - _relationships: undefined, - _internalModel: null, - - store: null, - - /** - If this property is `true` the record is in the `empty` - state. Empty is the first state all records enter after they have - been created. Most records created by the store will quickly - transition to the `loading` state if data needs to be fetched from - the server or the `created` state if the record is created on the - client. A record can also enter the empty state if the adapter is - unable to locate the record. - @property isEmpty - @type {Boolean} - @readOnly - */ - isEmpty: ember$data$lib$system$model$model$$retrieveFromCurrentState, - /** - If this property is `true` the record is in the `loading` state. A - record enters this state when the store asks the adapter for its - data. It remains in this state until the adapter provides the - requested data. - @property isLoading - @type {Boolean} - @readOnly - */ - isLoading: ember$data$lib$system$model$model$$retrieveFromCurrentState, - /** - If this property is `true` the record is in the `loaded` state. A - record enters this state when its data is populated. Most of a - record's lifecycle is spent inside substates of the `loaded` - state. - Example - ```javascript - var record = store.createRecord('model'); - record.get('isLoaded'); // true - store.find('model', 1).then(function(model) { - model.get('isLoaded'); // true - }); - ``` - @property isLoaded - @type {Boolean} - @readOnly - */ - isLoaded: ember$data$lib$system$model$model$$retrieveFromCurrentState, - /** - If this property is `true` the record is in the `dirty` state. The - record has local changes that have not yet been saved by the - adapter. This includes records that have been created (but not yet - saved) or deleted. - Example - ```javascript - var record = store.createRecord('model'); - record.get('isDirty'); // true - store.find('model', 1).then(function(model) { - model.get('isDirty'); // false - model.set('foo', 'some value'); - model.get('isDirty'); // true - }); - ``` - @property isDirty - @type {Boolean} - @readOnly - */ - isDirty: ember$data$lib$system$model$model$$retrieveFromCurrentState, - /** - If this property is `true` the record is in the `saving` state. A - record enters the saving state when `save` is called, but the - adapter has not yet acknowledged that the changes have been - persisted to the backend. - Example - ```javascript - var record = store.createRecord('model'); - record.get('isSaving'); // false - var promise = record.save(); - record.get('isSaving'); // true - promise.then(function() { - record.get('isSaving'); // false - }); - ``` - @property isSaving - @type {Boolean} - @readOnly - */ - isSaving: ember$data$lib$system$model$model$$retrieveFromCurrentState, - /** - If this property is `true` the record is in the `deleted` state - and has been marked for deletion. When `isDeleted` is true and - `isDirty` is true, the record is deleted locally but the deletion - was not yet persisted. When `isSaving` is true, the change is - in-flight. When both `isDirty` and `isSaving` are false, the - change has persisted. - Example - ```javascript - var record = store.createRecord('model'); - record.get('isDeleted'); // false - record.deleteRecord(); - // Locally deleted - record.get('isDeleted'); // true - record.get('isDirty'); // true - record.get('isSaving'); // false - // Persisting the deletion - var promise = record.save(); - record.get('isDeleted'); // true - record.get('isSaving'); // true - // Deletion Persisted - promise.then(function() { - record.get('isDeleted'); // true - record.get('isSaving'); // false - record.get('isDirty'); // false - }); - ``` - @property isDeleted - @type {Boolean} - @readOnly - */ - isDeleted: ember$data$lib$system$model$model$$retrieveFromCurrentState, - /** - If this property is `true` the record is in the `new` state. A - record will be in the `new` state when it has been created on the - client and the adapter has not yet report that it was successfully - saved. - Example - ```javascript - var record = store.createRecord('model'); - record.get('isNew'); // true - record.save().then(function(model) { - model.get('isNew'); // false - }); - ``` - @property isNew - @type {Boolean} - @readOnly - */ - isNew: ember$data$lib$system$model$model$$retrieveFromCurrentState, - /** - If this property is `true` the record is in the `valid` state. - A record will be in the `valid` state when the adapter did not report any - server-side validation failures. - @property isValid - @type {Boolean} - @readOnly - */ - isValid: ember$data$lib$system$model$model$$retrieveFromCurrentState, - /** - If the record is in the dirty state this property will report what - kind of change has caused it to move into the dirty - state. Possible values are: - - `created` The record has been created by the client and not yet saved to the adapter. - - `updated` The record has been updated by the client and not yet saved to the adapter. - - `deleted` The record has been deleted by the client and not yet saved to the adapter. - Example - ```javascript - var record = store.createRecord('model'); - record.get('dirtyType'); // 'created' - ``` - @property dirtyType - @type {String} - @readOnly - */ - dirtyType: ember$data$lib$system$model$model$$retrieveFromCurrentState, - - /** - If `true` the adapter reported that it was unable to save local - changes to the backend for any reason other than a server-side - validation error. - Example - ```javascript - record.get('isError'); // false - record.set('foo', 'valid value'); - record.save().then(null, function() { - record.get('isError'); // true - }); - ``` - @property isError - @type {Boolean} - @readOnly - */ - isError: false, - - /** - If `true` the store is attempting to reload the record form the adapter. - Example - ```javascript - record.get('isReloading'); // false - record.reload(); - record.get('isReloading'); // true - ``` - @property isReloading - @type {Boolean} - @readOnly - */ - isReloading: false, - - /** - All ember models have an id property. This is an identifier - managed by an external source. These are always coerced to be - strings before being used internally. Note when declaring the - attributes for a model it is an error to declare an id - attribute. - ```javascript - var record = store.createRecord('model'); - record.get('id'); // null - store.find('model', 1).then(function(model) { - model.get('id'); // '1' - }); - ``` - @property id - @type {String} - */ - id: null, - - /** - @property currentState - @private - @type {Object} - */ - - /** - When the record is in the `invalid` state this object will contain - any errors returned by the adapter. When present the errors hash - contains keys corresponding to the invalid property names - and values which are arrays of Javascript objects with two keys: - - `message` A string containing the error message from the backend - - `attribute` The name of the property associated with this error message - ```javascript - record.get('errors.length'); // 0 - record.set('foo', 'invalid value'); - record.save().catch(function() { - record.get('errors').get('foo'); - // [{message: 'foo should be a number.', attribute: 'foo'}] - }); - ``` - The `errors` property us useful for displaying error messages to - the user. - ```handlebars - - {{#each model.errors.username as |error|}} -
    - {{error.message}} -
    - {{/each}} - - {{#each model.errors.email as |error|}} -
    - {{error.message}} -
    - {{/each}} - ``` - You can also access the special `messages` property on the error - object to get an array of all the error strings. - ```handlebars - {{#each model.errors.messages as |message|}} -
    - {{message}} -
    - {{/each}} - ``` - @property errors - @type {DS.Errors} - */ - errors: Ember.computed(function () { - return this._internalModel.getErrors(); - }).readOnly(), - - /** - Create a JSON representation of the record, using the serialization - strategy of the store's adapter. - `serialize` takes an optional hash as a parameter, currently - supported options are: - - `includeId`: `true` if the record's ID should be included in the - JSON representation. - @method serialize - @param {Object} options - @return {Object} an object whose values are primitive JSON values only - */ - serialize: function (options) { - return this.store.serialize(this, options); - }, - - /** - Use [DS.JSONSerializer](DS.JSONSerializer.html) to - get the JSON representation of a record. - `toJSON` takes an optional hash as a parameter, currently - supported options are: - - `includeId`: `true` if the record's ID should be included in the - JSON representation. - @method toJSON - @param {Object} options - @return {Object} A JSON representation of the object. - */ - toJSON: function (options) { - // container is for lazy transform lookups - var serializer = this.store.serializerFor('-default'); - var snapshot = this._internalModel.createSnapshot(); - - return serializer.serialize(snapshot, options); - }, - - /** - Fired when the record is ready to be interacted with, - that is either loaded from the server or created locally. - @event ready - */ - ready: Ember.K, - - /** - Fired when the record is loaded from the server. - @event didLoad - */ - didLoad: Ember.K, - - /** - Fired when the record is updated. - @event didUpdate - */ - didUpdate: Ember.K, - - /** - Fired when a new record is commited to the server. - @event didCreate - */ - didCreate: Ember.K, - - /** - Fired when the record is deleted. - @event didDelete - */ - didDelete: Ember.K, - - /** - Fired when the record becomes invalid. - @event becameInvalid - */ - becameInvalid: Ember.K, - - /** - Fired when the record enters the error state. - @event becameError - */ - becameError: Ember.K, - - /** - Fired when the record is rolled back. - @event rolledBack - */ - rolledBack: Ember.K, - - /** - @property data - @private - @type {Object} - */ - data: Ember.computed.readOnly('_internalModel._data'), - - //TODO Do we want to deprecate these? - /** - @method send - @private - @param {String} name - @param {Object} context - */ - send: function (name, context) { - return this._internalModel.send(name, context); - }, - - /** - @method transitionTo - @private - @param {String} name - */ - transitionTo: function (name) { - return this._internalModel.transitionTo(name); - }, - - /** - Marks the record as deleted but does not save it. You must call - `save` afterwards if you want to persist it. You might use this - method if you want to allow the user to still `rollback()` a - delete after it was made. - Example - ```app/routes/model/delete.js - import Ember from 'ember'; - export default Ember.Route.extend({ - actions: { - softDelete: function() { - this.controller.get('model').deleteRecord(); - }, - confirm: function() { - this.controller.get('model').save(); - }, - undo: function() { - this.controller.get('model').rollback(); - } - } - }); - ``` - @method deleteRecord - */ - deleteRecord: function () { - this._internalModel.deleteRecord(); - }, - - /** - Same as `deleteRecord`, but saves the record immediately. - Example - ```app/routes/model/delete.js - import Ember from 'ember'; - export default Ember.Route.extend({ - actions: { - delete: function() { - var controller = this.controller; - controller.get('model').destroyRecord().then(function() { - controller.transitionToRoute('model.index'); - }); - } - } - }); - ``` - @method destroyRecord - @return {Promise} a promise that will be resolved when the adapter returns - successfully or rejected if the adapter returns with an error. - */ - destroyRecord: function () { - this.deleteRecord(); - return this.save(); - }, - - /** - @method unloadRecord - @private - */ - unloadRecord: function () { - if (this.isDestroyed) { - return; - } - this._internalModel.unloadRecord(); - }, - - /** - @method _notifyProperties - @private - */ - _notifyProperties: function (keys) { - Ember.beginPropertyChanges(); - var key; - for (var i = 0, length = keys.length; i < length; i++) { - key = keys[i]; - this.notifyPropertyChange(key); - } - Ember.endPropertyChanges(); - }, - - /** - Returns an object, whose keys are changed properties, and value is - an [oldProp, newProp] array. - Example - ```app/models/mascot.js - import DS from 'ember-data'; - export default DS.Model.extend({ - name: attr('string') - }); - ``` - ```javascript - var mascot = store.createRecord('mascot'); - mascot.changedAttributes(); // {} - mascot.set('name', 'Tomster'); - mascot.changedAttributes(); // {name: [undefined, 'Tomster']} - ``` - @method changedAttributes - @return {Object} an object, whose keys are changed properties, - and value is an [oldProp, newProp] array. - */ - changedAttributes: function () { - var oldData = ember$data$lib$system$model$model$$get(this._internalModel, '_data'); - var newData = ember$data$lib$system$model$model$$get(this._internalModel, '_attributes'); - var diffData = Ember.create(null); - var prop; - - for (prop in newData) { - diffData[prop] = [oldData[prop], newData[prop]]; - } - - return diffData; - }, - - //TODO discuss with tomhuda about events/hooks - //Bring back as hooks? - /** - @method adapterWillCommit - @private - adapterWillCommit: function() { - this.send('willCommit'); - }, - /** - @method adapterDidDirty - @private - adapterDidDirty: function() { - this.send('becomeDirty'); - this.updateRecordArraysLater(); - }, - */ - - /** - If the model `isDirty` this function will discard any unsaved - changes. If the model `isNew` it will be removed from the store. - Example - ```javascript - record.get('name'); // 'Untitled Document' - record.set('name', 'Doc 1'); - record.get('name'); // 'Doc 1' - record.rollback(); - record.get('name'); // 'Untitled Document' - ``` - @method rollback - */ - rollback: function () { - this._internalModel.rollback(); - }, - - /* - @method _createSnapshot - @private - */ - _createSnapshot: function () { - return this._internalModel.createSnapshot(); - }, - - toStringExtension: function () { - return ember$data$lib$system$model$model$$get(this, 'id'); - }, - - /** - Save the record and persist any changes to the record to an - external source via the adapter. - Example - ```javascript - record.set('name', 'Tomster'); - record.save().then(function() { - // Success callback - }, function() { - // Error callback - }); - ``` - @method save - @return {Promise} a promise that will be resolved when the adapter returns - successfully or rejected if the adapter returns with an error. - */ - save: function () { - var model = this; - return ember$data$lib$system$promise$proxies$$PromiseObject.create({ - promise: this._internalModel.save().then(function () { - return model; - }) - }); - }, - - /** - Reload the record from the adapter. - This will only work if the record has already finished loading - and has not yet been modified (`isLoaded` but not `isDirty`, - or `isSaving`). - Example - ```app/routes/model/view.js - import Ember from 'ember'; - export default Ember.Route.extend({ - actions: { - reload: function() { - this.controller.get('model').reload().then(function(model) { - // do something with the reloaded model - }); - } - } - }); - ``` - @method reload - @return {Promise} a promise that will be resolved with the record when the - adapter returns successfully or rejected if the adapter returns - with an error. - */ - reload: function () { - var model = this; - return ember$data$lib$system$promise$proxies$$PromiseObject.create({ - promise: this._internalModel.reload().then(function () { - return model; - }) - }); - }, - - /** - Override the default event firing from Ember.Evented to - also call methods with the given name. - @method trigger - @private - @param {String} name - */ - trigger: function (name) { - var length = arguments.length; - var args = new Array(length - 1); - - for (var i = 1; i < length; i++) { - args[i - 1] = arguments[i]; - } - - Ember.tryInvoke(this, name, args); - this._super.apply(this, arguments); - }, - - willDestroy: function () { - //TODO Move! - this._internalModel.clearRelationships(); - this._internalModel.recordObjectWillDestroy(); - this._super.apply(this, arguments); - //TODO should we set internalModel to null here? - }, - - // This is a temporary solution until we refactor DS.Model to not - // rely on the data property. - willMergeMixin: function (props) { - var constructor = this.constructor; - }, - - attr: function () { - }, - - belongsTo: function () { - }, - - hasMany: function () { - } - }); - - ember$data$lib$system$model$model$$Model.reopenClass({ - /** - Alias DS.Model's `create` method to `_create`. This allows us to create DS.Model - instances from within the store, but if end users accidentally call `create()` - (instead of `createRecord()`), we can raise an error. - @method _create - @private - @static - */ - _create: ember$data$lib$system$model$model$$Model.create, - - /** - Override the class' `create()` method to raise an error. This - prevents end users from inadvertently calling `create()` instead - of `createRecord()`. The store is still able to create instances - by calling the `_create()` method. To create an instance of a - `DS.Model` use [store.createRecord](DS.Store.html#method_createRecord). - @method create - @private - @static - */ - create: function () { - throw new Ember.Error('You should not call `create` on a model. Instead, call `store.createRecord` with the attributes you would like to set.'); - }, - - /** - Represents the model's class name as a string. This can be used to look up the model through - DS.Store's modelFor method. - `modelName` is generated for you by Ember Data. It will be a lowercased, dasherized string. - For example: - ```javascript - store.modelFor('post').modelName; // 'post' - store.modelFor('blog-post').modelName; // 'blog-post' - ``` - The most common place you'll want to access `modelName` is in your serializer's `payloadKeyFromModelName` method. For example, to change payload - keys to underscore (instead of dasherized), you might use the following code: - ```javascript - export default var PostSerializer = DS.RESTSerializer.extend({ - payloadKeyFromModelName: function(modelName) { - return Ember.String.underscore(modelName); - } - }); - ``` - @property - @type String - @readonly - */ - modelName: null - }); - - var ember$data$lib$system$model$model$$default = ember$data$lib$system$model$model$$Model; - var ember$data$lib$utils$supports$computed$getter$setter$$supportsComputedGetterSetter; - - try { - Ember.computed({ - get: function () {}, - set: function () {} - }); - ember$data$lib$utils$supports$computed$getter$setter$$supportsComputedGetterSetter = true; - } catch (e) { - ember$data$lib$utils$supports$computed$getter$setter$$supportsComputedGetterSetter = false; - } - - var ember$data$lib$utils$supports$computed$getter$setter$$default = ember$data$lib$utils$supports$computed$getter$setter$$supportsComputedGetterSetter; - - var ember$data$lib$utils$computed$polyfill$$computed = Ember.computed; - - var ember$data$lib$utils$computed$polyfill$$default = function () { - var polyfillArguments = []; - var config = arguments[arguments.length - 1]; - - if (typeof config === 'function' || ember$data$lib$utils$supports$computed$getter$setter$$default) { - return ember$data$lib$utils$computed$polyfill$$computed.apply(null, arguments); - } - - for (var i = 0, l = arguments.length - 1; i < l; i++) { - polyfillArguments.push(arguments[i]); - } - - var func; - if (config.set) { - func = function (key, value) { - if (arguments.length > 1) { - return config.set.call(this, key, value); - } else { - return config.get.call(this, key); - } - }; - } else { - func = function (key) { - return config.get.call(this, key); - }; - } - - polyfillArguments.push(func); - - return ember$data$lib$utils$computed$polyfill$$computed.apply(null, polyfillArguments); - }; - - var ember$data$lib$system$model$attributes$$default = ember$data$lib$system$model$attributes$$attr; - - /** - @module ember-data - */ - - var ember$data$lib$system$model$attributes$$get = Ember.get; - - /** - @class Model - @namespace DS - */ - ember$data$lib$system$model$model$$default.reopenClass({ - /** - A map whose keys are the attributes of the model (properties - described by DS.attr) and whose values are the meta object for the - property. - Example - ```app/models/person.js - import DS from 'ember-data'; - export default DS.Model.extend({ - firstName: attr('string'), - lastName: attr('string'), - birthday: attr('date') - }); - ``` - ```javascript - import Ember from 'ember'; - import Person from 'app/models/person'; - var attributes = Ember.get(Person, 'attributes') - attributes.forEach(function(name, meta) { - console.log(name, meta); - }); - // prints: - // firstName {type: "string", isAttribute: true, options: Object, parentType: function, name: "firstName"} - // lastName {type: "string", isAttribute: true, options: Object, parentType: function, name: "lastName"} - // birthday {type: "date", isAttribute: true, options: Object, parentType: function, name: "birthday"} - ``` - @property attributes - @static - @type {Ember.Map} - @readOnly - */ - attributes: Ember.computed(function () { - var map = ember$data$lib$system$map$$Map.create(); - - this.eachComputedProperty(function (name, meta) { - if (meta.isAttribute) { - - meta.name = name; - map.set(name, meta); - } - }); - - return map; - }).readOnly(), - - /** - A map whose keys are the attributes of the model (properties - described by DS.attr) and whose values are type of transformation - applied to each attribute. This map does not include any - attributes that do not have an transformation type. - Example - ```app/models/person.js - import DS from 'ember-data'; - export default DS.Model.extend({ - firstName: attr(), - lastName: attr('string'), - birthday: attr('date') - }); - ``` - ```javascript - import Ember from 'ember'; - import Person from 'app/models/person'; - var transformedAttributes = Ember.get(Person, 'transformedAttributes') - transformedAttributes.forEach(function(field, type) { - console.log(field, type); - }); - // prints: - // lastName string - // birthday date - ``` - @property transformedAttributes - @static - @type {Ember.Map} - @readOnly - */ - transformedAttributes: Ember.computed(function () { - var map = ember$data$lib$system$map$$Map.create(); - - this.eachAttribute(function (key, meta) { - if (meta.type) { - map.set(key, meta.type); - } - }); - - return map; - }).readOnly(), - - /** - Iterates through the attributes of the model, calling the passed function on each - attribute. - The callback method you provide should have the following signature (all - parameters are optional): - ```javascript - function(name, meta); - ``` - - `name` the name of the current property in the iteration - - `meta` the meta object for the attribute property in the iteration - Note that in addition to a callback, you can also pass an optional target - object that will be set as `this` on the context. - Example - ```javascript - import DS from 'ember-data'; - var Person = DS.Model.extend({ - firstName: attr('string'), - lastName: attr('string'), - birthday: attr('date') - }); - Person.eachAttribute(function(name, meta) { - console.log(name, meta); - }); - // prints: - // firstName {type: "string", isAttribute: true, options: Object, parentType: function, name: "firstName"} - // lastName {type: "string", isAttribute: true, options: Object, parentType: function, name: "lastName"} - // birthday {type: "date", isAttribute: true, options: Object, parentType: function, name: "birthday"} - ``` - @method eachAttribute - @param {Function} callback The callback to execute - @param {Object} [binding] the value to which the callback's `this` should be bound - @static - */ - eachAttribute: function (callback, binding) { - ember$data$lib$system$model$attributes$$get(this, "attributes").forEach(function (meta, name) { - callback.call(binding, name, meta); - }, binding); - }, - - /** - Iterates through the transformedAttributes of the model, calling - the passed function on each attribute. Note the callback will not be - called for any attributes that do not have an transformation type. - The callback method you provide should have the following signature (all - parameters are optional): - ```javascript - function(name, type); - ``` - - `name` the name of the current property in the iteration - - `type` a string containing the name of the type of transformed - applied to the attribute - Note that in addition to a callback, you can also pass an optional target - object that will be set as `this` on the context. - Example - ```javascript - import DS from 'ember-data'; - var Person = DS.Model.extend({ - firstName: attr(), - lastName: attr('string'), - birthday: attr('date') - }); - Person.eachTransformedAttribute(function(name, type) { - console.log(name, type); - }); - // prints: - // lastName string - // birthday date - ``` - @method eachTransformedAttribute - @param {Function} callback The callback to execute - @param {Object} [binding] the value to which the callback's `this` should be bound - @static - */ - eachTransformedAttribute: function (callback, binding) { - ember$data$lib$system$model$attributes$$get(this, "transformedAttributes").forEach(function (type, name) { - callback.call(binding, name, type); - }); - } - }); - - ember$data$lib$system$model$model$$default.reopen({ - eachAttribute: function (callback, binding) { - this.constructor.eachAttribute(callback, binding); - } - }); - - function ember$data$lib$system$model$attributes$$getDefaultValue(record, options, key) { - if (typeof options.defaultValue === "function") { - return options.defaultValue.apply(null, arguments); - } else { - return options.defaultValue; - } - } - - function ember$data$lib$system$model$attributes$$hasValue(record, key) { - return key in record._attributes || key in record._inFlightAttributes || key in record._data; - } - - function ember$data$lib$system$model$attributes$$getValue(record, key) { - if (key in record._attributes) { - return record._attributes[key]; - } else if (key in record._inFlightAttributes) { - return record._inFlightAttributes[key]; - } else { - return record._data[key]; - } - } - - /** - `DS.attr` defines an attribute on a [DS.Model](/api/data/classes/DS.Model.html). - By default, attributes are passed through as-is, however you can specify an - optional type to have the value automatically transformed. - Ember Data ships with four basic transform types: `string`, `number`, - `boolean` and `date`. You can define your own transforms by subclassing - [DS.Transform](/api/data/classes/DS.Transform.html). - - Note that you cannot use `attr` to define an attribute of `id`. - - `DS.attr` takes an optional hash as a second parameter, currently - supported options are: - - - `defaultValue`: Pass a string or a function to be called to set the attribute - to a default value if none is supplied. - - Example - - ```app/models/user.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - username: DS.attr('string'), - email: DS.attr('string'), - verified: DS.attr('boolean', {defaultValue: false}) - }); - ``` - - Default value can also be a function. This is useful it you want to return - a new object for each attribute. - - ```app/models/user.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - username: attr('string'), - email: attr('string'), - settings: attr({defaultValue: function() { - return {}; - }}) - }); - ``` - - @namespace - @method attr - @for DS - @param {String} type the attribute type - @param {Object} options a hash of options - @return {Attribute} - */ - function ember$data$lib$system$model$attributes$$attr(type, options) { - if (typeof type === "object") { - options = type; - type = undefined; - } else { - options = options || {}; - } - - var meta = { - type: type, - isAttribute: true, - options: options - }; - - return ember$data$lib$utils$computed$polyfill$$default({ - get: function (key) { - var internalModel = this._internalModel; - if (ember$data$lib$system$model$attributes$$hasValue(internalModel, key)) { - return ember$data$lib$system$model$attributes$$getValue(internalModel, key); - } else { - return ember$data$lib$system$model$attributes$$getDefaultValue(this, options, key); - } - }, - set: function (key, value) { - var internalModel = this._internalModel; - var oldValue = ember$data$lib$system$model$attributes$$getValue(internalModel, key); - - if (value !== oldValue) { - // Add the new value to the changed attributes hash; it will get deleted by - // the 'didSetProperty' handler if it is no different from the original value - internalModel._attributes[key] = value; - - this._internalModel.send("didSetProperty", { - name: key, - oldValue: oldValue, - originalValue: internalModel._data[key], - value: value - }); - } - - return value; - } - }).meta(meta); - } - - var ember$data$lib$system$model$states$$get = Ember.get; - /* - This file encapsulates the various states that a record can transition - through during its lifecycle. - */ - /** - ### State - - Each record has a `currentState` property that explicitly tracks what - state a record is in at any given time. For instance, if a record is - newly created and has not yet been sent to the adapter to be saved, - it would be in the `root.loaded.created.uncommitted` state. If a - record has had local modifications made to it that are in the - process of being saved, the record would be in the - `root.loaded.updated.inFlight` state. (This state paths will be - explained in more detail below.) - - Events are sent by the record or its store to the record's - `currentState` property. How the state reacts to these events is - dependent on which state it is in. In some states, certain events - will be invalid and will cause an exception to be raised. - - States are hierarchical and every state is a substate of the - `RootState`. For example, a record can be in the - `root.deleted.uncommitted` state, then transition into the - `root.deleted.inFlight` state. If a child state does not implement - an event handler, the state manager will attempt to invoke the event - on all parent states until the root state is reached. The state - hierarchy of a record is described in terms of a path string. You - can determine a record's current state by getting the state's - `stateName` property: - - ```javascript - record.get('currentState.stateName'); - //=> "root.created.uncommitted" - ``` - - The hierarchy of valid states that ship with ember data looks like - this: - - ```text - * root - * deleted - * saved - * uncommitted - * inFlight - * empty - * loaded - * created - * uncommitted - * inFlight - * saved - * updated - * uncommitted - * inFlight - * loading - ``` - - The `DS.Model` states are themselves stateless. What that means is - that, the hierarchical states that each of *those* points to is a - shared data structure. For performance reasons, instead of each - record getting its own copy of the hierarchy of states, each record - points to this global, immutable shared instance. How does a state - know which record it should be acting on? We pass the record - instance into the state's event handlers as the first argument. - - The record passed as the first parameter is where you should stash - state about the record if needed; you should never store data on the state - object itself. - - ### Events and Flags - - A state may implement zero or more events and flags. - - #### Events - - Events are named functions that are invoked when sent to a record. The - record will first look for a method with the given name on the - current state. If no method is found, it will search the current - state's parent, and then its grandparent, and so on until reaching - the top of the hierarchy. If the root is reached without an event - handler being found, an exception will be raised. This can be very - helpful when debugging new features. - - Here's an example implementation of a state with a `myEvent` event handler: - - ```javascript - aState: DS.State.create({ - myEvent: function(manager, param) { - console.log("Received myEvent with", param); - } - }) - ``` - - To trigger this event: - - ```javascript - record.send('myEvent', 'foo'); - //=> "Received myEvent with foo" - ``` - - Note that an optional parameter can be sent to a record's `send()` method, - which will be passed as the second parameter to the event handler. - - Events should transition to a different state if appropriate. This can be - done by calling the record's `transitionTo()` method with a path to the - desired state. The state manager will attempt to resolve the state path - relative to the current state. If no state is found at that path, it will - attempt to resolve it relative to the current state's parent, and then its - parent, and so on until the root is reached. For example, imagine a hierarchy - like this: - - * created - * uncommitted <-- currentState - * inFlight - * updated - * inFlight - - If we are currently in the `uncommitted` state, calling - `transitionTo('inFlight')` would transition to the `created.inFlight` state, - while calling `transitionTo('updated.inFlight')` would transition to - the `updated.inFlight` state. - - Remember that *only events* should ever cause a state transition. You should - never call `transitionTo()` from outside a state's event handler. If you are - tempted to do so, create a new event and send that to the state manager. - - #### Flags - - Flags are Boolean values that can be used to introspect a record's current - state in a more user-friendly way than examining its state path. For example, - instead of doing this: - - ```javascript - var statePath = record.get('stateManager.currentPath'); - if (statePath === 'created.inFlight') { - doSomething(); - } - ``` - - You can say: - - ```javascript - if (record.get('isNew') && record.get('isSaving')) { - doSomething(); - } - ``` - - If your state does not set a value for a given flag, the value will - be inherited from its parent (or the first place in the state hierarchy - where it is defined). - - The current set of flags are defined below. If you want to add a new flag, - in addition to the area below, you will also need to declare it in the - `DS.Model` class. - - - * [isEmpty](DS.Model.html#property_isEmpty) - * [isLoading](DS.Model.html#property_isLoading) - * [isLoaded](DS.Model.html#property_isLoaded) - * [isDirty](DS.Model.html#property_isDirty) - * [isSaving](DS.Model.html#property_isSaving) - * [isDeleted](DS.Model.html#property_isDeleted) - * [isNew](DS.Model.html#property_isNew) - * [isValid](DS.Model.html#property_isValid) - - @namespace DS - @class RootState - */ - - function ember$data$lib$system$model$states$$didSetProperty(internalModel, context) { - if (context.value === context.originalValue) { - delete internalModel._attributes[context.name]; - internalModel.send('propertyWasReset', context.name); - } else if (context.value !== context.oldValue) { - internalModel.send('becomeDirty'); - } - - internalModel.updateRecordArraysLater(); - } - - // Implementation notes: - // - // Each state has a boolean value for all of the following flags: - // - // * isLoaded: The record has a populated `data` property. When a - // record is loaded via `store.find`, `isLoaded` is false - // until the adapter sets it. When a record is created locally, - // its `isLoaded` property is always true. - // * isDirty: The record has local changes that have not yet been - // saved by the adapter. This includes records that have been - // created (but not yet saved) or deleted. - // * isSaving: The record has been committed, but - // the adapter has not yet acknowledged that the changes have - // been persisted to the backend. - // * isDeleted: The record was marked for deletion. When `isDeleted` - // is true and `isDirty` is true, the record is deleted locally - // but the deletion was not yet persisted. When `isSaving` is - // true, the change is in-flight. When both `isDirty` and - // `isSaving` are false, the change has persisted. - // * isError: The adapter reported that it was unable to save - // local changes to the backend. This may also result in the - // record having its `isValid` property become false if the - // adapter reported that server-side validations failed. - // * isNew: The record was created on the client and the adapter - // did not yet report that it was successfully saved. - // * isValid: The adapter did not report any server-side validation - // failures. - - // The dirty state is a abstract state whose functionality is - // shared between the `created` and `updated` states. - // - // The deleted state shares the `isDirty` flag with the - // subclasses of `DirtyState`, but with a very different - // implementation. - // - // Dirty states have three child states: - // - // `uncommitted`: the store has not yet handed off the record - // to be saved. - // `inFlight`: the store has handed off the record to be saved, - // but the adapter has not yet acknowledged success. - // `invalid`: the record has invalid information and cannot be - // send to the adapter yet. - var ember$data$lib$system$model$states$$DirtyState = { - initialState: 'uncommitted', - - // FLAGS - isDirty: true, - - // SUBSTATES - - // When a record first becomes dirty, it is `uncommitted`. - // This means that there are local pending changes, but they - // have not yet begun to be saved, and are not invalid. - uncommitted: { - // EVENTS - didSetProperty: ember$data$lib$system$model$states$$didSetProperty, - - //TODO(Igor) reloading now triggers a - //loadingData event, though it seems fine? - loadingData: Ember.K, - - propertyWasReset: function (internalModel, name) { - var length = Ember.keys(internalModel._attributes).length; - var stillDirty = length > 0; - - if (!stillDirty) { - internalModel.send('rolledBack'); - } - }, - - pushedData: Ember.K, - - becomeDirty: Ember.K, - - willCommit: function (internalModel) { - internalModel.transitionTo('inFlight'); - }, - - reloadRecord: function (internalModel, resolve) { - resolve(internalModel.store.reloadRecord(internalModel)); - }, - - rolledBack: function (internalModel) { - internalModel.transitionTo('loaded.saved'); - }, - - becameInvalid: function (internalModel) { - internalModel.transitionTo('invalid'); - }, - - rollback: function (internalModel) { - internalModel.rollback(); - internalModel.triggerLater('ready'); - } - }, - - // Once a record has been handed off to the adapter to be - // saved, it is in the 'in flight' state. Changes to the - // record cannot be made during this window. - inFlight: { - // FLAGS - isSaving: true, - - // EVENTS - didSetProperty: ember$data$lib$system$model$states$$didSetProperty, - becomeDirty: Ember.K, - pushedData: Ember.K, - - unloadRecord: ember$data$lib$system$model$states$$assertAgainstUnloadRecord, - - // TODO: More robust semantics around save-while-in-flight - willCommit: Ember.K, - - didCommit: function (internalModel) { - var dirtyType = ember$data$lib$system$model$states$$get(this, 'dirtyType'); - - internalModel.transitionTo('saved'); - internalModel.send('invokeLifecycleCallbacks', dirtyType); - }, - - becameInvalid: function (internalModel) { - internalModel.transitionTo('invalid'); - internalModel.send('invokeLifecycleCallbacks'); - }, - - becameError: function (internalModel) { - internalModel.transitionTo('uncommitted'); - internalModel.triggerLater('becameError', internalModel); - } - }, - - // A record is in the `invalid` if the adapter has indicated - // the the record failed server-side invalidations. - invalid: { - // FLAGS - isValid: false, - - // EVENTS - deleteRecord: function (internalModel) { - internalModel.transitionTo('deleted.uncommitted'); - internalModel.disconnectRelationships(); - }, - - didSetProperty: function (internalModel, context) { - internalModel.getErrors().remove(context.name); - - ember$data$lib$system$model$states$$didSetProperty(internalModel, context); - }, - - becomeDirty: Ember.K, - - pushedData: Ember.K, - - willCommit: function (internalModel) { - internalModel.getErrors().clear(); - internalModel.transitionTo('inFlight'); - }, - - rolledBack: function (internalModel) { - internalModel.getErrors().clear(); - internalModel.triggerLater('ready'); - }, - - becameValid: function (internalModel) { - internalModel.transitionTo('uncommitted'); - }, - - invokeLifecycleCallbacks: function (internalModel) { - internalModel.triggerLater('becameInvalid', internalModel); - }, - - exit: function (internalModel) { - internalModel._inFlightAttributes = Ember.create(null); - } - } - }; - - // The created and updated states are created outside the state - // chart so we can reopen their substates and add mixins as - // necessary. - - function ember$data$lib$system$model$states$$deepClone(object) { - var clone = {}; - var value; - - for (var prop in object) { - value = object[prop]; - if (value && typeof value === 'object') { - clone[prop] = ember$data$lib$system$model$states$$deepClone(value); - } else { - clone[prop] = value; - } - } - - return clone; - } - - function ember$data$lib$system$model$states$$mixin(original, hash) { - for (var prop in hash) { - original[prop] = hash[prop]; - } - - return original; - } - - function ember$data$lib$system$model$states$$dirtyState(options) { - var newState = ember$data$lib$system$model$states$$deepClone(ember$data$lib$system$model$states$$DirtyState); - return ember$data$lib$system$model$states$$mixin(newState, options); - } - - var ember$data$lib$system$model$states$$createdState = ember$data$lib$system$model$states$$dirtyState({ - dirtyType: 'created', - // FLAGS - isNew: true - }); - - ember$data$lib$system$model$states$$createdState.invalid.rolledBack = function (internalModel) { - internalModel.transitionTo('deleted.saved'); - }; - ember$data$lib$system$model$states$$createdState.uncommitted.rolledBack = function (internalModel) { - internalModel.transitionTo('deleted.saved'); - }; - - var ember$data$lib$system$model$states$$updatedState = ember$data$lib$system$model$states$$dirtyState({ - dirtyType: 'updated' - }); - - ember$data$lib$system$model$states$$createdState.uncommitted.deleteRecord = function (internalModel) { - internalModel.disconnectRelationships(); - internalModel.transitionTo('deleted.saved'); - internalModel.send('invokeLifecycleCallbacks'); - }; - - ember$data$lib$system$model$states$$createdState.uncommitted.rollback = function (internalModel) { - ember$data$lib$system$model$states$$DirtyState.uncommitted.rollback.apply(this, arguments); - internalModel.transitionTo('deleted.saved'); - }; - - ember$data$lib$system$model$states$$createdState.uncommitted.pushedData = function (internalModel) { - internalModel.transitionTo('loaded.updated.uncommitted'); - internalModel.triggerLater('didLoad'); - }; - - ember$data$lib$system$model$states$$createdState.uncommitted.propertyWasReset = Ember.K; - - function ember$data$lib$system$model$states$$assertAgainstUnloadRecord(internalModel) { - } - - ember$data$lib$system$model$states$$updatedState.inFlight.unloadRecord = ember$data$lib$system$model$states$$assertAgainstUnloadRecord; - - ember$data$lib$system$model$states$$updatedState.uncommitted.deleteRecord = function (internalModel) { - internalModel.transitionTo('deleted.uncommitted'); - internalModel.disconnectRelationships(); - }; - - var ember$data$lib$system$model$states$$RootState = { - // FLAGS - isEmpty: false, - isLoading: false, - isLoaded: false, - isDirty: false, - isSaving: false, - isDeleted: false, - isNew: false, - isValid: true, - - // DEFAULT EVENTS - - // Trying to roll back if you're not in the dirty state - // doesn't change your state. For example, if you're in the - // in-flight state, rolling back the record doesn't move - // you out of the in-flight state. - rolledBack: Ember.K, - unloadRecord: function (internalModel) { - // clear relationships before moving to deleted state - // otherwise it fails - internalModel.clearRelationships(); - internalModel.transitionTo('deleted.saved'); - }, - - propertyWasReset: Ember.K, - - // SUBSTATES - - // A record begins its lifecycle in the `empty` state. - // If its data will come from the adapter, it will - // transition into the `loading` state. Otherwise, if - // the record is being created on the client, it will - // transition into the `created` state. - empty: { - isEmpty: true, - - // EVENTS - loadingData: function (internalModel, promise) { - internalModel._loadingPromise = promise; - internalModel.transitionTo('loading'); - }, - - loadedData: function (internalModel) { - internalModel.transitionTo('loaded.created.uncommitted'); - internalModel.triggerLater('ready'); - }, - - pushedData: function (internalModel) { - internalModel.transitionTo('loaded.saved'); - internalModel.triggerLater('didLoad'); - internalModel.triggerLater('ready'); - } - }, - - // A record enters this state when the store asks - // the adapter for its data. It remains in this state - // until the adapter provides the requested data. - // - // Usually, this process is asynchronous, using an - // XHR to retrieve the data. - loading: { - // FLAGS - isLoading: true, - - exit: function (internalModel) { - internalModel._loadingPromise = null; - }, - - // EVENTS - pushedData: function (internalModel) { - internalModel.transitionTo('loaded.saved'); - internalModel.triggerLater('didLoad'); - internalModel.triggerLater('ready'); - //TODO this seems out of place here - internalModel.didCleanError(); - }, - - becameError: function (internalModel) { - internalModel.triggerLater('becameError', internalModel); - }, - - notFound: function (internalModel) { - internalModel.transitionTo('empty'); - } - }, - - // A record enters this state when its data is populated. - // Most of a record's lifecycle is spent inside substates - // of the `loaded` state. - loaded: { - initialState: 'saved', - - // FLAGS - isLoaded: true, - - //TODO(Igor) Reloading now triggers a loadingData event, - //but it should be ok? - loadingData: Ember.K, - - // SUBSTATES - - // If there are no local changes to a record, it remains - // in the `saved` state. - saved: { - setup: function (internalModel) { - var attrs = internalModel._attributes; - var isDirty = Ember.keys(attrs).length > 0; - - if (isDirty) { - internalModel.adapterDidDirty(); - } - }, - - // EVENTS - didSetProperty: ember$data$lib$system$model$states$$didSetProperty, - - pushedData: Ember.K, - - becomeDirty: function (internalModel) { - internalModel.transitionTo('updated.uncommitted'); - }, - - willCommit: function (internalModel) { - internalModel.transitionTo('updated.inFlight'); - }, - - reloadRecord: function (internalModel, resolve) { - resolve(internalModel.store.reloadRecord(internalModel)); - }, - - deleteRecord: function (internalModel) { - internalModel.transitionTo('deleted.uncommitted'); - internalModel.disconnectRelationships(); - }, - - unloadRecord: function (internalModel) { - // clear relationships before moving to deleted state - // otherwise it fails - internalModel.clearRelationships(); - internalModel.transitionTo('deleted.saved'); - }, - - didCommit: function (internalModel) { - internalModel.send('invokeLifecycleCallbacks', ember$data$lib$system$model$states$$get(internalModel, 'lastDirtyType')); - }, - - // loaded.saved.notFound would be triggered by a failed - // `reload()` on an unchanged record - notFound: Ember.K - - }, - - // A record is in this state after it has been locally - // created but before the adapter has indicated that - // it has been saved. - created: ember$data$lib$system$model$states$$createdState, - - // A record is in this state if it has already been - // saved to the server, but there are new local changes - // that have not yet been saved. - updated: ember$data$lib$system$model$states$$updatedState - }, - - // A record is in this state if it was deleted from the store. - deleted: { - initialState: 'uncommitted', - dirtyType: 'deleted', - - // FLAGS - isDeleted: true, - isLoaded: true, - isDirty: true, - - // TRANSITIONS - setup: function (internalModel) { - internalModel.updateRecordArrays(); - }, - - // SUBSTATES - - // When a record is deleted, it enters the `start` - // state. It will exit this state when the record - // starts to commit. - uncommitted: { - - // EVENTS - - willCommit: function (internalModel) { - internalModel.transitionTo('inFlight'); - }, - - rollback: function (internalModel) { - internalModel.rollback(); - internalModel.triggerLater('ready'); - }, - - pushedData: Ember.K, - becomeDirty: Ember.K, - deleteRecord: Ember.K, - - rolledBack: function (internalModel) { - internalModel.transitionTo('loaded.saved'); - internalModel.triggerLater('ready'); - } - }, - - // After a record starts committing, but - // before the adapter indicates that the deletion - // has saved to the server, a record is in the - // `inFlight` substate of `deleted`. - inFlight: { - // FLAGS - isSaving: true, - - // EVENTS - - unloadRecord: ember$data$lib$system$model$states$$assertAgainstUnloadRecord, - - // TODO: More robust semantics around save-while-in-flight - willCommit: Ember.K, - didCommit: function (internalModel) { - internalModel.transitionTo('saved'); - - internalModel.send('invokeLifecycleCallbacks'); - }, - - becameError: function (internalModel) { - internalModel.transitionTo('uncommitted'); - internalModel.triggerLater('becameError', internalModel); - }, - - becameInvalid: function (internalModel) { - internalModel.transitionTo('invalid'); - internalModel.triggerLater('becameInvalid', internalModel); - } - }, - - // Once the adapter indicates that the deletion has - // been saved, the record enters the `saved` substate - // of `deleted`. - saved: { - // FLAGS - isDirty: false, - - setup: function (internalModel) { - var store = internalModel.store; - store._dematerializeRecord(internalModel); - }, - - invokeLifecycleCallbacks: function (internalModel) { - internalModel.triggerLater('didDelete', internalModel); - internalModel.triggerLater('didCommit', internalModel); - }, - - willCommit: Ember.K, - - didCommit: Ember.K - }, - - invalid: { - isValid: false, - - didSetProperty: function (internalModel, context) { - internalModel.getErrors().remove(context.name); - - ember$data$lib$system$model$states$$didSetProperty(internalModel, context); - }, - - deleteRecord: Ember.K, - becomeDirty: Ember.K, - willCommit: Ember.K, - - rolledBack: function (internalModel) { - internalModel.getErrors().clear(); - internalModel.transitionTo('loaded.saved'); - internalModel.triggerLater('ready'); - }, - - becameValid: function (internalModel) { - internalModel.transitionTo('uncommitted'); - } - - } - }, - - invokeLifecycleCallbacks: function (internalModel, dirtyType) { - if (dirtyType === 'created') { - internalModel.triggerLater('didCreate', internalModel); - } else { - internalModel.triggerLater('didUpdate', internalModel); - } - - internalModel.triggerLater('didCommit', internalModel); - } - }; - - function ember$data$lib$system$model$states$$wireState(object, parent, name) { - /*jshint proto:true*/ - // TODO: Use Object.create and copy instead - object = ember$data$lib$system$model$states$$mixin(parent ? Ember.create(parent) : {}, object); - object.parentState = parent; - object.stateName = name; - - for (var prop in object) { - if (!object.hasOwnProperty(prop) || prop === 'parentState' || prop === 'stateName') { - continue; - } - if (typeof object[prop] === 'object') { - object[prop] = ember$data$lib$system$model$states$$wireState(object[prop], object, name + '.' + prop); - } - } - - return object; - } - - ember$data$lib$system$model$states$$RootState = ember$data$lib$system$model$states$$wireState(ember$data$lib$system$model$states$$RootState, null, 'root'); - - var ember$data$lib$system$model$states$$default = ember$data$lib$system$model$states$$RootState; - - var ember$data$lib$system$model$errors$$get = Ember.get; - var ember$data$lib$system$model$errors$$isEmpty = Ember.isEmpty; - var ember$data$lib$system$model$errors$$map = Ember.EnumerableUtils.map; - - var ember$data$lib$system$model$errors$$default = Ember.Object.extend(Ember.Enumerable, Ember.Evented, { - /** - Register with target handler - @method registerHandlers - @param {Object} target - @param {Function} becameInvalid - @param {Function} becameValid - */ - registerHandlers: function (target, becameInvalid, becameValid) { - this.on('becameInvalid', target, becameInvalid); - this.on('becameValid', target, becameValid); - }, - - /** - @property errorsByAttributeName - @type {Ember.MapWithDefault} - @private - */ - errorsByAttributeName: Ember.reduceComputed('content', { - initialValue: function () { - return ember$data$lib$system$map$$MapWithDefault.create({ - defaultValue: function () { - return Ember.A(); - } - }); - }, - - addedItem: function (errors, error) { - errors.get(error.attribute).pushObject(error); - - return errors; - }, - - removedItem: function (errors, error) { - errors.get(error.attribute).removeObject(error); - - return errors; - } - }), - - /** - Returns errors for a given attribute - ```javascript - var user = store.createRecord('user', { - username: 'tomster', - email: 'invalidEmail' - }); - user.save().catch(function(){ - user.get('errors').errorsFor('email'); // returns: - // [{attribute: "email", message: "Doesn't look like a valid email."}] - }); - ``` - @method errorsFor - @param {String} attribute - @return {Array} - */ - errorsFor: function (attribute) { - return ember$data$lib$system$model$errors$$get(this, 'errorsByAttributeName').get(attribute); - }, - - /** - An array containing all of the error messages for this - record. This is useful for displaying all errors to the user. - ```handlebars - {{#each model.errors.messages as |message|}} -
    - {{message}} -
    - {{/each}} - ``` - @property messages - @type {Array} - */ - messages: Ember.computed.mapBy('content', 'message'), - - /** - @property content - @type {Array} - @private - */ - content: Ember.computed(function () { - return Ember.A(); - }), - - /** - @method unknownProperty - @private - */ - unknownProperty: function (attribute) { - var errors = this.errorsFor(attribute); - if (ember$data$lib$system$model$errors$$isEmpty(errors)) { - return null; - } - return errors; - }, - - /** - @method nextObject - @private - */ - nextObject: function (index, previousObject, context) { - return ember$data$lib$system$model$errors$$get(this, 'content').objectAt(index); - }, - - /** - Total number of errors. - @property length - @type {Number} - @readOnly - */ - length: Ember.computed.oneWay('content.length').readOnly(), - - /** - @property isEmpty - @type {Boolean} - @readOnly - */ - isEmpty: Ember.computed.not('length').readOnly(), - - /** - Adds error messages to a given attribute and sends - `becameInvalid` event to the record. - Example: - ```javascript - if (!user.get('username') { - user.get('errors').add('username', 'This field is required'); - } - ``` - @method add - @param {String} attribute - @param {(Array|String)} messages - */ - add: function (attribute, messages) { - var wasEmpty = ember$data$lib$system$model$errors$$get(this, 'isEmpty'); - - messages = this._findOrCreateMessages(attribute, messages); - ember$data$lib$system$model$errors$$get(this, 'content').addObjects(messages); - - this.notifyPropertyChange(attribute); - this.enumerableContentDidChange(); - - if (wasEmpty && !ember$data$lib$system$model$errors$$get(this, 'isEmpty')) { - this.trigger('becameInvalid'); - } - }, - - /** - @method _findOrCreateMessages - @private - */ - _findOrCreateMessages: function (attribute, messages) { - var errors = this.errorsFor(attribute); - - return ember$data$lib$system$model$errors$$map(Ember.makeArray(messages), function (message) { - return errors.findBy('message', message) || { - attribute: attribute, - message: message - }; - }); - }, - - /** - Removes all error messages from the given attribute and sends - `becameValid` event to the record if there no more errors left. - Example: - ```app/models/user.js - import DS from 'ember-data'; - export default DS.Model.extend({ - email: DS.attr('string'), - twoFactorAuth: DS.attr('boolean'), - phone: DS.attr('string') - }); - ``` - ```app/routes/user/edit.js - import Ember from 'ember'; - export default Ember.Route.extend({ - actions: { - save: function(user) { - if (!user.get('twoFactorAuth')) { - user.get('errors').remove('phone'); - } - user.save(); - } - } - }); - ``` - @method remove - @param {String} attribute - */ - remove: function (attribute) { - if (ember$data$lib$system$model$errors$$get(this, 'isEmpty')) { - return; - } - - var content = ember$data$lib$system$model$errors$$get(this, 'content').rejectBy('attribute', attribute); - ember$data$lib$system$model$errors$$get(this, 'content').setObjects(content); - - this.notifyPropertyChange(attribute); - this.enumerableContentDidChange(); - - if (ember$data$lib$system$model$errors$$get(this, 'isEmpty')) { - this.trigger('becameValid'); - } - }, - - /** - Removes all error messages and sends `becameValid` event - to the record. - Example: - ```app/routes/user/edit.js - import Ember from 'ember'; - export default Ember.Route.extend({ - actions: { - retrySave: function(user) { - user.get('errors').clear(); - user.save(); - } - } - }); - ``` - @method clear - */ - clear: function () { - if (ember$data$lib$system$model$errors$$get(this, 'isEmpty')) { - return; - } - - ember$data$lib$system$model$errors$$get(this, 'content').clear(); - this.enumerableContentDidChange(); - - this.trigger('becameValid'); - }, - - /** - Checks if there is error messages for the given attribute. - ```app/routes/user/edit.js - import Ember from 'ember'; - export default Ember.Route.extend({ - actions: { - save: function(user) { - if (user.get('errors').has('email')) { - return alert('Please update your email before attempting to save.'); - } - user.save(); - } - } - }); - ``` - @method has - @param {String} attribute - @return {Boolean} true if there some errors on given attribute - */ - has: function (attribute) { - return !ember$data$lib$system$model$errors$$isEmpty(this.errorsFor(attribute)); - } - }); - - var ember$data$lib$system$model$$default = ember$data$lib$system$model$model$$default; - var ember$data$lib$system$debug$debug$adapter$$get = Ember.get; - var ember$data$lib$system$debug$debug$adapter$$capitalize = Ember.String.capitalize; - var ember$data$lib$system$debug$debug$adapter$$underscore = Ember.String.underscore; - var ember$data$lib$system$debug$debug$adapter$$_Ember = Ember; - var ember$data$lib$system$debug$debug$adapter$$assert = ember$data$lib$system$debug$debug$adapter$$_Ember.assert; - - var ember$data$lib$system$debug$debug$adapter$$default = Ember.DataAdapter.extend({ - getFilters: function () { - return [{ name: 'isNew', desc: 'New' }, { name: 'isModified', desc: 'Modified' }, { name: 'isClean', desc: 'Clean' }]; - }, - - detect: function (typeClass) { - return typeClass !== ember$data$lib$system$model$$default && ember$data$lib$system$model$$default.detect(typeClass); - }, - - columnsForType: function (typeClass) { - var columns = [{ - name: 'id', - desc: 'Id' - }]; - var count = 0; - var self = this; - ember$data$lib$system$debug$debug$adapter$$get(typeClass, 'attributes').forEach(function (meta, name) { - if (count++ > self.attributeLimit) { - return false; - } - var desc = ember$data$lib$system$debug$debug$adapter$$capitalize(ember$data$lib$system$debug$debug$adapter$$underscore(name).replace('_', ' ')); - columns.push({ name: name, desc: desc }); - }); - return columns; - }, - - getRecords: function (modelClass, modelName) { - if (arguments.length < 2) { - // Legacy Ember.js < 1.13 support - var containerKey = modelClass._debugContainerKey; - if (containerKey) { - var match = containerKey.match(/model:(.*)/); - if (match) { - modelName = match[1]; - } - } - } - ember$data$lib$system$debug$debug$adapter$$assert('Cannot find model name. Please upgrade to Ember.js >= 1.13 for Ember Inspector support', !!modelName); - return this.get('store').all(modelName); - }, - - getRecordColumnValues: function (record) { - var self = this; - var count = 0; - var columnValues = { id: ember$data$lib$system$debug$debug$adapter$$get(record, 'id') }; - - record.eachAttribute(function (key) { - if (count++ > self.attributeLimit) { - return false; - } - var value = ember$data$lib$system$debug$debug$adapter$$get(record, key); - columnValues[key] = value; - }); - return columnValues; - }, - - getRecordKeywords: function (record) { - var keywords = []; - var keys = Ember.A(['id']); - record.eachAttribute(function (key) { - keys.push(key); - }); - keys.forEach(function (key) { - keywords.push(ember$data$lib$system$debug$debug$adapter$$get(record, key)); - }); - return keywords; - }, - - getRecordFilterValues: function (record) { - return { - isNew: record.get('isNew'), - isModified: record.get('isDirty') && !record.get('isNew'), - isClean: !record.get('isDirty') - }; - }, - - getRecordColor: function (record) { - var color = 'black'; - if (record.get('isNew')) { - color = 'green'; - } else if (record.get('isDirty')) { - color = 'blue'; - } - return color; - }, - - observeRecord: function (record, recordUpdated) { - var releaseMethods = Ember.A(); - var self = this; - var keysToObserve = Ember.A(['id', 'isNew', 'isDirty']); - - record.eachAttribute(function (key) { - keysToObserve.push(key); - }); - - keysToObserve.forEach(function (key) { - var handler = function () { - recordUpdated(self.wrapRecord(record)); - }; - Ember.addObserver(record, key, handler); - releaseMethods.push(function () { - Ember.removeObserver(record, key, handler); - }); - }); - - var release = function () { - releaseMethods.forEach(function (fn) { - fn(); - }); - }; - - return release; - } - - }); - - var ember$data$lib$initializers$data$adapter$$default = ember$data$lib$initializers$data$adapter$$initializeDebugAdapter; - - /** - Configures a registry with injections on Ember applications - for the Ember-Data store. Accepts an optional namespace argument. - - @method initializeStoreInjections - @param {Ember.Registry} registry - */ - function ember$data$lib$initializers$data$adapter$$initializeDebugAdapter(registry) { - registry.register("data-adapter:main", ember$data$lib$system$debug$debug$adapter$$default); - } - var ember$data$lib$system$store$common$$get = Ember.get; - function ember$data$lib$system$store$common$$_bind(fn) { - var args = Array.prototype.slice.call(arguments, 1); - - return function () { - return fn.apply(undefined, args); - }; - } - - function ember$data$lib$system$store$common$$_guard(promise, test) { - var guarded = promise["finally"](function () { - if (!test()) { - guarded._subscribers.length = 0; - } - }); - - return guarded; - } - - function ember$data$lib$system$store$common$$_objectIsAlive(object) { - return !(ember$data$lib$system$store$common$$get(object, "isDestroyed") || ember$data$lib$system$store$common$$get(object, "isDestroying")); - } - - function ember$data$lib$system$store$serializers$$serializerForAdapter(store, adapter, type) { - var serializer = adapter.serializer; - - if (serializer === undefined) { - serializer = store.serializerFor(type); - } - - if (serializer === null || serializer === undefined) { - serializer = { - extract: function (store, type, payload) { - return payload; - } - }; - } - - return serializer; - } - - var ember$data$lib$system$store$finders$$Promise = Ember.RSVP.Promise; - var ember$data$lib$system$store$finders$$map = Ember.EnumerableUtils.map; - function ember$data$lib$system$store$finders$$_find(adapter, store, typeClass, id, internalModel) { - var snapshot = internalModel.createSnapshot(); - var promise = adapter.find(store, typeClass, id, snapshot); - var serializer = ember$data$lib$system$store$serializers$$serializerForAdapter(store, adapter, internalModel.type.modelName); - var label = "DS: Handle Adapter#find of " + typeClass + " with id: " + id; - - promise = ember$data$lib$system$store$finders$$Promise.cast(promise, label); - promise = ember$data$lib$system$store$common$$_guard(promise, ember$data$lib$system$store$common$$_bind(ember$data$lib$system$store$common$$_objectIsAlive, store)); - - return promise.then(function (adapterPayload) { - return store._adapterRun(function () { - var payload = serializer.extract(store, typeClass, adapterPayload, id, "find"); - - //TODO Optimize - var record = store.push(typeClass.modelName, payload); - return record._internalModel; - }); - }, function (error) { - internalModel.notFound(); - if (internalModel.isEmpty()) { - internalModel.unloadRecord(); - } - - throw error; - }, "DS: Extract payload of '" + typeClass + "'"); - } - - function ember$data$lib$system$store$finders$$_findMany(adapter, store, typeClass, ids, internalModels) { - var snapshots = Ember.A(internalModels).invoke("createSnapshot"); - var promise = adapter.findMany(store, typeClass, ids, snapshots); - var serializer = ember$data$lib$system$store$serializers$$serializerForAdapter(store, adapter, typeClass.modelName); - var label = "DS: Handle Adapter#findMany of " + typeClass; - - if (promise === undefined) { - throw new Error("adapter.findMany returned undefined, this was very likely a mistake"); - } - - promise = ember$data$lib$system$store$finders$$Promise.cast(promise, label); - promise = ember$data$lib$system$store$common$$_guard(promise, ember$data$lib$system$store$common$$_bind(ember$data$lib$system$store$common$$_objectIsAlive, store)); - - return promise.then(function (adapterPayload) { - return store._adapterRun(function () { - var payload = serializer.extract(store, typeClass, adapterPayload, null, "findMany"); - - - //TODO Optimize, no need to materialize here - var records = store.pushMany(typeClass.modelName, payload); - return ember$data$lib$system$store$finders$$map(records, function (record) { - return record._internalModel; - }); - }); - }, null, "DS: Extract payload of " + typeClass); - } - - function ember$data$lib$system$store$finders$$_findHasMany(adapter, store, internalModel, link, relationship) { - var snapshot = internalModel.createSnapshot(); - var typeClass = store.modelFor(relationship.type); - var promise = adapter.findHasMany(store, snapshot, link, relationship); - var serializer = ember$data$lib$system$store$serializers$$serializerForAdapter(store, adapter, relationship.type); - var label = "DS: Handle Adapter#findHasMany of " + internalModel + " : " + relationship.type; - - promise = ember$data$lib$system$store$finders$$Promise.cast(promise, label); - promise = ember$data$lib$system$store$common$$_guard(promise, ember$data$lib$system$store$common$$_bind(ember$data$lib$system$store$common$$_objectIsAlive, store)); - promise = ember$data$lib$system$store$common$$_guard(promise, ember$data$lib$system$store$common$$_bind(ember$data$lib$system$store$common$$_objectIsAlive, internalModel)); - - return promise.then(function (adapterPayload) { - return store._adapterRun(function () { - var payload = serializer.extract(store, typeClass, adapterPayload, null, "findHasMany"); - - - //TODO Use a non record creating push - var records = store.pushMany(relationship.type, payload); - return ember$data$lib$system$store$finders$$map(records, function (record) { - return record._internalModel; - }); - }); - }, null, "DS: Extract payload of " + internalModel + " : hasMany " + relationship.type); - } - - function ember$data$lib$system$store$finders$$_findBelongsTo(adapter, store, internalModel, link, relationship) { - var snapshot = internalModel.createSnapshot(); - var typeClass = store.modelFor(relationship.type); - var promise = adapter.findBelongsTo(store, snapshot, link, relationship); - var serializer = ember$data$lib$system$store$serializers$$serializerForAdapter(store, adapter, relationship.type); - var label = "DS: Handle Adapter#findBelongsTo of " + internalModel + " : " + relationship.type; - - promise = ember$data$lib$system$store$finders$$Promise.cast(promise, label); - promise = ember$data$lib$system$store$common$$_guard(promise, ember$data$lib$system$store$common$$_bind(ember$data$lib$system$store$common$$_objectIsAlive, store)); - promise = ember$data$lib$system$store$common$$_guard(promise, ember$data$lib$system$store$common$$_bind(ember$data$lib$system$store$common$$_objectIsAlive, internalModel)); - - return promise.then(function (adapterPayload) { - return store._adapterRun(function () { - var payload = serializer.extract(store, typeClass, adapterPayload, null, "findBelongsTo"); - - if (!payload) { - return null; - } - - var record = store.push(relationship.type, payload); - //TODO Optimize - return record._internalModel; - }); - }, null, "DS: Extract payload of " + internalModel + " : " + relationship.type); - } - - function ember$data$lib$system$store$finders$$_findAll(adapter, store, typeClass, sinceToken) { - var promise = adapter.findAll(store, typeClass, sinceToken); - var modelName = typeClass.modelName; - var serializer = ember$data$lib$system$store$serializers$$serializerForAdapter(store, adapter, modelName); - var label = "DS: Handle Adapter#findAll of " + typeClass; - - promise = ember$data$lib$system$store$finders$$Promise.cast(promise, label); - promise = ember$data$lib$system$store$common$$_guard(promise, ember$data$lib$system$store$common$$_bind(ember$data$lib$system$store$common$$_objectIsAlive, store)); - - return promise.then(function (adapterPayload) { - store._adapterRun(function () { - var payload = serializer.extract(store, typeClass, adapterPayload, null, "findAll"); - - - store.pushMany(modelName, payload); - }); - - store.didUpdateAll(typeClass); - return store.all(modelName); - }, null, "DS: Extract payload of findAll " + typeClass); - } - - function ember$data$lib$system$store$finders$$_findQuery(adapter, store, typeClass, query, recordArray) { - var modelName = typeClass.modelName; - var promise = adapter.findQuery(store, typeClass, query, recordArray); - var serializer = ember$data$lib$system$store$serializers$$serializerForAdapter(store, adapter, modelName); - var label = "DS: Handle Adapter#findQuery of " + typeClass; - - promise = ember$data$lib$system$store$finders$$Promise.cast(promise, label); - promise = ember$data$lib$system$store$common$$_guard(promise, ember$data$lib$system$store$common$$_bind(ember$data$lib$system$store$common$$_objectIsAlive, store)); - - return promise.then(function (adapterPayload) { - var payload; - store._adapterRun(function () { - payload = serializer.extract(store, typeClass, adapterPayload, null, "findQuery"); - - }); - - recordArray.load(payload); - return recordArray; - }, null, "DS: Extract payload of findQuery " + typeClass); - } - var ember$data$lib$system$record$arrays$record$array$$get = Ember.get; - var ember$data$lib$system$record$arrays$record$array$$set = Ember.set; - - var ember$data$lib$system$record$arrays$record$array$$default = Ember.ArrayProxy.extend(Ember.Evented, { - /** - The model type contained by this record array. - @property type - @type DS.Model - */ - type: null, - - /** - The array of client ids backing the record array. When a - record is requested from the record array, the record - for the client id at the same index is materialized, if - necessary, by the store. - @property content - @private - @type Ember.Array - */ - content: null, - - /** - The flag to signal a `RecordArray` is finished loading data. - Example - ```javascript - var people = store.all('person'); - people.get('isLoaded'); // true - ``` - @property isLoaded - @type Boolean - */ - isLoaded: false, - /** - The flag to signal a `RecordArray` is currently loading data. - Example - ```javascript - var people = store.all('person'); - people.get('isUpdating'); // false - people.update(); - people.get('isUpdating'); // true - ``` - @property isUpdating - @type Boolean - */ - isUpdating: false, - - /** - The store that created this record array. - @property store - @private - @type DS.Store - */ - store: null, - - /** - Retrieves an object from the content by index. - @method objectAtContent - @private - @param {Number} index - @return {DS.Model} record - */ - objectAtContent: function (index) { - var content = ember$data$lib$system$record$arrays$record$array$$get(this, 'content'); - var internalModel = content.objectAt(index); - return internalModel && internalModel.getRecord(); - }, - - /** - Used to get the latest version of all of the records in this array - from the adapter. - Example - ```javascript - var people = store.all('person'); - people.get('isUpdating'); // false - people.update(); - people.get('isUpdating'); // true - ``` - @method update - */ - update: function () { - if (ember$data$lib$system$record$arrays$record$array$$get(this, 'isUpdating')) { - return; - } - - var store = ember$data$lib$system$record$arrays$record$array$$get(this, 'store'); - var modelName = ember$data$lib$system$record$arrays$record$array$$get(this, 'type.modelName'); - - return store.fetchAll(modelName, this); - }, - - /** - Adds an internal model to the `RecordArray` without duplicates - @method addInternalModel - @private - @param {InternalModel} internalModel - @param {number} an optional index to insert at - */ - addInternalModel: function (internalModel, idx) { - var content = ember$data$lib$system$record$arrays$record$array$$get(this, 'content'); - if (idx === undefined) { - content.addObject(internalModel); - } else if (!content.contains(internalModel)) { - content.insertAt(idx, internalModel); - } - }, - - /** - Removes an internalModel to the `RecordArray`. - @method removeInternalModel - @private - @param {InternalModel} internalModel - */ - removeInternalModel: function (internalModel) { - ember$data$lib$system$record$arrays$record$array$$get(this, 'content').removeObject(internalModel); - }, - - /** - Saves all of the records in the `RecordArray`. - Example - ```javascript - var messages = store.all('message'); - messages.forEach(function(message) { - message.set('hasBeenSeen', true); - }); - messages.save(); - ``` - @method save - @return {DS.PromiseArray} promise - */ - save: function () { - var recordArray = this; - var promiseLabel = 'DS: RecordArray#save ' + ember$data$lib$system$record$arrays$record$array$$get(this, 'type'); - var promise = Ember.RSVP.all(this.invoke('save'), promiseLabel).then(function (array) { - return recordArray; - }, null, 'DS: RecordArray#save return RecordArray'); - - return ember$data$lib$system$promise$proxies$$PromiseArray.create({ promise: promise }); - }, - - _dissociateFromOwnRecords: function () { - var array = this; - - this.get('content').forEach(function (record) { - var recordArrays = record._recordArrays; - - if (recordArrays) { - recordArrays["delete"](array); - } - }); - }, - - /** - @method _unregisterFromManager - @private - */ - _unregisterFromManager: function () { - var manager = ember$data$lib$system$record$arrays$record$array$$get(this, 'manager'); - manager.unregisterFilteredRecordArray(this); - }, - - willDestroy: function () { - this._unregisterFromManager(); - this._dissociateFromOwnRecords(); - ember$data$lib$system$record$arrays$record$array$$set(this, 'content', undefined); - this._super.apply(this, arguments); - } - }); - - /** - @module ember-data - */ - - var ember$data$lib$system$record$arrays$filtered$record$array$$get = Ember.get; - - var ember$data$lib$system$record$arrays$filtered$record$array$$default = ember$data$lib$system$record$arrays$record$array$$default.extend({ - /** - The filterFunction is a function used to test records from the store to - determine if they should be part of the record array. - Example - ```javascript - var allPeople = store.all('person'); - allPeople.mapBy('name'); // ["Tom Dale", "Yehuda Katz", "Trek Glowacki"] - var people = store.filter('person', function(person) { - if (person.get('name').match(/Katz$/)) { return true; } - }); - people.mapBy('name'); // ["Yehuda Katz"] - var notKatzFilter = function(person) { - return !person.get('name').match(/Katz$/); - }; - people.set('filterFunction', notKatzFilter); - people.mapBy('name'); // ["Tom Dale", "Trek Glowacki"] - ``` - @method filterFunction - @param {DS.Model} record - @return {Boolean} `true` if the record should be in the array - */ - filterFunction: null, - isLoaded: true, - - replace: function () { - var type = ember$data$lib$system$record$arrays$filtered$record$array$$get(this, "type").toString(); - throw new Error("The result of a client-side filter (on " + type + ") is immutable."); - }, - - /** - @method updateFilter - @private - */ - _updateFilter: function () { - var manager = ember$data$lib$system$record$arrays$filtered$record$array$$get(this, "manager"); - manager.updateFilter(this, ember$data$lib$system$record$arrays$filtered$record$array$$get(this, "type"), ember$data$lib$system$record$arrays$filtered$record$array$$get(this, "filterFunction")); - }, - - updateFilter: Ember.observer(function () { - Ember.run.once(this, this._updateFilter); - }, "filterFunction") - }); - - /** - @module ember-data - */ - - var ember$data$lib$system$record$arrays$adapter$populated$record$array$$get = Ember.get; - - function ember$data$lib$system$record$arrays$adapter$populated$record$array$$cloneNull(source) { - var clone = Ember.create(null); - for (var key in source) { - clone[key] = source[key]; - } - return clone; - } - - var ember$data$lib$system$record$arrays$adapter$populated$record$array$$default = ember$data$lib$system$record$arrays$record$array$$default.extend({ - query: null, - - replace: function () { - var type = ember$data$lib$system$record$arrays$adapter$populated$record$array$$get(this, "type").toString(); - throw new Error("The result of a server query (on " + type + ") is immutable."); - }, - - /** - @method load - @private - @param {Array} data - */ - load: function (data) { - var store = ember$data$lib$system$record$arrays$adapter$populated$record$array$$get(this, "store"); - var type = ember$data$lib$system$record$arrays$adapter$populated$record$array$$get(this, "type"); - var modelName = type.modelName; - var records = store.pushMany(modelName, data); - var meta = store.metadataFor(modelName); - - //TODO Optimize - var internalModels = Ember.A(records).mapBy("_internalModel"); - this.setProperties({ - content: Ember.A(internalModels), - isLoaded: true, - meta: ember$data$lib$system$record$arrays$adapter$populated$record$array$$cloneNull(meta) - }); - - internalModels.forEach(function (record) { - this.manager.recordArraysForRecord(record).add(this); - }, this); - - // TODO: should triggering didLoad event be the last action of the runLoop? - Ember.run.once(this, "trigger", "didLoad"); - } - }); - - var ember$data$lib$system$ordered$set$$EmberOrderedSet = Ember.OrderedSet; - var ember$data$lib$system$ordered$set$$guidFor = Ember.guidFor; - - var ember$data$lib$system$ordered$set$$OrderedSet = function () { - this._super$constructor(); - }; - - ember$data$lib$system$ordered$set$$OrderedSet.create = function () { - var Constructor = this; - return new Constructor(); - }; - - ember$data$lib$system$ordered$set$$OrderedSet.prototype = Ember.create(ember$data$lib$system$ordered$set$$EmberOrderedSet.prototype); - ember$data$lib$system$ordered$set$$OrderedSet.prototype.constructor = ember$data$lib$system$ordered$set$$OrderedSet; - ember$data$lib$system$ordered$set$$OrderedSet.prototype._super$constructor = ember$data$lib$system$ordered$set$$EmberOrderedSet; - - ember$data$lib$system$ordered$set$$OrderedSet.prototype.addWithIndex = function (obj, idx) { - var guid = ember$data$lib$system$ordered$set$$guidFor(obj); - var presenceSet = this.presenceSet; - var list = this.list; - - if (presenceSet[guid] === true) { - return; - } - - presenceSet[guid] = true; - - if (idx === undefined || idx == null) { - list.push(obj); - } else { - list.splice(idx, 0, obj); - } - - this.size += 1; - - return this; - }; - - var ember$data$lib$system$ordered$set$$default = ember$data$lib$system$ordered$set$$OrderedSet; - var ember$data$lib$system$record$array$manager$$get = Ember.get; - var ember$data$lib$system$record$array$manager$$forEach = Ember.EnumerableUtils.forEach; - var ember$data$lib$system$record$array$manager$$indexOf = Ember.EnumerableUtils.indexOf; - - var ember$data$lib$system$record$array$manager$$default = Ember.Object.extend({ - init: function () { - this.filteredRecordArrays = ember$data$lib$system$map$$MapWithDefault.create({ - defaultValue: function () { - return []; - } - }); - - this.changedRecords = []; - this._adapterPopulatedRecordArrays = []; - }, - - recordDidChange: function (record) { - if (this.changedRecords.push(record) !== 1) { - return; - } - - Ember.run.schedule("actions", this, this.updateRecordArrays); - }, - - recordArraysForRecord: function (record) { - record._recordArrays = record._recordArrays || ember$data$lib$system$ordered$set$$default.create(); - return record._recordArrays; - }, - - /** - This method is invoked whenever data is loaded into the store by the - adapter or updated by the adapter, or when a record has changed. - It updates all record arrays that a record belongs to. - To avoid thrashing, it only runs at most once per run loop. - @method updateRecordArrays - */ - updateRecordArrays: function () { - ember$data$lib$system$record$array$manager$$forEach(this.changedRecords, function (record) { - if (record.isDeleted()) { - this._recordWasDeleted(record); - } else { - this._recordWasChanged(record); - } - }, this); - - this.changedRecords.length = 0; - }, - - _recordWasDeleted: function (record) { - var recordArrays = record._recordArrays; - - if (!recordArrays) { - return; - } - - recordArrays.forEach(function (array) { - array.removeInternalModel(record); - }); - - record._recordArrays = null; - }, - - //Don't need to update non filtered arrays on simple changes - _recordWasChanged: function (record) { - var typeClass = record.type; - var recordArrays = this.filteredRecordArrays.get(typeClass); - var filter; - - ember$data$lib$system$record$array$manager$$forEach(recordArrays, function (array) { - filter = ember$data$lib$system$record$array$manager$$get(array, "filterFunction"); - if (filter) { - this.updateRecordArray(array, filter, typeClass, record); - } - }, this); - }, - - //Need to update live arrays on loading - recordWasLoaded: function (record) { - var typeClass = record.type; - var recordArrays = this.filteredRecordArrays.get(typeClass); - var filter; - - ember$data$lib$system$record$array$manager$$forEach(recordArrays, function (array) { - filter = ember$data$lib$system$record$array$manager$$get(array, "filterFunction"); - this.updateRecordArray(array, filter, typeClass, record); - }, this); - }, - /** - Update an individual filter. - @method updateRecordArray - @param {DS.FilteredRecordArray} array - @param {Function} filter - @param {DS.Model} typeClass - @param {InternalModel} record - */ - updateRecordArray: function (array, filter, typeClass, record) { - var shouldBeInArray; - - if (!filter) { - shouldBeInArray = true; - } else { - shouldBeInArray = filter(record.getRecord()); - } - - var recordArrays = this.recordArraysForRecord(record); - - if (shouldBeInArray) { - if (!recordArrays.has(array)) { - array.addInternalModel(record); - recordArrays.add(array); - } - } else if (!shouldBeInArray) { - recordArrays["delete"](array); - array.removeInternalModel(record); - } - }, - - /** - This method is invoked if the `filterFunction` property is - changed on a `DS.FilteredRecordArray`. - It essentially re-runs the filter from scratch. This same - method is invoked when the filter is created in th first place. - @method updateFilter - @param {Array} array - @param {String} modelName - @param {Function} filter - */ - updateFilter: function (array, modelName, filter) { - var typeMap = this.store.typeMapFor(modelName); - var records = typeMap.records; - var record; - - for (var i = 0, l = records.length; i < l; i++) { - record = records[i]; - - if (!record.isDeleted() && !record.isEmpty()) { - this.updateRecordArray(array, filter, modelName, record); - } - } - }, - - /** - Create a `DS.RecordArray` for a type and register it for updates. - @method createRecordArray - @param {Class} typeClass - @return {DS.RecordArray} - */ - createRecordArray: function (typeClass) { - var array = ember$data$lib$system$record$arrays$record$array$$default.create({ - type: typeClass, - content: Ember.A(), - store: this.store, - isLoaded: true, - manager: this - }); - - this.registerFilteredRecordArray(array, typeClass); - - return array; - }, - - /** - Create a `DS.FilteredRecordArray` for a type and register it for updates. - @method createFilteredRecordArray - @param {DS.Model} typeClass - @param {Function} filter - @param {Object} query (optional - @return {DS.FilteredRecordArray} - */ - createFilteredRecordArray: function (typeClass, filter, query) { - var array = ember$data$lib$system$record$arrays$filtered$record$array$$default.create({ - query: query, - type: typeClass, - content: Ember.A(), - store: this.store, - manager: this, - filterFunction: filter - }); - - this.registerFilteredRecordArray(array, typeClass, filter); - - return array; - }, - - /** - Create a `DS.AdapterPopulatedRecordArray` for a type with given query. - @method createAdapterPopulatedRecordArray - @param {DS.Model} typeClass - @param {Object} query - @return {DS.AdapterPopulatedRecordArray} - */ - createAdapterPopulatedRecordArray: function (typeClass, query) { - var array = ember$data$lib$system$record$arrays$adapter$populated$record$array$$default.create({ - type: typeClass, - query: query, - content: Ember.A(), - store: this.store, - manager: this - }); - - this._adapterPopulatedRecordArrays.push(array); - - return array; - }, - - /** - Register a RecordArray for a given type to be backed by - a filter function. This will cause the array to update - automatically when records of that type change attribute - values or states. - @method registerFilteredRecordArray - @param {DS.RecordArray} array - @param {DS.Model} typeClass - @param {Function} filter - */ - registerFilteredRecordArray: function (array, typeClass, filter) { - var recordArrays = this.filteredRecordArrays.get(typeClass); - recordArrays.push(array); - - this.updateFilter(array, typeClass, filter); - }, - - /** - Unregister a FilteredRecordArray. - So manager will not update this array. - @method unregisterFilteredRecordArray - @param {DS.RecordArray} array - */ - unregisterFilteredRecordArray: function (array) { - var recordArrays = this.filteredRecordArrays.get(array.type); - var index = ember$data$lib$system$record$array$manager$$indexOf(recordArrays, array); - recordArrays.splice(index, 1); - }, - - willDestroy: function () { - this._super.apply(this, arguments); - - this.filteredRecordArrays.forEach(function (value) { - ember$data$lib$system$record$array$manager$$forEach(ember$data$lib$system$record$array$manager$$flatten(value), ember$data$lib$system$record$array$manager$$destroy); - }); - ember$data$lib$system$record$array$manager$$forEach(this._adapterPopulatedRecordArrays, ember$data$lib$system$record$array$manager$$destroy); - } - }); - - function ember$data$lib$system$record$array$manager$$destroy(entry) { - entry.destroy(); - } - - function ember$data$lib$system$record$array$manager$$flatten(list) { - var length = list.length; - var result = Ember.A(); - - for (var i = 0; i < length; i++) { - result = result.concat(list[i]); - } - - return result; - } - - /** - * The `ContainerInstanceCache` serves as a lazy cache for looking up - * instances of serializers and adapters. It has some additional logic for - * finding the 'fallback' adapter or serializer. - * - * The 'fallback' adapter or serializer is an adapter or serializer that is looked up - * when the preferred lookup fails. For example, say you try to look up `adapter:post`, - * but there is no entry (app/adapters/post.js in EmberCLI) for `adapter:post` in the registry. - * - * The `fallbacks` array passed will then be used; the first entry in the fallbacks array - * that exists in the container will then be cached for `adapter:post`. So, the next time you - * look up `adapter:post`, you'll get the `adapter:application` instance (or whatever the fallback - * was if `adapter:application` doesn't exist). - * - * @private - * @class ContainerInstanceCache - * - */ - function ember$data$lib$system$store$container$instance$cache$$ContainerInstanceCache(container) { - this._container = container; - this._cache = ember$lib$main$$default.create(null); - } - - ember$data$lib$system$store$container$instance$cache$$ContainerInstanceCache.prototype = ember$lib$main$$default.create(null); - - ember$lib$main$$default.merge(ember$data$lib$system$store$container$instance$cache$$ContainerInstanceCache.prototype, { - get: function (type, preferredKey, fallbacks) { - var cache = this._cache; - var preferredLookupKey = '' + type + ':' + preferredKey; - - if (!(preferredLookupKey in cache)) { - var instance = this.instanceFor(preferredLookupKey) || this._findInstance(type, fallbacks); - if (instance) { - cache[preferredLookupKey] = instance; - } - } - return cache[preferredLookupKey]; - }, - - _findInstance: function (type, fallbacks) { - for (var i = 0, _length = fallbacks.length; i < _length; i++) { - var fallback = fallbacks[i]; - var lookupKey = '' + type + ':' + fallback; - var instance = this.instanceFor(lookupKey); - - if (instance) { - return instance; - } - } - }, - - instanceFor: function (key) { - var cache = this._cache; - if (!cache[key]) { - var instance = this._container.lookup(key); - if (instance) { - cache[key] = instance; - } - } - return cache[key]; - }, - - destroy: function () { - var cache = this._cache; - var cacheEntries = ember$lib$main$$default.keys(cache); - - for (var i = 0, _length2 = cacheEntries.length; i < _length2; i++) { - var cacheKey = cacheEntries[i]; - var cacheEntry = cache[cacheKey]; - if (cacheEntry) { - cacheEntry.destroy(); - } - } - this._container = null; - }, - - constructor: ember$data$lib$system$store$container$instance$cache$$ContainerInstanceCache, - - toString: function () { - return 'ContainerInstanceCache'; - } - }); - - var ember$data$lib$system$store$container$instance$cache$$default = ember$data$lib$system$store$container$instance$cache$$ContainerInstanceCache; - function ember$data$lib$system$merge$$merge(original, updates) { - if (!updates || typeof updates !== 'object') { - return original; - } - - var props = Ember.keys(updates); - var prop; - var length = props.length; - - for (var i = 0; i < length; i++) { - prop = props[i]; - original[prop] = updates[prop]; - } - - return original; - } - - var ember$data$lib$system$merge$$default = ember$data$lib$system$merge$$merge; - - var ember$data$lib$system$relationships$state$relationship$$forEach = Ember.EnumerableUtils.forEach; - - function ember$data$lib$system$relationships$state$relationship$$Relationship(store, record, inverseKey, relationshipMeta) { - this.members = new ember$data$lib$system$ordered$set$$default(); - this.canonicalMembers = new ember$data$lib$system$ordered$set$$default(); - this.store = store; - this.key = relationshipMeta.key; - this.inverseKey = inverseKey; - this.record = record; - this.isAsync = relationshipMeta.options.async; - this.relationshipMeta = relationshipMeta; - //This probably breaks for polymorphic relationship in complex scenarios, due to - //multiple possible modelNames - this.inverseKeyForImplicit = this.record.constructor.modelName + this.key; - this.linkPromise = null; - this.hasData = false; - } - - ember$data$lib$system$relationships$state$relationship$$Relationship.prototype = { - constructor: ember$data$lib$system$relationships$state$relationship$$Relationship, - - destroy: Ember.K, - - clear: function () { - var members = this.members.list; - var member; - - while (members.length > 0) { - member = members[0]; - this.removeRecord(member); - } - }, - - disconnect: function () { - this.members.forEach(function (member) { - this.removeRecordFromInverse(member); - }, this); - }, - - reconnect: function () { - this.members.forEach(function (member) { - this.addRecordToInverse(member); - }, this); - }, - - removeRecords: function (records) { - var self = this; - ember$data$lib$system$relationships$state$relationship$$forEach(records, function (record) { - self.removeRecord(record); - }); - }, - - addRecords: function (records, idx) { - var self = this; - ember$data$lib$system$relationships$state$relationship$$forEach(records, function (record) { - self.addRecord(record, idx); - if (idx !== undefined) { - idx++; - } - }); - }, - - addCanonicalRecords: function (records, idx) { - for (var i = 0; i < records.length; i++) { - if (idx !== undefined) { - this.addCanonicalRecord(records[i], i + idx); - } else { - this.addCanonicalRecord(records[i]); - } - } - }, - - addCanonicalRecord: function (record, idx) { - if (!this.canonicalMembers.has(record)) { - this.canonicalMembers.add(record); - if (this.inverseKey) { - record._relationships.get(this.inverseKey).addCanonicalRecord(this.record); - } else { - if (!record._implicitRelationships[this.inverseKeyForImplicit]) { - record._implicitRelationships[this.inverseKeyForImplicit] = new ember$data$lib$system$relationships$state$relationship$$Relationship(this.store, record, this.key, { options: {} }); - } - record._implicitRelationships[this.inverseKeyForImplicit].addCanonicalRecord(this.record); - } - } - this.flushCanonicalLater(); - this.setHasData(true); - }, - - removeCanonicalRecords: function (records, idx) { - for (var i = 0; i < records.length; i++) { - if (idx !== undefined) { - this.removeCanonicalRecord(records[i], i + idx); - } else { - this.removeCanonicalRecord(records[i]); - } - } - }, - - removeCanonicalRecord: function (record, idx) { - if (this.canonicalMembers.has(record)) { - this.removeCanonicalRecordFromOwn(record); - if (this.inverseKey) { - this.removeCanonicalRecordFromInverse(record); - } else { - if (record._implicitRelationships[this.inverseKeyForImplicit]) { - record._implicitRelationships[this.inverseKeyForImplicit].removeCanonicalRecord(this.record); - } - } - } - this.flushCanonicalLater(); - }, - - addRecord: function (record, idx) { - if (!this.members.has(record)) { - this.members.addWithIndex(record, idx); - this.notifyRecordRelationshipAdded(record, idx); - if (this.inverseKey) { - record._relationships.get(this.inverseKey).addRecord(this.record); - } else { - if (!record._implicitRelationships[this.inverseKeyForImplicit]) { - record._implicitRelationships[this.inverseKeyForImplicit] = new ember$data$lib$system$relationships$state$relationship$$Relationship(this.store, record, this.key, { options: {} }); - } - record._implicitRelationships[this.inverseKeyForImplicit].addRecord(this.record); - } - this.record.updateRecordArraysLater(); - } - this.setHasData(true); - }, - - removeRecord: function (record) { - if (this.members.has(record)) { - this.removeRecordFromOwn(record); - if (this.inverseKey) { - this.removeRecordFromInverse(record); - } else { - if (record._implicitRelationships[this.inverseKeyForImplicit]) { - record._implicitRelationships[this.inverseKeyForImplicit].removeRecord(this.record); - } - } - } - }, - - addRecordToInverse: function (record) { - if (this.inverseKey) { - record._relationships.get(this.inverseKey).addRecord(this.record); - } - }, - - removeRecordFromInverse: function (record) { - var inverseRelationship = record._relationships.get(this.inverseKey); - //Need to check for existence, as the record might unloading at the moment - if (inverseRelationship) { - inverseRelationship.removeRecordFromOwn(this.record); - } - }, - - removeRecordFromOwn: function (record) { - this.members["delete"](record); - this.notifyRecordRelationshipRemoved(record); - this.record.updateRecordArrays(); - }, - - removeCanonicalRecordFromInverse: function (record) { - var inverseRelationship = record._relationships.get(this.inverseKey); - //Need to check for existence, as the record might unloading at the moment - if (inverseRelationship) { - inverseRelationship.removeCanonicalRecordFromOwn(this.record); - } - }, - - removeCanonicalRecordFromOwn: function (record) { - this.canonicalMembers["delete"](record); - this.flushCanonicalLater(); - }, - - flushCanonical: function () { - this.willSync = false; - //a hack for not removing new records - //TODO remove once we have proper diffing - var newRecords = []; - for (var i = 0; i < this.members.list.length; i++) { - if (this.members.list[i].isNew()) { - newRecords.push(this.members.list[i]); - } - } - //TODO(Igor) make this less abysmally slow - this.members = this.canonicalMembers.copy(); - for (i = 0; i < newRecords.length; i++) { - this.members.add(newRecords[i]); - } - }, - - flushCanonicalLater: function () { - if (this.willSync) { - return; - } - this.willSync = true; - var self = this; - this.store._backburner.join(function () { - self.store._backburner.schedule("syncRelationships", self, self.flushCanonical); - }); - }, - - updateLink: function (link) { - if (link !== this.link) { - this.link = link; - this.linkPromise = null; - this.record.notifyPropertyChange(this.key); - } - }, - - findLink: function () { - if (this.linkPromise) { - return this.linkPromise; - } else { - var promise = this.fetchLink(); - this.linkPromise = promise; - return promise.then(function (result) { - return result; - }); - } - }, - - updateRecordsFromAdapter: function (records) { - //TODO(Igor) move this to a proper place - var self = this; - //TODO Once we have adapter support, we need to handle updated and canonical changes - self.computeChanges(records); - self.setHasData(true); - }, - - notifyRecordRelationshipAdded: Ember.K, - notifyRecordRelationshipRemoved: Ember.K, - - setHasData: function (value) { - this.hasData = value; - } - }; - - var ember$data$lib$system$relationships$state$relationship$$default = ember$data$lib$system$relationships$state$relationship$$Relationship; - - var ember$data$lib$system$many$array$$get = Ember.get; - var ember$data$lib$system$many$array$$set = Ember.set; - var ember$data$lib$system$many$array$$filter = Ember.ArrayPolyfills.filter; - var ember$data$lib$system$many$array$$map = Ember.EnumerableUtils.map; - - var ember$data$lib$system$many$array$$default = Ember.Object.extend(Ember.MutableArray, Ember.Evented, { - init: function () { - this.currentState = Ember.A([]); - }, - - record: null, - - canonicalState: null, - currentState: null, - - length: 0, - - objectAt: function (index) { - //Ember observers such as 'firstObject', 'lastObject' might do out of bounds accesses - if (!this.currentState[index]) { - return undefined; - } - return this.currentState[index].getRecord(); - }, - - flushCanonical: function () { - //TODO make this smarter, currently its plenty stupid - var toSet = ember$data$lib$system$many$array$$filter.call(this.canonicalState, function (internalModel) { - return !internalModel.isDeleted(); - }); - - //a hack for not removing new records - //TODO remove once we have proper diffing - var newRecords = this.currentState.filter(function (internalModel) { - return internalModel.isNew(); - }); - toSet = toSet.concat(newRecords); - var oldLength = this.length; - this.arrayContentWillChange(0, this.length, toSet.length); - this.set('length', toSet.length); - this.currentState = toSet; - this.arrayContentDidChange(0, oldLength, this.length); - //TODO Figure out to notify only on additions and maybe only if unloaded - this.relationship.notifyHasManyChanged(); - this.record.updateRecordArrays(); - }, - /** - `true` if the relationship is polymorphic, `false` otherwise. - @property {Boolean} isPolymorphic - @private - */ - isPolymorphic: false, - - /** - The loading state of this array - @property {Boolean} isLoaded - */ - isLoaded: false, - - /** - The relationship which manages this array. - @property {ManyRelationship} relationship - @private - */ - relationship: null, - - internalReplace: function (idx, amt, objects) { - if (!objects) { - objects = []; - } - this.arrayContentWillChange(idx, amt, objects.length); - this.currentState.splice.apply(this.currentState, [idx, amt].concat(objects)); - this.set('length', this.currentState.length); - this.arrayContentDidChange(idx, amt, objects.length); - if (objects) { - //TODO(Igor) probably needed only for unloaded records - this.relationship.notifyHasManyChanged(); - } - this.record.updateRecordArrays(); - }, - - //TODO(Igor) optimize - internalRemoveRecords: function (records) { - var index; - for (var i = 0; i < records.length; i++) { - index = this.currentState.indexOf(records[i]); - this.internalReplace(index, 1); - } - }, - - //TODO(Igor) optimize - internalAddRecords: function (records, idx) { - if (idx === undefined) { - idx = this.currentState.length; - } - this.internalReplace(idx, 0, records); - }, - - replace: function (idx, amt, objects) { - var records; - if (amt > 0) { - records = this.currentState.slice(idx, idx + amt); - this.get('relationship').removeRecords(records); - } - if (objects) { - this.get('relationship').addRecords(ember$data$lib$system$many$array$$map(objects, function (obj) { - return obj._internalModel; - }), idx); - } - }, - /** - Used for async `hasMany` arrays - to keep track of when they will resolve. - @property {Ember.RSVP.Promise} promise - @private - */ - promise: null, - - /** - @method loadingRecordsCount - @param {Number} count - @private - */ - loadingRecordsCount: function (count) { - this.loadingRecordsCount = count; - }, - - /** - @method loadedRecord - @private - */ - loadedRecord: function () { - this.loadingRecordsCount--; - if (this.loadingRecordsCount === 0) { - ember$data$lib$system$many$array$$set(this, 'isLoaded', true); - this.trigger('didLoad'); - } - }, - - /** - @method reload - @public - */ - reload: function () { - return this.relationship.reload(); - }, - - /** - Saves all of the records in the `ManyArray`. - Example - ```javascript - store.find('inbox', 1).then(function(inbox) { - inbox.get('messages').then(function(messages) { - messages.forEach(function(message) { - message.set('isRead', true); - }); - messages.save() - }); - }); - ``` - @method save - @return {DS.PromiseArray} promise - */ - save: function () { - var manyArray = this; - var promiseLabel = 'DS: ManyArray#save ' + ember$data$lib$system$many$array$$get(this, 'type'); - var promise = Ember.RSVP.all(this.invoke('save'), promiseLabel).then(function (array) { - return manyArray; - }, null, 'DS: ManyArray#save return ManyArray'); - - return ember$data$lib$system$promise$proxies$$PromiseArray.create({ promise: promise }); - }, - - /** - Create a child record within the owner - @method createRecord - @private - @param {Object} hash - @return {DS.Model} record - */ - createRecord: function (hash) { - var store = ember$data$lib$system$many$array$$get(this, 'store'); - var type = ember$data$lib$system$many$array$$get(this, 'type'); - var record; - - - record = store.createRecord(type.modelName, hash); - this.pushObject(record); - - return record; - }, - - /** - @method addRecord - @param {DS.Model} record - @deprecated Use `addObject()` instead - */ - addRecord: function (record) { - this.addObject(record); - }, - - /** - @method removeRecord - @param {DS.Model} record - @deprecated Use `removeObject()` instead - */ - removeRecord: function (record) { - this.removeObject(record); - } - }); - - var ember$data$lib$system$relationships$state$has$many$$map = Ember.EnumerableUtils.map; - - var ember$data$lib$system$relationships$state$has$many$$ManyRelationship = function (store, record, inverseKey, relationshipMeta) { - this._super$constructor(store, record, inverseKey, relationshipMeta); - this.belongsToType = relationshipMeta.type; - this.canonicalState = []; - this.manyArray = ember$data$lib$system$many$array$$default.create({ - canonicalState: this.canonicalState, - store: this.store, - relationship: this, - type: this.store.modelFor(this.belongsToType), - record: record - }); - this.isPolymorphic = relationshipMeta.options.polymorphic; - this.manyArray.isPolymorphic = this.isPolymorphic; - }; - - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype = Ember.create(ember$data$lib$system$relationships$state$relationship$$default.prototype); - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.constructor = ember$data$lib$system$relationships$state$has$many$$ManyRelationship; - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype._super$constructor = ember$data$lib$system$relationships$state$relationship$$default; - - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.destroy = function () { - this.manyArray.destroy(); - }; - - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype._super$addCanonicalRecord = ember$data$lib$system$relationships$state$relationship$$default.prototype.addCanonicalRecord; - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.addCanonicalRecord = function (record, idx) { - if (this.canonicalMembers.has(record)) { - return; - } - if (idx !== undefined) { - this.canonicalState.splice(idx, 0, record); - } else { - this.canonicalState.push(record); - } - this._super$addCanonicalRecord(record, idx); - }; - - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype._super$addRecord = ember$data$lib$system$relationships$state$relationship$$default.prototype.addRecord; - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.addRecord = function (record, idx) { - if (this.members.has(record)) { - return; - } - this._super$addRecord(record, idx); - this.manyArray.internalAddRecords([record], idx); - }; - - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype._super$removeCanonicalRecordFromOwn = ember$data$lib$system$relationships$state$relationship$$default.prototype.removeCanonicalRecordFromOwn; - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.removeCanonicalRecordFromOwn = function (record, idx) { - var i = idx; - if (!this.canonicalMembers.has(record)) { - return; - } - if (i === undefined) { - i = this.canonicalState.indexOf(record); - } - if (i > -1) { - this.canonicalState.splice(i, 1); - } - this._super$removeCanonicalRecordFromOwn(record, idx); - }; - - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype._super$flushCanonical = ember$data$lib$system$relationships$state$relationship$$default.prototype.flushCanonical; - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.flushCanonical = function () { - this.manyArray.flushCanonical(); - this._super$flushCanonical(); - }; - - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype._super$removeRecordFromOwn = ember$data$lib$system$relationships$state$relationship$$default.prototype.removeRecordFromOwn; - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.removeRecordFromOwn = function (record, idx) { - if (!this.members.has(record)) { - return; - } - this._super$removeRecordFromOwn(record, idx); - if (idx !== undefined) { - //TODO(Igor) not used currently, fix - this.manyArray.currentState.removeAt(idx); - } else { - this.manyArray.internalRemoveRecords([record]); - } - }; - - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.notifyRecordRelationshipAdded = function (record, idx) { - var typeClass = this.store.modelFor(this.relationshipMeta.type); - - this.record.notifyHasManyAdded(this.key, record, idx); - }; - - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.reload = function () { - var self = this; - if (this.link) { - return this.fetchLink(); - } else { - return this.store.scheduleFetchMany(this.manyArray.toArray()).then(function () { - //Goes away after the manyArray refactor - self.manyArray.set("isLoaded", true); - return self.manyArray; - }); - } - }; - - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.computeChanges = function (records) { - var members = this.canonicalMembers; - var recordsToRemove = []; - var length; - var record; - var i; - - records = ember$data$lib$system$relationships$state$has$many$$setForArray(records); - - members.forEach(function (member) { - if (records.has(member)) { - return; - } - - recordsToRemove.push(member); - }); - - this.removeCanonicalRecords(recordsToRemove); - - // Using records.toArray() since currently using - // removeRecord can modify length, messing stuff up - // forEach since it directly looks at "length" each - // iteration - records = records.toArray(); - length = records.length; - for (i = 0; i < length; i++) { - record = records[i]; - this.removeCanonicalRecord(record); - this.addCanonicalRecord(record, i); - } - }; - - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.fetchLink = function () { - var self = this; - return this.store.findHasMany(this.record, this.link, this.relationshipMeta).then(function (records) { - self.store._backburner.join(function () { - self.updateRecordsFromAdapter(records); - }); - return self.manyArray; - }); - }; - - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.findRecords = function () { - var manyArray = this.manyArray; - //TODO CLEANUP - return this.store.findMany(ember$data$lib$system$relationships$state$has$many$$map(manyArray.toArray(), function (rec) { - return rec._internalModel; - })).then(function () { - //Goes away after the manyArray refactor - manyArray.set("isLoaded", true); - return manyArray; - }); - }; - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.notifyHasManyChanged = function () { - this.record.notifyHasManyAdded(this.key); - }; - - ember$data$lib$system$relationships$state$has$many$$ManyRelationship.prototype.getRecords = function () { - //TODO(Igor) sync server here, once our syncing is not stupid - if (this.isAsync) { - var self = this; - var promise; - if (this.link) { - promise = this.findLink().then(function () { - return self.findRecords(); - }); - } else { - promise = this.findRecords(); - } - return ember$data$lib$system$promise$proxies$$PromiseManyArray.create({ - content: this.manyArray, - promise: promise - }); - } else { - - //TODO(Igor) WTF DO I DO HERE? - if (!this.manyArray.get("isDestroyed")) { - this.manyArray.set("isLoaded", true); - } - return this.manyArray; - } - }; - - function ember$data$lib$system$relationships$state$has$many$$setForArray(array) { - var set = new ember$data$lib$system$ordered$set$$default(); - - if (array) { - for (var i = 0, l = array.length; i < l; i++) { - set.add(array[i]); - } - } - - return set; - } - - var ember$data$lib$system$relationships$state$has$many$$default = ember$data$lib$system$relationships$state$has$many$$ManyRelationship; - - var ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship = function (store, record, inverseKey, relationshipMeta) { - this._super$constructor(store, record, inverseKey, relationshipMeta); - this.record = record; - this.key = relationshipMeta.key; - this.inverseRecord = null; - this.canonicalState = null; - }; - - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype = Ember.create(ember$data$lib$system$relationships$state$relationship$$default.prototype); - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype.constructor = ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship; - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype._super$constructor = ember$data$lib$system$relationships$state$relationship$$default; - - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype.setRecord = function (newRecord) { - if (newRecord) { - this.addRecord(newRecord); - } else if (this.inverseRecord) { - this.removeRecord(this.inverseRecord); - } - this.setHasData(true); - }; - - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype.setCanonicalRecord = function (newRecord) { - if (newRecord) { - this.addCanonicalRecord(newRecord); - } else if (this.inverseRecord) { - this.removeCanonicalRecord(this.inverseRecord); - } - this.setHasData(true); - }; - - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype._super$addCanonicalRecord = ember$data$lib$system$relationships$state$relationship$$default.prototype.addCanonicalRecord; - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype.addCanonicalRecord = function (newRecord) { - if (this.canonicalMembers.has(newRecord)) { - return; - } - - if (this.canonicalState) { - this.removeCanonicalRecord(this.canonicalState); - } - - this.canonicalState = newRecord; - this._super$addCanonicalRecord(newRecord); - }; - - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype._super$flushCanonical = ember$data$lib$system$relationships$state$relationship$$default.prototype.flushCanonical; - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype.flushCanonical = function () { - //temporary fix to not remove newly created records if server returned null. - //TODO remove once we have proper diffing - if (this.inverseRecord && this.inverseRecord.isNew() && !this.canonicalState) { - return; - } - this.inverseRecord = this.canonicalState; - this.record.notifyBelongsToChanged(this.key); - this._super$flushCanonical(); - }; - - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype._super$addRecord = ember$data$lib$system$relationships$state$relationship$$default.prototype.addRecord; - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype.addRecord = function (newRecord) { - if (this.members.has(newRecord)) { - return; - } - var typeClass = this.store.modelFor(this.relationshipMeta.type); - - if (this.inverseRecord) { - this.removeRecord(this.inverseRecord); - } - - this.inverseRecord = newRecord; - this._super$addRecord(newRecord); - this.record.notifyBelongsToChanged(this.key); - }; - - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype.setRecordPromise = function (newPromise) { - var content = newPromise.get && newPromise.get("content"); - this.setRecord(content ? content._internalModel : content); - }; - - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype._super$removeRecordFromOwn = ember$data$lib$system$relationships$state$relationship$$default.prototype.removeRecordFromOwn; - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype.removeRecordFromOwn = function (record) { - if (!this.members.has(record)) { - return; - } - this.inverseRecord = null; - this._super$removeRecordFromOwn(record); - this.record.notifyBelongsToChanged(this.key); - }; - - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype._super$removeCanonicalRecordFromOwn = ember$data$lib$system$relationships$state$relationship$$default.prototype.removeCanonicalRecordFromOwn; - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype.removeCanonicalRecordFromOwn = function (record) { - if (!this.canonicalMembers.has(record)) { - return; - } - this.canonicalState = null; - this._super$removeCanonicalRecordFromOwn(record); - }; - - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype.findRecord = function () { - if (this.inverseRecord) { - return this.store._findByInternalModel(this.inverseRecord); - } else { - return Ember.RSVP.Promise.resolve(null); - } - }; - - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype.fetchLink = function () { - var self = this; - return this.store.findBelongsTo(this.record, this.link, this.relationshipMeta).then(function (record) { - if (record) { - self.addRecord(record); - } - return record; - }); - }; - - ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship.prototype.getRecord = function () { - //TODO(Igor) flushCanonical here once our syncing is not stupid - if (this.isAsync) { - var promise; - if (this.link) { - var self = this; - promise = this.findLink().then(function () { - return self.findRecord(); - }); - } else { - promise = this.findRecord(); - } - - return ember$data$lib$system$promise$proxies$$PromiseObject.create({ - promise: promise, - content: this.inverseRecord ? this.inverseRecord.getRecord() : null - }); - } else { - if (this.inverseRecord === null) { - return null; - } - var toReturn = this.inverseRecord.getRecord(); - return toReturn; - } - }; - - var ember$data$lib$system$relationships$state$belongs$to$$default = ember$data$lib$system$relationships$state$belongs$to$$BelongsToRelationship; - - var ember$data$lib$system$relationships$state$create$$get = Ember.get; - - var ember$data$lib$system$relationships$state$create$$createRelationshipFor = function (record, relationshipMeta, store) { - var inverseKey; - var inverse = record.type.inverseFor(relationshipMeta.key, store); - - if (inverse) { - inverseKey = inverse.name; - } - - if (relationshipMeta.kind === "hasMany") { - return new ember$data$lib$system$relationships$state$has$many$$default(store, record, inverseKey, relationshipMeta); - } else { - return new ember$data$lib$system$relationships$state$belongs$to$$default(store, record, inverseKey, relationshipMeta); - } - }; - - var ember$data$lib$system$relationships$state$create$$Relationships = function (record) { - this.record = record; - this.initializedRelationships = Ember.create(null); - }; - - ember$data$lib$system$relationships$state$create$$Relationships.prototype.has = function (key) { - return !!this.initializedRelationships[key]; - }; - - ember$data$lib$system$relationships$state$create$$Relationships.prototype.get = function (key) { - var relationships = this.initializedRelationships; - var relationshipsByName = ember$data$lib$system$relationships$state$create$$get(this.record.type, "relationshipsByName"); - if (!relationships[key] && relationshipsByName.get(key)) { - relationships[key] = ember$data$lib$system$relationships$state$create$$createRelationshipFor(this.record, relationshipsByName.get(key), this.record.store); - } - return relationships[key]; - }; - - var ember$data$lib$system$relationships$state$create$$default = ember$data$lib$system$relationships$state$create$$Relationships; - - var ember$data$lib$system$snapshot$$get = Ember.get; - - /** - @class Snapshot - @namespace DS - @private - @constructor - @param {DS.Model} internalModel The model to create a snapshot from - */ - function ember$data$lib$system$snapshot$$Snapshot(internalModel) { - this._attributes = Ember.create(null); - this._belongsToRelationships = Ember.create(null); - this._belongsToIds = Ember.create(null); - this._hasManyRelationships = Ember.create(null); - this._hasManyIds = Ember.create(null); - - var record = internalModel.getRecord(); - this.record = record; - record.eachAttribute(function (keyName) { - this._attributes[keyName] = ember$data$lib$system$snapshot$$get(record, keyName); - }, this); - - this.id = internalModel.id; - this._internalModel = internalModel; - this.type = internalModel.type; - this.modelName = internalModel.type.modelName; - - this._changedAttributes = record.changedAttributes(); - - // The following code is here to keep backwards compatibility when accessing - // `constructor` directly. - // - // With snapshots you should use `type` instead of `constructor`. - // - // Remove for Ember Data 1.0. - if (Ember.platform.hasPropertyAccessors) { - var callDeprecate = true; - - Ember.defineProperty(this, 'constructor', { - get: function () { - // Ugly hack since accessing error.stack (done in `Ember.deprecate()`) - // causes the internals of Chrome to access the constructor, which then - // causes an infinite loop if accessed and calls `Ember.deprecate()` - // again. - if (callDeprecate) { - callDeprecate = false; - callDeprecate = true; - } - - return this.type; - } - }); - } else { - this.constructor = this.type; - } - } - - ember$data$lib$system$snapshot$$Snapshot.prototype = { - constructor: ember$data$lib$system$snapshot$$Snapshot, - - /** - The id of the snapshot's underlying record - Example - ```javascript - // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' }); - postSnapshot.id; // => '1' - ``` - @property id - @type {String} - */ - id: null, - - /** - The underlying record for this snapshot. Can be used to access methods and - properties defined on the record. - Example - ```javascript - var json = snapshot.record.toJSON(); - ``` - @property record - @type {DS.Model} - */ - record: null, - - /** - The type of the underlying record for this snapshot, as a DS.Model. - @property type - @type {DS.Model} - */ - type: null, - - /** - The name of the type of the underlying record for this snapshot, as a string. - @property modelName - @type {String} - */ - modelName: null, - - /** - Returns the value of an attribute. - Example - ```javascript - // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' }); - postSnapshot.attr('author'); // => 'Tomster' - postSnapshot.attr('title'); // => 'Ember.js rocks' - ``` - Note: Values are loaded eagerly and cached when the snapshot is created. - @method attr - @param {String} keyName - @return {Object} The attribute value or undefined - */ - attr: function (keyName) { - if (keyName in this._attributes) { - return this._attributes[keyName]; - } - throw new Ember.Error('Model \'' + Ember.inspect(this.record) + '\' has no attribute named \'' + keyName + '\' defined.'); - }, - - /** - Returns all attributes and their corresponding values. - Example - ```javascript - // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' }); - postSnapshot.attributes(); // => { author: 'Tomster', title: 'Ember.js rocks' } - ``` - @method attributes - @return {Object} All attributes of the current snapshot - */ - attributes: function () { - return Ember.copy(this._attributes); - }, - - /** - Returns all changed attributes and their old and new values. - Example - ```javascript - // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' }); - postModel.set('title', 'Ember.js rocks!'); - postSnapshot.changedAttributes(); // => { title: ['Ember.js rocks', 'Ember.js rocks!'] } - ``` - @method changedAttributes - @return {Object} All changed attributes of the current snapshot - */ - changedAttributes: function () { - var prop; - var changedAttributes = Ember.create(null); - - for (prop in this._changedAttributes) { - changedAttributes[prop] = Ember.copy(this._changedAttributes[prop]); - } - - return changedAttributes; - }, - - /** - Returns the current value of a belongsTo relationship. - `belongsTo` takes an optional hash of options as a second parameter, - currently supported options are: - - `id`: set to `true` if you only want the ID of the related record to be - returned. - Example - ```javascript - // store.push('post', { id: 1, title: 'Hello World' }); - // store.createRecord('comment', { body: 'Lorem ipsum', post: post }); - commentSnapshot.belongsTo('post'); // => DS.Snapshot - commentSnapshot.belongsTo('post', { id: true }); // => '1' - // store.push('comment', { id: 1, body: 'Lorem ipsum' }); - commentSnapshot.belongsTo('post'); // => undefined - ``` - Calling `belongsTo` will return a new Snapshot as long as there's any known - data for the relationship available, such as an ID. If the relationship is - known but unset, `belongsTo` will return `null`. If the contents of the - relationship is unknown `belongsTo` will return `undefined`. - Note: Relationships are loaded lazily and cached upon first access. - @method belongsTo - @param {String} keyName - @param {Object} [options] - @return {(DS.Snapshot|String|null|undefined)} A snapshot or ID of a known - relationship or null if the relationship is known but unset. undefined - will be returned if the contents of the relationship is unknown. - */ - belongsTo: function (keyName, options) { - var id = options && options.id; - var relationship, inverseRecord, hasData; - var result; - - if (id && keyName in this._belongsToIds) { - return this._belongsToIds[keyName]; - } - - if (!id && keyName in this._belongsToRelationships) { - return this._belongsToRelationships[keyName]; - } - - relationship = this._internalModel._relationships.get(keyName); - if (!(relationship && relationship.relationshipMeta.kind === 'belongsTo')) { - throw new Ember.Error('Model \'' + Ember.inspect(this.record) + '\' has no belongsTo relationship named \'' + keyName + '\' defined.'); - } - - hasData = ember$data$lib$system$snapshot$$get(relationship, 'hasData'); - inverseRecord = ember$data$lib$system$snapshot$$get(relationship, 'inverseRecord'); - - if (hasData) { - if (inverseRecord && !inverseRecord.isDeleted()) { - if (id) { - result = ember$data$lib$system$snapshot$$get(inverseRecord, 'id'); - } else { - result = inverseRecord.createSnapshot(); - } - } else { - result = null; - } - } - - if (id) { - this._belongsToIds[keyName] = result; - } else { - this._belongsToRelationships[keyName] = result; - } - - return result; - }, - - /** - Returns the current value of a hasMany relationship. - `hasMany` takes an optional hash of options as a second parameter, - currently supported options are: - - `ids`: set to `true` if you only want the IDs of the related records to be - returned. - Example - ```javascript - // store.push('post', { id: 1, title: 'Hello World', comments: [2, 3] }); - postSnapshot.hasMany('comments'); // => [DS.Snapshot, DS.Snapshot] - postSnapshot.hasMany('comments', { ids: true }); // => ['2', '3'] - // store.push('post', { id: 1, title: 'Hello World' }); - postSnapshot.hasMany('comments'); // => undefined - ``` - Note: Relationships are loaded lazily and cached upon first access. - @method hasMany - @param {String} keyName - @param {Object} [options] - @return {(Array|undefined)} An array of snapshots or IDs of a known - relationship or an empty array if the relationship is known but unset. - undefined will be returned if the contents of the relationship is unknown. - */ - hasMany: function (keyName, options) { - var ids = options && options.ids; - var relationship, members, hasData; - var results; - - if (ids && keyName in this._hasManyIds) { - return this._hasManyIds[keyName]; - } - - if (!ids && keyName in this._hasManyRelationships) { - return this._hasManyRelationships[keyName]; - } - - relationship = this._internalModel._relationships.get(keyName); - if (!(relationship && relationship.relationshipMeta.kind === 'hasMany')) { - throw new Ember.Error('Model \'' + Ember.inspect(this.record) + '\' has no hasMany relationship named \'' + keyName + '\' defined.'); - } - - hasData = ember$data$lib$system$snapshot$$get(relationship, 'hasData'); - members = ember$data$lib$system$snapshot$$get(relationship, 'members'); - - if (hasData) { - results = []; - members.forEach(function (member) { - if (!member.isDeleted()) { - if (ids) { - results.push(member.id); - } else { - results.push(member.createSnapshot()); - } - } - }); - } - - if (ids) { - this._hasManyIds[keyName] = results; - } else { - this._hasManyRelationships[keyName] = results; - } - - return results; - }, - - /** - Iterates through all the attributes of the model, calling the passed - function on each attribute. - Example - ```javascript - snapshot.eachAttribute(function(name, meta) { - // ... - }); - ``` - @method eachAttribute - @param {Function} callback the callback to execute - @param {Object} [binding] the value to which the callback's `this` should be bound - */ - eachAttribute: function (callback, binding) { - this.record.eachAttribute(callback, binding); - }, - - /** - Iterates through all the relationships of the model, calling the passed - function on each relationship. - Example - ```javascript - snapshot.eachRelationship(function(name, relationship) { - // ... - }); - ``` - @method eachRelationship - @param {Function} callback the callback to execute - @param {Object} [binding] the value to which the callback's `this` should be bound - */ - eachRelationship: function (callback, binding) { - this.record.eachRelationship(callback, binding); - }, - - /** - @method get - @param {String} keyName - @return {Object} The property value - @deprecated Use [attr](#method_attr), [belongsTo](#method_belongsTo) or [hasMany](#method_hasMany) instead - */ - get: function (keyName) { - - if (keyName === 'id') { - return this.id; - } - - if (keyName in this._attributes) { - return this.attr(keyName); - } - - var relationship = this._internalModel._relationships.get(keyName); - - if (relationship && relationship.relationshipMeta.kind === 'belongsTo') { - return this.belongsTo(keyName); - } - if (relationship && relationship.relationshipMeta.kind === 'hasMany') { - return this.hasMany(keyName); - } - - return ember$data$lib$system$snapshot$$get(this.record, keyName); - }, - - /** - @method serialize - @param {Object} options - @return {Object} an object whose values are primitive JSON values only - */ - serialize: function (options) { - return this.record.store.serializerFor(this.modelName).serialize(this, options); - }, - - /** - @method unknownProperty - @param {String} keyName - @return {Object} The property value - @deprecated Use [attr](#method_attr), [belongsTo](#method_belongsTo) or [hasMany](#method_hasMany) instead - */ - unknownProperty: function (keyName) { - return this.get(keyName); - }, - - /** - @method _createSnapshot - @private - */ - _createSnapshot: function () { - return this; - } - }; - - Ember.defineProperty(ember$data$lib$system$snapshot$$Snapshot.prototype, 'typeKey', { - enumerable: false, - get: function () { - return this.modelName; - }, - set: function () { - } - }); - - var ember$data$lib$system$snapshot$$default = ember$data$lib$system$snapshot$$Snapshot; - - var ember$data$lib$system$model$internal$model$$Promise = Ember.RSVP.Promise; - var ember$data$lib$system$model$internal$model$$get = Ember.get; - var ember$data$lib$system$model$internal$model$$set = Ember.set; - var ember$data$lib$system$model$internal$model$$forEach = Ember.ArrayPolyfills.forEach; - var ember$data$lib$system$model$internal$model$$map = Ember.ArrayPolyfills.map; - - var ember$data$lib$system$model$internal$model$$_extractPivotNameCache = Ember.create(null); - var ember$data$lib$system$model$internal$model$$_splitOnDotCache = Ember.create(null); - - function ember$data$lib$system$model$internal$model$$splitOnDot(name) { - return ember$data$lib$system$model$internal$model$$_splitOnDotCache[name] || (ember$data$lib$system$model$internal$model$$_splitOnDotCache[name] = name.split(".")); - } - - function ember$data$lib$system$model$internal$model$$extractPivotName(name) { - return ember$data$lib$system$model$internal$model$$_extractPivotNameCache[name] || (ember$data$lib$system$model$internal$model$$_extractPivotNameCache[name] = ember$data$lib$system$model$internal$model$$splitOnDot(name)[0]); - } - - function ember$data$lib$system$model$internal$model$$retrieveFromCurrentState(key) { - return function () { - return ember$data$lib$system$model$internal$model$$get(this.currentState, key); - }; - } - - /** - `InternalModel` is the Model class that we use internally inside Ember Data to represent models. - Internal ED methods should only deal with `InternalModel` objects. It is a fast, plain Javascript class. - - We expose `DS.Model` to application code, by materializing a `DS.Model` from `InternalModel` lazily, as - a performance optimization. - - `InternalModel` should never be exposed to application code. At the boundaries of the system, in places - like `find`, `push`, etc. we convert between Models and InternalModels. - - We need to make sure that the properties from `InternalModel` are correctly exposed/proxied on `Model` - if they are needed. - - @class InternalModel - */ - - var ember$data$lib$system$model$internal$model$$InternalModel = function InternalModel(type, id, store, container, data) { - this.type = type; - this.id = id; - this.store = store; - this.container = container; - this._data = data || Ember.create(null); - this.modelName = type.modelName; - this.errors = null; - this.dataHasInitialized = false; - //Look into making this lazy - this._deferredTriggers = []; - this._attributes = Ember.create(null); - this._inFlightAttributes = Ember.create(null); - this._relationships = new ember$data$lib$system$relationships$state$create$$default(this); - this.currentState = ember$data$lib$system$model$states$$default.empty; - this.isReloading = false; - /* - implicit relationships are relationship which have not been declared but the inverse side exists on - another record somewhere - For example if there was - ```app/models/comment.js - import DS from 'ember-data'; - export default DS.Model.extend({ - name: DS.attr() - }) - ``` - but there is also - ```app/models/post.js - import DS from 'ember-data'; - export default DS.Model.extend({ - name: DS.attr(), - comments: DS.hasMany('comment') - }) - ``` - would have a implicit post relationship in order to be do things like remove ourselves from the post - when we are deleted - */ - this._implicitRelationships = Ember.create(null); - }; - - ember$data$lib$system$model$internal$model$$InternalModel.prototype = { - isEmpty: ember$data$lib$system$model$internal$model$$retrieveFromCurrentState("isEmpty"), - isLoading: ember$data$lib$system$model$internal$model$$retrieveFromCurrentState("isLoading"), - isLoaded: ember$data$lib$system$model$internal$model$$retrieveFromCurrentState("isLoaded"), - isDirty: ember$data$lib$system$model$internal$model$$retrieveFromCurrentState("isDirty"), - isSaving: ember$data$lib$system$model$internal$model$$retrieveFromCurrentState("isSaving"), - isDeleted: ember$data$lib$system$model$internal$model$$retrieveFromCurrentState("isDeleted"), - isNew: ember$data$lib$system$model$internal$model$$retrieveFromCurrentState("isNew"), - isValid: ember$data$lib$system$model$internal$model$$retrieveFromCurrentState("isValid"), - dirtyType: ember$data$lib$system$model$internal$model$$retrieveFromCurrentState("dirtyType"), - - constructor: ember$data$lib$system$model$internal$model$$InternalModel, - materializeRecord: function () { - // lookupFactory should really return an object that creates - // instances with the injections applied - this.record = this.type._create({ - id: this.id, - store: this.store, - container: this.container, - _internalModel: this, - currentState: ember$data$lib$system$model$internal$model$$get(this, "currentState") - }); - this._triggerDeferredTriggers(); - }, - - recordObjectWillDestroy: function () { - this.record = null; - }, - - deleteRecord: function () { - this.send("deleteRecord"); - }, - - save: function () { - var promiseLabel = "DS: Model#save " + this; - var resolver = Ember.RSVP.defer(promiseLabel); - - this.store.scheduleSave(this, resolver); - return resolver.promise; - }, - - startedReloading: function () { - this.isReloading = true; - if (this.record) { - ember$data$lib$system$model$internal$model$$set(this.record, "isReloading", true); - } - }, - - finishedReloading: function () { - this.isReloading = false; - if (this.record) { - ember$data$lib$system$model$internal$model$$set(this.record, "isReloading", false); - } - }, - - reload: function () { - this.startedReloading(); - var record = this; - var promiseLabel = "DS: Model#reload of " + this; - return new ember$data$lib$system$model$internal$model$$Promise(function (resolve) { - record.send("reloadRecord", resolve); - }, promiseLabel).then(function () { - record.didCleanError(); - return record; - }, function (reason) { - record.didError(); - throw reason; - }, "DS: Model#reload complete, update flags")["finally"](function () { - record.finishedReloading(); - record.updateRecordArrays(); - }); - }, - - getRecord: function () { - if (!this.record) { - this.materializeRecord(); - } - return this.record; - }, - - unloadRecord: function () { - this.send("unloadRecord"); - }, - - eachRelationship: function (callback, binding) { - return this.type.eachRelationship(callback, binding); - }, - - eachAttribute: function (callback, binding) { - return this.type.eachAttribute(callback, binding); - }, - - inverseFor: function (key) { - return this.type.inverseFor(key); - }, - - setupData: function (data) { - var changedKeys = ember$data$lib$system$model$internal$model$$mergeAndReturnChangedKeys(this._data, data); - this.pushedData(); - if (this.record) { - this.record._notifyProperties(changedKeys); - } - this.didInitalizeData(); - }, - - becameReady: function () { - Ember.run.schedule("actions", this.store.recordArrayManager, this.store.recordArrayManager.recordWasLoaded, this); - }, - - didInitalizeData: function () { - if (!this.dataHasInitialized) { - this.becameReady(); - this.dataHasInitialized = true; - } - }, - - destroy: function () { - if (this.record) { - return this.record.destroy(); - } - }, - - /** - @method createSnapshot - @private - */ - createSnapshot: function () { - return new ember$data$lib$system$snapshot$$default(this); - }, - - /** - @method loadingData - @private - @param {Promise} promise - */ - loadingData: function (promise) { - this.send("loadingData", promise); - }, - - /** - @method loadedData - @private - */ - loadedData: function () { - this.send("loadedData"); - this.didInitalizeData(); - }, - - /** - @method notFound - @private - */ - notFound: function () { - this.send("notFound"); - }, - - /** - @method pushedData - @private - */ - pushedData: function () { - this.send("pushedData"); - }, - - flushChangedAttributes: function () { - this._inFlightAttributes = this._attributes; - this._attributes = Ember.create(null); - }, - - /** - @method adapterWillCommit - @private - */ - adapterWillCommit: function () { - this.send("willCommit"); - }, - - /** - @method adapterDidDirty - @private - */ - adapterDidDirty: function () { - this.send("becomeDirty"); - this.updateRecordArraysLater(); - }, - - /** - @method send - @private - @param {String} name - @param {Object} context - */ - send: function (name, context) { - var currentState = ember$data$lib$system$model$internal$model$$get(this, "currentState"); - - if (!currentState[name]) { - this._unhandledEvent(currentState, name, context); - } - - return currentState[name](this, context); - }, - - notifyHasManyAdded: function (key, record, idx) { - if (this.record) { - this.record.notifyHasManyAdded(key, record, idx); - } - }, - - notifyHasManyRemoved: function (key, record, idx) { - if (this.record) { - this.record.notifyHasManyRemoved(key, record, idx); - } - }, - - notifyBelongsToChanged: function (key, record) { - if (this.record) { - this.record.notifyBelongsToChanged(key, record); - } - }, - - notifyPropertyChange: function (key) { - if (this.record) { - this.record.notifyPropertyChange(key); - } - }, - - rollback: function () { - var dirtyKeys = Ember.keys(this._attributes); - - this._attributes = Ember.create(null); - - if (ember$data$lib$system$model$internal$model$$get(this, "isError")) { - this._inFlightAttributes = Ember.create(null); - this.didCleanError(); - } - - //Eventually rollback will always work for relationships - //For now we support it only out of deleted state, because we - //have an explicit way of knowing when the server acked the relationship change - if (this.isDeleted()) { - //TODO: Should probably move this to the state machine somehow - this.becameReady(); - this.reconnectRelationships(); - } - - if (this.isNew()) { - this.clearRelationships(); - } - - if (this.isValid()) { - this._inFlightAttributes = Ember.create(null); - } - - this.send("rolledBack"); - - this.record._notifyProperties(dirtyKeys); - }, - /** - @method transitionTo - @private - @param {String} name - */ - transitionTo: function (name) { - // POSSIBLE TODO: Remove this code and replace with - // always having direct reference to state objects - - var pivotName = ember$data$lib$system$model$internal$model$$extractPivotName(name); - var currentState = ember$data$lib$system$model$internal$model$$get(this, "currentState"); - var state = currentState; - - do { - if (state.exit) { - state.exit(this); - } - state = state.parentState; - } while (!state.hasOwnProperty(pivotName)); - - var path = ember$data$lib$system$model$internal$model$$splitOnDot(name); - var setups = []; - var enters = []; - var i, l; - - for (i = 0, l = path.length; i < l; i++) { - state = state[path[i]]; - - if (state.enter) { - enters.push(state); - } - if (state.setup) { - setups.push(state); - } - } - - for (i = 0, l = enters.length; i < l; i++) { - enters[i].enter(this); - } - - ember$data$lib$system$model$internal$model$$set(this, "currentState", state); - //TODO Consider whether this is the best approach for keeping these two in sync - if (this.record) { - ember$data$lib$system$model$internal$model$$set(this.record, "currentState", state); - } - - for (i = 0, l = setups.length; i < l; i++) { - setups[i].setup(this); - } - - this.updateRecordArraysLater(); - }, - - _unhandledEvent: function (state, name, context) { - var errorMessage = "Attempted to handle event `" + name + "` "; - errorMessage += "on " + String(this) + " while in state "; - errorMessage += state.stateName + ". "; - - if (context !== undefined) { - errorMessage += "Called with " + Ember.inspect(context) + "."; - } - - throw new Ember.Error(errorMessage); - }, - - triggerLater: function () { - var length = arguments.length; - var args = new Array(length); - - for (var i = 0; i < length; i++) { - args[i] = arguments[i]; - } - - if (this._deferredTriggers.push(args) !== 1) { - return; - } - Ember.run.scheduleOnce("actions", this, "_triggerDeferredTriggers"); - }, - - _triggerDeferredTriggers: function () { - //TODO: Before 1.0 we want to remove all the events that happen on the pre materialized record, - //but for now, we queue up all the events triggered before the record was materialized, and flush - //them once we have the record - if (!this.record) { - return; - } - for (var i = 0, l = this._deferredTriggers.length; i < l; i++) { - this.record.trigger.apply(this.record, this._deferredTriggers[i]); - } - - this._deferredTriggers.length = 0; - }, - /** - @method clearRelationships - @private - */ - clearRelationships: function () { - this.eachRelationship(function (name, relationship) { - if (this._relationships.has(name)) { - var rel = this._relationships.get(name); - //TODO(Igor) figure out whether we want to clear or disconnect - rel.clear(); - rel.destroy(); - } - }, this); - var model = this; - ember$data$lib$system$model$internal$model$$forEach.call(Ember.keys(this._implicitRelationships), function (key) { - model._implicitRelationships[key].clear(); - model._implicitRelationships[key].destroy(); - }); - }, - - disconnectRelationships: function () { - this.eachRelationship(function (name, relationship) { - this._relationships.get(name).disconnect(); - }, this); - var model = this; - ember$data$lib$system$model$internal$model$$forEach.call(Ember.keys(this._implicitRelationships), function (key) { - model._implicitRelationships[key].disconnect(); - }); - }, - - reconnectRelationships: function () { - this.eachRelationship(function (name, relationship) { - this._relationships.get(name).reconnect(); - }, this); - var model = this; - ember$data$lib$system$model$internal$model$$forEach.call(Ember.keys(this._implicitRelationships), function (key) { - model._implicitRelationships[key].reconnect(); - }); - }, - - /** - When a find request is triggered on the store, the user can optionally pass in - attributes and relationships to be preloaded. These are meant to behave as if they - came back from the server, except the user obtained them out of band and is informing - the store of their existence. The most common use case is for supporting client side - nested URLs, such as `/posts/1/comments/2` so the user can do - `store.find('comment', 2, {post:1})` without having to fetch the post. - Preloaded data can be attributes and relationships passed in either as IDs or as actual - models. - @method _preloadData - @private - @param {Object} preload - */ - _preloadData: function (preload) { - var record = this; - //TODO(Igor) consider the polymorphic case - ember$data$lib$system$model$internal$model$$forEach.call(Ember.keys(preload), function (key) { - var preloadValue = ember$data$lib$system$model$internal$model$$get(preload, key); - var relationshipMeta = record.type.metaForProperty(key); - if (relationshipMeta.isRelationship) { - record._preloadRelationship(key, preloadValue); - } else { - record._data[key] = preloadValue; - } - }); - }, - - _preloadRelationship: function (key, preloadValue) { - var relationshipMeta = this.type.metaForProperty(key); - var type = relationshipMeta.type; - if (relationshipMeta.kind === "hasMany") { - this._preloadHasMany(key, preloadValue, type); - } else { - this._preloadBelongsTo(key, preloadValue, type); - } - }, - - _preloadHasMany: function (key, preloadValue, type) { - var internalModel = this; - - var recordsToSet = ember$data$lib$system$model$internal$model$$map.call(preloadValue, function (recordToPush) { - return internalModel._convertStringOrNumberIntoInternalModel(recordToPush, type); - }); - //We use the pathway of setting the hasMany as if it came from the adapter - //because the user told us that they know this relationships exists already - this._relationships.get(key).updateRecordsFromAdapter(recordsToSet); - }, - - _preloadBelongsTo: function (key, preloadValue, type) { - var recordToSet = this._convertStringOrNumberIntoInternalModel(preloadValue, type); - - //We use the pathway of setting the hasMany as if it came from the adapter - //because the user told us that they know this relationships exists already - this._relationships.get(key).setRecord(recordToSet); - }, - - _convertStringOrNumberIntoInternalModel: function (value, type) { - if (typeof value === "string" || typeof value === "number") { - return this.store._internalModelForId(type, value); - } - if (value._internalModel) { - return value._internalModel; - } - return value; - }, - - /** - @method updateRecordArrays - @private - */ - updateRecordArrays: function () { - this._updatingRecordArraysLater = false; - this.store.dataWasUpdated(this.type, this); - }, - - setId: function (id) { - this.id = id; - //TODO figure out whether maybe we should proxy - ember$data$lib$system$model$internal$model$$set(this.record, "id", id); - }, - - didError: function () { - this.isError = true; - if (this.record) { - this.record.set("isError", true); - } - }, - - didCleanError: function () { - this.isError = false; - if (this.record) { - this.record.set("isError", false); - } - }, - /** - If the adapter did not return a hash in response to a commit, - merge the changed attributes and relationships into the existing - saved data. - @method adapterDidCommit - */ - adapterDidCommit: function (data) { - var changedKeys; - this.didCleanError(); - - if (data) { - changedKeys = ember$data$lib$system$model$internal$model$$mergeAndReturnChangedKeys(this._data, data); - } else { - ember$data$lib$system$merge$$default(this._data, this._inFlightAttributes); - } - - this._inFlightAttributes = Ember.create(null); - - this.send("didCommit"); - this.updateRecordArraysLater(); - - if (!data) { - return; - } - - this.record._notifyProperties(changedKeys); - }, - - /** - @method updateRecordArraysLater - @private - */ - updateRecordArraysLater: function () { - // quick hack (something like this could be pushed into run.once - if (this._updatingRecordArraysLater) { - return; - } - this._updatingRecordArraysLater = true; - Ember.run.schedule("actions", this, this.updateRecordArrays); - }, - - getErrors: function () { - if (this.errors) { - return this.errors; - } - var errors = ember$data$lib$system$model$errors$$default.create(); - - errors.registerHandlers(this, function () { - this.send("becameInvalid"); - }, function () { - this.send("becameValid"); - }); - - this.errors = errors; - return errors; - }, - // FOR USE DURING COMMIT PROCESS - - /** - @method adapterDidInvalidate - @private - */ - adapterDidInvalidate: function (errors) { - var recordErrors = this.getErrors(); - ember$data$lib$system$model$internal$model$$forEach.call(Ember.keys(errors), function (key) { - recordErrors.add(key, errors[key]); - }); - this._saveWasRejected(); - }, - - /** - @method adapterDidError - @private - */ - adapterDidError: function () { - this.send("becameError"); - this.didError(); - this._saveWasRejected(); - }, - - _saveWasRejected: function () { - var keys = Ember.keys(this._inFlightAttributes); - for (var i = 0; i < keys.length; i++) { - if (this._attributes[keys[i]] === undefined) { - this._attributes[keys[i]] = this._inFlightAttributes[keys[i]]; - } - } - this._inFlightAttributes = Ember.create(null); - }, - - toString: function () { - if (this.record) { - return this.record.toString(); - } else { - return "<" + this.modelName + ":" + this.id + ">"; - } - } - }; - - // Like Ember.merge, but instead returns a list of keys - // for values that fail a strict equality check - // instead of the original object. - function ember$data$lib$system$model$internal$model$$mergeAndReturnChangedKeys(original, updates) { - var changedKeys = []; - - if (!updates || typeof updates !== "object") { - return changedKeys; - } - - var keys = Ember.keys(updates); - var length = keys.length; - var i, val, key; - - for (i = 0; i < length; i++) { - key = keys[i]; - val = updates[key]; - - if (original[key] !== val) { - changedKeys.push(key); - } - - original[key] = val; - } - return changedKeys; - } - - var ember$data$lib$system$model$internal$model$$default = ember$data$lib$system$model$internal$model$$InternalModel; - - var ember$data$lib$system$store$$Backburner = Ember.Backburner || Ember.__loader.require("backburner")["default"] || Ember.__loader.require("backburner")["Backburner"]; - - //Shim Backburner.join - if (!ember$data$lib$system$store$$Backburner.prototype.join) { - var ember$data$lib$system$store$$isString = function (suspect) { - return typeof suspect === "string"; - }; - - ember$data$lib$system$store$$Backburner.prototype.join = function () { - var method, target; - - if (this.currentInstance) { - var length = arguments.length; - if (length === 1) { - method = arguments[0]; - target = null; - } else { - target = arguments[0]; - method = arguments[1]; - } - - if (ember$data$lib$system$store$$isString(method)) { - method = target[method]; - } - - if (length === 1) { - return method(); - } else if (length === 2) { - return method.call(target); - } else { - var args = new Array(length - 2); - for (var i = 0, l = length - 2; i < l; i++) { - args[i] = arguments[i + 2]; - } - return method.apply(target, args); - } - } else { - return this.run.apply(this, arguments); - } - }; - } - - //Get the materialized model from the internalModel/promise that returns - //an internal model and return it in a promiseObject. Useful for returning - //from find methods - function ember$data$lib$system$store$$promiseRecord(internalModel, label) { - //TODO cleanup - var toReturn = internalModel; - if (!internalModel.then) { - toReturn = internalModel.getRecord(); - } else { - toReturn = internalModel.then(function (model) { - return model.getRecord(); - }); - } - return ember$data$lib$system$promise$proxies$$promiseObject(toReturn, label); - } - - var ember$data$lib$system$store$$get = Ember.get; - var ember$data$lib$system$store$$set = Ember.set; - var ember$data$lib$system$store$$once = Ember.run.once; - var ember$data$lib$system$store$$isNone = Ember.isNone; - var ember$data$lib$system$store$$forEach = Ember.EnumerableUtils.forEach; - var ember$data$lib$system$store$$indexOf = Ember.EnumerableUtils.indexOf; - var ember$data$lib$system$store$$map = Ember.EnumerableUtils.map; - var ember$data$lib$system$store$$Promise = Ember.RSVP.Promise; - var ember$data$lib$system$store$$copy = Ember.copy; - var ember$data$lib$system$store$$Store; - - var ember$data$lib$system$store$$Service = Ember.Service; - if (!ember$data$lib$system$store$$Service) { - ember$data$lib$system$store$$Service = Ember.Object; - } - - // Implementors Note: - // - // The variables in this file are consistently named according to the following - // scheme: - // - // * +id+ means an identifier managed by an external source, provided inside - // the data provided by that source. These are always coerced to be strings - // before being used internally. - // * +clientId+ means a transient numerical identifier generated at runtime by - // the data store. It is important primarily because newly created objects may - // not yet have an externally generated id. - // * +internalModel+ means a record internalModel object, which holds metadata about a - // record, even if it has not yet been fully materialized. - // * +type+ means a DS.Model. - - /** - The store contains all of the data for records loaded from the server. - It is also responsible for creating instances of `DS.Model` that wrap - the individual data for a record, so that they can be bound to in your - Handlebars templates. - - Define your application's store like this: - - ```app/stores/application.js - import DS from 'ember-data'; - - export default DS.Store.extend({ - }); - ``` - - Most Ember.js applications will only have a single `DS.Store` that is - automatically created by their `Ember.Application`. - - You can retrieve models from the store in several ways. To retrieve a record - for a specific id, use `DS.Store`'s `find()` method: - - ```javascript - store.find('person', 123).then(function (person) { - }); - ``` - - By default, the store will talk to your backend using a standard - REST mechanism. You can customize how the store talks to your - backend by specifying a custom adapter: - - ```app/adapters/application.js - import DS from 'ember-data'; - - export default DS.Adapter.extend({ - }); - ``` - - You can learn more about writing a custom adapter by reading the `DS.Adapter` - documentation. - - ### Store createRecord() vs. push() vs. pushPayload() - - The store provides multiple ways to create new record objects. They have - some subtle differences in their use which are detailed below: - - [createRecord](#method_createRecord) is used for creating new - records on the client side. This will return a new record in the - `created.uncommitted` state. In order to persist this record to the - backend you will need to call `record.save()`. - - [push](#method_push) is used to notify Ember Data's store of new or - updated records that exist in the backend. This will return a record - in the `loaded.saved` state. The primary use-case for `store#push` is - to notify Ember Data about record updates (full or partial) that happen - outside of the normal adapter methods (for example - [SSE](http://dev.w3.org/html5/eventsource/) or [Web - Sockets](http://www.w3.org/TR/2009/WD-websockets-20091222/)). - - [pushPayload](#method_pushPayload) is a convenience wrapper for - `store#push` that will deserialize payloads if the - Serializer implements a `pushPayload` method. - - Note: When creating a new record using any of the above methods - Ember Data will update `DS.RecordArray`s such as those returned by - `store#all()`, `store#findAll()` or `store#filter()`. This means any - data bindings or computed properties that depend on the RecordArray - will automatically be synced to include the new or updated record - values. - - @class Store - @namespace DS - @extends Ember.Service - */ - ember$data$lib$system$store$$Store = ember$data$lib$system$store$$Service.extend({ - - /** - @method init - @private - */ - init: function () { - this._backburner = new ember$data$lib$system$store$$Backburner(["normalizeRelationships", "syncRelationships", "finished"]); - // internal bookkeeping; not observable - this.typeMaps = {}; - this.recordArrayManager = ember$data$lib$system$record$array$manager$$default.create({ - store: this - }); - this._pendingSave = []; - this._instanceCache = new ember$data$lib$system$store$container$instance$cache$$default(this.container); - //Used to keep track of all the find requests that need to be coalesced - this._pendingFetch = ember$data$lib$system$map$$Map.create(); - }, - - /** - The adapter to use to communicate to a backend server or other persistence layer. - This can be specified as an instance, class, or string. - If you want to specify `app/adapters/custom.js` as a string, do: - ```js - adapter: 'custom' - ``` - @property adapter - @default DS.RESTAdapter - @type {(DS.Adapter|String)} - */ - adapter: "-rest", - - /** - Returns a JSON representation of the record using a custom - type-specific serializer, if one exists. - The available options are: - * `includeId`: `true` if the record's ID should be included in - the JSON representation - @method serialize - @private - @param {DS.Model} record the record to serialize - @param {Object} options an options hash - */ - serialize: function (record, options) { - var snapshot = record._internalModel.createSnapshot(); - return snapshot.serialize(options); - }, - - /** - This property returns the adapter, after resolving a possible - string key. - If the supplied `adapter` was a class, or a String property - path resolved to a class, this property will instantiate the - class. - This property is cacheable, so the same instance of a specified - adapter class should be used for the lifetime of the store. - @property defaultAdapter - @private - @return DS.Adapter - */ - defaultAdapter: Ember.computed("adapter", function () { - var adapter = ember$data$lib$system$store$$get(this, "adapter"); - - - adapter = this.retrieveManagedInstance("adapter", adapter); - - return adapter; - }), - - // ..................... - // . CREATE NEW RECORD . - // ..................... - - /** - Create a new record in the current store. The properties passed - to this method are set on the newly created record. - To create a new instance of `App.Post`: - ```js - store.createRecord('post', { - title: "Rails is omakase" - }); - ``` - @method createRecord - @param {String} modelName - @param {Object} inputProperties a hash of properties to set on the - newly created record. - @return {DS.Model} record - */ - createRecord: function (modelName, inputProperties) { - var typeClass = this.modelFor(modelName); - var properties = ember$data$lib$system$store$$copy(inputProperties) || Ember.create(null); - - // If the passed properties do not include a primary key, - // give the adapter an opportunity to generate one. Typically, - // client-side ID generators will use something like uuid.js - // to avoid conflicts. - - if (ember$data$lib$system$store$$isNone(properties.id)) { - properties.id = this._generateId(modelName, properties); - } - - // Coerce ID to a string - properties.id = ember$data$lib$system$coerce$id$$default(properties.id); - - var internalModel = this.buildInternalModel(typeClass, properties.id); - var record = internalModel.getRecord(); - - // Move the record out of its initial `empty` state into - // the `loaded` state. - internalModel.loadedData(); - - // Set the properties specified on the record. - record.setProperties(properties); - - internalModel.eachRelationship(function (key, descriptor) { - internalModel._relationships.get(key).setHasData(true); - }); - - return record; - }, - - /** - If possible, this method asks the adapter to generate an ID for - a newly created record. - @method _generateId - @private - @param {String} modelName - @param {Object} properties from the new record - @return {String} if the adapter can generate one, an ID - */ - _generateId: function (modelName, properties) { - var adapter = this.adapterFor(modelName); - - if (adapter && adapter.generateIdForRecord) { - return adapter.generateIdForRecord(this, modelName, properties); - } - - return null; - }, - - // ................. - // . DELETE RECORD . - // ................. - - /** - For symmetry, a record can be deleted via the store. - Example - ```javascript - var post = store.createRecord('post', { - title: "Rails is omakase" - }); - store.deleteRecord(post); - ``` - @method deleteRecord - @param {DS.Model} record - */ - deleteRecord: function (record) { - record.deleteRecord(); - }, - - /** - For symmetry, a record can be unloaded via the store. Only - non-dirty records can be unloaded. - Example - ```javascript - store.find('post', 1).then(function(post) { - store.unloadRecord(post); - }); - ``` - @method unloadRecord - @param {DS.Model} record - */ - unloadRecord: function (record) { - record.unloadRecord(); - }, - - // ................ - // . FIND RECORDS . - // ................ - - /** - This is the main entry point into finding records. The first parameter to - this method is the model's name as a string. - --- - To find a record by ID, pass the `id` as the second parameter: - ```javascript - store.find('person', 1); - ``` - The `find` method will always return a **promise** that will be resolved - with the record. If the record was already in the store, the promise will - be resolved immediately. Otherwise, the store will ask the adapter's `find` - method to find the necessary data. - The `find` method will always resolve its promise with the same object for - a given type and `id`. - --- - You can optionally `preload` specific attributes and relationships that you know of - by passing them as the third argument to find. - For example, if your Ember route looks like `/posts/1/comments/2` and your API route - for the comment also looks like `/posts/1/comments/2` if you want to fetch the comment - without fetching the post you can pass in the post to the `find` call: - ```javascript - store.find('comment', 2, {post: 1}); - ``` - If you have access to the post model you can also pass the model itself: - ```javascript - store.find('post', 1).then(function (myPostModel) { - store.find('comment', 2, {post: myPostModel}); - }); - ``` - This way, your adapter's `find` or `buildURL` method will be able to look up the - relationship on the record and construct the nested URL without having to first - fetch the post. - --- - To find all records for a type, call `find` with no additional parameters: - ```javascript - store.find('person'); - ``` - This will ask the adapter's `findAll` method to find the records for the - given type, and return a promise that will be resolved once the server - returns the values. The promise will resolve into all records of this type - present in the store, even if the server only returns a subset of them. - --- - To find a record by a query, call `find` with a hash as the second - parameter: - ```javascript - store.find('person', { page: 1 }); - ``` - By passing an object `{page: 1}` as an argument to the find method, it - delegates to the adapter's findQuery method. The adapter then makes - a call to the server, transforming the object `{page: 1}` as parameters - that are sent along, and will return a RecordArray when the promise - resolves. - Exposing queries this way seems preferable to creating an abstract query - language for all server-side queries, and then require all adapters to - implement them. - The call made to the server, using a Rails backend, will look something like this: - ``` - Started GET "/api/v1/person?page=1" - Processing by Api::V1::PersonsController#index as HTML - Parameters: {"page"=>"1"} - ``` - If you do something like this: - ```javascript - store.find('person', {ids: [1, 2, 3]}); - ``` - The call to the server, using a Rails backend, will look something like this: - ``` - Started GET "/api/v1/person?ids%5B%5D=1&ids%5B%5D=2&ids%5B%5D=3" - Processing by Api::V1::PersonsController#index as HTML - Parameters: {"ids"=>["1", "2", "3"]} - ``` - @method find - @param {String} modelName - @param {(Object|String|Integer|null)} id - @param {Object} preload - optional set of attributes and relationships passed in either as IDs or as actual models - @return {Promise} promise - */ - find: function (modelName, id, preload) { - - if (arguments.length === 1) { - return this.findAll(modelName); - } - - // We are passed a query instead of an id. - if (Ember.typeOf(id) === "object") { - return this.findQuery(modelName, id); - } - - return this.findById(modelName, ember$data$lib$system$coerce$id$$default(id), preload); - }, - - /** - This method returns a fresh record for a given type and id combination. - If a record is available for the given type/id combination, then - it will fetch this record from the store and call `reload()` on it. - That will fire a request to server and return a promise that will - resolve once the record has been reloaded. - If there's no record corresponding in the store it will simply call - `store.find`. - Example - ```app/routes/post.js - import Ember from 'ember'; - export default Ember.Route.extend({ - model: function(params) { - return this.store.fetchById('post', params.post_id); - } - }); - ``` - @method fetchById - @param {String} modelName - @param {(String|Integer)} id - @param {Object} preload - optional set of attributes and relationships passed in either as IDs or as actual models - @return {Promise} promise - */ - fetchById: function (modelName, id, preload) { - if (this.hasRecordForId(modelName, id)) { - return this.getById(modelName, id).reload(); - } else { - return this.find(modelName, id, preload); - } - }, - - /** - This method returns a fresh collection from the server, regardless of if there is already records - in the store or not. - @method fetchAll - @param {String} modelName - @return {Promise} promise - */ - fetchAll: function (modelName) { - var typeClass = this.modelFor(modelName); - - return this._fetchAll(typeClass, this.all(modelName)); - }, - - /** - @method fetch - @param {String} modelName - @param {(String|Integer)} id - @param {Object} preload - optional set of attributes and relationships passed in either as IDs or as actual models - @return {Promise} promise - @deprecated Use [fetchById](#method_fetchById) instead - */ - fetch: function (modelName, id, preload) { - return this.fetchById(modelName, id, preload); - }, - - /** - This method returns a record for a given type and id combination. - @method findById - @private - @param {String} modelName - @param {(String|Integer)} id - @param {Object} preload - optional set of attributes and relationships passed in either as IDs or as actual models - @return {Promise} promise - */ - findById: function (modelName, id, preload) { - var internalModel = this._internalModelForId(modelName, id); - - return this._findByInternalModel(internalModel, preload); - }, - - _findByInternalModel: function (internalModel, preload) { - var fetchedInternalModel; - - if (preload) { - internalModel._preloadData(preload); - } - - if (internalModel.isEmpty()) { - fetchedInternalModel = this.scheduleFetch(internalModel); - //TODO double check about reloading - } else if (internalModel.isLoading()) { - fetchedInternalModel = internalModel._loadingPromise; - } - - return ember$data$lib$system$store$$promiseRecord(fetchedInternalModel || internalModel, "DS: Store#findByRecord " + internalModel.typeKey + " with id: " + ember$data$lib$system$store$$get(internalModel, "id")); - }, - /** - This method makes a series of requests to the adapter's `find` method - and returns a promise that resolves once they are all loaded. - @private - @method findByIds - @param {String} modelName - @param {Array} ids - @return {Promise} promise - */ - findByIds: function (modelName, ids) { - var store = this; - - return ember$data$lib$system$promise$proxies$$promiseArray(Ember.RSVP.all(ember$data$lib$system$store$$map(ids, function (id) { - return store.findById(modelName, id); - })).then(Ember.A, null, "DS: Store#findByIds of " + modelName + " complete")); - }, - - /** - This method is called by `findById` if it discovers that a particular - type/id pair hasn't been loaded yet to kick off a request to the - adapter. - @method fetchRecord - @private - @param {InternalModel} internalModel model - @return {Promise} promise - */ - fetchRecord: function (internalModel) { - var typeClass = internalModel.type; - var id = internalModel.id; - var adapter = this.adapterFor(typeClass.modelName); - - - var promise = ember$data$lib$system$store$finders$$_find(adapter, this, typeClass, id, internalModel); - return promise; - }, - - scheduleFetchMany: function (records) { - var internalModels = ember$data$lib$system$store$$map(records, function (record) { - return record._internalModel; - }); - return ember$data$lib$system$store$$Promise.all(ember$data$lib$system$store$$map(internalModels, this.scheduleFetch, this)); - }, - - scheduleFetch: function (internalModel) { - var typeClass = internalModel.type; - - if (internalModel._loadingPromise) { - return internalModel._loadingPromise; - } - - var resolver = Ember.RSVP.defer("Fetching " + typeClass + "with id: " + internalModel.id); - var recordResolverPair = { - record: internalModel, - resolver: resolver - }; - var promise = resolver.promise; - - internalModel.loadingData(promise); - - if (!this._pendingFetch.get(typeClass)) { - this._pendingFetch.set(typeClass, [recordResolverPair]); - } else { - this._pendingFetch.get(typeClass).push(recordResolverPair); - } - Ember.run.scheduleOnce("afterRender", this, this.flushAllPendingFetches); - - return promise; - }, - - flushAllPendingFetches: function () { - if (this.isDestroyed || this.isDestroying) { - return; - } - - this._pendingFetch.forEach(this._flushPendingFetchForType, this); - this._pendingFetch = ember$data$lib$system$map$$Map.create(); - }, - - _flushPendingFetchForType: function (recordResolverPairs, typeClass) { - var store = this; - var adapter = store.adapterFor(typeClass.modelName); - var shouldCoalesce = !!adapter.findMany && adapter.coalesceFindRequests; - var records = Ember.A(recordResolverPairs).mapBy("record"); - - function _fetchRecord(recordResolverPair) { - recordResolverPair.resolver.resolve(store.fetchRecord(recordResolverPair.record)); - } - - function resolveFoundRecords(records) { - ember$data$lib$system$store$$forEach(records, function (record) { - var pair = Ember.A(recordResolverPairs).findBy("record", record); - if (pair) { - var resolver = pair.resolver; - resolver.resolve(record); - } - }); - return records; - } - - function makeMissingRecordsRejector(requestedRecords) { - return function rejectMissingRecords(resolvedRecords) { - resolvedRecords = Ember.A(resolvedRecords); - var missingRecords = requestedRecords.reject(function (record) { - return resolvedRecords.contains(record); - }); - if (missingRecords.length) { - } - rejectRecords(missingRecords); - }; - } - - function makeRecordsRejector(records) { - return function (error) { - rejectRecords(records, error); - }; - } - - function rejectRecords(records, error) { - ember$data$lib$system$store$$forEach(records, function (record) { - var pair = Ember.A(recordResolverPairs).findBy("record", record); - if (pair) { - var resolver = pair.resolver; - resolver.reject(error); - } - }); - } - - if (recordResolverPairs.length === 1) { - _fetchRecord(recordResolverPairs[0]); - } else if (shouldCoalesce) { - - // TODO: Improve records => snapshots => records => snapshots - // - // We want to provide records to all store methods and snapshots to all - // adapter methods. To make sure we're doing that we're providing an array - // of snapshots to adapter.groupRecordsForFindMany(), which in turn will - // return grouped snapshots instead of grouped records. - // - // But since the _findMany() finder is a store method we need to get the - // records from the grouped snapshots even though the _findMany() finder - // will once again convert the records to snapshots for adapter.findMany() - - var snapshots = Ember.A(records).invoke("createSnapshot"); - var groups = adapter.groupRecordsForFindMany(this, snapshots); - ember$data$lib$system$store$$forEach(groups, function (groupOfSnapshots) { - var groupOfRecords = Ember.A(groupOfSnapshots).mapBy("_internalModel"); - var requestedRecords = Ember.A(groupOfRecords); - var ids = requestedRecords.mapBy("id"); - if (ids.length > 1) { - ember$data$lib$system$store$finders$$_findMany(adapter, store, typeClass, ids, requestedRecords).then(resolveFoundRecords).then(makeMissingRecordsRejector(requestedRecords)).then(null, makeRecordsRejector(requestedRecords)); - } else if (ids.length === 1) { - var pair = Ember.A(recordResolverPairs).findBy("record", groupOfRecords[0]); - _fetchRecord(pair); - } else { - } - }); - } else { - ember$data$lib$system$store$$forEach(recordResolverPairs, _fetchRecord); - } - }, - - /** - Get a record by a given type and ID without triggering a fetch. - This method will synchronously return the record if it is available in the store, - otherwise it will return `null`. A record is available if it has been fetched earlier, or - pushed manually into the store. - _Note: This is an synchronous method and does not return a promise._ - ```js - var post = store.getById('post', 1); - post.get('id'); // 1 - ``` - @method getById - @param {String} modelName - @param {String|Integer} id - @return {DS.Model|null} record - */ - getById: function (modelName, id) { - if (this.hasRecordForId(modelName, id)) { - return this._internalModelForId(modelName, id).getRecord(); - } else { - return null; - } - }, - - /** - This method is called by the record's `reload` method. - This method calls the adapter's `find` method, which returns a promise. When - **that** promise resolves, `reloadRecord` will resolve the promise returned - by the record's `reload`. - @method reloadRecord - @private - @param {DS.Model} internalModel - @return {Promise} promise - */ - reloadRecord: function (internalModel) { - var modelName = internalModel.type.modelName; - var adapter = this.adapterFor(modelName); - var id = internalModel.id; - - - return this.scheduleFetch(internalModel); - }, - - /** - Returns true if a record for a given type and ID is already loaded. - @method hasRecordForId - @param {(String|DS.Model)} modelName - @param {(String|Integer)} inputId - @return {Boolean} - */ - hasRecordForId: function (modelName, inputId) { - var typeClass = this.modelFor(modelName); - var id = ember$data$lib$system$coerce$id$$default(inputId); - var internalModel = this.typeMapFor(typeClass).idToRecord[id]; - return !!internalModel && internalModel.isLoaded(); - }, - - /** - Returns id record for a given type and ID. If one isn't already loaded, - it builds a new record and leaves it in the `empty` state. - @method recordForId - @private - @param {String} modelName - @param {(String|Integer)} id - @return {DS.Model} record - */ - recordForId: function (modelName, id) { - return this._internalModelForId(modelName, id).getRecord(); - }, - - _internalModelForId: function (typeName, inputId) { - var typeClass = this.modelFor(typeName); - var id = ember$data$lib$system$coerce$id$$default(inputId); - var idToRecord = this.typeMapFor(typeClass).idToRecord; - var record = idToRecord[id]; - - if (!record || !idToRecord[id]) { - record = this.buildInternalModel(typeClass, id); - } - - return record; - }, - - /** - @method findMany - @private - @param {Array} internalModels - @return {Promise} promise - */ - findMany: function (internalModels) { - var store = this; - return ember$data$lib$system$store$$Promise.all(ember$data$lib$system$store$$map(internalModels, function (internalModel) { - return store._findByInternalModel(internalModel); - })); - }, - - /** - If a relationship was originally populated by the adapter as a link - (as opposed to a list of IDs), this method is called when the - relationship is fetched. - The link (which is usually a URL) is passed through unchanged, so the - adapter can make whatever request it wants. - The usual use-case is for the server to register a URL as a link, and - then use that URL in the future to make a request for the relationship. - @method findHasMany - @private - @param {DS.Model} owner - @param {any} link - @param {(Relationship)} relationship - @return {Promise} promise - */ - findHasMany: function (owner, link, relationship) { - var adapter = this.adapterFor(owner.type.modelName); - - - return ember$data$lib$system$store$finders$$_findHasMany(adapter, this, owner, link, relationship); - }, - - /** - @method findBelongsTo - @private - @param {DS.Model} owner - @param {any} link - @param {Relationship} relationship - @return {Promise} promise - */ - findBelongsTo: function (owner, link, relationship) { - var adapter = this.adapterFor(owner.type.modelName); - - - return ember$data$lib$system$store$finders$$_findBelongsTo(adapter, this, owner, link, relationship); - }, - - /** - This method delegates a query to the adapter. This is the one place where - adapter-level semantics are exposed to the application. - Exposing queries this way seems preferable to creating an abstract query - language for all server-side queries, and then require all adapters to - implement them. - This method returns a promise, which is resolved with a `RecordArray` - once the server returns. - @method findQuery - @private - @param {String} modelName - @param {any} query an opaque query to be used by the adapter - @return {Promise} promise - */ - findQuery: function (modelName, query) { - var typeClass = this.modelFor(modelName); - var array = this.recordArrayManager.createAdapterPopulatedRecordArray(typeClass, query); - - var adapter = this.adapterFor(modelName); - - - return ember$data$lib$system$promise$proxies$$promiseArray(ember$data$lib$system$store$finders$$_findQuery(adapter, this, typeClass, query, array)); - }, - - /** - This method returns an array of all records adapter can find. - It triggers the adapter's `findAll` method to give it an opportunity to populate - the array with records of that type. - @method findAll - @private - @param {String} modelName - @return {DS.AdapterPopulatedRecordArray} - */ - findAll: function (modelName) { - return this.fetchAll(modelName); - }, - - /** - @method _fetchAll - @private - @param {DS.Model} typeClass - @param {DS.RecordArray} array - @return {Promise} promise - */ - _fetchAll: function (typeClass, array) { - var adapter = this.adapterFor(typeClass.modelName); - var sinceToken = this.typeMapFor(typeClass).metadata.since; - - ember$data$lib$system$store$$set(array, "isUpdating", true); - - - return ember$data$lib$system$promise$proxies$$promiseArray(ember$data$lib$system$store$finders$$_findAll(adapter, this, typeClass, sinceToken)); - }, - - /** - @method didUpdateAll - @param {DS.Model} typeClass - @private - */ - didUpdateAll: function (typeClass) { - var findAllCache = this.typeMapFor(typeClass).findAllCache; - ember$data$lib$system$store$$set(findAllCache, "isUpdating", false); - }, - - /** - This method returns a filtered array that contains all of the - known records for a given type in the store. - Note that because it's just a filter, the result will contain any - locally created records of the type, however, it will not make a - request to the backend to retrieve additional records. If you - would like to request all the records from the backend please use - [store.find](#method_find). - Also note that multiple calls to `all` for a given type will always - return the same `RecordArray`. - Example - ```javascript - var localPosts = store.all('post'); - ``` - @method all - @param {String} modelName - @return {DS.RecordArray} - */ - all: function (modelName) { - var typeClass = this.modelFor(modelName); - var typeMap = this.typeMapFor(typeClass); - var findAllCache = typeMap.findAllCache; - - if (findAllCache) { - this.recordArrayManager.updateFilter(findAllCache, typeClass); - return findAllCache; - } - - var array = this.recordArrayManager.createRecordArray(typeClass); - - typeMap.findAllCache = array; - return array; - }, - - /** - This method unloads all records in the store. - Optionally you can pass a type which unload all records for a given type. - ```javascript - store.unloadAll(); - store.unloadAll('post'); - ``` - @method unloadAll - @param {String=} modelName - */ - unloadAll: function (modelName) { - if (arguments.length === 0) { - var typeMaps = this.typeMaps; - var keys = Ember.keys(typeMaps); - - var types = ember$data$lib$system$store$$map(keys, byType); - - ember$data$lib$system$store$$forEach(types, this.unloadAll, this); - } else { - var typeClass = this.modelFor(modelName); - var typeMap = this.typeMapFor(typeClass); - var records = typeMap.records.slice(); - var record; - - for (var i = 0; i < records.length; i++) { - record = records[i]; - record.unloadRecord(); - record.destroy(); // maybe within unloadRecord - } - - typeMap.findAllCache = null; - typeMap.metadata = Ember.create(null); - } - - function byType(entry) { - return typeMaps[entry]["type"].modelName; - } - }, - - /** - Takes a type and filter function, and returns a live RecordArray that - remains up to date as new records are loaded into the store or created - locally. - The filter function takes a materialized record, and returns true - if the record should be included in the filter and false if it should - not. - Example - ```javascript - store.filter('post', function(post) { - return post.get('unread'); - }); - ``` - The filter function is called once on all records for the type when - it is created, and then once on each newly loaded or created record. - If any of a record's properties change, or if it changes state, the - filter function will be invoked again to determine whether it should - still be in the array. - Optionally you can pass a query, which is the equivalent of calling - [find](#method_find) with that same query, to fetch additional records - from the server. The results returned by the server could then appear - in the filter if they match the filter function. - The query itself is not used to filter records, it's only sent to your - server for you to be able to do server-side filtering. The filter - function will be applied on the returned results regardless. - Example - ```javascript - store.filter('post', { unread: true }, function(post) { - return post.get('unread'); - }).then(function(unreadPosts) { - unreadPosts.get('length'); // 5 - var unreadPost = unreadPosts.objectAt(0); - unreadPost.set('unread', false); - unreadPosts.get('length'); // 4 - }); - ``` - @method filter - @param {String} modelName - @param {Object} query optional query - @param {Function} filter - @return {DS.PromiseArray} - */ - filter: function (modelName, query, filter) { - var promise; - var length = arguments.length; - var array; - var hasQuery = length === 3; - - // allow an optional server query - if (hasQuery) { - promise = this.findQuery(modelName, query); - } else if (arguments.length === 2) { - filter = query; - } - - modelName = this.modelFor(modelName); - - if (hasQuery) { - array = this.recordArrayManager.createFilteredRecordArray(modelName, filter, query); - } else { - array = this.recordArrayManager.createFilteredRecordArray(modelName, filter); - } - - promise = promise || ember$data$lib$system$store$$Promise.cast(array); - - return ember$data$lib$system$promise$proxies$$promiseArray(promise.then(function () { - return array; - }, null, "DS: Store#filter of " + modelName)); - }, - - /** - This method returns if a certain record is already loaded - in the store. Use this function to know beforehand if a find() - will result in a request or that it will be a cache hit. - Example - ```javascript - store.recordIsLoaded('post', 1); // false - store.find('post', 1).then(function() { - store.recordIsLoaded('post', 1); // true - }); - ``` - @method recordIsLoaded - @param {String} modelName - @param {string} id - @return {boolean} - */ - recordIsLoaded: function (modelName, id) { - return this.hasRecordForId(modelName, id); - }, - - /** - This method returns the metadata for a specific type. - @method metadataFor - @param {String} modelName - @return {object} - */ - metadataFor: function (modelName) { - var typeClass = this.modelFor(modelName); - return this.typeMapFor(typeClass).metadata; - }, - - /** - This method sets the metadata for a specific type. - @method setMetadataFor - @param {String} modelName - @param {Object} metadata metadata to set - @return {object} - */ - setMetadataFor: function (modelName, metadata) { - var typeClass = this.modelFor(modelName); - Ember.merge(this.typeMapFor(typeClass).metadata, metadata); - }, - - // ............ - // . UPDATING . - // ............ - - /** - If the adapter updates attributes the record will notify - the store to update its membership in any filters. - To avoid thrashing, this method is invoked only once per - run loop per record. - @method dataWasUpdated - @private - @param {Class} type - @param {InternalModel} internalModel - */ - dataWasUpdated: function (type, internalModel) { - this.recordArrayManager.recordDidChange(internalModel); - }, - - // .............. - // . PERSISTING . - // .............. - - /** - This method is called by `record.save`, and gets passed a - resolver for the promise that `record.save` returns. - It schedules saving to happen at the end of the run loop. - @method scheduleSave - @private - @param {InternalModel} internalModel - @param {Resolver} resolver - */ - scheduleSave: function (internalModel, resolver) { - var snapshot = internalModel.createSnapshot(); - internalModel.flushChangedAttributes(); - internalModel.adapterWillCommit(); - this._pendingSave.push([snapshot, resolver]); - ember$data$lib$system$store$$once(this, "flushPendingSave"); - }, - - /** - This method is called at the end of the run loop, and - flushes any records passed into `scheduleSave` - @method flushPendingSave - @private - */ - flushPendingSave: function () { - var pending = this._pendingSave.slice(); - this._pendingSave = []; - - ember$data$lib$system$store$$forEach(pending, function (tuple) { - var snapshot = tuple[0]; - var resolver = tuple[1]; - var record = snapshot._internalModel; - var adapter = this.adapterFor(record.type.modelName); - var operation; - - if (ember$data$lib$system$store$$get(record, "currentState.stateName") === "root.deleted.saved") { - return resolver.resolve(); - } else if (record.isNew()) { - operation = "createRecord"; - } else if (record.isDeleted()) { - operation = "deleteRecord"; - } else { - operation = "updateRecord"; - } - - resolver.resolve(ember$data$lib$system$store$$_commit(adapter, this, operation, snapshot)); - }, this); - }, - - /** - This method is called once the promise returned by an - adapter's `createRecord`, `updateRecord` or `deleteRecord` - is resolved. - If the data provides a server-generated ID, it will - update the record and the store's indexes. - @method didSaveRecord - @private - @param {InternalModel} internalModel the in-flight internal model - @param {Object} data optional data (see above) - */ - didSaveRecord: function (internalModel, data) { - if (data) { - // normalize relationship IDs into records - this._backburner.schedule("normalizeRelationships", this, "_setupRelationships", internalModel, internalModel.type, data); - this.updateId(internalModel, data); - } - - //We first make sure the primary data has been updated - //TODO try to move notification to the user to the end of the runloop - internalModel.adapterDidCommit(data); - }, - - /** - This method is called once the promise returned by an - adapter's `createRecord`, `updateRecord` or `deleteRecord` - is rejected with a `DS.InvalidError`. - @method recordWasInvalid - @private - @param {InternalModel} internalModel - @param {Object} errors - */ - recordWasInvalid: function (internalModel, errors) { - internalModel.adapterDidInvalidate(errors); - }, - - /** - This method is called once the promise returned by an - adapter's `createRecord`, `updateRecord` or `deleteRecord` - is rejected (with anything other than a `DS.InvalidError`). - @method recordWasError - @private - @param {InternalModel} internalModel - */ - recordWasError: function (internalModel) { - internalModel.adapterDidError(); - }, - - /** - When an adapter's `createRecord`, `updateRecord` or `deleteRecord` - resolves with data, this method extracts the ID from the supplied - data. - @method updateId - @private - @param {InternalModel} internalModel - @param {Object} data - */ - updateId: function (internalModel, data) { - var oldId = internalModel.id; - var id = ember$data$lib$system$coerce$id$$default(data.id); - - - this.typeMapFor(internalModel.type).idToRecord[id] = internalModel; - - internalModel.setId(id); - }, - - /** - Returns a map of IDs to client IDs for a given type. - @method typeMapFor - @private - @param {DS.Model} typeClass - @return {Object} typeMap - */ - typeMapFor: function (typeClass) { - var typeMaps = ember$data$lib$system$store$$get(this, "typeMaps"); - var guid = Ember.guidFor(typeClass); - var typeMap = typeMaps[guid]; - - if (typeMap) { - return typeMap; - } - - typeMap = { - idToRecord: Ember.create(null), - records: [], - metadata: Ember.create(null), - type: typeClass - }; - - typeMaps[guid] = typeMap; - - return typeMap; - }, - - // ................ - // . LOADING DATA . - // ................ - - /** - This internal method is used by `push`. - @method _load - @private - @param {(String|DS.Model)} type - @param {Object} data - */ - _load: function (type, data) { - var id = ember$data$lib$system$coerce$id$$default(data.id); - var internalModel = this._internalModelForId(type, id); - - internalModel.setupData(data); - - this.recordArrayManager.recordDidChange(internalModel); - - return internalModel; - }, - - /* - In case someone defined a relationship to a mixin, for example: - ``` - var Comment = DS.Model.extend({ - owner: belongsTo('commentable'. { polymorphic: true}) - }); - var Commentable = Ember.Mixin.create({ - comments: hasMany('comment') - }); - ``` - we want to look up a Commentable class which has all the necessary - relationship metadata. Thus, we look up the mixin and create a mock - DS.Model, so we can access the relationship CPs of the mixin (`comments`) - in this case - */ - - _modelForMixin: function (modelName) { - var normalizedModelName = ember$data$lib$system$normalize$model$name$$default(modelName); - var registry = this.container._registry ? this.container._registry : this.container; - var mixin = registry.resolve("mixin:" + normalizedModelName); - if (mixin) { - //Cache the class as a model - registry.register("model:" + normalizedModelName, DS.Model.extend(mixin)); - } - var factory = this.modelFactoryFor(normalizedModelName); - if (factory) { - factory.__isMixin = true; - factory.__mixin = mixin; - } - - return factory; - }, - - /** - Returns a model class for a particular key. Used by - methods that take a type key (like `find`, `createRecord`, - etc.) - @method modelFor - @param {String} modelName - @return {DS.Model} - */ - modelFor: function (modelName) { - - var factory = this.modelFactoryFor(modelName); - if (!factory) { - //Support looking up mixins as base types for polymorphic relationships - factory = this._modelForMixin(modelName); - } - if (!factory) { - throw new Ember.Error("No model was found for '" + modelName + "'"); - } - factory.modelName = factory.modelName || ember$data$lib$system$normalize$model$name$$default(modelName); - - // deprecate typeKey - if (!("typeKey" in factory)) { - Ember.defineProperty(factory, "typeKey", { - enumerable: true, - configurable: false, - get: function () { - var typeKey = this.modelName; - if (typeKey) { - typeKey = Ember.String.camelize(this.modelName); - } - return typeKey; - }, - set: function () { - } - }); - } - - return factory; - }, - - modelFactoryFor: function (modelName) { - var normalizedKey = ember$data$lib$system$normalize$model$name$$default(modelName); - return this.container.lookupFactory("model:" + normalizedKey); - }, - - /** - Push some data for a given type into the store. - This method expects normalized data: - * The ID is a key named `id` (an ID is mandatory) - * The names of attributes are the ones you used in - your model's `DS.attr`s. - * Your relationships must be: - * represented as IDs or Arrays of IDs - * represented as model instances - * represented as URLs, under the `links` key - For this model: - ```app/models/person.js - import DS from 'ember-data'; - export default DS.Model.extend({ - firstName: DS.attr(), - lastName: DS.attr(), - children: DS.hasMany('person') - }); - ``` - To represent the children as IDs: - ```js - { - id: 1, - firstName: "Tom", - lastName: "Dale", - children: [1, 2, 3] - } - ``` - To represent the children relationship as a URL: - ```js - { - id: 1, - firstName: "Tom", - lastName: "Dale", - links: { - children: "/people/1/children" - } - } - ``` - If you're streaming data or implementing an adapter, make sure - that you have converted the incoming data into this form. The - store's [normalize](#method_normalize) method is a convenience - helper for converting a json payload into the form Ember Data - expects. - ```js - store.push('person', store.normalize('person', data)); - ``` - This method can be used both to push in brand new - records, as well as to update existing records. - @method push - @param {String} modelName - @param {Object} data - @return {DS.Model} the record that was created or - updated. - */ - push: function (modelName, data) { - var internalModel = this._pushInternalModel(modelName, data); - return internalModel.getRecord(); - }, - - _pushInternalModel: function (modelName, data) { - - var type = this.modelFor(modelName); - var filter = Ember.EnumerableUtils.filter; - - // If Ember.ENV.DS_WARN_ON_UNKNOWN_KEYS is set to true and the payload - // contains unknown keys, log a warning. - if (Ember.ENV.DS_WARN_ON_UNKNOWN_KEYS) { - } - - // Actually load the record into the store. - var internalModel = this._load(modelName, data); - - var store = this; - - this._backburner.join(function () { - store._backburner.schedule("normalizeRelationships", store, "_setupRelationships", internalModel, type, data); - }); - - return internalModel; - }, - - _setupRelationships: function (record, type, data) { - // If the payload contains relationships that are specified as - // IDs, normalizeRelationships will convert them into DS.Model instances - // (possibly unloaded) before we push the payload into the - // store. - - data = ember$data$lib$system$store$$normalizeRelationships(this, type, data); - - // Now that the pushed record as well as any related records - // are in the store, create the data structures used to track - // relationships. - ember$data$lib$system$store$$setupRelationships(this, record, data); - }, - - /** - Push some raw data into the store. - This method can be used both to push in brand new - records, as well as to update existing records. You - can push in more than one type of object at once. - All objects should be in the format expected by the - serializer. - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.ActiveModelSerializer; - ``` - ```js - var pushData = { - posts: [ - {id: 1, post_title: "Great post", comment_ids: [2]} - ], - comments: [ - {id: 2, comment_body: "Insightful comment"} - ] - } - store.pushPayload(pushData); - ``` - By default, the data will be deserialized using a default - serializer (the application serializer if it exists). - Alternatively, `pushPayload` will accept a model type which - will determine which serializer will process the payload. - However, the serializer itself (processing this data via - `normalizePayload`) will not know which model it is - deserializing. - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.ActiveModelSerializer; - ``` - ```app/serializers/post.js - import DS from 'ember-data'; - export default DS.JSONSerializer; - ``` - ```js - store.pushPayload('comment', pushData); // Will use the application serializer - store.pushPayload('post', pushData); // Will use the post serializer - ``` - @method pushPayload - @param {String} modelName Optionally, a model type used to determine which serializer will be used - @param {Object} inputPayload - */ - pushPayload: function (modelName, inputPayload) { - var serializer; - var payload; - if (!inputPayload) { - payload = modelName; - serializer = ember$data$lib$system$store$$defaultSerializer(this.container); - } else { - payload = inputPayload; - serializer = this.serializerFor(modelName); - } - var store = this; - this._adapterRun(function () { - serializer.pushPayload(store, payload); - }); - }, - - /** - `normalize` converts a json payload into the normalized form that - [push](#method_push) expects. - Example - ```js - socket.on('message', function(message) { - var modelName = message.model; - var data = message.data; - store.push(modelName, store.normalize(modelName, data)); - }); - ``` - @method normalize - @param {String} modelName The name of the model type for this payload - @param {Object} payload - @return {Object} The normalized payload - */ - normalize: function (modelName, payload) { - var serializer = this.serializerFor(modelName); - var model = this.modelFor(modelName); - return serializer.normalize(model, payload); - }, - - /** - @method update - @param {String} modelName - @param {Object} data - @return {DS.Model} the record that was updated. - @deprecated Use [push](#method_push) instead - */ - update: function (modelName, data) { - return this.push(modelName, data); - }, - - /** - If you have an Array of normalized data to push, - you can call `pushMany` with the Array, and it will - call `push` repeatedly for you. - @method pushMany - @param {String} modelName - @param {Array} datas - @return {Array} - */ - pushMany: function (modelName, datas) { - var length = datas.length; - var result = new Array(length); - - for (var i = 0; i < length; i++) { - result[i] = this.push(modelName, datas[i]); - } - - return result; - }, - - /** - @method metaForType - @param {String} modelName - @param {Object} metadata - @deprecated Use [setMetadataFor](#method_setMetadataFor) instead - */ - metaForType: function (modelName, metadata) { - this.setMetadataFor(modelName, metadata); - }, - - /** - Build a brand new record for a given type, ID, and - initial data. - @method buildRecord - @private - @param {DS.Model} type - @param {String} id - @param {Object} data - @return {InternalModel} internal model - */ - buildInternalModel: function (type, id, data) { - var typeMap = this.typeMapFor(type); - var idToRecord = typeMap.idToRecord; - - - // lookupFactory should really return an object that creates - // instances with the injections applied - var internalModel = new ember$data$lib$system$model$internal$model$$default(type, id, this, this.container, data); - - // if we're creating an item, this process will be done - // later, once the object has been persisted. - if (id) { - idToRecord[id] = internalModel; - } - - typeMap.records.push(internalModel); - - return internalModel; - }, - - //Called by the state machine to notify the store that the record is ready to be interacted with - recordWasLoaded: function (record) { - this.recordArrayManager.recordWasLoaded(record); - }, - - // ............... - // . DESTRUCTION . - // ............... - - /** - @method dematerializeRecord - @private - @param {DS.Model} record - @deprecated Use [unloadRecord](#method_unloadRecord) instead - */ - dematerializeRecord: function (record) { - this._dematerializeRecord(record); - }, - - /** - When a record is destroyed, this un-indexes it and - removes it from any record arrays so it can be GCed. - @method _dematerializeRecord - @private - @param {InternalModel} internalModel - */ - _dematerializeRecord: function (internalModel) { - var type = internalModel.type; - var typeMap = this.typeMapFor(type); - var id = internalModel.id; - - internalModel.updateRecordArrays(); - - if (id) { - delete typeMap.idToRecord[id]; - } - - var loc = ember$data$lib$system$store$$indexOf(typeMap.records, internalModel); - typeMap.records.splice(loc, 1); - }, - - // ...................... - // . PER-TYPE ADAPTERS - // ...................... - - /** - Returns an instance of the adapter for a given type. For - example, `adapterFor('person')` will return an instance of - `App.PersonAdapter`. - If no `App.PersonAdapter` is found, this method will look - for an `App.ApplicationAdapter` (the default adapter for - your entire application). - If no `App.ApplicationAdapter` is found, it will return - the value of the `defaultAdapter`. - @method adapterFor - @private - @param {String} modelName - @return DS.Adapter - */ - adapterFor: function (modelOrClass) { - var modelName; - - - if (typeof modelOrClass !== "string") { - modelName = modelOrClass.modelName; - } else { - modelName = modelOrClass; - } - - return this.lookupAdapter(modelName); - }, - - _adapterRun: function (fn) { - return this._backburner.run(fn); - }, - - // .............................. - // . RECORD CHANGE NOTIFICATION . - // .............................. - - /** - Returns an instance of the serializer for a given type. For - example, `serializerFor('person')` will return an instance of - `App.PersonSerializer`. - If no `App.PersonSerializer` is found, this method will look - for an `App.ApplicationSerializer` (the default serializer for - your entire application). - if no `App.ApplicationSerializer` is found, it will attempt - to get the `defaultSerializer` from the `PersonAdapter` - (`adapterFor('person')`). - If a serializer cannot be found on the adapter, it will fall back - to an instance of `DS.JSONSerializer`. - @method serializerFor - @private - @param {String} modelName the record to serialize - @return {DS.Serializer} - */ - serializerFor: function (modelOrClass) { - var modelName; - - if (typeof modelOrClass !== "string") { - modelName = modelOrClass.modelName; - } else { - modelName = modelOrClass; - } - - var fallbacks = ["application", this.adapterFor(modelName).get("defaultSerializer"), "-default"]; - - var serializer = this.lookupSerializer(modelName, fallbacks); - return serializer; - }, - - /** - Retrieve a particular instance from the - container cache. If not found, creates it and - placing it in the cache. - Enabled a store to manage local instances of - adapters and serializers. - @method retrieveManagedInstance - @private - @param {String} modelName the object modelName - @param {String} name the object name - @param {Array} fallbacks the fallback objects to lookup if the lookup for modelName or 'application' fails - @return {Ember.Object} - */ - retrieveManagedInstance: function (type, modelName, fallbacks) { - var normalizedModelName = ember$data$lib$system$normalize$model$name$$default(modelName); - - var instance = this._instanceCache.get(type, normalizedModelName, fallbacks); - ember$data$lib$system$store$$set(instance, "store", this); - return instance; - }, - - lookupAdapter: function (name) { - return this.retrieveManagedInstance("adapter", name, this.get("_adapterFallbacks")); - }, - - _adapterFallbacks: Ember.computed("adapter", function () { - var adapter = this.get("adapter"); - return ["application", adapter, "-rest"]; - }), - - lookupSerializer: function (name, fallbacks) { - return this.retrieveManagedInstance("serializer", name, fallbacks); - }, - - willDestroy: function () { - this.recordArrayManager.destroy(); - - this.unloadAll(); - - for (var cacheKey in this._containerCache) { - this._containerCache[cacheKey].destroy(); - delete this._containerCache[cacheKey]; - } - - delete this._containerCache; - } - - }); - - function ember$data$lib$system$store$$normalizeRelationships(store, type, data, record) { - type.eachRelationship(function (key, relationship) { - var kind = relationship.kind; - var value = data[key]; - if (kind === "belongsTo") { - ember$data$lib$system$store$$deserializeRecordId(store, data, key, relationship, value); - } else if (kind === "hasMany") { - ember$data$lib$system$store$$deserializeRecordIds(store, data, key, relationship, value); - } - }); - - return data; - } - - function ember$data$lib$system$store$$deserializeRecordId(store, data, key, relationship, id) { - if (ember$data$lib$system$store$$isNone(id)) { - return; - } - - //If record objects were given to push directly, uncommon, not sure whether we should actually support - if (id instanceof ember$data$lib$system$model$$default) { - data[key] = id._internalModel; - return; - } - - - var type; - - if (typeof id === "number" || typeof id === "string") { - type = ember$data$lib$system$store$$typeFor(relationship, key, data); - data[key] = store._internalModelForId(type, id); - } else if (typeof id === "object") { - // hasMany polymorphic - data[key] = store._internalModelForId(id.type, id.id); - } - } - - function ember$data$lib$system$store$$typeFor(relationship, key, data) { - if (relationship.options.polymorphic) { - return data[key + "Type"]; - } else { - return relationship.type; - } - } - - function ember$data$lib$system$store$$deserializeRecordIds(store, data, key, relationship, ids) { - if (ember$data$lib$system$store$$isNone(ids)) { - return; - } - - for (var i = 0, l = ids.length; i < l; i++) { - ember$data$lib$system$store$$deserializeRecordId(store, ids, i, relationship, ids[i]); - } - } - - // Delegation to the adapter and promise management - - function ember$data$lib$system$store$$defaultSerializer(container) { - return container.lookup("serializer:application") || container.lookup("serializer:-default"); - } - - function ember$data$lib$system$store$$_commit(adapter, store, operation, snapshot) { - var record = snapshot._internalModel; - var modelName = snapshot.modelName; - var type = store.modelFor(modelName); - var promise = adapter[operation](store, type, snapshot); - var serializer = ember$data$lib$system$store$serializers$$serializerForAdapter(store, adapter, modelName); - var label = "DS: Extract and notify about " + operation + " completion of " + record; - - - promise = ember$data$lib$system$store$$Promise.cast(promise, label); - promise = ember$data$lib$system$store$common$$_guard(promise, ember$data$lib$system$store$common$$_bind(ember$data$lib$system$store$common$$_objectIsAlive, store)); - promise = ember$data$lib$system$store$common$$_guard(promise, ember$data$lib$system$store$common$$_bind(ember$data$lib$system$store$common$$_objectIsAlive, record)); - - return promise.then(function (adapterPayload) { - var payload; - - store._adapterRun(function () { - if (adapterPayload) { - payload = serializer.extract(store, type, adapterPayload, snapshot.id, operation); - } - store.didSaveRecord(record, payload); - }); - - return record; - }, function (reason) { - if (reason instanceof ember$data$lib$system$model$errors$invalid$$default) { - var errors = serializer.extractErrors(store, type, reason.errors, snapshot.id); - store.recordWasInvalid(record, errors); - reason = new ember$data$lib$system$model$errors$invalid$$default(errors); - } else { - store.recordWasError(record, reason); - } - - throw reason; - }, label); - } - - function ember$data$lib$system$store$$setupRelationships(store, record, data) { - var typeClass = record.type; - - typeClass.eachRelationship(function (key, descriptor) { - var kind = descriptor.kind; - var value = data[key]; - var relationship; - - if (data.links && data.links[key]) { - relationship = record._relationships.get(key); - relationship.updateLink(data.links[key]); - } - - if (value !== undefined) { - if (kind === "belongsTo") { - relationship = record._relationships.get(key); - relationship.setCanonicalRecord(value); - } else if (kind === "hasMany") { - relationship = record._relationships.get(key); - relationship.updateRecordsFromAdapter(value); - } - } - }); - } - - var ember$data$lib$system$store$$default = ember$data$lib$system$store$$Store; - var ember$data$lib$instance$initializers$initialize$store$service$$default = ember$data$lib$instance$initializers$initialize$store$service$$initializeStoreService; - /** - Configures a registry for use with an Ember-Data - store. - - @method initializeStore - @param {Ember.ApplicationInstance} applicationOrRegistry - */ - function ember$data$lib$instance$initializers$initialize$store$service$$initializeStoreService(applicationOrRegistry) { - var registry, container; - if (applicationOrRegistry.registry && applicationOrRegistry.container) { - // initializeStoreService was registered with an - // instanceInitializer. The first argument is the application - // instance. - registry = applicationOrRegistry.registry; - container = applicationOrRegistry.container; - } else { - // initializeStoreService was called by an initializer instead of - // an instanceInitializer. The first argument is a registy. This - // case allows ED to support Ember pre 1.12 - registry = applicationOrRegistry; - if (registry.container) { - // Support Ember 1.10 - 1.11 - container = registry.container(); - } else { - // Support Ember 1.9 - container = registry; - } - } - if (registry.has('store:application')) { - var customStoreFactory = container.lookupFactory('store:application'); - registry.register('store:main', customStoreFactory); - } else { - registry.register('store:main', ember$data$lib$system$store$$default); - } - - // Eagerly generate the store so defaultStore is populated. - var store = container.lookup('store:main'); - registry.register('service:store', store, { instantiate: false }); - } - var ember$data$lib$setup$container$$default = ember$data$lib$setup$container$$setupContainer; - function ember$data$lib$setup$container$$setupContainer(registry, application) { - // application is not a required argument. This ensures - // testing setups can setup a container without booting an - // entire ember application. - - ember$data$lib$setup$container$$initializeInjects(registry, application); - ember$data$lib$instance$initializers$initialize$store$service$$default(registry); - } - - function ember$data$lib$setup$container$$initializeInjects(registry, application) { - ember$data$lib$initializers$data$adapter$$default(registry, application); - ember$data$lib$initializers$transforms$$default(registry, application); - ember$data$lib$initializers$store$injections$$default(registry, application); - activemodel$adapter$lib$setup$container$$default(registry, application); - ember$data$lib$initializers$store$$default(registry, application); - } - - var ember$data$lib$ember$initializer$$K = Ember.K; - - /** - @module ember-data - */ - - /* - - This code initializes Ember-Data onto an Ember application. - - If an Ember.js developer defines a subclass of DS.Store on their application, - as `App.ApplicationStore` (or via a module system that resolves to `store:application`) - this code will automatically instantiate it and make it available on the - router. - - Additionally, after an application's controllers have been injected, they will - each have the store made available to them. - - For example, imagine an Ember.js application with the following classes: - - App.ApplicationStore = DS.Store.extend({ - adapter: 'custom' - }); - - App.PostsController = Ember.ArrayController.extend({ - // ... - }); - - When the application is initialized, `App.ApplicationStore` will automatically be - instantiated, and the instance of `App.PostsController` will have its `store` - property set to that instance. - - Note that this code will only be run if the `ember-application` package is - loaded. If Ember Data is being used in an environment other than a - typical application (e.g., node.js where only `ember-runtime` is available), - this code will be ignored. - */ - - Ember.onLoad('Ember.Application', function (Application) { - - Application.initializer({ - name: 'ember-data', - initialize: ember$data$lib$setup$container$$initializeInjects - }); - - if (Application.instanceInitializer) { - Application.instanceInitializer({ - name: 'ember-data', - initialize: ember$data$lib$instance$initializers$initialize$store$service$$default - }); - } else { - Application.initializer({ - name: 'ember-data-store-service', - after: 'ember-data', - initialize: ember$data$lib$instance$initializers$initialize$store$service$$default - }); - } - - // Deprecated initializers to satisfy old code that depended on them - Application.initializer({ - name: 'store', - after: 'ember-data', - initialize: ember$data$lib$ember$initializer$$K - }); - - Application.initializer({ - name: 'activeModelAdapter', - before: 'store', - initialize: ember$data$lib$ember$initializer$$K - }); - - Application.initializer({ - name: 'transforms', - before: 'store', - initialize: ember$data$lib$ember$initializer$$K - }); - - Application.initializer({ - name: 'data-adapter', - before: 'store', - initialize: ember$data$lib$ember$initializer$$K - }); - - Application.initializer({ - name: 'injectStore', - before: 'store', - initialize: ember$data$lib$ember$initializer$$K - }); - }); - Ember.Date = Ember.Date || {}; - - var origParse = Date.parse; - var numericKeys = [1, 4, 5, 6, 7, 10, 11]; - - /** - @method parse - @param {Date} date - @return {Number} timestamp - */ - Ember.Date.parse = function (date) { - var timestamp, struct; - var minutesOffset = 0; - - // ES5 §15.9.4.2 states that the string should attempt to be parsed as a Date Time String Format string - // before falling back to any implementation-specific date parsing, so that’s what we do, even if native - // implementations could be faster - // 1 YYYY 2 MM 3 DD 4 HH 5 mm 6 ss 7 msec 8 Z 9 ± 10 tzHH 11 tzmm - if (struct = /^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/.exec(date)) { - // avoid NaN timestamps caused by “undefined” values being passed to Date.UTC - for (var i = 0, k; k = numericKeys[i]; ++i) { - struct[k] = +struct[k] || 0; - } - - // allow undefined days and months - struct[2] = (+struct[2] || 1) - 1; - struct[3] = +struct[3] || 1; - - if (struct[8] !== 'Z' && struct[9] !== undefined) { - minutesOffset = struct[10] * 60 + struct[11]; - - if (struct[9] === '+') { - minutesOffset = 0 - minutesOffset; - } - } - - timestamp = Date.UTC(struct[1], struct[2], struct[3], struct[4], struct[5] + minutesOffset, struct[6], struct[7]); - } else { - timestamp = origParse ? origParse(date) : NaN; - } - - return timestamp; - }; - - if (Ember.EXTEND_PROTOTYPES === true || Ember.EXTEND_PROTOTYPES.Date) { - Date.parse = Ember.Date.parse; - } - - ember$data$lib$system$model$$default.reopen({ - - /** - Provides info about the model for debugging purposes - by grouping the properties into more semantic groups. - Meant to be used by debugging tools such as the Chrome Ember Extension. - - Groups all attributes in "Attributes" group. - - Groups all belongsTo relationships in "Belongs To" group. - - Groups all hasMany relationships in "Has Many" group. - - Groups all flags in "Flags" group. - - Flags relationship CPs as expensive properties. - @method _debugInfo - @for DS.Model - @private - */ - _debugInfo: function () { - var attributes = ['id']; - var relationships = { belongsTo: [], hasMany: [] }; - var expensiveProperties = []; - - this.eachAttribute(function (name, meta) { - attributes.push(name); - }, this); - - this.eachRelationship(function (name, relationship) { - relationships[relationship.kind].push(name); - expensiveProperties.push(name); - }); - - var groups = [{ - name: 'Attributes', - properties: attributes, - expand: true - }, { - name: 'Belongs To', - properties: relationships.belongsTo, - expand: true - }, { - name: 'Has Many', - properties: relationships.hasMany, - expand: true - }, { - name: 'Flags', - properties: ['isLoaded', 'isDirty', 'isSaving', 'isDeleted', 'isError', 'isNew', 'isValid'] - }]; - - return { - propertyInfo: { - // include all other mixins / properties (not just the grouped ones) - includeOtherProperties: true, - groups: groups, - // don't pre-calculate unless cached - expensiveProperties: expensiveProperties - } - }; - } - }); - - var ember$data$lib$system$debug$debug$info$$default = ember$data$lib$system$model$$default; - var ember$data$lib$system$debug$$default = ember$data$lib$system$debug$debug$adapter$$default; - var ember$data$lib$serializers$embedded$records$mixin$$forEach = Ember.EnumerableUtils.forEach; - var ember$data$lib$serializers$embedded$records$mixin$$camelize = Ember.String.camelize; - - /** - ## Using Embedded Records - - `DS.EmbeddedRecordsMixin` supports serializing embedded records. - - To set up embedded records, include the mixin when extending a serializer - then define and configure embedded (model) relationships. - - Below is an example of a per-type serializer ('post' type). - - ```app/serializers/post.js - import DS from 'ember-data'; - - export default DS.RESTSerializer.extend(DS.EmbeddedRecordsMixin, { - attrs: { - author: { embedded: 'always' }, - comments: { serialize: 'ids' } - } - }); - ``` - Note that this use of `{ embedded: 'always' }` is unrelated to - the `{ embedded: 'always' }` that is defined as an option on `DS.attr` as part of - defining a model while working with the ActiveModelSerializer. Nevertheless, - using `{ embedded: 'always' }` as an option to DS.attr is not a valid way to setup - embedded records. - - The `attrs` option for a resource `{ embedded: 'always' }` is shorthand for: - - ```js - { - serialize: 'records', - deserialize: 'records' - } - ``` - - ### Configuring Attrs - - A resource's `attrs` option may be set to use `ids`, `records` or false for the - `serialize` and `deserialize` settings. - - The `attrs` property can be set on the ApplicationSerializer or a per-type - serializer. - - In the case where embedded JSON is expected while extracting a payload (reading) - the setting is `deserialize: 'records'`, there is no need to use `ids` when - extracting as that is the default behavior without this mixin if you are using - the vanilla EmbeddedRecordsMixin. Likewise, to embed JSON in the payload while - serializing `serialize: 'records'` is the setting to use. There is an option of - not embedding JSON in the serialized payload by using `serialize: 'ids'`. If you - do not want the relationship sent at all, you can use `serialize: false`. - - - ### EmbeddedRecordsMixin defaults - If you do not overwrite `attrs` for a specific relationship, the `EmbeddedRecordsMixin` - will behave in the following way: - - BelongsTo: `{ serialize: 'id', deserialize: 'id' }` - HasMany: `{ serialize: false, deserialize: 'ids' }` - - ### Model Relationships - - Embedded records must have a model defined to be extracted and serialized. Note that - when defining any relationships on your model such as `belongsTo` and `hasMany`, you - should not both specify `async:true` and also indicate through the serializer's - `attrs` attribute that the related model should be embedded for deserialization. - If a model is declared embedded for deserialization (`embedded: 'always'`, - `deserialize: 'record'` or `deserialize: 'records'`), then do not use `async:true`. - - To successfully extract and serialize embedded records the model relationships - must be setup correcty See the - [defining relationships](/guides/models/defining-models/#toc_defining-relationships) - section of the **Defining Models** guide page. - - Records without an `id` property are not considered embedded records, model - instances must have an `id` property to be used with Ember Data. - - ### Example JSON payloads, Models and Serializers - - **When customizing a serializer it is important to grok what the customizations - are. Please read the docs for the methods this mixin provides, in case you need - to modify it to fit your specific needs.** - - For example review the docs for each method of this mixin: - * [normalize](/api/data/classes/DS.EmbeddedRecordsMixin.html#method_normalize) - * [serializeBelongsTo](/api/data/classes/DS.EmbeddedRecordsMixin.html#method_serializeBelongsTo) - * [serializeHasMany](/api/data/classes/DS.EmbeddedRecordsMixin.html#method_serializeHasMany) - - @class EmbeddedRecordsMixin - @namespace DS - */ - var ember$data$lib$serializers$embedded$records$mixin$$EmbeddedRecordsMixin = Ember.Mixin.create({ - - /** - Normalize the record and recursively normalize/extract all the embedded records - while pushing them into the store as they are encountered - A payload with an attr configured for embedded records needs to be extracted: - ```js - { - "post": { - "id": "1" - "title": "Rails is omakase", - "comments": [{ - "id": "1", - "body": "Rails is unagi" - }, { - "id": "2", - "body": "Omakase O_o" - }] - } - } - ``` - @method normalize - @param {DS.Model} typeClass - @param {Object} hash to be normalized - @param {String} prop the hash has been referenced by - @return {Object} the normalized hash - **/ - normalize: function (typeClass, hash, prop) { - var normalizedHash = this._super(typeClass, hash, prop); - return ember$data$lib$serializers$embedded$records$mixin$$extractEmbeddedRecords(this, this.store, typeClass, normalizedHash); - }, - - keyForRelationship: function (key, typeClass, method) { - if (method === 'serialize' && this.hasSerializeRecordsOption(key) || method === 'deserialize' && this.hasDeserializeRecordsOption(key)) { - return this.keyForAttribute(key, method); - } else { - return this._super(key, typeClass, method) || key; - } - }, - - /** - Serialize `belongsTo` relationship when it is configured as an embedded object. - This example of an author model belongs to a post model: - ```js - Post = DS.Model.extend({ - title: DS.attr('string'), - body: DS.attr('string'), - author: DS.belongsTo('author') - }); - Author = DS.Model.extend({ - name: DS.attr('string'), - post: DS.belongsTo('post') - }); - ``` - Use a custom (type) serializer for the post model to configure embedded author - ```app/serializers/post.js - import DS from 'ember-data; - export default DS.RESTSerializer.extend(DS.EmbeddedRecordsMixin, { - attrs: { - author: {embedded: 'always'} - } - }) - ``` - A payload with an attribute configured for embedded records can serialize - the records together under the root attribute's payload: - ```js - { - "post": { - "id": "1" - "title": "Rails is omakase", - "author": { - "id": "2" - "name": "dhh" - } - } - } - ``` - @method serializeBelongsTo - @param {DS.Snapshot} snapshot - @param {Object} json - @param {Object} relationship - */ - serializeBelongsTo: function (snapshot, json, relationship) { - var attr = relationship.key; - if (this.noSerializeOptionSpecified(attr)) { - this._super(snapshot, json, relationship); - return; - } - var includeIds = this.hasSerializeIdsOption(attr); - var includeRecords = this.hasSerializeRecordsOption(attr); - var embeddedSnapshot = snapshot.belongsTo(attr); - var key; - if (includeIds) { - key = this.keyForRelationship(attr, relationship.kind, 'serialize'); - if (!embeddedSnapshot) { - json[key] = null; - } else { - json[key] = embeddedSnapshot.id; - } - } else if (includeRecords) { - key = this.keyForAttribute(attr, 'serialize'); - if (!embeddedSnapshot) { - json[key] = null; - } else { - json[key] = embeddedSnapshot.record.serialize({ includeId: true }); - this.removeEmbeddedForeignKey(snapshot, embeddedSnapshot, relationship, json[key]); - } - } - }, - - /** - Serialize `hasMany` relationship when it is configured as embedded objects. - This example of a post model has many comments: - ```js - Post = DS.Model.extend({ - title: DS.attr('string'), - body: DS.attr('string'), - comments: DS.hasMany('comment') - }); - Comment = DS.Model.extend({ - body: DS.attr('string'), - post: DS.belongsTo('post') - }); - ``` - Use a custom (type) serializer for the post model to configure embedded comments - ```app/serializers/post.js - import DS from 'ember-data; - export default DS.RESTSerializer.extend(DS.EmbeddedRecordsMixin, { - attrs: { - comments: {embedded: 'always'} - } - }) - ``` - A payload with an attribute configured for embedded records can serialize - the records together under the root attribute's payload: - ```js - { - "post": { - "id": "1" - "title": "Rails is omakase", - "body": "I want this for my ORM, I want that for my template language..." - "comments": [{ - "id": "1", - "body": "Rails is unagi" - }, { - "id": "2", - "body": "Omakase O_o" - }] - } - } - ``` - The attrs options object can use more specific instruction for extracting and - serializing. When serializing, an option to embed `ids` or `records` can be set. - When extracting the only option is `records`. - So `{embedded: 'always'}` is shorthand for: - `{serialize: 'records', deserialize: 'records'}` - To embed the `ids` for a related object (using a hasMany relationship): - ```app/serializers/post.js - import DS from 'ember-data; - export default DS.RESTSerializer.extend(DS.EmbeddedRecordsMixin, { - attrs: { - comments: {serialize: 'ids', deserialize: 'records'} - } - }) - ``` - ```js - { - "post": { - "id": "1" - "title": "Rails is omakase", - "body": "I want this for my ORM, I want that for my template language..." - "comments": ["1", "2"] - } - } - ``` - @method serializeHasMany - @param {DS.Snapshot} snapshot - @param {Object} json - @param {Object} relationship - */ - serializeHasMany: function (snapshot, json, relationship) { - var attr = relationship.key; - if (this.noSerializeOptionSpecified(attr)) { - this._super(snapshot, json, relationship); - return; - } - var includeIds = this.hasSerializeIdsOption(attr); - var includeRecords = this.hasSerializeRecordsOption(attr); - var key, hasMany; - if (includeIds) { - key = this.keyForRelationship(attr, relationship.kind, 'serialize'); - json[key] = snapshot.hasMany(attr, { ids: true }); - } else if (includeRecords) { - key = this.keyForAttribute(attr, 'serialize'); - hasMany = snapshot.hasMany(attr); - - - json[key] = Ember.A(hasMany).map(function (embeddedSnapshot) { - var embeddedJson = embeddedSnapshot.record.serialize({ includeId: true }); - this.removeEmbeddedForeignKey(snapshot, embeddedSnapshot, relationship, embeddedJson); - return embeddedJson; - }, this); - } - }, - - /** - When serializing an embedded record, modify the property (in the json payload) - that refers to the parent record (foreign key for relationship). - Serializing a `belongsTo` relationship removes the property that refers to the - parent record - Serializing a `hasMany` relationship does not remove the property that refers to - the parent record. - @method removeEmbeddedForeignKey - @param {DS.Snapshot} snapshot - @param {DS.Snapshot} embeddedSnapshot - @param {Object} relationship - @param {Object} json - */ - removeEmbeddedForeignKey: function (snapshot, embeddedSnapshot, relationship, json) { - if (relationship.kind === 'hasMany') { - return; - } else if (relationship.kind === 'belongsTo') { - var parentRecord = snapshot.type.inverseFor(relationship.key, this.store); - if (parentRecord) { - var name = parentRecord.name; - var embeddedSerializer = this.store.serializerFor(embeddedSnapshot.modelName); - var parentKey = embeddedSerializer.keyForRelationship(name, parentRecord.kind, 'deserialize'); - if (parentKey) { - delete json[parentKey]; - } - } - } - }, - - // checks config for attrs option to embedded (always) - serialize and deserialize - hasEmbeddedAlwaysOption: function (attr) { - var option = this.attrsOption(attr); - return option && option.embedded === 'always'; - }, - - // checks config for attrs option to serialize ids - hasSerializeRecordsOption: function (attr) { - var alwaysEmbed = this.hasEmbeddedAlwaysOption(attr); - var option = this.attrsOption(attr); - return alwaysEmbed || option && option.serialize === 'records'; - }, - - // checks config for attrs option to serialize records - hasSerializeIdsOption: function (attr) { - var option = this.attrsOption(attr); - return option && (option.serialize === 'ids' || option.serialize === 'id'); - }, - - // checks config for attrs option to serialize records - noSerializeOptionSpecified: function (attr) { - var option = this.attrsOption(attr); - return !(option && (option.serialize || option.embedded)); - }, - - // checks config for attrs option to deserialize records - // a defined option object for a resource is treated the same as - // `deserialize: 'records'` - hasDeserializeRecordsOption: function (attr) { - var alwaysEmbed = this.hasEmbeddedAlwaysOption(attr); - var option = this.attrsOption(attr); - return alwaysEmbed || option && option.deserialize === 'records'; - }, - - attrsOption: function (attr) { - var attrs = this.get('attrs'); - return attrs && (attrs[ember$data$lib$serializers$embedded$records$mixin$$camelize(attr)] || attrs[attr]); - } - }); - - // chooses a relationship kind to branch which function is used to update payload - // does not change payload if attr is not embedded - function ember$data$lib$serializers$embedded$records$mixin$$extractEmbeddedRecords(serializer, store, typeClass, partial) { - - typeClass.eachRelationship(function (key, relationship) { - if (serializer.hasDeserializeRecordsOption(key)) { - var embeddedTypeClass = store.modelFor(relationship.type); - if (relationship.kind === 'hasMany') { - if (relationship.options.polymorphic) { - ember$data$lib$serializers$embedded$records$mixin$$extractEmbeddedHasManyPolymorphic(store, key, partial); - } else { - ember$data$lib$serializers$embedded$records$mixin$$extractEmbeddedHasMany(store, key, embeddedTypeClass, partial); - } - } - if (relationship.kind === 'belongsTo') { - if (relationship.options.polymorphic) { - ember$data$lib$serializers$embedded$records$mixin$$extractEmbeddedBelongsToPolymorphic(store, key, partial); - } else { - ember$data$lib$serializers$embedded$records$mixin$$extractEmbeddedBelongsTo(store, key, embeddedTypeClass, partial); - } - } - } - }); - - return partial; - } - - // handles embedding for `hasMany` relationship - function ember$data$lib$serializers$embedded$records$mixin$$extractEmbeddedHasMany(store, key, embeddedTypeClass, hash) { - if (!hash[key]) { - return hash; - } - - var ids = []; - - var embeddedSerializer = store.serializerFor(embeddedTypeClass.modelName); - ember$data$lib$serializers$embedded$records$mixin$$forEach(hash[key], function (data) { - var embeddedRecord = embeddedSerializer.normalize(embeddedTypeClass, data, null); - store.push(embeddedTypeClass.modelName, embeddedRecord); - ids.push(embeddedRecord.id); - }); - - hash[key] = ids; - return hash; - } - - function ember$data$lib$serializers$embedded$records$mixin$$extractEmbeddedHasManyPolymorphic(store, key, hash) { - if (!hash[key]) { - return hash; - } - - var ids = []; - - ember$data$lib$serializers$embedded$records$mixin$$forEach(hash[key], function (data) { - var modelName = data.type; - var embeddedSerializer = store.serializerFor(modelName); - var embeddedTypeClass = store.modelFor(modelName); - // var primaryKey = embeddedSerializer.get('primaryKey'); - - var embeddedRecord = embeddedSerializer.normalize(embeddedTypeClass, data, null); - store.push(embeddedTypeClass.modelName, embeddedRecord); - ids.push({ id: embeddedRecord.id, type: modelName }); - }); - - hash[key] = ids; - return hash; - } - - function ember$data$lib$serializers$embedded$records$mixin$$extractEmbeddedBelongsTo(store, key, embeddedTypeClass, hash) { - if (!hash[key]) { - return hash; - } - - var embeddedSerializer = store.serializerFor(embeddedTypeClass.modelName); - var embeddedRecord = embeddedSerializer.normalize(embeddedTypeClass, hash[key], null); - store.push(embeddedTypeClass.modelName, embeddedRecord); - - hash[key] = embeddedRecord.id; - //TODO Need to add a reference to the parent later so relationship works between both `belongsTo` records - return hash; - } - - function ember$data$lib$serializers$embedded$records$mixin$$extractEmbeddedBelongsToPolymorphic(store, key, hash) { - if (!hash[key]) { - return hash; - } - - var data = hash[key]; - var modelName = data.type; - var embeddedSerializer = store.serializerFor(modelName); - var embeddedTypeClass = store.modelFor(modelName); - - var embeddedRecord = embeddedSerializer.normalize(embeddedTypeClass, data, null); - store.push(embeddedTypeClass.modelName, embeddedRecord); - - hash[key] = embeddedRecord.id; - hash[key + 'Type'] = modelName; - return hash; - } - - var ember$data$lib$serializers$embedded$records$mixin$$default = ember$data$lib$serializers$embedded$records$mixin$$EmbeddedRecordsMixin; - - /** - `DS.belongsTo` is used to define One-To-One and One-To-Many - relationships on a [DS.Model](/api/data/classes/DS.Model.html). - - - `DS.belongsTo` takes an optional hash as a second parameter, currently - supported options are: - - - `async`: A boolean value used to explicitly declare this to be an async relationship. - - `inverse`: A string used to identify the inverse property on a - related model in a One-To-Many relationship. See [Explicit Inverses](#toc_explicit-inverses) - - #### One-To-One - To declare a one-to-one relationship between two models, use - `DS.belongsTo`: - - ```app/models/user.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - profile: DS.belongsTo('profile') - }); - ``` - - ```app/models/profile.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - user: DS.belongsTo('user') - }); - ``` - - #### One-To-Many - To declare a one-to-many relationship between two models, use - `DS.belongsTo` in combination with `DS.hasMany`, like this: - - ```app/models/post.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - comments: DS.hasMany('comment') - }); - ``` - - ```app/models/comment.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - post: DS.belongsTo('post') - }); - ``` - - You can avoid passing a string as the first parameter. In that case Ember Data - will infer the type from the key name. - - ```app/models/comment.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - post: DS.belongsTo() - }); - ``` - - will lookup for a Post type. - - @namespace - @method belongsTo - @for DS - @param {String} modelName (optional) type of the relationship - @param {Object} options (optional) a hash of options - @return {Ember.computed} relationship - */ - function ember$data$lib$system$relationships$belongs$to$$belongsTo(modelName, options) { - var opts, userEnteredModelName; - if (typeof modelName === "object") { - opts = modelName; - userEnteredModelName = undefined; - } else { - opts = options; - userEnteredModelName = modelName; - } - - if (typeof userEnteredModelName === "string") { - userEnteredModelName = ember$data$lib$system$normalize$model$name$$default(userEnteredModelName); - } - - - opts = opts || {}; - - var meta = { - type: userEnteredModelName, - isRelationship: true, - options: opts, - kind: "belongsTo", - key: null - }; - - return ember$data$lib$utils$computed$polyfill$$default({ - get: function (key) { - return this._internalModel._relationships.get(key).getRecord(); - }, - set: function (key, value) { - if (value === undefined) { - value = null; - } - if (value && value.then) { - this._internalModel._relationships.get(key).setRecordPromise(value); - } else if (value) { - this._internalModel._relationships.get(key).setRecord(value._internalModel); - } else { - this._internalModel._relationships.get(key).setRecord(value); - } - - return this._internalModel._relationships.get(key).getRecord(); - } - }).meta(meta); - } - - /* - These observers observe all `belongsTo` relationships on the record. See - `relationships/ext` to see how these observers get their dependencies. - */ - ember$data$lib$system$model$$default.reopen({ - notifyBelongsToChanged: function (key) { - this.notifyPropertyChange(key); - } - }); - - var ember$data$lib$system$relationships$belongs$to$$default = ember$data$lib$system$relationships$belongs$to$$belongsTo; - - /** - `DS.hasMany` is used to define One-To-Many and Many-To-Many - relationships on a [DS.Model](/api/data/classes/DS.Model.html). - - `DS.hasMany` takes an optional hash as a second parameter, currently - supported options are: - - - `async`: A boolean value used to explicitly declare this to be an async relationship. - - `inverse`: A string used to identify the inverse property on a related model. - - #### One-To-Many - To declare a one-to-many relationship between two models, use - `DS.belongsTo` in combination with `DS.hasMany`, like this: - - ```app/models/post.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - comments: DS.hasMany('comment') - }); - ``` - - ```app/models/comment.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - post: DS.belongsTo('post') - }); - ``` - - #### Many-To-Many - To declare a many-to-many relationship between two models, use - `DS.hasMany`: - - ```app/models/post.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - tags: DS.hasMany('tag') - }); - ``` - - ```app/models/tag.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - posts: DS.hasMany('post') - }); - ``` - - You can avoid passing a string as the first parameter. In that case Ember Data - will infer the type from the singularized key name. - - ```app/models/post.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - tags: DS.hasMany() - }); - ``` - - will lookup for a Tag type. - - #### Explicit Inverses - - Ember Data will do its best to discover which relationships map to - one another. In the one-to-many code above, for example, Ember Data - can figure out that changing the `comments` relationship should update - the `post` relationship on the inverse because post is the only - relationship to that model. - - However, sometimes you may have multiple `belongsTo`/`hasManys` for the - same type. You can specify which property on the related model is - the inverse using `DS.hasMany`'s `inverse` option: - - ```app/models/comment.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - onePost: DS.belongsTo('post'), - twoPost: DS.belongsTo('post'), - redPost: DS.belongsTo('post'), - bluePost: DS.belongsTo('post') - }); - ``` - - ```app/models/post.js - import DS from 'ember-data'; - - export default DS.Model.extend({ - comments: DS.hasMany('comment', { - inverse: 'redPost' - }) - }); - ``` - - You can also specify an inverse on a `belongsTo`, which works how - you'd expect. - - @namespace - @method hasMany - @for DS - @param {String} type (optional) type of the relationship - @param {Object} options (optional) a hash of options - @return {Ember.computed} relationship - */ - function ember$data$lib$system$relationships$has$many$$hasMany(type, options) { - if (typeof type === "object") { - options = type; - type = undefined; - } - - - options = options || {}; - - if (typeof type === "string") { - type = ember$data$lib$system$normalize$model$name$$default(type); - } - - // Metadata about relationships is stored on the meta of - // the relationship. This is used for introspection and - // serialization. Note that `key` is populated lazily - // the first time the CP is called. - var meta = { - type: type, - isRelationship: true, - options: options, - kind: "hasMany", - key: null - }; - - return ember$data$lib$utils$computed$polyfill$$default({ - get: function (key) { - var relationship = this._internalModel._relationships.get(key); - return relationship.getRecords(); - }, - set: function (key, records) { - var relationship = this._internalModel._relationships.get(key); - relationship.clear(); - relationship.addRecords(Ember.A(records).mapBy("_internalModel")); - return relationship.getRecords(); - } - }).meta(meta); - } - - ember$data$lib$system$model$$default.reopen({ - notifyHasManyAdded: function (key) { - //We need to notifyPropertyChange in the adding case because we need to make sure - //we fetch the newly added record in case it is unloaded - //TODO(Igor): Consider whether we could do this only if the record state is unloaded - - //Goes away once hasMany is double promisified - this.notifyPropertyChange(key); - } - }); - - var ember$data$lib$system$relationships$has$many$$default = ember$data$lib$system$relationships$has$many$$hasMany; - function ember$data$lib$system$relationship$meta$$typeForRelationshipMeta(meta) { - var modelName; - - modelName = meta.type || meta.key; - if (meta.kind === 'hasMany') { - modelName = ember$inflector$lib$lib$system$string$$singularize(ember$data$lib$system$normalize$model$name$$default(modelName)); - } - return modelName; - } - - function ember$data$lib$system$relationship$meta$$relationshipFromMeta(meta) { - return { - key: meta.key, - kind: meta.kind, - type: ember$data$lib$system$relationship$meta$$typeForRelationshipMeta(meta), - options: meta.options, - parentType: meta.parentType, - isRelationship: true - }; - } - - var ember$data$lib$system$relationships$ext$$get = Ember.get; - var ember$data$lib$system$relationships$ext$$filter = Ember.ArrayPolyfills.filter; - - var ember$data$lib$system$relationships$ext$$relationshipsDescriptor = Ember.computed(function () { - if (Ember.testing === true && ember$data$lib$system$relationships$ext$$relationshipsDescriptor._cacheable === true) { - ember$data$lib$system$relationships$ext$$relationshipsDescriptor._cacheable = false; - } - - var map = new ember$data$lib$system$map$$MapWithDefault({ - defaultValue: function () { - return []; - } - }); - - // Loop through each computed property on the class - this.eachComputedProperty(function (name, meta) { - // If the computed property is a relationship, add - // it to the map. - if (meta.isRelationship) { - meta.key = name; - var relationshipsForType = map.get(ember$data$lib$system$relationship$meta$$typeForRelationshipMeta(meta)); - - relationshipsForType.push({ - name: name, - kind: meta.kind - }); - } - }); - - return map; - }).readOnly(); - - var ember$data$lib$system$relationships$ext$$relatedTypesDescriptor = Ember.computed(function () { - if (Ember.testing === true && ember$data$lib$system$relationships$ext$$relatedTypesDescriptor._cacheable === true) { - ember$data$lib$system$relationships$ext$$relatedTypesDescriptor._cacheable = false; - } - - var modelName; - var types = Ember.A(); - - // Loop through each computed property on the class, - // and create an array of the unique types involved - // in relationships - this.eachComputedProperty(function (name, meta) { - if (meta.isRelationship) { - meta.key = name; - modelName = ember$data$lib$system$relationship$meta$$typeForRelationshipMeta(meta); - - - if (!types.contains(modelName)) { - types.push(modelName); - } - } - }); - - return types; - }).readOnly(); - - var ember$data$lib$system$relationships$ext$$relationshipsByNameDescriptor = Ember.computed(function () { - if (Ember.testing === true && ember$data$lib$system$relationships$ext$$relationshipsByNameDescriptor._cacheable === true) { - ember$data$lib$system$relationships$ext$$relationshipsByNameDescriptor._cacheable = false; - } - - var map = ember$data$lib$system$map$$Map.create(); - - this.eachComputedProperty(function (name, meta) { - if (meta.isRelationship) { - meta.key = name; - var relationship = ember$data$lib$system$relationship$meta$$relationshipFromMeta(meta); - relationship.type = ember$data$lib$system$relationship$meta$$typeForRelationshipMeta(meta); - map.set(name, relationship); - } - }); - - return map; - }).readOnly(); - - /** - @module ember-data - */ - - /* - This file defines several extensions to the base `DS.Model` class that - add support for one-to-many relationships. - */ - - /** - @class Model - @namespace DS - */ - ember$data$lib$system$model$$default.reopen({ - - /** - This Ember.js hook allows an object to be notified when a property - is defined. - In this case, we use it to be notified when an Ember Data user defines a - belongs-to relationship. In that case, we need to set up observers for - each one, allowing us to track relationship changes and automatically - reflect changes in the inverse has-many array. - This hook passes the class being set up, as well as the key and value - being defined. So, for example, when the user does this: - ```javascript - DS.Model.extend({ - parent: DS.belongsTo('user') - }); - ``` - This hook would be called with "parent" as the key and the computed - property returned by `DS.belongsTo` as the value. - @method didDefineProperty - @param {Object} proto - @param {String} key - @param {Ember.ComputedProperty} value - */ - didDefineProperty: function (proto, key, value) { - // Check if the value being set is a computed property. - if (value instanceof Ember.ComputedProperty) { - - // If it is, get the metadata for the relationship. This is - // populated by the `DS.belongsTo` helper when it is creating - // the computed property. - var meta = value.meta(); - - meta.parentType = proto.constructor; - } - } - }); - - /* - These DS.Model extensions add class methods that provide relationship - introspection abilities about relationships. - - A note about the computed properties contained here: - - **These properties are effectively sealed once called for the first time.** - To avoid repeatedly doing expensive iteration over a model's fields, these - values are computed once and then cached for the remainder of the runtime of - your application. - - If your application needs to modify a class after its initial definition - (for example, using `reopen()` to add additional attributes), make sure you - do it before using your model with the store, which uses these properties - extensively. - */ - - ember$data$lib$system$model$$default.reopenClass({ - - /** - For a given relationship name, returns the model type of the relationship. - For example, if you define a model like this: - ```app/models/post.js - import DS from 'ember-data'; - export default DS.Model.extend({ - comments: DS.hasMany('comment') - }); - ``` - Calling `App.Post.typeForRelationship('comments')` will return `App.Comment`. - @method typeForRelationship - @static - @param {String} name the name of the relationship - @param {store} store an instance of DS.Store - @return {DS.Model} the type of the relationship, or undefined - */ - typeForRelationship: function (name, store) { - var relationship = ember$data$lib$system$relationships$ext$$get(this, "relationshipsByName").get(name); - return relationship && store.modelFor(relationship.type); - }, - - inverseMap: Ember.computed(function () { - return Ember.create(null); - }), - - /** - Find the relationship which is the inverse of the one asked for. - For example, if you define models like this: - ```app/models/post.js - import DS from 'ember-data'; - export default DS.Model.extend({ - comments: DS.hasMany('message') - }); - ``` - ```app/models/message.js - import DS from 'ember-data'; - export default DS.Model.extend({ - owner: DS.belongsTo('post') - }); - ``` - App.Post.inverseFor('comments') -> {type: App.Message, name:'owner', kind:'belongsTo'} - App.Message.inverseFor('owner') -> {type: App.Post, name:'comments', kind:'hasMany'} - @method inverseFor - @static - @param {String} name the name of the relationship - @return {Object} the inverse relationship, or null - */ - inverseFor: function (name, store) { - var inverseMap = ember$data$lib$system$relationships$ext$$get(this, "inverseMap"); - if (inverseMap[name]) { - return inverseMap[name]; - } else { - var inverse = this._findInverseFor(name, store); - inverseMap[name] = inverse; - return inverse; - } - }, - - //Calculate the inverse, ignoring the cache - _findInverseFor: function (name, store) { - - var inverseType = this.typeForRelationship(name, store); - if (!inverseType) { - return null; - } - - var propertyMeta = this.metaForProperty(name); - //If inverse is manually specified to be null, like `comments: DS.hasMany('message', {inverse: null})` - var options = propertyMeta.options; - if (options.inverse === null) { - return null; - } - - var inverseName, inverseKind, inverse; - - - //If inverse is specified manually, return the inverse - if (options.inverse) { - inverseName = options.inverse; - inverse = Ember.get(inverseType, "relationshipsByName").get(inverseName); - - - inverseKind = inverse.kind; - } else { - //No inverse was specified manually, we need to use a heuristic to guess one - var possibleRelationships = findPossibleInverses(this, inverseType); - - if (possibleRelationships.length === 0) { - return null; - } - - var filteredRelationships = ember$data$lib$system$relationships$ext$$filter.call(possibleRelationships, function (possibleRelationship) { - var optionsForRelationship = inverseType.metaForProperty(possibleRelationship.name).options; - return name === optionsForRelationship.inverse; - }); - - - if (filteredRelationships.length === 1) { - possibleRelationships = filteredRelationships; - } - - - inverseName = possibleRelationships[0].name; - inverseKind = possibleRelationships[0].kind; - } - - function findPossibleInverses(type, inverseType, relationshipsSoFar) { - var possibleRelationships = relationshipsSoFar || []; - - var relationshipMap = ember$data$lib$system$relationships$ext$$get(inverseType, "relationships"); - if (!relationshipMap) { - return possibleRelationships; - } - - var relationships = relationshipMap.get(type.modelName); - - relationships = ember$data$lib$system$relationships$ext$$filter.call(relationships, function (relationship) { - var optionsForRelationship = inverseType.metaForProperty(relationship.name).options; - - if (!optionsForRelationship.inverse) { - return true; - } - - return name === optionsForRelationship.inverse; - }); - - if (relationships) { - possibleRelationships.push.apply(possibleRelationships, relationships); - } - - //Recurse to support polymorphism - if (type.superclass) { - findPossibleInverses(type.superclass, inverseType, possibleRelationships); - } - - return possibleRelationships; - } - - return { - type: inverseType, - name: inverseName, - kind: inverseKind - }; - }, - - /** - The model's relationships as a map, keyed on the type of the - relationship. The value of each entry is an array containing a descriptor - for each relationship with that type, describing the name of the relationship - as well as the type. - For example, given the following model definition: - ```app/models/blog.js - import DS from 'ember-data'; - export default DS.Model.extend({ - users: DS.hasMany('user'), - owner: DS.belongsTo('user'), - posts: DS.hasMany('post') - }); - ``` - This computed property would return a map describing these - relationships, like this: - ```javascript - import Ember from 'ember'; - import Blog from 'app/models/blog'; - var relationships = Ember.get(Blog, 'relationships'); - relationships.get(App.User); - //=> [ { name: 'users', kind: 'hasMany' }, - // { name: 'owner', kind: 'belongsTo' } ] - relationships.get(App.Post); - //=> [ { name: 'posts', kind: 'hasMany' } ] - ``` - @property relationships - @static - @type Ember.Map - @readOnly - */ - - relationships: ember$data$lib$system$relationships$ext$$relationshipsDescriptor, - - /** - A hash containing lists of the model's relationships, grouped - by the relationship kind. For example, given a model with this - definition: - ```app/models/blog.js - import DS from 'ember-data'; - export default DS.Model.extend({ - users: DS.hasMany('user'), - owner: DS.belongsTo('user'), - posts: DS.hasMany('post') - }); - ``` - This property would contain the following: - ```javascript - import Ember from 'ember'; - import Blog from 'app/models/blog'; - var relationshipNames = Ember.get(Blog, 'relationshipNames'); - relationshipNames.hasMany; - //=> ['users', 'posts'] - relationshipNames.belongsTo; - //=> ['owner'] - ``` - @property relationshipNames - @static - @type Object - @readOnly - */ - relationshipNames: Ember.computed(function () { - var names = { - hasMany: [], - belongsTo: [] - }; - - this.eachComputedProperty(function (name, meta) { - if (meta.isRelationship) { - names[meta.kind].push(name); - } - }); - - return names; - }), - - /** - An array of types directly related to a model. Each type will be - included once, regardless of the number of relationships it has with - the model. - For example, given a model with this definition: - ```app/models/blog.js - import DS from 'ember-data'; - export default DS.Model.extend({ - users: DS.hasMany('user'), - owner: DS.belongsTo('user'), - posts: DS.hasMany('post') - }); - ``` - This property would contain the following: - ```javascript - import Ember from 'ember'; - import Blog from 'app/models/blog'; - var relatedTypes = Ember.get(Blog, 'relatedTypes'); - //=> [ App.User, App.Post ] - ``` - @property relatedTypes - @static - @type Ember.Array - @readOnly - */ - relatedTypes: ember$data$lib$system$relationships$ext$$relatedTypesDescriptor, - - /** - A map whose keys are the relationships of a model and whose values are - relationship descriptors. - For example, given a model with this - definition: - ```app/models/blog.js - import DS from 'ember-data'; - export default DS.Model.extend({ - users: DS.hasMany('user'), - owner: DS.belongsTo('user'), - posts: DS.hasMany('post') - }); - ``` - This property would contain the following: - ```javascript - import Ember from 'ember'; - import Blog from 'app/models/blog'; - var relationshipsByName = Ember.get(Blog, 'relationshipsByName'); - relationshipsByName.get('users'); - //=> { key: 'users', kind: 'hasMany', type: App.User } - relationshipsByName.get('owner'); - //=> { key: 'owner', kind: 'belongsTo', type: App.User } - ``` - @property relationshipsByName - @static - @type Ember.Map - @readOnly - */ - relationshipsByName: ember$data$lib$system$relationships$ext$$relationshipsByNameDescriptor, - - /** - A map whose keys are the fields of the model and whose values are strings - describing the kind of the field. A model's fields are the union of all of its - attributes and relationships. - For example: - ```app/models/blog.js - import DS from 'ember-data'; - export default DS.Model.extend({ - users: DS.hasMany('user'), - owner: DS.belongsTo('user'), - posts: DS.hasMany('post'), - title: DS.attr('string') - }); - ``` - ```js - import Ember from 'ember'; - import Blog from 'app/models/blog'; - var fields = Ember.get(Blog, 'fields'); - fields.forEach(function(kind, field) { - console.log(field, kind); - }); - // prints: - // users, hasMany - // owner, belongsTo - // posts, hasMany - // title, attribute - ``` - @property fields - @static - @type Ember.Map - @readOnly - */ - fields: Ember.computed(function () { - var map = ember$data$lib$system$map$$Map.create(); - - this.eachComputedProperty(function (name, meta) { - if (meta.isRelationship) { - map.set(name, meta.kind); - } else if (meta.isAttribute) { - map.set(name, "attribute"); - } - }); - - return map; - }).readOnly(), - - /** - Given a callback, iterates over each of the relationships in the model, - invoking the callback with the name of each relationship and its relationship - descriptor. - @method eachRelationship - @static - @param {Function} callback the callback to invoke - @param {any} binding the value to which the callback's `this` should be bound - */ - eachRelationship: function (callback, binding) { - ember$data$lib$system$relationships$ext$$get(this, "relationshipsByName").forEach(function (relationship, name) { - callback.call(binding, name, relationship); - }); - }, - - /** - Given a callback, iterates over each of the types related to a model, - invoking the callback with the related type's class. Each type will be - returned just once, regardless of how many different relationships it has - with a model. - @method eachRelatedType - @static - @param {Function} callback the callback to invoke - @param {any} binding the value to which the callback's `this` should be bound - */ - eachRelatedType: function (callback, binding) { - ember$data$lib$system$relationships$ext$$get(this, "relatedTypes").forEach(function (type) { - callback.call(binding, type); - }); - }, - - determineRelationshipType: function (knownSide, store) { - var knownKey = knownSide.key; - var knownKind = knownSide.kind; - var inverse = this.inverseFor(knownKey, store); - var key, otherKind; - - if (!inverse) { - return knownKind === "belongsTo" ? "oneToNone" : "manyToNone"; - } - - key = inverse.name; - otherKind = inverse.kind; - - if (otherKind === "belongsTo") { - return knownKind === "belongsTo" ? "oneToOne" : "manyToOne"; - } else { - return knownKind === "belongsTo" ? "oneToMany" : "manyToMany"; - } - } - - }); - - ember$data$lib$system$model$$default.reopen({ - /** - Given a callback, iterates over each of the relationships in the model, - invoking the callback with the name of each relationship and its relationship - descriptor. - The callback method you provide should have the following signature (all - parameters are optional): - ```javascript - function(name, descriptor); - ``` - - `name` the name of the current property in the iteration - - `descriptor` the meta object that describes this relationship - The relationship descriptor argument is an object with the following properties. - - **key** String the name of this relationship on the Model - - **kind** String "hasMany" or "belongsTo" - - **options** Object the original options hash passed when the relationship was declared - - **parentType** DS.Model the type of the Model that owns this relationship - - **type** DS.Model the type of the related Model - Note that in addition to a callback, you can also pass an optional target - object that will be set as `this` on the context. - Example - ```app/serializers/application.js - import DS from 'ember-data'; - export default DS.JSONSerializer.extend({ - serialize: function(record, options) { - var json = {}; - record.eachRelationship(function(name, descriptor) { - if (descriptor.kind === 'hasMany') { - var serializedHasManyName = name.toUpperCase() + '_IDS'; - json[name.toUpperCase()] = record.get(name).mapBy('id'); - } - }); - return json; - } - }); - ``` - @method eachRelationship - @param {Function} callback the callback to invoke - @param {any} binding the value to which the callback's `this` should be bound - */ - eachRelationship: function (callback, binding) { - this.constructor.eachRelationship(callback, binding); - }, - - relationshipFor: function (name) { - return ember$data$lib$system$relationships$ext$$get(this.constructor, "relationshipsByName").get(name); - }, - - inverseFor: function (key) { - return this.constructor.inverseFor(key, this.store); - } - - }); - - /** - Ember Data - @module ember-data - @main ember-data - */ - - if (Ember.VERSION.match(/^1\.[0-7]\./)) { - throw new Ember.Error("Ember Data requires at least Ember 1.8.0, but you have " + Ember.VERSION + ". Please upgrade your version of Ember, then upgrade Ember Data"); - } - - if (Ember.VERSION.match(/^1\.12\.0/)) { - throw new Ember.Error("Ember Data does not work with Ember 1.12.0. Please upgrade to Ember 1.12.1 or higher."); - } - - // support RSVP 2.x via resolve, but prefer RSVP 3.x's Promise.cast - Ember.RSVP.Promise.cast = Ember.RSVP.Promise.cast || Ember.RSVP.resolve;ember$data$lib$core$$default.Store = ember$data$lib$system$store$$Store; - ember$data$lib$core$$default.PromiseArray = ember$data$lib$system$promise$proxies$$PromiseArray; - ember$data$lib$core$$default.PromiseObject = ember$data$lib$system$promise$proxies$$PromiseObject; - - ember$data$lib$core$$default.PromiseManyArray = ember$data$lib$system$promise$proxies$$PromiseManyArray; - - ember$data$lib$core$$default.Model = ember$data$lib$system$model$$default; - ember$data$lib$core$$default.RootState = ember$data$lib$system$model$states$$default; - ember$data$lib$core$$default.attr = ember$data$lib$system$model$attributes$$default; - ember$data$lib$core$$default.Errors = ember$data$lib$system$model$errors$$default; - - ember$data$lib$core$$default.InternalModel = ember$data$lib$system$model$internal$model$$default; - ember$data$lib$core$$default.Snapshot = ember$data$lib$system$snapshot$$default; - - ember$data$lib$core$$default.Adapter = ember$data$lib$system$adapter$$Adapter; - ember$data$lib$core$$default.InvalidError = ember$data$lib$system$model$errors$invalid$$default; - - ember$data$lib$core$$default.Serializer = ember$data$lib$system$serializer$$default; - - ember$data$lib$core$$default.DebugAdapter = ember$data$lib$system$debug$$default; - - ember$data$lib$core$$default.RecordArray = ember$data$lib$system$record$arrays$record$array$$default; - ember$data$lib$core$$default.FilteredRecordArray = ember$data$lib$system$record$arrays$filtered$record$array$$default; - ember$data$lib$core$$default.AdapterPopulatedRecordArray = ember$data$lib$system$record$arrays$adapter$populated$record$array$$default; - ember$data$lib$core$$default.ManyArray = ember$data$lib$system$many$array$$default; - - ember$data$lib$core$$default.RecordArrayManager = ember$data$lib$system$record$array$manager$$default; - - ember$data$lib$core$$default.RESTAdapter = ember$data$lib$adapters$rest$adapter$$default; - ember$data$lib$core$$default.BuildURLMixin = ember$data$lib$adapters$build$url$mixin$$default; - - ember$data$lib$core$$default.RESTSerializer = ember$data$lib$serializers$rest$serializer$$default; - ember$data$lib$core$$default.JSONSerializer = ember$data$lib$serializers$json$serializer$$default; - - ember$data$lib$core$$default.Transform = ember$data$lib$transforms$base$$default; - ember$data$lib$core$$default.DateTransform = ember$data$lib$transforms$date$$default; - ember$data$lib$core$$default.StringTransform = ember$data$lib$transforms$string$$default; - ember$data$lib$core$$default.NumberTransform = ember$data$lib$transforms$number$$default; - ember$data$lib$core$$default.BooleanTransform = ember$data$lib$transforms$boolean$$default; - - ember$data$lib$core$$default.ActiveModelAdapter = activemodel$adapter$lib$system$active$model$adapter$$default; - ember$data$lib$core$$default.ActiveModelSerializer = activemodel$adapter$lib$system$active$model$serializer$$default; - ember$data$lib$core$$default.EmbeddedRecordsMixin = ember$data$lib$serializers$embedded$records$mixin$$default; - - ember$data$lib$core$$default.belongsTo = ember$data$lib$system$relationships$belongs$to$$default; - ember$data$lib$core$$default.hasMany = ember$data$lib$system$relationships$has$many$$default; - - ember$data$lib$core$$default.Relationship = ember$data$lib$system$relationships$state$relationship$$default; - - ember$data$lib$core$$default.ContainerProxy = ember$data$lib$system$container$proxy$$default; - - ember$data$lib$core$$default._setupContainer = ember$data$lib$setup$container$$default; - - Ember.defineProperty(ember$data$lib$core$$default, "normalizeModelName", { - enumerable: true, - writable: false, - configurable: false, - value: ember$data$lib$system$normalize$model$name$$default - }); - - var ember$data$lib$main$$fixtureAdapterWasDeprecated = false; - - if (Ember.platform.hasPropertyAccessors) { - Ember.defineProperty(ember$data$lib$core$$default, "FixtureAdapter", { - get: function () { - if (!ember$data$lib$main$$fixtureAdapterWasDeprecated) { - ember$data$lib$main$$fixtureAdapterWasDeprecated = true; - } - return ember$data$lib$adapters$fixture$adapter$$default; - } - }); - } else { - ember$data$lib$core$$default.FixtureAdapter = ember$data$lib$adapters$fixture$adapter$$default; - } - - Ember.lookup.DS = ember$data$lib$core$$default; - - var ember$data$lib$main$$default = ember$data$lib$core$$default; -}).call(this); diff --git a/website/source/assets/javascripts/lib/ember-template-compiler.js b/website/source/assets/javascripts/lib/ember-template-compiler.js deleted file mode 100644 index 3b783f2410..0000000000 --- a/website/source/assets/javascripts/lib/ember-template-compiler.js +++ /dev/null @@ -1,7193 +0,0 @@ -/*! - * @overview Ember - JavaScript Application Framework - * @copyright Copyright 2011-2014 Tilde Inc. and contributors - * Portions Copyright 2006-2011 Strobe Inc. - * Portions Copyright 2008-2011 Apple Inc. All rights reserved. - * @license Licensed under MIT license - * See https://raw.github.com/emberjs/ember.js/master/LICENSE - * @version 1.10.1 - */ - -(function() { -var define, requireModule, require, requirejs, Ember; - -(function() { - Ember = this.Ember = this.Ember || {}; - if (typeof Ember === 'undefined') { Ember = {}; }; - function UNDEFINED() { } - - if (typeof Ember.__loader === 'undefined') { - var registry = {}, seen = {}; - - define = function(name, deps, callback) { - registry[name] = { deps: deps, callback: callback }; - }; - - requirejs = require = requireModule = function(name) { - var s = seen[name]; - - if (s !== undefined) { return seen[name]; } - if (s === UNDEFINED) { return undefined; } - - seen[name] = {}; - - if (!registry[name]) { - throw new Error('Could not find module ' + name); - } - - var mod = registry[name]; - var deps = mod.deps; - var callback = mod.callback; - var reified = []; - var exports; - var length = deps.length; - - for (var i=0; i 0) { - this.opcode('repairClonedNode', blankChildTextNodes); - } - }; - - HydrationOpcodeCompiler.prototype.endProgram = function(/* program */) { - distributeMorphs(this.morphs, this.opcodes); - }; - - HydrationOpcodeCompiler.prototype.text = function(/* string, pos, len */) { - ++this.currentDOMChildIndex; - }; - - HydrationOpcodeCompiler.prototype.comment = function(/* string, pos, len */) { - ++this.currentDOMChildIndex; - }; - - HydrationOpcodeCompiler.prototype.openElement = function(element, pos, len, isSingleRoot, mustacheCount, blankChildTextNodes) { - distributeMorphs(this.morphs, this.opcodes); - ++this.currentDOMChildIndex; - - this.element = this.currentDOMChildIndex; - - if (!isSingleRoot) { - this.opcode('consumeParent', this.currentDOMChildIndex); - - // If our parent reference will be used more than once, cache its reference. - if (mustacheCount > 1) { - this.opcode('shareElement', ++this.elementNum); - this.element = null; // Set element to null so we don't cache it twice - } - } - var isElementChecked = detectIsElementChecked(element); - if (blankChildTextNodes.length > 0 || isElementChecked) { - this.opcode( 'repairClonedNode', - blankChildTextNodes, - isElementChecked ); - } - - this.paths.push(this.currentDOMChildIndex); - this.currentDOMChildIndex = -1; - - forEach(element.attributes, this.attribute, this); - forEach(element.helpers, this.elementHelper, this); - }; - - HydrationOpcodeCompiler.prototype.closeElement = function(element, pos, len, isSingleRoot) { - distributeMorphs(this.morphs, this.opcodes); - if (!isSingleRoot) { this.opcode('popParent'); } - this.currentDOMChildIndex = this.paths.pop(); - }; - - HydrationOpcodeCompiler.prototype.block = function(block, childIndex, childrenLength) { - var sexpr = block.sexpr; - - var currentDOMChildIndex = this.currentDOMChildIndex; - var start = (currentDOMChildIndex < 0) ? null : currentDOMChildIndex; - var end = (childIndex === childrenLength - 1) ? null : currentDOMChildIndex + 1; - - var morphNum = this.morphNum++; - this.morphs.push([morphNum, this.paths.slice(), start, end, true]); - - var templateId = this.templateId++; - var inverseId = block.inverse === null ? null : this.templateId++; - - prepareSexpr(this, sexpr); - this.opcode('printBlockHook', morphNum, templateId, inverseId); - }; - - HydrationOpcodeCompiler.prototype.component = function(component, childIndex, childrenLength) { - var currentDOMChildIndex = this.currentDOMChildIndex; - var program = component.program || {}; - var blockParams = program.blockParams || []; - - var start = (currentDOMChildIndex < 0 ? null : currentDOMChildIndex), - end = (childIndex === childrenLength - 1 ? null : currentDOMChildIndex + 1); - - var morphNum = this.morphNum++; - this.morphs.push([morphNum, this.paths.slice(), start, end, true]); - - var attrs = component.attributes; - for (var i = attrs.length - 1; i >= 0; i--) { - var name = attrs[i].name; - var value = attrs[i].value; - - // TODO: Introduce context specific AST nodes to avoid switching here. - if (value.type === 'TextNode') { - this.opcode('pushLiteral', value.chars); - } else if (value.type === 'MustacheStatement') { - this.accept(unwrapMustache(value)); - } else if (value.type === 'ConcatStatement') { - prepareParams(this, value.parts); - this.opcode('pushConcatHook'); - } - - this.opcode('pushLiteral', name); - } - - this.opcode('prepareObject', attrs.length); - this.opcode('pushLiteral', component.tag); - this.opcode('printComponentHook', morphNum, this.templateId++, blockParams.length); - }; - - HydrationOpcodeCompiler.prototype.attribute = function(attr) { - var value = attr.value; - var escaped = true; - var namespace = getAttrNamespace(attr.name); - - // TODO: Introduce context specific AST nodes to avoid switching here. - if (value.type === 'TextNode') { - return; - } else if (value.type === 'MustacheStatement') { - escaped = value.escaped; - this.accept(unwrapMustache(value)); - } else if (value.type === 'ConcatStatement') { - prepareParams(this, value.parts); - this.opcode('pushConcatHook'); - } - - this.opcode('pushLiteral', attr.name); - - if (this.element !== null) { - this.opcode('shareElement', ++this.elementNum); - this.element = null; - } - - var attrMorphNum = this.attrMorphNum++; - this.opcode('createAttrMorph', attrMorphNum, this.elementNum, attr.name, escaped, namespace); - this.opcode('printAttributeHook', attrMorphNum, this.elementNum); - }; - - HydrationOpcodeCompiler.prototype.elementHelper = function(sexpr) { - prepareSexpr(this, sexpr); - - // If we have a helper in a node, and this element has not been cached, cache it - if (this.element !== null) { - this.opcode('shareElement', ++this.elementNum); - this.element = null; // Reset element so we don't cache it more than once - } - - this.opcode('printElementHook', this.elementNum); - }; - - HydrationOpcodeCompiler.prototype.mustache = function(mustache, childIndex, childrenLength) { - var sexpr = mustache.sexpr; - var currentDOMChildIndex = this.currentDOMChildIndex; - - var start = currentDOMChildIndex, - end = (childIndex === childrenLength - 1 ? -1 : currentDOMChildIndex + 1); - - var morphNum = this.morphNum++; - this.morphs.push([morphNum, this.paths.slice(), start, end, mustache.escaped]); - - if (isHelper(sexpr)) { - prepareSexpr(this, sexpr); - this.opcode('printInlineHook', morphNum); - } else { - preparePath(this, sexpr.path); - this.opcode('printContentHook', morphNum); - } - }; - - HydrationOpcodeCompiler.prototype.SubExpression = function(sexpr) { - prepareSexpr(this, sexpr); - this.opcode('pushSexprHook'); - }; - - HydrationOpcodeCompiler.prototype.PathExpression = function(path) { - this.opcode('pushGetHook', path.original); - }; - - HydrationOpcodeCompiler.prototype.StringLiteral = function(node) { - this.opcode('pushLiteral', node.value); - }; - - HydrationOpcodeCompiler.prototype.BooleanLiteral = function(node) { - this.opcode('pushLiteral', node.value); - }; - - HydrationOpcodeCompiler.prototype.NumberLiteral = function(node) { - this.opcode('pushLiteral', node.value); - }; - - function preparePath(compiler, path) { - compiler.opcode('pushLiteral', path.original); - } - - function prepareParams(compiler, params) { - for (var i = params.length - 1; i >= 0; i--) { - var param = params[i]; - compiler[param.type](param); - } - - compiler.opcode('prepareArray', params.length); - } - - function prepareHash(compiler, hash) { - var pairs = hash.pairs; - - for (var i = pairs.length - 1; i >= 0; i--) { - var key = pairs[i].key; - var value = pairs[i].value; - - compiler[value.type](value); - compiler.opcode('pushLiteral', key); - } - - compiler.opcode('prepareObject', pairs.length); - } - - function prepareSexpr(compiler, sexpr) { - prepareHash(compiler, sexpr.hash); - prepareParams(compiler, sexpr.params); - preparePath(compiler, sexpr.path); - } - - function distributeMorphs(morphs, opcodes) { - if (morphs.length === 0) { - return; - } - - // Splice morphs after the most recent shareParent/consumeParent. - var o; - for (o = opcodes.length - 1; o >= 0; --o) { - var opcode = opcodes[o][0]; - if (opcode === 'shareElement' || opcode === 'consumeParent' || opcode === 'popParent') { - break; - } - } - - var spliceArgs = [o + 1, 0]; - for (var i = 0; i < morphs.length; ++i) { - spliceArgs.push(['createMorph', morphs[i].slice()]); - } - opcodes.splice.apply(opcodes, spliceArgs); - morphs.length = 0; - } - }); -define("htmlbars-compiler/template-compiler", - ["./fragment-opcode-compiler","./fragment-javascript-compiler","./hydration-opcode-compiler","./hydration-javascript-compiler","./template-visitor","./utils","../htmlbars-util/quoting","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) { - "use strict"; - var FragmentOpcodeCompiler = __dependency1__["default"]; - var FragmentJavaScriptCompiler = __dependency2__["default"]; - var HydrationOpcodeCompiler = __dependency3__["default"]; - var HydrationJavaScriptCompiler = __dependency4__["default"]; - var TemplateVisitor = __dependency5__["default"]; - var processOpcodes = __dependency6__.processOpcodes; - var repeat = __dependency7__.repeat; - - function TemplateCompiler(options) { - this.options = options || {}; - this.fragmentOpcodeCompiler = new FragmentOpcodeCompiler(); - this.fragmentCompiler = new FragmentJavaScriptCompiler(); - this.hydrationOpcodeCompiler = new HydrationOpcodeCompiler(); - this.hydrationCompiler = new HydrationJavaScriptCompiler(); - this.templates = []; - this.childTemplates = []; - } - - __exports__["default"] = TemplateCompiler; - - TemplateCompiler.prototype.compile = function(ast) { - var templateVisitor = new TemplateVisitor(); - templateVisitor.visit(ast); - - processOpcodes(this, templateVisitor.actions); - - return this.templates.pop(); - }; - - TemplateCompiler.prototype.startProgram = function(program, childTemplateCount, blankChildTextNodes) { - this.fragmentOpcodeCompiler.startProgram(program, childTemplateCount, blankChildTextNodes); - this.hydrationOpcodeCompiler.startProgram(program, childTemplateCount, blankChildTextNodes); - - this.childTemplates.length = 0; - while(childTemplateCount--) { - this.childTemplates.push(this.templates.pop()); - } - }; - - TemplateCompiler.prototype.getChildTemplateVars = function(indent) { - var vars = ''; - if (this.childTemplates) { - for (var i = 0; i < this.childTemplates.length; i++) { - vars += indent + 'var child' + i + ' = ' + this.childTemplates[i] + ';\n'; - } - } - return vars; - }; - - TemplateCompiler.prototype.getHydrationHooks = function(indent, hooks) { - var hookVars = []; - for (var hook in hooks) { - hookVars.push(hook + ' = hooks.' + hook); - } - - if (hookVars.length > 0) { - return indent + 'var hooks = env.hooks, ' + hookVars.join(', ') + ';\n'; - } else { - return ''; - } - }; - - TemplateCompiler.prototype.endProgram = function(program, programDepth) { - this.fragmentOpcodeCompiler.endProgram(program); - this.hydrationOpcodeCompiler.endProgram(program); - - var indent = repeat(" ", programDepth); - var options = { - indent: indent + " " - }; - - // function build(dom) { return fragment; } - var fragmentProgram = this.fragmentCompiler.compile( - this.fragmentOpcodeCompiler.opcodes, - options - ); - - // function hydrate(fragment) { return mustaches; } - var hydrationProgram = this.hydrationCompiler.compile( - this.hydrationOpcodeCompiler.opcodes, - options - ); - - var blockParams = program.blockParams || []; - - var templateSignature = 'context, env, contextualElement'; - if (blockParams.length > 0) { - templateSignature += ', blockArguments'; - } - - var template = - '(function() {\n' + - this.getChildTemplateVars(indent + ' ') + - indent+' return {\n' + - indent+' isHTMLBars: true,\n' + - indent+' blockParams: ' + blockParams.length + ',\n' + - indent+' cachedFragment: null,\n' + - indent+' hasRendered: false,\n' + - indent+' build: ' + fragmentProgram + ',\n' + - indent+' render: function render(' + templateSignature + ') {\n' + - indent+' var dom = env.dom;\n' + - this.getHydrationHooks(indent + ' ', this.hydrationCompiler.hooks) + - indent+' dom.detectNamespace(contextualElement);\n' + - indent+' var fragment;\n' + - indent+' if (env.useFragmentCache && dom.canClone) {\n' + - indent+' if (this.cachedFragment === null) {\n' + - indent+' fragment = this.build(dom);\n' + - indent+' if (this.hasRendered) {\n' + - indent+' this.cachedFragment = fragment;\n' + - indent+' } else {\n' + - indent+' this.hasRendered = true;\n' + - indent+' }\n' + - indent+' }\n' + - indent+' if (this.cachedFragment) {\n' + - indent+' fragment = dom.cloneNode(this.cachedFragment, true);\n' + - indent+' }\n' + - indent+' } else {\n' + - indent+' fragment = this.build(dom);\n' + - indent+' }\n' + - hydrationProgram + - indent+' return fragment;\n' + - indent+' }\n' + - indent+' };\n' + - indent+'}())'; - - this.templates.push(template); - }; - - TemplateCompiler.prototype.openElement = function(element, i, l, r, c, b) { - this.fragmentOpcodeCompiler.openElement(element, i, l, r, c, b); - this.hydrationOpcodeCompiler.openElement(element, i, l, r, c, b); - }; - - TemplateCompiler.prototype.closeElement = function(element, i, l, r) { - this.fragmentOpcodeCompiler.closeElement(element, i, l, r); - this.hydrationOpcodeCompiler.closeElement(element, i, l, r); - }; - - TemplateCompiler.prototype.component = function(component, i, l) { - this.fragmentOpcodeCompiler.component(component, i, l); - this.hydrationOpcodeCompiler.component(component, i, l); - }; - - TemplateCompiler.prototype.block = function(block, i, l) { - this.fragmentOpcodeCompiler.block(block, i, l); - this.hydrationOpcodeCompiler.block(block, i, l); - }; - - TemplateCompiler.prototype.text = function(string, i, l, r) { - this.fragmentOpcodeCompiler.text(string, i, l, r); - this.hydrationOpcodeCompiler.text(string, i, l, r); - }; - - TemplateCompiler.prototype.comment = function(string, i, l, r) { - this.fragmentOpcodeCompiler.comment(string, i, l, r); - this.hydrationOpcodeCompiler.comment(string, i, l, r); - }; - - TemplateCompiler.prototype.mustache = function (mustache, i, l) { - this.fragmentOpcodeCompiler.mustache(mustache, i, l); - this.hydrationOpcodeCompiler.mustache(mustache, i, l); - }; - - TemplateCompiler.prototype.setNamespace = function(namespace) { - this.fragmentOpcodeCompiler.setNamespace(namespace); - }; - }); -define("htmlbars-compiler/template-visitor", - ["exports"], - function(__exports__) { - "use strict"; - var push = Array.prototype.push; - - function Frame() { - this.parentNode = null; - this.children = null; - this.childIndex = null; - this.childCount = null; - this.childTemplateCount = 0; - this.mustacheCount = 0; - this.actions = []; - } - - /** - * Takes in an AST and outputs a list of actions to be consumed - * by a compiler. For example, the template - * - * foo{{bar}}
    baz
    - * - * produces the actions - * - * [['startProgram', [programNode, 0]], - * ['text', [textNode, 0, 3]], - * ['mustache', [mustacheNode, 1, 3]], - * ['openElement', [elementNode, 2, 3, 0]], - * ['text', [textNode, 0, 1]], - * ['closeElement', [elementNode, 2, 3], - * ['endProgram', [programNode]]] - * - * This visitor walks the AST depth first and backwards. As - * a result the bottom-most child template will appear at the - * top of the actions list whereas the root template will appear - * at the bottom of the list. For example, - * - *
    {{#if}}foo{{else}}bar{{/if}}
    - * - * produces the actions - * - * [['startProgram', [programNode, 0]], - * ['text', [textNode, 0, 2, 0]], - * ['openElement', [elementNode, 1, 2, 0]], - * ['closeElement', [elementNode, 1, 2]], - * ['endProgram', [programNode]], - * ['startProgram', [programNode, 0]], - * ['text', [textNode, 0, 1]], - * ['endProgram', [programNode]], - * ['startProgram', [programNode, 2]], - * ['openElement', [elementNode, 0, 1, 1]], - * ['block', [blockNode, 0, 1]], - * ['closeElement', [elementNode, 0, 1]], - * ['endProgram', [programNode]]] - * - * The state of the traversal is maintained by a stack of frames. - * Whenever a node with children is entered (either a ProgramNode - * or an ElementNode) a frame is pushed onto the stack. The frame - * contains information about the state of the traversal of that - * node. For example, - * - * - index of the current child node being visited - * - the number of mustaches contained within its child nodes - * - the list of actions generated by its child nodes - */ - - function TemplateVisitor() { - this.frameStack = []; - this.actions = []; - this.programDepth = -1; - } - - // Traversal methods - - TemplateVisitor.prototype.visit = function(node) { - this[node.type](node); - }; - - TemplateVisitor.prototype.Program = function(program) { - this.programDepth++; - - var parentFrame = this.getCurrentFrame(); - var programFrame = this.pushFrame(); - - programFrame.parentNode = program; - programFrame.children = program.body; - programFrame.childCount = program.body.length; - programFrame.blankChildTextNodes = []; - programFrame.actions.push(['endProgram', [program, this.programDepth]]); - - for (var i = program.body.length - 1; i >= 0; i--) { - programFrame.childIndex = i; - this.visit(program.body[i]); - } - - programFrame.actions.push(['startProgram', [ - program, programFrame.childTemplateCount, - programFrame.blankChildTextNodes.reverse() - ]]); - this.popFrame(); - - this.programDepth--; - - // Push the completed template into the global actions list - if (parentFrame) { parentFrame.childTemplateCount++; } - push.apply(this.actions, programFrame.actions.reverse()); - }; - - TemplateVisitor.prototype.ElementNode = function(element) { - var parentFrame = this.getCurrentFrame(); - var elementFrame = this.pushFrame(); - var parentNode = parentFrame.parentNode; - - elementFrame.parentNode = element; - elementFrame.children = element.children; - elementFrame.childCount = element.children.length; - elementFrame.mustacheCount += element.helpers.length; - elementFrame.blankChildTextNodes = []; - - var actionArgs = [ - element, - parentFrame.childIndex, - parentFrame.childCount, - parentNode.type === 'Program' && parentFrame.childCount === 1 - ]; - - elementFrame.actions.push(['closeElement', actionArgs]); - - for (var i = element.attributes.length - 1; i >= 0; i--) { - this.visit(element.attributes[i]); - } - - for (i = element.children.length - 1; i >= 0; i--) { - elementFrame.childIndex = i; - this.visit(element.children[i]); - } - - elementFrame.actions.push(['openElement', actionArgs.concat([ - elementFrame.mustacheCount, elementFrame.blankChildTextNodes.reverse() ])]); - this.popFrame(); - - // Propagate the element's frame state to the parent frame - if (elementFrame.mustacheCount > 0) { parentFrame.mustacheCount++; } - parentFrame.childTemplateCount += elementFrame.childTemplateCount; - push.apply(parentFrame.actions, elementFrame.actions); - }; - - TemplateVisitor.prototype.AttrNode = function(attr) { - if (attr.value.type !== 'TextNode') { - this.getCurrentFrame().mustacheCount++; - } - }; - - TemplateVisitor.prototype.TextNode = function(text) { - var frame = this.getCurrentFrame(); - var isSingleRoot = frame.parentNode.type === 'Program' && frame.childCount === 1; - if (text.chars === '') { - frame.blankChildTextNodes.push(domIndexOf(frame.children, text)); - } - frame.actions.push(['text', [text, frame.childIndex, frame.childCount, isSingleRoot]]); - }; - - TemplateVisitor.prototype.BlockStatement = function(node) { - var frame = this.getCurrentFrame(); - - frame.mustacheCount++; - frame.actions.push(['block', [node, frame.childIndex, frame.childCount]]); - - if (node.inverse) { this.visit(node.inverse); } - if (node.program) { this.visit(node.program); } - }; - - TemplateVisitor.prototype.ComponentNode = function(node) { - var frame = this.getCurrentFrame(); - - frame.mustacheCount++; - frame.actions.push(['component', [node, frame.childIndex, frame.childCount]]); - - if (node.program) { this.visit(node.program); } - }; - - - TemplateVisitor.prototype.PartialStatement = function(node) { - var frame = this.getCurrentFrame(); - frame.mustacheCount++; - frame.actions.push(['mustache', [node, frame.childIndex, frame.childCount]]); - }; - - TemplateVisitor.prototype.CommentStatement = function(text) { - var frame = this.getCurrentFrame(); - var isSingleRoot = frame.parentNode.type === 'Program' && frame.childCount === 1; - - frame.actions.push(['comment', [text, frame.childIndex, frame.childCount, isSingleRoot]]); - }; - - TemplateVisitor.prototype.MustacheStatement = function(mustache) { - var frame = this.getCurrentFrame(); - frame.mustacheCount++; - frame.actions.push(['mustache', [mustache, frame.childIndex, frame.childCount]]); - }; - - // Frame helpers - - TemplateVisitor.prototype.getCurrentFrame = function() { - return this.frameStack[this.frameStack.length - 1]; - }; - - TemplateVisitor.prototype.pushFrame = function() { - var frame = new Frame(); - this.frameStack.push(frame); - return frame; - }; - - TemplateVisitor.prototype.popFrame = function() { - return this.frameStack.pop(); - }; - - __exports__["default"] = TemplateVisitor; - - - // Returns the index of `domNode` in the `nodes` array, skipping - // over any nodes which do not represent DOM nodes. - function domIndexOf(nodes, domNode) { - var index = -1; - - for (var i = 0; i < nodes.length; i++) { - var node = nodes[i]; - - if (node.type !== 'TextNode' && node.type !== 'ElementNode') { - continue; - } else { - index++; - } - - if (node === domNode) { - return index; - } - } - - return -1; - } - }); -define("htmlbars-compiler/utils", - ["exports"], - function(__exports__) { - "use strict"; - function processOpcodes(compiler, opcodes) { - for (var i=0, l=opcodes.length; i 0) { - throw new Exception('Invalid path: ' + original, {loc: locInfo}); - } else if (part === '..') { - depth++; - depthString += '../'; - } - } else { - dig.push(part); - } - } - - return new this.PathExpression(data, depth, dig, original, locInfo); - } - - __exports__.preparePath = preparePath;function prepareMustache(sexpr, open, strip, locInfo) { - /*jshint -W040 */ - // Must use charAt to support IE pre-10 - var escapeFlag = open.charAt(3) || open.charAt(2), - escaped = escapeFlag !== '{' && escapeFlag !== '&'; - - return new this.MustacheStatement(sexpr, escaped, strip, this.locInfo(locInfo)); - } - - __exports__.prepareMustache = prepareMustache;function prepareRawBlock(openRawBlock, content, close, locInfo) { - /*jshint -W040 */ - if (openRawBlock.sexpr.path.original !== close) { - var errorNode = {loc: openRawBlock.sexpr.loc}; - - throw new Exception(openRawBlock.sexpr.path.original + " doesn't match " + close, errorNode); - } - - locInfo = this.locInfo(locInfo); - var program = new this.Program([content], null, {}, locInfo); - - return new this.BlockStatement( - openRawBlock.sexpr, program, undefined, - {}, {}, {}, - locInfo); - } - - __exports__.prepareRawBlock = prepareRawBlock;function prepareBlock(openBlock, program, inverseAndProgram, close, inverted, locInfo) { - /*jshint -W040 */ - // When we are chaining inverse calls, we will not have a close path - if (close && close.path && openBlock.sexpr.path.original !== close.path.original) { - var errorNode = {loc: openBlock.sexpr.loc}; - - throw new Exception(openBlock.sexpr.path.original + ' doesn\'t match ' + close.path.original, errorNode); - } - - program.blockParams = openBlock.blockParams; - - var inverse, - inverseStrip; - - if (inverseAndProgram) { - if (inverseAndProgram.chain) { - inverseAndProgram.program.body[0].closeStrip = close.strip || close.openStrip; - } - - inverseStrip = inverseAndProgram.strip; - inverse = inverseAndProgram.program; - } - - if (inverted) { - inverted = inverse; - inverse = program; - program = inverted; - } - - return new this.BlockStatement( - openBlock.sexpr, program, inverse, - openBlock.strip, inverseStrip, close && (close.strip || close.openStrip), - this.locInfo(locInfo)); - } - - __exports__.prepareBlock = prepareBlock; - }); -define("htmlbars-syntax/handlebars/compiler/parser", - ["exports"], - function(__exports__) { - "use strict"; - /* jshint ignore:start */ - /* istanbul ignore next */ - /* Jison generated parser */ - var handlebars = (function(){ - var parser = {trace: function trace() { }, - yy: {}, - symbols_: {"error":2,"root":3,"program":4,"EOF":5,"program_repetition0":6,"statement":7,"mustache":8,"block":9,"rawBlock":10,"partial":11,"content":12,"COMMENT":13,"CONTENT":14,"openRawBlock":15,"END_RAW_BLOCK":16,"OPEN_RAW_BLOCK":17,"sexpr":18,"CLOSE_RAW_BLOCK":19,"openBlock":20,"block_option0":21,"closeBlock":22,"openInverse":23,"block_option1":24,"OPEN_BLOCK":25,"openBlock_option0":26,"CLOSE":27,"OPEN_INVERSE":28,"openInverse_option0":29,"openInverseChain":30,"OPEN_INVERSE_CHAIN":31,"openInverseChain_option0":32,"inverseAndProgram":33,"INVERSE":34,"inverseChain":35,"inverseChain_option0":36,"OPEN_ENDBLOCK":37,"path":38,"OPEN":39,"OPEN_UNESCAPED":40,"CLOSE_UNESCAPED":41,"OPEN_PARTIAL":42,"helperName":43,"sexpr_repetition0":44,"sexpr_option0":45,"dataName":46,"param":47,"STRING":48,"NUMBER":49,"BOOLEAN":50,"OPEN_SEXPR":51,"CLOSE_SEXPR":52,"hash":53,"hash_repetition_plus0":54,"hashSegment":55,"ID":56,"EQUALS":57,"blockParams":58,"OPEN_BLOCK_PARAMS":59,"blockParams_repetition_plus0":60,"CLOSE_BLOCK_PARAMS":61,"DATA":62,"pathSegments":63,"SEP":64,"$accept":0,"$end":1}, - terminals_: {2:"error",5:"EOF",13:"COMMENT",14:"CONTENT",16:"END_RAW_BLOCK",17:"OPEN_RAW_BLOCK",19:"CLOSE_RAW_BLOCK",25:"OPEN_BLOCK",27:"CLOSE",28:"OPEN_INVERSE",31:"OPEN_INVERSE_CHAIN",34:"INVERSE",37:"OPEN_ENDBLOCK",39:"OPEN",40:"OPEN_UNESCAPED",41:"CLOSE_UNESCAPED",42:"OPEN_PARTIAL",48:"STRING",49:"NUMBER",50:"BOOLEAN",51:"OPEN_SEXPR",52:"CLOSE_SEXPR",56:"ID",57:"EQUALS",59:"OPEN_BLOCK_PARAMS",61:"CLOSE_BLOCK_PARAMS",62:"DATA",64:"SEP"}, - productions_: [0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[12,1],[10,3],[15,3],[9,4],[9,4],[20,4],[23,4],[30,4],[33,2],[35,3],[35,1],[22,3],[8,3],[8,3],[11,3],[18,3],[18,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,3],[53,1],[55,3],[58,3],[43,1],[43,1],[43,1],[46,2],[38,1],[63,3],[63,1],[6,0],[6,2],[21,0],[21,1],[24,0],[24,1],[26,0],[26,1],[29,0],[29,1],[32,0],[32,1],[36,0],[36,1],[44,0],[44,2],[45,0],[45,1],[54,1],[54,2],[60,1],[60,2]], - performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) { - - var $0 = $$.length - 1; - switch (yystate) { - case 1: return $$[$0-1]; - break; - case 2:this.$ = new yy.Program($$[$0], null, {}, yy.locInfo(this._$)); - break; - case 3:this.$ = $$[$0]; - break; - case 4:this.$ = $$[$0]; - break; - case 5:this.$ = $$[$0]; - break; - case 6:this.$ = $$[$0]; - break; - case 7:this.$ = $$[$0]; - break; - case 8:this.$ = new yy.CommentStatement(yy.stripComment($$[$0]), yy.stripFlags($$[$0], $$[$0]), yy.locInfo(this._$)); - break; - case 9:this.$ = new yy.ContentStatement($$[$0], yy.locInfo(this._$)); - break; - case 10:this.$ = yy.prepareRawBlock($$[$0-2], $$[$0-1], $$[$0], this._$); - break; - case 11:this.$ = { sexpr: $$[$0-1] }; - break; - case 12:this.$ = yy.prepareBlock($$[$0-3], $$[$0-2], $$[$0-1], $$[$0], false, this._$); - break; - case 13:this.$ = yy.prepareBlock($$[$0-3], $$[$0-2], $$[$0-1], $$[$0], true, this._$); - break; - case 14:this.$ = { sexpr: $$[$0-2], blockParams: $$[$0-1], strip: yy.stripFlags($$[$0-3], $$[$0]) }; - break; - case 15:this.$ = { sexpr: $$[$0-2], blockParams: $$[$0-1], strip: yy.stripFlags($$[$0-3], $$[$0]) }; - break; - case 16:this.$ = { sexpr: $$[$0-2], blockParams: $$[$0-1], strip: yy.stripFlags($$[$0-3], $$[$0]) }; - break; - case 17:this.$ = { strip: yy.stripFlags($$[$0-1], $$[$0-1]), program: $$[$0] }; - break; - case 18: - var inverse = yy.prepareBlock($$[$0-2], $$[$0-1], $$[$0], $$[$0], false, this._$), - program = new yy.Program([inverse], null, {}, yy.locInfo(this._$)); - program.chained = true; - - this.$ = { strip: $$[$0-2].strip, program: program, chain: true }; - - break; - case 19:this.$ = $$[$0]; - break; - case 20:this.$ = {path: $$[$0-1], strip: yy.stripFlags($$[$0-2], $$[$0])}; - break; - case 21:this.$ = yy.prepareMustache($$[$0-1], $$[$0-2], yy.stripFlags($$[$0-2], $$[$0]), this._$); - break; - case 22:this.$ = yy.prepareMustache($$[$0-1], $$[$0-2], yy.stripFlags($$[$0-2], $$[$0]), this._$); - break; - case 23:this.$ = new yy.PartialStatement($$[$0-1], yy.stripFlags($$[$0-2], $$[$0]), yy.locInfo(this._$)); - break; - case 24:this.$ = new yy.SubExpression($$[$0-2], $$[$0-1], $$[$0], yy.locInfo(this._$)); - break; - case 25:this.$ = new yy.SubExpression($$[$0], null, null, yy.locInfo(this._$)); - break; - case 26:this.$ = $$[$0]; - break; - case 27:this.$ = new yy.StringLiteral($$[$0], yy.locInfo(this._$)); - break; - case 28:this.$ = new yy.NumberLiteral($$[$0], yy.locInfo(this._$)); - break; - case 29:this.$ = new yy.BooleanLiteral($$[$0], yy.locInfo(this._$)); - break; - case 30:this.$ = $$[$0]; - break; - case 31:this.$ = $$[$0-1]; - break; - case 32:this.$ = new yy.Hash($$[$0], yy.locInfo(this._$)); - break; - case 33:this.$ = new yy.HashPair($$[$0-2], $$[$0], yy.locInfo(this._$)); - break; - case 34:this.$ = $$[$0-1]; - break; - case 35:this.$ = $$[$0]; - break; - case 36:this.$ = new yy.StringLiteral($$[$0], yy.locInfo(this._$)), yy.locInfo(this._$); - break; - case 37:this.$ = new yy.NumberLiteral($$[$0], yy.locInfo(this._$)); - break; - case 38:this.$ = yy.preparePath(true, $$[$0], this._$); - break; - case 39:this.$ = yy.preparePath(false, $$[$0], this._$); - break; - case 40: $$[$0-2].push({part: $$[$0], separator: $$[$0-1]}); this.$ = $$[$0-2]; - break; - case 41:this.$ = [{part: $$[$0]}]; - break; - case 42:this.$ = []; - break; - case 43:$$[$0-1].push($$[$0]); - break; - case 56:this.$ = []; - break; - case 57:$$[$0-1].push($$[$0]); - break; - case 60:this.$ = [$$[$0]]; - break; - case 61:$$[$0-1].push($$[$0]); - break; - case 62:this.$ = [$$[$0]]; - break; - case 63:$$[$0-1].push($$[$0]); - break; - } - }, - table: [{3:1,4:2,5:[2,42],6:3,13:[2,42],14:[2,42],17:[2,42],25:[2,42],28:[2,42],39:[2,42],40:[2,42],42:[2,42]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:[1,11],14:[1,18],15:16,17:[1,21],20:14,23:15,25:[1,19],28:[1,20],31:[2,2],34:[2,2],37:[2,2],39:[1,12],40:[1,13],42:[1,17]},{1:[2,1]},{5:[2,43],13:[2,43],14:[2,43],17:[2,43],25:[2,43],28:[2,43],31:[2,43],34:[2,43],37:[2,43],39:[2,43],40:[2,43],42:[2,43]},{5:[2,3],13:[2,3],14:[2,3],17:[2,3],25:[2,3],28:[2,3],31:[2,3],34:[2,3],37:[2,3],39:[2,3],40:[2,3],42:[2,3]},{5:[2,4],13:[2,4],14:[2,4],17:[2,4],25:[2,4],28:[2,4],31:[2,4],34:[2,4],37:[2,4],39:[2,4],40:[2,4],42:[2,4]},{5:[2,5],13:[2,5],14:[2,5],17:[2,5],25:[2,5],28:[2,5],31:[2,5],34:[2,5],37:[2,5],39:[2,5],40:[2,5],42:[2,5]},{5:[2,6],13:[2,6],14:[2,6],17:[2,6],25:[2,6],28:[2,6],31:[2,6],34:[2,6],37:[2,6],39:[2,6],40:[2,6],42:[2,6]},{5:[2,7],13:[2,7],14:[2,7],17:[2,7],25:[2,7],28:[2,7],31:[2,7],34:[2,7],37:[2,7],39:[2,7],40:[2,7],42:[2,7]},{5:[2,8],13:[2,8],14:[2,8],17:[2,8],25:[2,8],28:[2,8],31:[2,8],34:[2,8],37:[2,8],39:[2,8],40:[2,8],42:[2,8]},{18:22,38:25,43:23,46:24,48:[1,26],49:[1,27],56:[1,30],62:[1,28],63:29},{18:31,38:25,43:23,46:24,48:[1,26],49:[1,27],56:[1,30],62:[1,28],63:29},{4:32,6:3,13:[2,42],14:[2,42],17:[2,42],25:[2,42],28:[2,42],31:[2,42],34:[2,42],37:[2,42],39:[2,42],40:[2,42],42:[2,42]},{4:33,6:3,13:[2,42],14:[2,42],17:[2,42],25:[2,42],28:[2,42],34:[2,42],37:[2,42],39:[2,42],40:[2,42],42:[2,42]},{12:34,14:[1,18]},{18:35,38:25,43:23,46:24,48:[1,26],49:[1,27],56:[1,30],62:[1,28],63:29},{5:[2,9],13:[2,9],14:[2,9],16:[2,9],17:[2,9],25:[2,9],28:[2,9],31:[2,9],34:[2,9],37:[2,9],39:[2,9],40:[2,9],42:[2,9]},{18:36,38:25,43:23,46:24,48:[1,26],49:[1,27],56:[1,30],62:[1,28],63:29},{18:37,38:25,43:23,46:24,48:[1,26],49:[1,27],56:[1,30],62:[1,28],63:29},{18:38,38:25,43:23,46:24,48:[1,26],49:[1,27],56:[1,30],62:[1,28],63:29},{27:[1,39]},{19:[2,56],27:[2,56],41:[2,56],44:40,48:[2,56],49:[2,56],50:[2,56],51:[2,56],52:[2,56],56:[2,56],59:[2,56],62:[2,56]},{19:[2,25],27:[2,25],41:[2,25],52:[2,25],59:[2,25]},{19:[2,35],27:[2,35],41:[2,35],48:[2,35],49:[2,35],50:[2,35],51:[2,35],52:[2,35],56:[2,35],59:[2,35],62:[2,35]},{19:[2,36],27:[2,36],41:[2,36],48:[2,36],49:[2,36],50:[2,36],51:[2,36],52:[2,36],56:[2,36],59:[2,36],62:[2,36]},{19:[2,37],27:[2,37],41:[2,37],48:[2,37],49:[2,37],50:[2,37],51:[2,37],52:[2,37],56:[2,37],59:[2,37],62:[2,37]},{56:[1,30],63:41},{19:[2,39],27:[2,39],41:[2,39],48:[2,39],49:[2,39],50:[2,39],51:[2,39],52:[2,39],56:[2,39],59:[2,39],62:[2,39],64:[1,42]},{19:[2,41],27:[2,41],41:[2,41],48:[2,41],49:[2,41],50:[2,41],51:[2,41],52:[2,41],56:[2,41],59:[2,41],62:[2,41],64:[2,41]},{41:[1,43]},{21:44,30:46,31:[1,48],33:47,34:[1,49],35:45,37:[2,44]},{24:50,33:51,34:[1,49],37:[2,46]},{16:[1,52]},{27:[1,53]},{26:54,27:[2,48],58:55,59:[1,56]},{27:[2,50],29:57,58:58,59:[1,56]},{19:[1,59]},{5:[2,21],13:[2,21],14:[2,21],17:[2,21],25:[2,21],28:[2,21],31:[2,21],34:[2,21],37:[2,21],39:[2,21],40:[2,21],42:[2,21]},{19:[2,58],27:[2,58],38:63,41:[2,58],45:60,46:67,47:61,48:[1,64],49:[1,65],50:[1,66],51:[1,68],52:[2,58],53:62,54:69,55:70,56:[1,71],59:[2,58],62:[1,28],63:29},{19:[2,38],27:[2,38],41:[2,38],48:[2,38],49:[2,38],50:[2,38],51:[2,38],52:[2,38],56:[2,38],59:[2,38],62:[2,38],64:[1,42]},{56:[1,72]},{5:[2,22],13:[2,22],14:[2,22],17:[2,22],25:[2,22],28:[2,22],31:[2,22],34:[2,22],37:[2,22],39:[2,22],40:[2,22],42:[2,22]},{22:73,37:[1,74]},{37:[2,45]},{4:75,6:3,13:[2,42],14:[2,42],17:[2,42],25:[2,42],28:[2,42],31:[2,42],34:[2,42],37:[2,42],39:[2,42],40:[2,42],42:[2,42]},{37:[2,19]},{18:76,38:25,43:23,46:24,48:[1,26],49:[1,27],56:[1,30],62:[1,28],63:29},{4:77,6:3,13:[2,42],14:[2,42],17:[2,42],25:[2,42],28:[2,42],37:[2,42],39:[2,42],40:[2,42],42:[2,42]},{22:78,37:[1,74]},{37:[2,47]},{5:[2,10],13:[2,10],14:[2,10],17:[2,10],25:[2,10],28:[2,10],31:[2,10],34:[2,10],37:[2,10],39:[2,10],40:[2,10],42:[2,10]},{5:[2,23],13:[2,23],14:[2,23],17:[2,23],25:[2,23],28:[2,23],31:[2,23],34:[2,23],37:[2,23],39:[2,23],40:[2,23],42:[2,23]},{27:[1,79]},{27:[2,49]},{56:[1,81],60:80},{27:[1,82]},{27:[2,51]},{14:[2,11]},{19:[2,24],27:[2,24],41:[2,24],52:[2,24],59:[2,24]},{19:[2,57],27:[2,57],41:[2,57],48:[2,57],49:[2,57],50:[2,57],51:[2,57],52:[2,57],56:[2,57],59:[2,57],62:[2,57]},{19:[2,59],27:[2,59],41:[2,59],52:[2,59],59:[2,59]},{19:[2,26],27:[2,26],41:[2,26],48:[2,26],49:[2,26],50:[2,26],51:[2,26],52:[2,26],56:[2,26],59:[2,26],62:[2,26]},{19:[2,27],27:[2,27],41:[2,27],48:[2,27],49:[2,27],50:[2,27],51:[2,27],52:[2,27],56:[2,27],59:[2,27],62:[2,27]},{19:[2,28],27:[2,28],41:[2,28],48:[2,28],49:[2,28],50:[2,28],51:[2,28],52:[2,28],56:[2,28],59:[2,28],62:[2,28]},{19:[2,29],27:[2,29],41:[2,29],48:[2,29],49:[2,29],50:[2,29],51:[2,29],52:[2,29],56:[2,29],59:[2,29],62:[2,29]},{19:[2,30],27:[2,30],41:[2,30],48:[2,30],49:[2,30],50:[2,30],51:[2,30],52:[2,30],56:[2,30],59:[2,30],62:[2,30]},{18:83,38:25,43:23,46:24,48:[1,26],49:[1,27],56:[1,30],62:[1,28],63:29},{19:[2,32],27:[2,32],41:[2,32],52:[2,32],55:84,56:[1,85],59:[2,32]},{19:[2,60],27:[2,60],41:[2,60],52:[2,60],56:[2,60],59:[2,60]},{19:[2,41],27:[2,41],41:[2,41],48:[2,41],49:[2,41],50:[2,41],51:[2,41],52:[2,41],56:[2,41],57:[1,86],59:[2,41],62:[2,41],64:[2,41]},{19:[2,40],27:[2,40],41:[2,40],48:[2,40],49:[2,40],50:[2,40],51:[2,40],52:[2,40],56:[2,40],59:[2,40],62:[2,40],64:[2,40]},{5:[2,12],13:[2,12],14:[2,12],17:[2,12],25:[2,12],28:[2,12],31:[2,12],34:[2,12],37:[2,12],39:[2,12],40:[2,12],42:[2,12]},{38:87,56:[1,30],63:29},{30:46,31:[1,48],33:47,34:[1,49],35:89,36:88,37:[2,54]},{27:[2,52],32:90,58:91,59:[1,56]},{37:[2,17]},{5:[2,13],13:[2,13],14:[2,13],17:[2,13],25:[2,13],28:[2,13],31:[2,13],34:[2,13],37:[2,13],39:[2,13],40:[2,13],42:[2,13]},{13:[2,14],14:[2,14],17:[2,14],25:[2,14],28:[2,14],31:[2,14],34:[2,14],37:[2,14],39:[2,14],40:[2,14],42:[2,14]},{56:[1,93],61:[1,92]},{56:[2,62],61:[2,62]},{13:[2,15],14:[2,15],17:[2,15],25:[2,15],28:[2,15],34:[2,15],37:[2,15],39:[2,15],40:[2,15],42:[2,15]},{52:[1,94]},{19:[2,61],27:[2,61],41:[2,61],52:[2,61],56:[2,61],59:[2,61]},{57:[1,86]},{38:63,46:67,47:95,48:[1,64],49:[1,65],50:[1,66],51:[1,68],56:[1,30],62:[1,28],63:29},{27:[1,96]},{37:[2,18]},{37:[2,55]},{27:[1,97]},{27:[2,53]},{27:[2,34]},{56:[2,63],61:[2,63]},{19:[2,31],27:[2,31],41:[2,31],48:[2,31],49:[2,31],50:[2,31],51:[2,31],52:[2,31],56:[2,31],59:[2,31],62:[2,31]},{19:[2,33],27:[2,33],41:[2,33],52:[2,33],56:[2,33],59:[2,33]},{5:[2,20],13:[2,20],14:[2,20],17:[2,20],25:[2,20],28:[2,20],31:[2,20],34:[2,20],37:[2,20],39:[2,20],40:[2,20],42:[2,20]},{13:[2,16],14:[2,16],17:[2,16],25:[2,16],28:[2,16],31:[2,16],34:[2,16],37:[2,16],39:[2,16],40:[2,16],42:[2,16]}], - defaultActions: {4:[2,1],45:[2,45],47:[2,19],51:[2,47],55:[2,49],58:[2,51],59:[2,11],77:[2,17],88:[2,18],89:[2,55],91:[2,53],92:[2,34]}, - parseError: function parseError(str, hash) { - throw new Error(str); - }, - parse: function parse(input) { - var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1; - this.lexer.setInput(input); - this.lexer.yy = this.yy; - this.yy.lexer = this.lexer; - this.yy.parser = this; - if (typeof this.lexer.yylloc == "undefined") - this.lexer.yylloc = {}; - var yyloc = this.lexer.yylloc; - lstack.push(yyloc); - var ranges = this.lexer.options && this.lexer.options.ranges; - if (typeof this.yy.parseError === "function") - this.parseError = this.yy.parseError; - function popStack(n) { - stack.length = stack.length - 2 * n; - vstack.length = vstack.length - n; - lstack.length = lstack.length - n; - } - function lex() { - var token; - token = self.lexer.lex() || 1; - if (typeof token !== "number") { - token = self.symbols_[token] || token; - } - return token; - } - var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected; - while (true) { - state = stack[stack.length - 1]; - if (this.defaultActions[state]) { - action = this.defaultActions[state]; - } else { - if (symbol === null || typeof symbol == "undefined") { - symbol = lex(); - } - action = table[state] && table[state][symbol]; - } - if (typeof action === "undefined" || !action.length || !action[0]) { - var errStr = ""; - if (!recovering) { - expected = []; - for (p in table[state]) - if (this.terminals_[p] && p > 2) { - expected.push("'" + this.terminals_[p] + "'"); - } - if (this.lexer.showPosition) { - errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'"; - } else { - errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == 1?"end of input":"'" + (this.terminals_[symbol] || symbol) + "'"); - } - this.parseError(errStr, {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected}); - } - } - if (action[0] instanceof Array && action.length > 1) { - throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol); - } - switch (action[0]) { - case 1: - stack.push(symbol); - vstack.push(this.lexer.yytext); - lstack.push(this.lexer.yylloc); - stack.push(action[1]); - symbol = null; - if (!preErrorSymbol) { - yyleng = this.lexer.yyleng; - yytext = this.lexer.yytext; - yylineno = this.lexer.yylineno; - yyloc = this.lexer.yylloc; - if (recovering > 0) - recovering--; - } else { - symbol = preErrorSymbol; - preErrorSymbol = null; - } - break; - case 2: - len = this.productions_[action[1]][1]; - yyval.$ = vstack[vstack.length - len]; - yyval._$ = {first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column}; - if (ranges) { - yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]]; - } - r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack); - if (typeof r !== "undefined") { - return r; - } - if (len) { - stack = stack.slice(0, -1 * len * 2); - vstack = vstack.slice(0, -1 * len); - lstack = lstack.slice(0, -1 * len); - } - stack.push(this.productions_[action[1]][0]); - vstack.push(yyval.$); - lstack.push(yyval._$); - newState = table[stack[stack.length - 2]][stack[stack.length - 1]]; - stack.push(newState); - break; - case 3: - return true; - } - } - return true; - } - }; - /* Jison generated lexer */ - var lexer = (function(){ - var lexer = ({EOF:1, - parseError:function parseError(str, hash) { - if (this.yy.parser) { - this.yy.parser.parseError(str, hash); - } else { - throw new Error(str); - } - }, - setInput:function (input) { - this._input = input; - this._more = this._less = this.done = false; - this.yylineno = this.yyleng = 0; - this.yytext = this.matched = this.match = ''; - this.conditionStack = ['INITIAL']; - this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0}; - if (this.options.ranges) this.yylloc.range = [0,0]; - this.offset = 0; - return this; - }, - input:function () { - var ch = this._input[0]; - this.yytext += ch; - this.yyleng++; - this.offset++; - this.match += ch; - this.matched += ch; - var lines = ch.match(/(?:\r\n?|\n).*/g); - if (lines) { - this.yylineno++; - this.yylloc.last_line++; - } else { - this.yylloc.last_column++; - } - if (this.options.ranges) this.yylloc.range[1]++; - - this._input = this._input.slice(1); - return ch; - }, - unput:function (ch) { - var len = ch.length; - var lines = ch.split(/(?:\r\n?|\n)/g); - - this._input = ch + this._input; - this.yytext = this.yytext.substr(0, this.yytext.length-len-1); - //this.yyleng -= len; - this.offset -= len; - var oldLines = this.match.split(/(?:\r\n?|\n)/g); - this.match = this.match.substr(0, this.match.length-1); - this.matched = this.matched.substr(0, this.matched.length-1); - - if (lines.length-1) this.yylineno -= lines.length-1; - var r = this.yylloc.range; - - this.yylloc = {first_line: this.yylloc.first_line, - last_line: this.yylineno+1, - first_column: this.yylloc.first_column, - last_column: lines ? - (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length: - this.yylloc.first_column - len - }; - - if (this.options.ranges) { - this.yylloc.range = [r[0], r[0] + this.yyleng - len]; - } - return this; - }, - more:function () { - this._more = true; - return this; - }, - less:function (n) { - this.unput(this.match.slice(n)); - }, - pastInput:function () { - var past = this.matched.substr(0, this.matched.length - this.match.length); - return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, ""); - }, - upcomingInput:function () { - var next = this.match; - if (next.length < 20) { - next += this._input.substr(0, 20-next.length); - } - return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\n/g, ""); - }, - showPosition:function () { - var pre = this.pastInput(); - var c = new Array(pre.length + 1).join("-"); - return pre + this.upcomingInput() + "\n" + c+"^"; - }, - next:function () { - if (this.done) { - return this.EOF; - } - if (!this._input) this.done = true; - - var token, - match, - tempMatch, - index, - col, - lines; - if (!this._more) { - this.yytext = ''; - this.match = ''; - } - var rules = this._currentRules(); - for (var i=0;i < rules.length; i++) { - tempMatch = this._input.match(this.rules[rules[i]]); - if (tempMatch && (!match || tempMatch[0].length > match[0].length)) { - match = tempMatch; - index = i; - if (!this.options.flex) break; - } - } - if (match) { - lines = match[0].match(/(?:\r\n?|\n).*/g); - if (lines) this.yylineno += lines.length; - this.yylloc = {first_line: this.yylloc.last_line, - last_line: this.yylineno+1, - first_column: this.yylloc.last_column, - last_column: lines ? lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length}; - this.yytext += match[0]; - this.match += match[0]; - this.matches = match; - this.yyleng = this.yytext.length; - if (this.options.ranges) { - this.yylloc.range = [this.offset, this.offset += this.yyleng]; - } - this._more = false; - this._input = this._input.slice(match[0].length); - this.matched += match[0]; - token = this.performAction.call(this, this.yy, this, rules[index],this.conditionStack[this.conditionStack.length-1]); - if (this.done && this._input) this.done = false; - if (token) return token; - else return; - } - if (this._input === "") { - return this.EOF; - } else { - return this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(), - {text: "", token: null, line: this.yylineno}); - } - }, - lex:function lex() { - var r = this.next(); - if (typeof r !== 'undefined') { - return r; - } else { - return this.lex(); - } - }, - begin:function begin(condition) { - this.conditionStack.push(condition); - }, - popState:function popState() { - return this.conditionStack.pop(); - }, - _currentRules:function _currentRules() { - return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules; - }, - topState:function () { - return this.conditionStack[this.conditionStack.length-2]; - }, - pushState:function begin(condition) { - this.begin(condition); - }}); - lexer.options = {}; - lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { - - - function strip(start, end) { - return yy_.yytext = yy_.yytext.substr(start, yy_.yyleng-end); - } - - - var YYSTATE=YY_START - switch($avoiding_name_collisions) { - case 0: - if(yy_.yytext.slice(-2) === "\\\\") { - strip(0,1); - this.begin("mu"); - } else if(yy_.yytext.slice(-1) === "\\") { - strip(0,1); - this.begin("emu"); - } else { - this.begin("mu"); - } - if(yy_.yytext) return 14; - - break; - case 1:return 14; - break; - case 2: - this.popState(); - return 14; - - break; - case 3: - yy_.yytext = yy_.yytext.substr(5, yy_.yyleng-9); - this.popState(); - return 16; - - break; - case 4: return 14; - break; - case 5: - this.popState(); - return 13; - - break; - case 6:return 51; - break; - case 7:return 52; - break; - case 8: return 17; - break; - case 9: - this.popState(); - this.begin('raw'); - return 19; - - break; - case 10:return 42; - break; - case 11:return 25; - break; - case 12:return 37; - break; - case 13:this.popState(); return 34; - break; - case 14:this.popState(); return 34; - break; - case 15:return 28; - break; - case 16:return 31; - break; - case 17:return 40; - break; - case 18:return 39; - break; - case 19: - this.unput(yy_.yytext); - this.popState(); - this.begin('com'); - - break; - case 20: - this.popState(); - return 13; - - break; - case 21:return 39; - break; - case 22:return 57; - break; - case 23:return 56; - break; - case 24:return 56; - break; - case 25:return 64; - break; - case 26:// ignore whitespace - break; - case 27:this.popState(); return 41; - break; - case 28:this.popState(); return 27; - break; - case 29:yy_.yytext = strip(1,2).replace(/\\"/g,'"'); return 48; - break; - case 30:yy_.yytext = strip(1,2).replace(/\\'/g,"'"); return 48; - break; - case 31:return 62; - break; - case 32:return 50; - break; - case 33:return 50; - break; - case 34:return 49; - break; - case 35:return 59; - break; - case 36:return 61; - break; - case 37:return 56; - break; - case 38:yy_.yytext = strip(1,2); return 56; - break; - case 39:return 'INVALID'; - break; - case 40:return 5; - break; - } - }; - lexer.rules = [/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{\/)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/]; - lexer.conditions = {"mu":{"rules":[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],"inclusive":false},"emu":{"rules":[2],"inclusive":false},"com":{"rules":[5],"inclusive":false},"raw":{"rules":[3,4],"inclusive":false},"INITIAL":{"rules":[0,1,40],"inclusive":true}}; - return lexer;})() - parser.lexer = lexer; - function Parser () { this.yy = {}; }Parser.prototype = parser;parser.Parser = Parser; - return new Parser; - })();__exports__["default"] = handlebars; - /* jshint ignore:end */ - }); -define("htmlbars-syntax/handlebars/compiler/visitor", - ["exports"], - function(__exports__) { - "use strict"; - function Visitor() {} - - Visitor.prototype = { - constructor: Visitor, - - accept: function(object) { - return object && this[object.type](object); - }, - - Program: function(program) { - var body = program.body, - i, l; - - for(i=0, l=body.length; i": ">", - '"': """, - "'": "'", - "`": "`" - }; - - var badChars = /[&<>"'`]/g; - var possible = /[&<>"'`]/; - - function escapeChar(chr) { - return escape[chr]; - } - - function extend(obj /* , ...source */) { - for (var i = 1; i < arguments.length; i++) { - for (var key in arguments[i]) { - if (Object.prototype.hasOwnProperty.call(arguments[i], key)) { - obj[key] = arguments[i][key]; - } - } - } - - return obj; - } - - __exports__.extend = extend;var toString = Object.prototype.toString; - __exports__.toString = toString; - // Sourced from lodash - // https://github.com/bestiejs/lodash/blob/master/LICENSE.txt - var isFunction = function(value) { - return typeof value === 'function'; - }; - // fallback for older versions of Chrome and Safari - /* istanbul ignore next */ - if (isFunction(/x/)) { - isFunction = function(value) { - return typeof value === 'function' && toString.call(value) === '[object Function]'; - }; - } - var isFunction; - __exports__.isFunction = isFunction; - /* istanbul ignore next */ - var isArray = Array.isArray || function(value) { - return (value && typeof value === 'object') ? toString.call(value) === '[object Array]' : false; - }; - __exports__.isArray = isArray; - - function escapeExpression(string) { - // don't escape SafeStrings, since they're already safe - if (string && string.toHTML) { - return string.toHTML(); - } else if (string == null) { - return ""; - } else if (!string) { - return string + ''; - } - - // Force a string conversion as this will be done by the append regardless and - // the regex test will do this transparently behind the scenes, causing issues if - // an object's to string has escaped characters in it. - string = "" + string; - - if(!possible.test(string)) { return string; } - return string.replace(badChars, escapeChar); - } - - __exports__.escapeExpression = escapeExpression;function isEmpty(value) { - if (!value && value !== 0) { - return true; - } else if (isArray(value) && value.length === 0) { - return true; - } else { - return false; - } - } - - __exports__.isEmpty = isEmpty;function appendContextPath(contextPath, id) { - return (contextPath ? contextPath + '.' : '') + id; - } - - __exports__.appendContextPath = appendContextPath; - }); -define("htmlbars-syntax/node-handlers", - ["./builders","../htmlbars-util/array-utils","./utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var buildProgram = __dependency1__.buildProgram; - var buildBlock = __dependency1__.buildBlock; - var buildHash = __dependency1__.buildHash; - var forEach = __dependency2__.forEach; - var appendChild = __dependency3__.appendChild; - var postprocessProgram = __dependency3__.postprocessProgram; - - var nodeHandlers = { - - Program: function(program) { - var body = []; - var node = buildProgram(body, program.blockParams); - var i, l = program.body.length; - - this.elementStack.push(node); - - if (l === 0) { return this.elementStack.pop(); } - - for (i = 0; i < l; i++) { - this.acceptNode(program.body[i]); - } - - this.acceptToken(this.tokenizer.tokenizeEOF()); - - postprocessProgram(node); - - // Ensure that that the element stack is balanced properly. - var poppedNode = this.elementStack.pop(); - if (poppedNode !== node) { - throw new Error("Unclosed element `" + poppedNode.tag + "` (on line " + poppedNode.loc.start.line + ")."); - } - - return node; - }, - - BlockStatement: function(block) { - delete block.inverseStrip; - delete block.openString; - delete block.closeStrip; - - if (this.tokenizer.state === 'comment') { - this.tokenizer.addChar('{{' + this.sourceForMustache(block) + '}}'); - return; - } - - switchToHandlebars(this); - this.acceptToken(block); - - var sexpr = this.acceptNode(block.sexpr); - var program = block.program ? this.acceptNode(block.program) : null; - var inverse = block.inverse ? this.acceptNode(block.inverse) : null; - - var node = buildBlock(sexpr, program, inverse); - var parentProgram = this.currentElement(); - appendChild(parentProgram, node); - }, - - MustacheStatement: function(mustache) { - delete mustache.strip; - - if (this.tokenizer.state === 'comment') { - this.tokenizer.addChar('{{' + this.sourceForMustache(mustache) + '}}'); - return; - } - - this.acceptNode(mustache.sexpr); - switchToHandlebars(this); - this.acceptToken(mustache); - - return mustache; - }, - - ContentStatement: function(content) { - var changeLines = 0; - if (content.rightStripped) { - changeLines = leadingNewlineDifference(content.original, content.value); - } - - this.tokenizer.line = this.tokenizer.line + changeLines; - - var tokens = this.tokenizer.tokenizePart(content.value); - - return forEach(tokens, this.acceptToken, this); - }, - - CommentStatement: function(comment) { - return comment; - }, - - PartialStatement: function(partial) { - appendChild(this.currentElement(), partial); - return partial; - }, - - SubExpression: function(sexpr) { - delete sexpr.isHelper; - - this.acceptNode(sexpr.path); - - if (sexpr.params) { - for (var i = 0; i < sexpr.params.length; i++) { - this.acceptNode(sexpr.params[i]); - } - } else { - sexpr.params = []; - } - - if (sexpr.hash) { - this.acceptNode(sexpr.hash); - } else { - sexpr.hash = buildHash(); - } - - return sexpr; - }, - - PathExpression: function(path) { - delete path.data; - delete path.depth; - - return path; - }, - - Hash: function(hash) { - for (var i = 0; i < hash.pairs.length; i++) { - this.acceptNode(hash.pairs[i].value); - } - - return hash; - }, - - StringLiteral: function() {}, - BooleanLiteral: function() {}, - NumberLiteral: function() {} - }; - - function switchToHandlebars(processor) { - var token = processor.tokenizer.token; - - if (token && token.type === 'Chars') { - processor.acceptToken(token); - processor.tokenizer.token = null; - } - } - - function leadingNewlineDifference(original, value) { - if (value === '') { - // if it is empty, just return the count of newlines - // in original - return original.split("\n").length - 1; - } - - // otherwise, return the number of newlines prior to - // `value` - var difference = original.split(value)[0]; - var lines = difference.split(/\n/); - - return lines.length - 1; - } - - __exports__["default"] = nodeHandlers; - }); -define("htmlbars-syntax/parser", - ["./handlebars/compiler/base","./tokenizer","../simple-html-tokenizer/entity-parser","../simple-html-tokenizer/char-refs/full","./node-handlers","./token-handlers","../htmlbars-syntax","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __dependency6__, __dependency7__, __exports__) { - "use strict"; - var parse = __dependency1__.parse; - var Tokenizer = __dependency2__.Tokenizer; - var EntityParser = __dependency3__["default"]; - var fullCharRefs = __dependency4__["default"]; - var nodeHandlers = __dependency5__["default"]; - var tokenHandlers = __dependency6__["default"]; - - // this should be: - // `import * from "../htmlbars-syntax"; - // - // But this version of the transpiler does not support it properly - var syntax = __dependency7__; - - var splitLines; - // IE8 throws away blank pieces when splitting strings with a regex - // So we split using a string instead as appropriate - if ("foo\n\nbar".split(/\n/).length === 2) { - splitLines = function(str) { - var clean = str.replace(/\r\n?/g, '\n'); - return clean.split('\n'); - }; - } else { - splitLines = function(str) { - return str.split(/(?:\r\n?|\n)/g); - }; - } - - function preprocess(html, options) { - var ast = (typeof html === 'object') ? html : parse(html); - var combined = new HTMLProcessor(html, options).acceptNode(ast); - - if (options && options.plugins && options.plugins.ast) { - for (var i = 0, l = options.plugins.ast.length; i < l; i++) { - var plugin = new options.plugins.ast[i](); - - plugin.syntax = syntax; - - combined = plugin.transform(combined); - } - } - - return combined; - } - - __exports__.preprocess = preprocess;function HTMLProcessor(source, options) { - this.options = options || {}; - this.elementStack = []; - this.tokenizer = new Tokenizer('', new EntityParser(fullCharRefs)); - this.nodeHandlers = nodeHandlers; - this.tokenHandlers = tokenHandlers; - - if (typeof source === 'string') { - this.source = splitLines(source); - } - } - - HTMLProcessor.prototype.acceptNode = function(node) { - return this.nodeHandlers[node.type].call(this, node); - }; - - HTMLProcessor.prototype.acceptToken = function(token) { - if (token) { - return this.tokenHandlers[token.type].call(this, token); - } - }; - - HTMLProcessor.prototype.currentElement = function() { - return this.elementStack[this.elementStack.length - 1]; - }; - - HTMLProcessor.prototype.sourceForMustache = function(mustache) { - var firstLine = mustache.loc.start.line - 1; - var lastLine = mustache.loc.end.line - 1; - var currentLine = firstLine - 1; - var firstColumn = mustache.loc.start.column + 2; - var lastColumn = mustache.loc.end.column - 2; - var string = []; - var line; - - if (!this.source) { - return '{{' + mustache.path.id.original + '}}'; - } - - while (currentLine < lastLine) { - currentLine++; - line = this.source[currentLine]; - - if (currentLine === firstLine) { - if (firstLine === lastLine) { - string.push(line.slice(firstColumn, lastColumn)); - } else { - string.push(line.slice(firstColumn)); - } - } else if (currentLine === lastLine) { - string.push(line.slice(0, lastColumn)); - } else { - string.push(line); - } - } - - return string.join('\n'); - }; - }); -define("htmlbars-syntax/token-handlers", - ["../htmlbars-util/array-utils","./builders","./utils","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var forEach = __dependency1__.forEach; - var buildProgram = __dependency2__.buildProgram; - var buildComponent = __dependency2__.buildComponent; - var buildElement = __dependency2__.buildElement; - var buildComment = __dependency2__.buildComment; - var buildText = __dependency2__.buildText; - var appendChild = __dependency3__.appendChild; - var parseComponentBlockParams = __dependency3__.parseComponentBlockParams; - var postprocessProgram = __dependency3__.postprocessProgram; - - // The HTML elements in this list are speced by - // http://www.w3.org/TR/html-markup/syntax.html#syntax-elements, - // and will be forced to close regardless of if they have a - // self-closing /> at the end. - var voidTagNames = "area base br col command embed hr img input keygen link meta param source track wbr"; - var voidMap = {}; - - forEach(voidTagNames.split(" "), function(tagName) { - voidMap[tagName] = true; - }); - - // Except for `mustache`, all tokens are only allowed outside of - // a start or end tag. - var tokenHandlers = { - Comment: function(token) { - var current = this.currentElement(); - var comment = buildComment(token.chars); - appendChild(current, comment); - }, - - Chars: function(token) { - var current = this.currentElement(); - var text = buildText(token.chars); - appendChild(current, text); - }, - - StartTag: function(tag) { - var element = buildElement(tag.tagName, tag.attributes, tag.helpers || [], []); - element.loc = { - start: { line: tag.firstLine, column: tag.firstColumn}, - end: { line: null, column: null} - }; - - this.elementStack.push(element); - if (voidMap.hasOwnProperty(tag.tagName) || tag.selfClosing) { - tokenHandlers.EndTag.call(this, tag); - } - }, - - BlockStatement: function(/*block*/) { - if (this.tokenizer.state === 'comment') { - return; - } else if (this.tokenizer.state !== 'data') { - throw new Error("A block may only be used inside an HTML element or another block."); - } - }, - - MustacheStatement: function(mustache) { - var tokenizer = this.tokenizer; - - switch(tokenizer.state) { - // Tag helpers - case "tagName": - tokenizer.addTagHelper(mustache.sexpr); - tokenizer.state = "beforeAttributeName"; - return; - case "beforeAttributeName": - tokenizer.addTagHelper(mustache.sexpr); - return; - case "attributeName": - case "afterAttributeName": - tokenizer.finalizeAttributeValue(); - tokenizer.addTagHelper(mustache.sexpr); - tokenizer.state = "beforeAttributeName"; - return; - case "afterAttributeValueQuoted": - tokenizer.addTagHelper(mustache.sexpr); - tokenizer.state = "beforeAttributeName"; - return; - - // Attribute values - case "beforeAttributeValue": - tokenizer.markAttributeQuoted(false); - tokenizer.addToAttributeValue(mustache); - tokenizer.state = 'attributeValueUnquoted'; - return; - case "attributeValueDoubleQuoted": - case "attributeValueSingleQuoted": - case "attributeValueUnquoted": - tokenizer.addToAttributeValue(mustache); - return; - - // TODO: Only append child when the tokenizer state makes - // sense to do so, otherwise throw an error. - default: - appendChild(this.currentElement(), mustache); - } - }, - - EndTag: function(tag) { - var element = this.elementStack.pop(); - var parent = this.currentElement(); - var disableComponentGeneration = this.options.disableComponentGeneration === true; - - validateEndTag(tag, element); - - if (disableComponentGeneration || element.tag.indexOf("-") === -1) { - appendChild(parent, element); - } else { - var program = buildProgram(element.children); - parseComponentBlockParams(element, program); - postprocessProgram(program); - var component = buildComponent(element.tag, element.attributes, program); - appendChild(parent, component); - } - - } - - }; - - function validateEndTag(tag, element) { - var error; - - if (voidMap[tag.tagName] && element.tag === undefined) { - // For void elements, we check element.tag is undefined because endTag is called by the startTag token handler in - // the normal case, so checking only voidMap[tag.tagName] would lead to an error being thrown on the opening tag. - error = "Invalid end tag " + formatEndTagInfo(tag) + " (void elements cannot have end tags)."; - } else if (element.tag === undefined) { - error = "Closing tag " + formatEndTagInfo(tag) + " without an open tag."; - } else if (element.tag !== tag.tagName) { - error = "Closing tag " + formatEndTagInfo(tag) + " did not match last open tag `" + element.tag + "` (on line " + - element.loc.start.line + ")."; - } - - if (error) { throw new Error(error); } - } - - function formatEndTagInfo(tag) { - return "`" + tag.tagName + "` (on line " + tag.lastLine + ")"; - } - - __exports__["default"] = tokenHandlers; - }); -define("htmlbars-syntax/tokenizer", - ["../simple-html-tokenizer","./utils","../htmlbars-util/array-utils","./builders","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { - "use strict"; - var Tokenizer = __dependency1__.Tokenizer; - var isHelper = __dependency2__.isHelper; - var map = __dependency3__.map; - var builders = __dependency4__["default"]; - - Tokenizer.prototype.createAttribute = function(char) { - if (this.token.type === 'EndTag') { - throw new Error('Invalid end tag: closing tag must not have attributes, in ' + formatTokenInfo(this) + '.'); - } - this.currentAttribute = builders.attr(char.toLowerCase(), [], null); - this.token.attributes.push(this.currentAttribute); - this.state = 'attributeName'; - }; - - Tokenizer.prototype.markAttributeQuoted = function(value) { - this.currentAttribute.quoted = value; - }; - - Tokenizer.prototype.addToAttributeName = function(char) { - this.currentAttribute.name += char; - }; - - Tokenizer.prototype.addToAttributeValue = function(char) { - var value = this.currentAttribute.value; - - if (!this.currentAttribute.quoted && char === '/') { - throw new Error("A space is required between an unquoted attribute value and `/`, in " + formatTokenInfo(this) + - '.'); - } - if (!this.currentAttribute.quoted && value.length > 0 && - (char.type === 'MustacheStatement' || value[0].type === 'MustacheStatement')) { - throw new Error("Unquoted attribute value must be a single string or mustache (on line " + this.line + ")"); - } - - if (typeof char === 'object') { - if (char.type === 'MustacheStatement') { - value.push(char); - } else { - throw new Error("Unsupported node in attribute value: " + char.type); - } - } else { - if (value.length > 0 && value[value.length - 1].type === 'TextNode') { - value[value.length - 1].chars += char; - } else { - value.push(builders.text(char)); - } - } - }; - - Tokenizer.prototype.finalizeAttributeValue = function() { - if (this.currentAttribute) { - this.currentAttribute.value = prepareAttributeValue(this.currentAttribute); - delete this.currentAttribute.quoted; - delete this.currentAttribute; - } - }; - - Tokenizer.prototype.addTagHelper = function(helper) { - var helpers = this.token.helpers = this.token.helpers || []; - helpers.push(helper); - }; - - function prepareAttributeValue(attr) { - var parts = attr.value; - var length = parts.length; - - if (length === 0) { - return builders.text(''); - } else if (length === 1 && parts[0].type === "TextNode") { - return parts[0]; - } else if (!attr.quoted) { - return parts[0]; - } else { - return builders.concat(map(parts, prepareConcatPart)); - } - } - - function prepareConcatPart(node) { - switch (node.type) { - case 'TextNode': return builders.string(node.chars); - case 'MustacheStatement': return unwrapMustache(node); - default: - throw new Error("Unsupported node in quoted attribute value: " + node.type); - } - } - - function formatTokenInfo(tokenizer) { - return '`' + tokenizer.token.tagName + '` (on line ' + tokenizer.line + ')'; - } - - function unwrapMustache(mustache) { - if (isHelper(mustache.sexpr)) { - return mustache.sexpr; - } else { - return mustache.sexpr.path; - } - } - - __exports__.unwrapMustache = unwrapMustache;__exports__.Tokenizer = Tokenizer; - }); -define("htmlbars-syntax/utils", - ["./builders","../htmlbars-util/array-utils","exports"], - function(__dependency1__, __dependency2__, __exports__) { - "use strict"; - var buildText = __dependency1__.buildText; - var indexOfArray = __dependency2__.indexOfArray; - // Regex to validate the identifier for block parameters. - // Based on the ID validation regex in Handlebars. - - var ID_INVERSE_PATTERN = /[!"#%-,\.\/;->@\[-\^`\{-~]/; - - // Checks the component's attributes to see if it uses block params. - // If it does, registers the block params with the program and - // removes the corresponding attributes from the element. - - function parseComponentBlockParams(element, program) { - var l = element.attributes.length; - var attrNames = []; - - for (var i = 0; i < l; i++) { - attrNames.push(element.attributes[i].name); - } - - var asIndex = indexOfArray(attrNames, 'as'); - - if (asIndex !== -1 && l > asIndex && attrNames[asIndex + 1].charAt(0) === '|') { - // Some basic validation, since we're doing the parsing ourselves - var paramsString = attrNames.slice(asIndex).join(' '); - if (paramsString.charAt(paramsString.length - 1) !== '|' || paramsString.match(/\|/g).length !== 2) { - throw new Error('Invalid block parameters syntax: \'' + paramsString + '\''); - } - - var params = []; - for (i = asIndex + 1; i < l; i++) { - var param = attrNames[i].replace(/\|/g, ''); - if (param !== '') { - if (ID_INVERSE_PATTERN.test(param)) { - throw new Error('Invalid identifier for block parameters: \'' + param + '\' in \'' + paramsString + '\''); - } - params.push(param); - } - } - - if (params.length === 0) { - throw new Error('Cannot use zero block parameters: \'' + paramsString + '\''); - } - - element.attributes = element.attributes.slice(0, asIndex); - program.blockParams = params; - } - } - - __exports__.parseComponentBlockParams = parseComponentBlockParams;// Adds an empty text node at the beginning and end of a program. - // The empty text nodes *between* nodes are handled elsewhere. - - function postprocessProgram(program) { - var body = program.body; - - if (body.length === 0) { - return; - } - - if (usesMorph(body[0])) { - body.unshift(buildText('')); - } - - if (usesMorph(body[body.length-1])) { - body.push(buildText('')); - } - } - - __exports__.postprocessProgram = postprocessProgram;function childrenFor(node) { - if (node.type === 'Program') { - return node.body; - } - if (node.type === 'ElementNode') { - return node.children; - } - } - - __exports__.childrenFor = childrenFor;function usesMorph(node) { - return node.type === 'MustacheStatement' || - node.type === 'BlockStatement' || - node.type === 'ComponentNode'; - } - - __exports__.usesMorph = usesMorph;function appendChild(parent, node) { - var children = childrenFor(parent); - - var len = children.length, last; - if (len > 0) { - last = children[len-1]; - if (usesMorph(last) && usesMorph(node)) { - children.push(buildText('')); - } - } - children.push(node); - } - - __exports__.appendChild = appendChild;function isHelper(sexpr) { - return (sexpr.params && sexpr.params.length > 0) || - (sexpr.hash && sexpr.hash.pairs.length > 0); - } - - __exports__.isHelper = isHelper; - }); -define("htmlbars-syntax/walker", - ["exports"], - function(__exports__) { - "use strict"; - function Walker(order) { - this.order = order; - this.stack = []; - } - - __exports__["default"] = Walker; - - Walker.prototype.visit = function(node, callback) { - if (!node) { - return; - } - - this.stack.push(node); - - if (this.order === 'post') { - this.children(node, callback); - callback(node, this); - } else { - callback(node, this); - this.children(node, callback); - } - - this.stack.pop(); - }; - - var visitors = { - Program: function(walker, node, callback) { - for (var i = 0; i < node.body.length; i++) { - walker.visit(node.body[i], callback); - } - }, - - ElementNode: function(walker, node, callback) { - for (var i = 0; i < node.children.length; i++) { - walker.visit(node.children[i], callback); - } - }, - - BlockStatement: function(walker, node, callback) { - walker.visit(node.program, callback); - walker.visit(node.inverse, callback); - }, - - ComponentNode: function(walker, node, callback) { - walker.visit(node.program, callback); - } - }; - - Walker.prototype.children = function(node, callback) { - var visitor = visitors[node.type]; - if (visitor) { - visitor(this, node, callback); - } - }; - }); -define("htmlbars-test-helpers", - ["exports"], - function(__exports__) { - "use strict"; - function equalInnerHTML(fragment, html) { - var actualHTML = normalizeInnerHTML(fragment.innerHTML); - QUnit.push(actualHTML === html, actualHTML, html); - } - - __exports__.equalInnerHTML = equalInnerHTML;function equalHTML(node, html) { - var fragment; - if (!node.nodeType && node.length) { - fragment = document.createDocumentFragment(); - while (node[0]) { - fragment.appendChild(node[0]); - } - } else { - fragment = node; - } - - var div = document.createElement("div"); - div.appendChild(fragment.cloneNode(true)); - - equalInnerHTML(div, html); - } - - __exports__.equalHTML = equalHTML;// detect weird IE8 html strings - var ie8InnerHTMLTestElement = document.createElement('div'); - ie8InnerHTMLTestElement.setAttribute('id', 'womp'); - var ie8InnerHTML = (ie8InnerHTMLTestElement.outerHTML.indexOf('id=womp') > -1); - - // detect side-effects of cloning svg elements in IE9-11 - var ieSVGInnerHTML = (function () { - if (!document.createElementNS) { - return false; - } - var div = document.createElement('div'); - var node = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); - div.appendChild(node); - var clone = div.cloneNode(true); - return clone.innerHTML === ''; - })(); - - function normalizeInnerHTML(actualHTML) { - if (ie8InnerHTML) { - // drop newlines in IE8 - actualHTML = actualHTML.replace(/\r\n/gm, ''); - // downcase ALLCAPS tags in IE8 - actualHTML = actualHTML.replace(/<\/?[A-Z\-]+/gi, function(tag){ - return tag.toLowerCase(); - }); - // quote ids in IE8 - actualHTML = actualHTML.replace(/id=([^ >]+)/gi, function(match, id){ - return 'id="'+id+'"'; - }); - // IE8 adds ':' to some tags - // becomes <:keygen> - actualHTML = actualHTML.replace(/<(\/?):([^ >]+)/gi, function(match, slash, tag){ - return '<'+slash+tag; - }); - - // Normalize the style attribute - actualHTML = actualHTML.replace(/style="(.+?)"/gi, function(match, val){ - return 'style="'+val.toLowerCase()+';"'; - }); - - } - if (ieSVGInnerHTML) { - // Replace `` with ``, etc. - // drop namespace attribute - actualHTML = actualHTML.replace(/ xmlns="[^"]+"/, ''); - // replace self-closing elements - actualHTML = actualHTML.replace(/<([^ >]+) [^\/>]*\/>/gi, function(tag, tagName) { - return tag.slice(0, tag.length - 3) + '>'; - }); - } - - return actualHTML; - } - - __exports__.normalizeInnerHTML = normalizeInnerHTML;// detect weird IE8 checked element string - var checkedInput = document.createElement('input'); - checkedInput.setAttribute('checked', 'checked'); - var checkedInputString = checkedInput.outerHTML; - function isCheckedInputHTML(element) { - equal(element.outerHTML, checkedInputString); - } - - __exports__.isCheckedInputHTML = isCheckedInputHTML;// check which property has the node's text content - var textProperty = document.createElement('div').textContent === undefined ? 'innerText' : 'textContent'; - function getTextContent(el) { - // textNode - if (el.nodeType === 3) { - return el.nodeValue; - } else { - return el[textProperty]; - } - } - - __exports__.getTextContent = getTextContent;// IE8 does not have Object.create, so use a polyfill if needed. - // Polyfill based on Mozilla's (MDN) - function createObject(obj) { - if (typeof Object.create === 'function') { - return Object.create(obj); - } else { - var Temp = function() {}; - Temp.prototype = obj; - return new Temp(); - } - } - __exports__.createObject = createObject; - }); -define("htmlbars-util", - ["./htmlbars-util/safe-string","./htmlbars-util/handlebars/utils","./htmlbars-util/namespaces","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __exports__) { - "use strict"; - var SafeString = __dependency1__["default"]; - var escapeExpression = __dependency2__.escapeExpression; - var getAttrNamespace = __dependency3__.getAttrNamespace; - - __exports__.SafeString = SafeString; - __exports__.escapeExpression = escapeExpression; - __exports__.getAttrNamespace = getAttrNamespace; - }); -define("htmlbars-util/array-utils", - ["exports"], - function(__exports__) { - "use strict"; - function forEach(array, callback, binding) { - var i, l; - if (binding === undefined) { - for (i = 0, l = array.length; i < l; i++) { - callback(array[i], i, array); - } - } else { - for (i = 0, l = array.length; i < l; i++) { - callback.call(binding, array[i], i, array); - } - } - } - - __exports__.forEach = forEach;function map(array, callback) { - var output = []; - var i, l; - - for (i = 0, l = array.length; i < l; i++) { - output.push(callback(array[i], i, array)); - } - - return output; - } - - __exports__.map = map;var getIdx; - if (Array.prototype.indexOf) { - getIdx = function(array, obj, from){ - return array.indexOf(obj, from); - }; - } else { - getIdx = function(array, obj, from) { - if (from === undefined || from === null) { - from = 0; - } else if (from < 0) { - from = Math.max(0, array.length + from); - } - for (var i = from, l= array.length; i < l; i++) { - if (array[i] === obj) { - return i; - } - } - return -1; - }; - } - - var indexOfArray = getIdx; - __exports__.indexOfArray = indexOfArray; - }); -define("htmlbars-util/handlebars/safe-string", - ["exports"], - function(__exports__) { - "use strict"; - // Build out our basic SafeString type - function SafeString(string) { - this.string = string; - } - - SafeString.prototype.toString = SafeString.prototype.toHTML = function() { - return "" + this.string; - }; - - __exports__["default"] = SafeString; - }); -define("htmlbars-util/handlebars/utils", - ["./safe-string","exports"], - function(__dependency1__, __exports__) { - "use strict"; - /*jshint -W004 */ - var SafeString = __dependency1__["default"]; - - var escape = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'", - "`": "`" - }; - - var badChars = /[&<>"'`]/g; - var possible = /[&<>"'`]/; - - function escapeChar(chr) { - return escape[chr]; - } - - function extend(obj /* , ...source */) { - for (var i = 1; i < arguments.length; i++) { - for (var key in arguments[i]) { - if (Object.prototype.hasOwnProperty.call(arguments[i], key)) { - obj[key] = arguments[i][key]; - } - } - } - - return obj; - } - - __exports__.extend = extend;var toString = Object.prototype.toString; - __exports__.toString = toString; - // Sourced from lodash - // https://github.com/bestiejs/lodash/blob/master/LICENSE.txt - var isFunction = function(value) { - return typeof value === 'function'; - }; - // fallback for older versions of Chrome and Safari - /* istanbul ignore next */ - if (isFunction(/x/)) { - isFunction = function(value) { - return typeof value === 'function' && toString.call(value) === '[object Function]'; - }; - } - var isFunction; - __exports__.isFunction = isFunction; - /* istanbul ignore next */ - var isArray = Array.isArray || function(value) { - return (value && typeof value === 'object') ? toString.call(value) === '[object Array]' : false; - }; - __exports__.isArray = isArray; - - function escapeExpression(string) { - // don't escape SafeStrings, since they're already safe - if (string && string.toHTML) { - return string.toHTML(); - } else if (string == null) { - return ""; - } else if (!string) { - return string + ''; - } - - // Force a string conversion as this will be done by the append regardless and - // the regex test will do this transparently behind the scenes, causing issues if - // an object's to string has escaped characters in it. - string = "" + string; - - if(!possible.test(string)) { return string; } - return string.replace(badChars, escapeChar); - } - - __exports__.escapeExpression = escapeExpression;function isEmpty(value) { - if (!value && value !== 0) { - return true; - } else if (isArray(value) && value.length === 0) { - return true; - } else { - return false; - } - } - - __exports__.isEmpty = isEmpty;function appendContextPath(contextPath, id) { - return (contextPath ? contextPath + '.' : '') + id; - } - - __exports__.appendContextPath = appendContextPath; - }); -define("htmlbars-util/namespaces", - ["exports"], - function(__exports__) { - "use strict"; - // ref http://dev.w3.org/html5/spec-LC/namespaces.html - var defaultNamespaces = { - html: 'http://www.w3.org/1999/xhtml', - mathml: 'http://www.w3.org/1998/Math/MathML', - svg: 'http://www.w3.org/2000/svg', - xlink: 'http://www.w3.org/1999/xlink', - xml: 'http://www.w3.org/XML/1998/namespace' - }; - - function getAttrNamespace(attrName) { - var namespace; - - var colonIndex = attrName.indexOf(':'); - if (colonIndex !== -1) { - var prefix = attrName.slice(0, colonIndex); - namespace = defaultNamespaces[prefix]; - } - - return namespace || null; - } - - __exports__.getAttrNamespace = getAttrNamespace; - }); -define("htmlbars-util/object-utils", - ["exports"], - function(__exports__) { - "use strict"; - function merge(options, defaults) { - for (var prop in defaults) { - if (options.hasOwnProperty(prop)) { continue; } - options[prop] = defaults[prop]; - } - return options; - } - - __exports__.merge = merge; - }); -define("htmlbars-util/quoting", - ["exports"], - function(__exports__) { - "use strict"; - function escapeString(str) { - str = str.replace(/\\/g, "\\\\"); - str = str.replace(/"/g, '\\"'); - str = str.replace(/\n/g, "\\n"); - return str; - } - - __exports__.escapeString = escapeString; - - function string(str) { - return '"' + escapeString(str) + '"'; - } - - __exports__.string = string; - - function array(a) { - return "[" + a + "]"; - } - - __exports__.array = array; - - function hash(pairs) { - return "{" + pairs.join(", ") + "}"; - } - - __exports__.hash = hash;function repeat(chars, times) { - var str = ""; - while (times--) { - str += chars; - } - return str; - } - - __exports__.repeat = repeat; - }); -define("htmlbars-util/safe-string", - ["./handlebars/safe-string","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var SafeString = __dependency1__["default"]; - - __exports__["default"] = SafeString; - }); -define("simple-html-tokenizer", - ["./simple-html-tokenizer/tokenizer","./simple-html-tokenizer/tokenize","./simple-html-tokenizer/generator","./simple-html-tokenizer/generate","./simple-html-tokenizer/tokens","exports"], - function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __dependency5__, __exports__) { - "use strict"; - /*jshint boss:true*/ - var Tokenizer = __dependency1__["default"]; - var tokenize = __dependency2__["default"]; - var Generator = __dependency3__["default"]; - var generate = __dependency4__["default"]; - var StartTag = __dependency5__.StartTag; - var EndTag = __dependency5__.EndTag; - var Chars = __dependency5__.Chars; - var Comment = __dependency5__.Comment; - - __exports__.Tokenizer = Tokenizer; - __exports__.tokenize = tokenize; - __exports__.Generator = Generator; - __exports__.generate = generate; - __exports__.StartTag = StartTag; - __exports__.EndTag = EndTag; - __exports__.Chars = Chars; - __exports__.Comment = Comment; - }); -define("simple-html-tokenizer/char-refs/full", - ["exports"], - function(__exports__) { - "use strict"; - __exports__["default"] = { - AElig: [198], - AMP: [38], - Aacute: [193], - Abreve: [258], - Acirc: [194], - Acy: [1040], - Afr: [120068], - Agrave: [192], - Alpha: [913], - Amacr: [256], - And: [10835], - Aogon: [260], - Aopf: [120120], - ApplyFunction: [8289], - Aring: [197], - Ascr: [119964], - Assign: [8788], - Atilde: [195], - Auml: [196], - Backslash: [8726], - Barv: [10983], - Barwed: [8966], - Bcy: [1041], - Because: [8757], - Bernoullis: [8492], - Beta: [914], - Bfr: [120069], - Bopf: [120121], - Breve: [728], - Bscr: [8492], - Bumpeq: [8782], - CHcy: [1063], - COPY: [169], - Cacute: [262], - Cap: [8914], - CapitalDifferentialD: [8517], - Cayleys: [8493], - Ccaron: [268], - Ccedil: [199], - Ccirc: [264], - Cconint: [8752], - Cdot: [266], - Cedilla: [184], - CenterDot: [183], - Cfr: [8493], - Chi: [935], - CircleDot: [8857], - CircleMinus: [8854], - CirclePlus: [8853], - CircleTimes: [8855], - ClockwiseContourIntegral: [8754], - CloseCurlyDoubleQuote: [8221], - CloseCurlyQuote: [8217], - Colon: [8759], - Colone: [10868], - Congruent: [8801], - Conint: [8751], - ContourIntegral: [8750], - Copf: [8450], - Coproduct: [8720], - CounterClockwiseContourIntegral: [8755], - Cross: [10799], - Cscr: [119966], - Cup: [8915], - CupCap: [8781], - DD: [8517], - DDotrahd: [10513], - DJcy: [1026], - DScy: [1029], - DZcy: [1039], - Dagger: [8225], - Darr: [8609], - Dashv: [10980], - Dcaron: [270], - Dcy: [1044], - Del: [8711], - Delta: [916], - Dfr: [120071], - DiacriticalAcute: [180], - DiacriticalDot: [729], - DiacriticalDoubleAcute: [733], - DiacriticalGrave: [96], - DiacriticalTilde: [732], - Diamond: [8900], - DifferentialD: [8518], - Dopf: [120123], - Dot: [168], - DotDot: [8412], - DotEqual: [8784], - DoubleContourIntegral: [8751], - DoubleDot: [168], - DoubleDownArrow: [8659], - DoubleLeftArrow: [8656], - DoubleLeftRightArrow: [8660], - DoubleLeftTee: [10980], - DoubleLongLeftArrow: [10232], - DoubleLongLeftRightArrow: [10234], - DoubleLongRightArrow: [10233], - DoubleRightArrow: [8658], - DoubleRightTee: [8872], - DoubleUpArrow: [8657], - DoubleUpDownArrow: [8661], - DoubleVerticalBar: [8741], - DownArrow: [8595], - DownArrowBar: [10515], - DownArrowUpArrow: [8693], - DownBreve: [785], - DownLeftRightVector: [10576], - DownLeftTeeVector: [10590], - DownLeftVector: [8637], - DownLeftVectorBar: [10582], - DownRightTeeVector: [10591], - DownRightVector: [8641], - DownRightVectorBar: [10583], - DownTee: [8868], - DownTeeArrow: [8615], - Downarrow: [8659], - Dscr: [119967], - Dstrok: [272], - ENG: [330], - ETH: [208], - Eacute: [201], - Ecaron: [282], - Ecirc: [202], - Ecy: [1069], - Edot: [278], - Efr: [120072], - Egrave: [200], - Element: [8712], - Emacr: [274], - EmptySmallSquare: [9723], - EmptyVerySmallSquare: [9643], - Eogon: [280], - Eopf: [120124], - Epsilon: [917], - Equal: [10869], - EqualTilde: [8770], - Equilibrium: [8652], - Escr: [8496], - Esim: [10867], - Eta: [919], - Euml: [203], - Exists: [8707], - ExponentialE: [8519], - Fcy: [1060], - Ffr: [120073], - FilledSmallSquare: [9724], - FilledVerySmallSquare: [9642], - Fopf: [120125], - ForAll: [8704], - Fouriertrf: [8497], - Fscr: [8497], - GJcy: [1027], - GT: [62], - Gamma: [915], - Gammad: [988], - Gbreve: [286], - Gcedil: [290], - Gcirc: [284], - Gcy: [1043], - Gdot: [288], - Gfr: [120074], - Gg: [8921], - Gopf: [120126], - GreaterEqual: [8805], - GreaterEqualLess: [8923], - GreaterFullEqual: [8807], - GreaterGreater: [10914], - GreaterLess: [8823], - GreaterSlantEqual: [10878], - GreaterTilde: [8819], - Gscr: [119970], - Gt: [8811], - HARDcy: [1066], - Hacek: [711], - Hat: [94], - Hcirc: [292], - Hfr: [8460], - HilbertSpace: [8459], - Hopf: [8461], - HorizontalLine: [9472], - Hscr: [8459], - Hstrok: [294], - HumpDownHump: [8782], - HumpEqual: [8783], - IEcy: [1045], - IJlig: [306], - IOcy: [1025], - Iacute: [205], - Icirc: [206], - Icy: [1048], - Idot: [304], - Ifr: [8465], - Igrave: [204], - Im: [8465], - Imacr: [298], - ImaginaryI: [8520], - Implies: [8658], - Int: [8748], - Integral: [8747], - Intersection: [8898], - InvisibleComma: [8291], - InvisibleTimes: [8290], - Iogon: [302], - Iopf: [120128], - Iota: [921], - Iscr: [8464], - Itilde: [296], - Iukcy: [1030], - Iuml: [207], - Jcirc: [308], - Jcy: [1049], - Jfr: [120077], - Jopf: [120129], - Jscr: [119973], - Jsercy: [1032], - Jukcy: [1028], - KHcy: [1061], - KJcy: [1036], - Kappa: [922], - Kcedil: [310], - Kcy: [1050], - Kfr: [120078], - Kopf: [120130], - Kscr: [119974], - LJcy: [1033], - LT: [60], - Lacute: [313], - Lambda: [923], - Lang: [10218], - Laplacetrf: [8466], - Larr: [8606], - Lcaron: [317], - Lcedil: [315], - Lcy: [1051], - LeftAngleBracket: [10216], - LeftArrow: [8592], - LeftArrowBar: [8676], - LeftArrowRightArrow: [8646], - LeftCeiling: [8968], - LeftDoubleBracket: [10214], - LeftDownTeeVector: [10593], - LeftDownVector: [8643], - LeftDownVectorBar: [10585], - LeftFloor: [8970], - LeftRightArrow: [8596], - LeftRightVector: [10574], - LeftTee: [8867], - LeftTeeArrow: [8612], - LeftTeeVector: [10586], - LeftTriangle: [8882], - LeftTriangleBar: [10703], - LeftTriangleEqual: [8884], - LeftUpDownVector: [10577], - LeftUpTeeVector: [10592], - LeftUpVector: [8639], - LeftUpVectorBar: [10584], - LeftVector: [8636], - LeftVectorBar: [10578], - Leftarrow: [8656], - Leftrightarrow: [8660], - LessEqualGreater: [8922], - LessFullEqual: [8806], - LessGreater: [8822], - LessLess: [10913], - LessSlantEqual: [10877], - LessTilde: [8818], - Lfr: [120079], - Ll: [8920], - Lleftarrow: [8666], - Lmidot: [319], - LongLeftArrow: [10229], - LongLeftRightArrow: [10231], - LongRightArrow: [10230], - Longleftarrow: [10232], - Longleftrightarrow: [10234], - Longrightarrow: [10233], - Lopf: [120131], - LowerLeftArrow: [8601], - LowerRightArrow: [8600], - Lscr: [8466], - Lsh: [8624], - Lstrok: [321], - Lt: [8810], - Map: [10501], - Mcy: [1052], - MediumSpace: [8287], - Mellintrf: [8499], - Mfr: [120080], - MinusPlus: [8723], - Mopf: [120132], - Mscr: [8499], - Mu: [924], - NJcy: [1034], - Nacute: [323], - Ncaron: [327], - Ncedil: [325], - Ncy: [1053], - NegativeMediumSpace: [8203], - NegativeThickSpace: [8203], - NegativeThinSpace: [8203], - NegativeVeryThinSpace: [8203], - NestedGreaterGreater: [8811], - NestedLessLess: [8810], - NewLine: [10], - Nfr: [120081], - NoBreak: [8288], - NonBreakingSpace: [160], - Nopf: [8469], - Not: [10988], - NotCongruent: [8802], - NotCupCap: [8813], - NotDoubleVerticalBar: [8742], - NotElement: [8713], - NotEqual: [8800], - NotEqualTilde: [8770, 824], - NotExists: [8708], - NotGreater: [8815], - NotGreaterEqual: [8817], - NotGreaterFullEqual: [8807, 824], - NotGreaterGreater: [8811, 824], - NotGreaterLess: [8825], - NotGreaterSlantEqual: [10878, 824], - NotGreaterTilde: [8821], - NotHumpDownHump: [8782, 824], - NotHumpEqual: [8783, 824], - NotLeftTriangle: [8938], - NotLeftTriangleBar: [10703, 824], - NotLeftTriangleEqual: [8940], - NotLess: [8814], - NotLessEqual: [8816], - NotLessGreater: [8824], - NotLessLess: [8810, 824], - NotLessSlantEqual: [10877, 824], - NotLessTilde: [8820], - NotNestedGreaterGreater: [10914, 824], - NotNestedLessLess: [10913, 824], - NotPrecedes: [8832], - NotPrecedesEqual: [10927, 824], - NotPrecedesSlantEqual: [8928], - NotReverseElement: [8716], - NotRightTriangle: [8939], - NotRightTriangleBar: [10704, 824], - NotRightTriangleEqual: [8941], - NotSquareSubset: [8847, 824], - NotSquareSubsetEqual: [8930], - NotSquareSuperset: [8848, 824], - NotSquareSupersetEqual: [8931], - NotSubset: [8834, 8402], - NotSubsetEqual: [8840], - NotSucceeds: [8833], - NotSucceedsEqual: [10928, 824], - NotSucceedsSlantEqual: [8929], - NotSucceedsTilde: [8831, 824], - NotSuperset: [8835, 8402], - NotSupersetEqual: [8841], - NotTilde: [8769], - NotTildeEqual: [8772], - NotTildeFullEqual: [8775], - NotTildeTilde: [8777], - NotVerticalBar: [8740], - Nscr: [119977], - Ntilde: [209], - Nu: [925], - OElig: [338], - Oacute: [211], - Ocirc: [212], - Ocy: [1054], - Odblac: [336], - Ofr: [120082], - Ograve: [210], - Omacr: [332], - Omega: [937], - Omicron: [927], - Oopf: [120134], - OpenCurlyDoubleQuote: [8220], - OpenCurlyQuote: [8216], - Or: [10836], - Oscr: [119978], - Oslash: [216], - Otilde: [213], - Otimes: [10807], - Ouml: [214], - OverBar: [8254], - OverBrace: [9182], - OverBracket: [9140], - OverParenthesis: [9180], - PartialD: [8706], - Pcy: [1055], - Pfr: [120083], - Phi: [934], - Pi: [928], - PlusMinus: [177], - Poincareplane: [8460], - Popf: [8473], - Pr: [10939], - Precedes: [8826], - PrecedesEqual: [10927], - PrecedesSlantEqual: [8828], - PrecedesTilde: [8830], - Prime: [8243], - Product: [8719], - Proportion: [8759], - Proportional: [8733], - Pscr: [119979], - Psi: [936], - QUOT: [34], - Qfr: [120084], - Qopf: [8474], - Qscr: [119980], - RBarr: [10512], - REG: [174], - Racute: [340], - Rang: [10219], - Rarr: [8608], - Rarrtl: [10518], - Rcaron: [344], - Rcedil: [342], - Rcy: [1056], - Re: [8476], - ReverseElement: [8715], - ReverseEquilibrium: [8651], - ReverseUpEquilibrium: [10607], - Rfr: [8476], - Rho: [929], - RightAngleBracket: [10217], - RightArrow: [8594], - RightArrowBar: [8677], - RightArrowLeftArrow: [8644], - RightCeiling: [8969], - RightDoubleBracket: [10215], - RightDownTeeVector: [10589], - RightDownVector: [8642], - RightDownVectorBar: [10581], - RightFloor: [8971], - RightTee: [8866], - RightTeeArrow: [8614], - RightTeeVector: [10587], - RightTriangle: [8883], - RightTriangleBar: [10704], - RightTriangleEqual: [8885], - RightUpDownVector: [10575], - RightUpTeeVector: [10588], - RightUpVector: [8638], - RightUpVectorBar: [10580], - RightVector: [8640], - RightVectorBar: [10579], - Rightarrow: [8658], - Ropf: [8477], - RoundImplies: [10608], - Rrightarrow: [8667], - Rscr: [8475], - Rsh: [8625], - RuleDelayed: [10740], - SHCHcy: [1065], - SHcy: [1064], - SOFTcy: [1068], - Sacute: [346], - Sc: [10940], - Scaron: [352], - Scedil: [350], - Scirc: [348], - Scy: [1057], - Sfr: [120086], - ShortDownArrow: [8595], - ShortLeftArrow: [8592], - ShortRightArrow: [8594], - ShortUpArrow: [8593], - Sigma: [931], - SmallCircle: [8728], - Sopf: [120138], - Sqrt: [8730], - Square: [9633], - SquareIntersection: [8851], - SquareSubset: [8847], - SquareSubsetEqual: [8849], - SquareSuperset: [8848], - SquareSupersetEqual: [8850], - SquareUnion: [8852], - Sscr: [119982], - Star: [8902], - Sub: [8912], - Subset: [8912], - SubsetEqual: [8838], - Succeeds: [8827], - SucceedsEqual: [10928], - SucceedsSlantEqual: [8829], - SucceedsTilde: [8831], - SuchThat: [8715], - Sum: [8721], - Sup: [8913], - Superset: [8835], - SupersetEqual: [8839], - Supset: [8913], - THORN: [222], - TRADE: [8482], - TSHcy: [1035], - TScy: [1062], - Tab: [9], - Tau: [932], - Tcaron: [356], - Tcedil: [354], - Tcy: [1058], - Tfr: [120087], - Therefore: [8756], - Theta: [920], - ThickSpace: [8287, 8202], - ThinSpace: [8201], - Tilde: [8764], - TildeEqual: [8771], - TildeFullEqual: [8773], - TildeTilde: [8776], - Topf: [120139], - TripleDot: [8411], - Tscr: [119983], - Tstrok: [358], - Uacute: [218], - Uarr: [8607], - Uarrocir: [10569], - Ubrcy: [1038], - Ubreve: [364], - Ucirc: [219], - Ucy: [1059], - Udblac: [368], - Ufr: [120088], - Ugrave: [217], - Umacr: [362], - UnderBar: [95], - UnderBrace: [9183], - UnderBracket: [9141], - UnderParenthesis: [9181], - Union: [8899], - UnionPlus: [8846], - Uogon: [370], - Uopf: [120140], - UpArrow: [8593], - UpArrowBar: [10514], - UpArrowDownArrow: [8645], - UpDownArrow: [8597], - UpEquilibrium: [10606], - UpTee: [8869], - UpTeeArrow: [8613], - Uparrow: [8657], - Updownarrow: [8661], - UpperLeftArrow: [8598], - UpperRightArrow: [8599], - Upsi: [978], - Upsilon: [933], - Uring: [366], - Uscr: [119984], - Utilde: [360], - Uuml: [220], - VDash: [8875], - Vbar: [10987], - Vcy: [1042], - Vdash: [8873], - Vdashl: [10982], - Vee: [8897], - Verbar: [8214], - Vert: [8214], - VerticalBar: [8739], - VerticalLine: [124], - VerticalSeparator: [10072], - VerticalTilde: [8768], - VeryThinSpace: [8202], - Vfr: [120089], - Vopf: [120141], - Vscr: [119985], - Vvdash: [8874], - Wcirc: [372], - Wedge: [8896], - Wfr: [120090], - Wopf: [120142], - Wscr: [119986], - Xfr: [120091], - Xi: [926], - Xopf: [120143], - Xscr: [119987], - YAcy: [1071], - YIcy: [1031], - YUcy: [1070], - Yacute: [221], - Ycirc: [374], - Ycy: [1067], - Yfr: [120092], - Yopf: [120144], - Yscr: [119988], - Yuml: [376], - ZHcy: [1046], - Zacute: [377], - Zcaron: [381], - Zcy: [1047], - Zdot: [379], - ZeroWidthSpace: [8203], - Zeta: [918], - Zfr: [8488], - Zopf: [8484], - Zscr: [119989], - aacute: [225], - abreve: [259], - ac: [8766], - acE: [8766, 819], - acd: [8767], - acirc: [226], - acute: [180], - acy: [1072], - aelig: [230], - af: [8289], - afr: [120094], - agrave: [224], - alefsym: [8501], - aleph: [8501], - alpha: [945], - amacr: [257], - amalg: [10815], - amp: [38], - and: [8743], - andand: [10837], - andd: [10844], - andslope: [10840], - andv: [10842], - ang: [8736], - ange: [10660], - angle: [8736], - angmsd: [8737], - angmsdaa: [10664], - angmsdab: [10665], - angmsdac: [10666], - angmsdad: [10667], - angmsdae: [10668], - angmsdaf: [10669], - angmsdag: [10670], - angmsdah: [10671], - angrt: [8735], - angrtvb: [8894], - angrtvbd: [10653], - angsph: [8738], - angst: [197], - angzarr: [9084], - aogon: [261], - aopf: [120146], - ap: [8776], - apE: [10864], - apacir: [10863], - ape: [8778], - apid: [8779], - apos: [39], - approx: [8776], - approxeq: [8778], - aring: [229], - ascr: [119990], - ast: [42], - asymp: [8776], - asympeq: [8781], - atilde: [227], - auml: [228], - awconint: [8755], - awint: [10769], - bNot: [10989], - backcong: [8780], - backepsilon: [1014], - backprime: [8245], - backsim: [8765], - backsimeq: [8909], - barvee: [8893], - barwed: [8965], - barwedge: [8965], - bbrk: [9141], - bbrktbrk: [9142], - bcong: [8780], - bcy: [1073], - bdquo: [8222], - becaus: [8757], - because: [8757], - bemptyv: [10672], - bepsi: [1014], - bernou: [8492], - beta: [946], - beth: [8502], - between: [8812], - bfr: [120095], - bigcap: [8898], - bigcirc: [9711], - bigcup: [8899], - bigodot: [10752], - bigoplus: [10753], - bigotimes: [10754], - bigsqcup: [10758], - bigstar: [9733], - bigtriangledown: [9661], - bigtriangleup: [9651], - biguplus: [10756], - bigvee: [8897], - bigwedge: [8896], - bkarow: [10509], - blacklozenge: [10731], - blacksquare: [9642], - blacktriangle: [9652], - blacktriangledown: [9662], - blacktriangleleft: [9666], - blacktriangleright: [9656], - blank: [9251], - blk12: [9618], - blk14: [9617], - blk34: [9619], - block: [9608], - bne: [61, 8421], - bnequiv: [8801, 8421], - bnot: [8976], - bopf: [120147], - bot: [8869], - bottom: [8869], - bowtie: [8904], - boxDL: [9559], - boxDR: [9556], - boxDl: [9558], - boxDr: [9555], - boxH: [9552], - boxHD: [9574], - boxHU: [9577], - boxHd: [9572], - boxHu: [9575], - boxUL: [9565], - boxUR: [9562], - boxUl: [9564], - boxUr: [9561], - boxV: [9553], - boxVH: [9580], - boxVL: [9571], - boxVR: [9568], - boxVh: [9579], - boxVl: [9570], - boxVr: [9567], - boxbox: [10697], - boxdL: [9557], - boxdR: [9554], - boxdl: [9488], - boxdr: [9484], - boxh: [9472], - boxhD: [9573], - boxhU: [9576], - boxhd: [9516], - boxhu: [9524], - boxminus: [8863], - boxplus: [8862], - boxtimes: [8864], - boxuL: [9563], - boxuR: [9560], - boxul: [9496], - boxur: [9492], - boxv: [9474], - boxvH: [9578], - boxvL: [9569], - boxvR: [9566], - boxvh: [9532], - boxvl: [9508], - boxvr: [9500], - bprime: [8245], - breve: [728], - brvbar: [166], - bscr: [119991], - bsemi: [8271], - bsim: [8765], - bsime: [8909], - bsol: [92], - bsolb: [10693], - bsolhsub: [10184], - bull: [8226], - bullet: [8226], - bump: [8782], - bumpE: [10926], - bumpe: [8783], - bumpeq: [8783], - cacute: [263], - cap: [8745], - capand: [10820], - capbrcup: [10825], - capcap: [10827], - capcup: [10823], - capdot: [10816], - caps: [8745, 65024], - caret: [8257], - caron: [711], - ccaps: [10829], - ccaron: [269], - ccedil: [231], - ccirc: [265], - ccups: [10828], - ccupssm: [10832], - cdot: [267], - cedil: [184], - cemptyv: [10674], - cent: [162], - centerdot: [183], - cfr: [120096], - chcy: [1095], - check: [10003], - checkmark: [10003], - chi: [967], - cir: [9675], - cirE: [10691], - circ: [710], - circeq: [8791], - circlearrowleft: [8634], - circlearrowright: [8635], - circledR: [174], - circledS: [9416], - circledast: [8859], - circledcirc: [8858], - circleddash: [8861], - cire: [8791], - cirfnint: [10768], - cirmid: [10991], - cirscir: [10690], - clubs: [9827], - clubsuit: [9827], - colon: [58], - colone: [8788], - coloneq: [8788], - comma: [44], - commat: [64], - comp: [8705], - compfn: [8728], - complement: [8705], - complexes: [8450], - cong: [8773], - congdot: [10861], - conint: [8750], - copf: [120148], - coprod: [8720], - copy: [169], - copysr: [8471], - crarr: [8629], - cross: [10007], - cscr: [119992], - csub: [10959], - csube: [10961], - csup: [10960], - csupe: [10962], - ctdot: [8943], - cudarrl: [10552], - cudarrr: [10549], - cuepr: [8926], - cuesc: [8927], - cularr: [8630], - cularrp: [10557], - cup: [8746], - cupbrcap: [10824], - cupcap: [10822], - cupcup: [10826], - cupdot: [8845], - cupor: [10821], - cups: [8746, 65024], - curarr: [8631], - curarrm: [10556], - curlyeqprec: [8926], - curlyeqsucc: [8927], - curlyvee: [8910], - curlywedge: [8911], - curren: [164], - curvearrowleft: [8630], - curvearrowright: [8631], - cuvee: [8910], - cuwed: [8911], - cwconint: [8754], - cwint: [8753], - cylcty: [9005], - dArr: [8659], - dHar: [10597], - dagger: [8224], - daleth: [8504], - darr: [8595], - dash: [8208], - dashv: [8867], - dbkarow: [10511], - dblac: [733], - dcaron: [271], - dcy: [1076], - dd: [8518], - ddagger: [8225], - ddarr: [8650], - ddotseq: [10871], - deg: [176], - delta: [948], - demptyv: [10673], - dfisht: [10623], - dfr: [120097], - dharl: [8643], - dharr: [8642], - diam: [8900], - diamond: [8900], - diamondsuit: [9830], - diams: [9830], - die: [168], - digamma: [989], - disin: [8946], - div: [247], - divide: [247], - divideontimes: [8903], - divonx: [8903], - djcy: [1106], - dlcorn: [8990], - dlcrop: [8973], - dollar: [36], - dopf: [120149], - dot: [729], - doteq: [8784], - doteqdot: [8785], - dotminus: [8760], - dotplus: [8724], - dotsquare: [8865], - doublebarwedge: [8966], - downarrow: [8595], - downdownarrows: [8650], - downharpoonleft: [8643], - downharpoonright: [8642], - drbkarow: [10512], - drcorn: [8991], - drcrop: [8972], - dscr: [119993], - dscy: [1109], - dsol: [10742], - dstrok: [273], - dtdot: [8945], - dtri: [9663], - dtrif: [9662], - duarr: [8693], - duhar: [10607], - dwangle: [10662], - dzcy: [1119], - dzigrarr: [10239], - eDDot: [10871], - eDot: [8785], - eacute: [233], - easter: [10862], - ecaron: [283], - ecir: [8790], - ecirc: [234], - ecolon: [8789], - ecy: [1101], - edot: [279], - ee: [8519], - efDot: [8786], - efr: [120098], - eg: [10906], - egrave: [232], - egs: [10902], - egsdot: [10904], - el: [10905], - elinters: [9191], - ell: [8467], - els: [10901], - elsdot: [10903], - emacr: [275], - empty: [8709], - emptyset: [8709], - emptyv: [8709], - emsp: [8195], - emsp13: [8196], - emsp14: [8197], - eng: [331], - ensp: [8194], - eogon: [281], - eopf: [120150], - epar: [8917], - eparsl: [10723], - eplus: [10865], - epsi: [949], - epsilon: [949], - epsiv: [1013], - eqcirc: [8790], - eqcolon: [8789], - eqsim: [8770], - eqslantgtr: [10902], - eqslantless: [10901], - equals: [61], - equest: [8799], - equiv: [8801], - equivDD: [10872], - eqvparsl: [10725], - erDot: [8787], - erarr: [10609], - escr: [8495], - esdot: [8784], - esim: [8770], - eta: [951], - eth: [240], - euml: [235], - euro: [8364], - excl: [33], - exist: [8707], - expectation: [8496], - exponentiale: [8519], - fallingdotseq: [8786], - fcy: [1092], - female: [9792], - ffilig: [64259], - fflig: [64256], - ffllig: [64260], - ffr: [120099], - filig: [64257], - fjlig: [102, 106], - flat: [9837], - fllig: [64258], - fltns: [9649], - fnof: [402], - fopf: [120151], - forall: [8704], - fork: [8916], - forkv: [10969], - fpartint: [10765], - frac12: [189], - frac13: [8531], - frac14: [188], - frac15: [8533], - frac16: [8537], - frac18: [8539], - frac23: [8532], - frac25: [8534], - frac34: [190], - frac35: [8535], - frac38: [8540], - frac45: [8536], - frac56: [8538], - frac58: [8541], - frac78: [8542], - frasl: [8260], - frown: [8994], - fscr: [119995], - gE: [8807], - gEl: [10892], - gacute: [501], - gamma: [947], - gammad: [989], - gap: [10886], - gbreve: [287], - gcirc: [285], - gcy: [1075], - gdot: [289], - ge: [8805], - gel: [8923], - geq: [8805], - geqq: [8807], - geqslant: [10878], - ges: [10878], - gescc: [10921], - gesdot: [10880], - gesdoto: [10882], - gesdotol: [10884], - gesl: [8923, 65024], - gesles: [10900], - gfr: [120100], - gg: [8811], - ggg: [8921], - gimel: [8503], - gjcy: [1107], - gl: [8823], - glE: [10898], - gla: [10917], - glj: [10916], - gnE: [8809], - gnap: [10890], - gnapprox: [10890], - gne: [10888], - gneq: [10888], - gneqq: [8809], - gnsim: [8935], - gopf: [120152], - grave: [96], - gscr: [8458], - gsim: [8819], - gsime: [10894], - gsiml: [10896], - gt: [62], - gtcc: [10919], - gtcir: [10874], - gtdot: [8919], - gtlPar: [10645], - gtquest: [10876], - gtrapprox: [10886], - gtrarr: [10616], - gtrdot: [8919], - gtreqless: [8923], - gtreqqless: [10892], - gtrless: [8823], - gtrsim: [8819], - gvertneqq: [8809, 65024], - gvnE: [8809, 65024], - hArr: [8660], - hairsp: [8202], - half: [189], - hamilt: [8459], - hardcy: [1098], - harr: [8596], - harrcir: [10568], - harrw: [8621], - hbar: [8463], - hcirc: [293], - hearts: [9829], - heartsuit: [9829], - hellip: [8230], - hercon: [8889], - hfr: [120101], - hksearow: [10533], - hkswarow: [10534], - hoarr: [8703], - homtht: [8763], - hookleftarrow: [8617], - hookrightarrow: [8618], - hopf: [120153], - horbar: [8213], - hscr: [119997], - hslash: [8463], - hstrok: [295], - hybull: [8259], - hyphen: [8208], - iacute: [237], - ic: [8291], - icirc: [238], - icy: [1080], - iecy: [1077], - iexcl: [161], - iff: [8660], - ifr: [120102], - igrave: [236], - ii: [8520], - iiiint: [10764], - iiint: [8749], - iinfin: [10716], - iiota: [8489], - ijlig: [307], - imacr: [299], - image: [8465], - imagline: [8464], - imagpart: [8465], - imath: [305], - imof: [8887], - imped: [437], - "in": [8712], - incare: [8453], - infin: [8734], - infintie: [10717], - inodot: [305], - "int": [8747], - intcal: [8890], - integers: [8484], - intercal: [8890], - intlarhk: [10775], - intprod: [10812], - iocy: [1105], - iogon: [303], - iopf: [120154], - iota: [953], - iprod: [10812], - iquest: [191], - iscr: [119998], - isin: [8712], - isinE: [8953], - isindot: [8949], - isins: [8948], - isinsv: [8947], - isinv: [8712], - it: [8290], - itilde: [297], - iukcy: [1110], - iuml: [239], - jcirc: [309], - jcy: [1081], - jfr: [120103], - jmath: [567], - jopf: [120155], - jscr: [119999], - jsercy: [1112], - jukcy: [1108], - kappa: [954], - kappav: [1008], - kcedil: [311], - kcy: [1082], - kfr: [120104], - kgreen: [312], - khcy: [1093], - kjcy: [1116], - kopf: [120156], - kscr: [120000], - lAarr: [8666], - lArr: [8656], - lAtail: [10523], - lBarr: [10510], - lE: [8806], - lEg: [10891], - lHar: [10594], - lacute: [314], - laemptyv: [10676], - lagran: [8466], - lambda: [955], - lang: [10216], - langd: [10641], - langle: [10216], - lap: [10885], - laquo: [171], - larr: [8592], - larrb: [8676], - larrbfs: [10527], - larrfs: [10525], - larrhk: [8617], - larrlp: [8619], - larrpl: [10553], - larrsim: [10611], - larrtl: [8610], - lat: [10923], - latail: [10521], - late: [10925], - lates: [10925, 65024], - lbarr: [10508], - lbbrk: [10098], - lbrace: [123], - lbrack: [91], - lbrke: [10635], - lbrksld: [10639], - lbrkslu: [10637], - lcaron: [318], - lcedil: [316], - lceil: [8968], - lcub: [123], - lcy: [1083], - ldca: [10550], - ldquo: [8220], - ldquor: [8222], - ldrdhar: [10599], - ldrushar: [10571], - ldsh: [8626], - le: [8804], - leftarrow: [8592], - leftarrowtail: [8610], - leftharpoondown: [8637], - leftharpoonup: [8636], - leftleftarrows: [8647], - leftrightarrow: [8596], - leftrightarrows: [8646], - leftrightharpoons: [8651], - leftrightsquigarrow: [8621], - leftthreetimes: [8907], - leg: [8922], - leq: [8804], - leqq: [8806], - leqslant: [10877], - les: [10877], - lescc: [10920], - lesdot: [10879], - lesdoto: [10881], - lesdotor: [10883], - lesg: [8922, 65024], - lesges: [10899], - lessapprox: [10885], - lessdot: [8918], - lesseqgtr: [8922], - lesseqqgtr: [10891], - lessgtr: [8822], - lesssim: [8818], - lfisht: [10620], - lfloor: [8970], - lfr: [120105], - lg: [8822], - lgE: [10897], - lhard: [8637], - lharu: [8636], - lharul: [10602], - lhblk: [9604], - ljcy: [1113], - ll: [8810], - llarr: [8647], - llcorner: [8990], - llhard: [10603], - lltri: [9722], - lmidot: [320], - lmoust: [9136], - lmoustache: [9136], - lnE: [8808], - lnap: [10889], - lnapprox: [10889], - lne: [10887], - lneq: [10887], - lneqq: [8808], - lnsim: [8934], - loang: [10220], - loarr: [8701], - lobrk: [10214], - longleftarrow: [10229], - longleftrightarrow: [10231], - longmapsto: [10236], - longrightarrow: [10230], - looparrowleft: [8619], - looparrowright: [8620], - lopar: [10629], - lopf: [120157], - loplus: [10797], - lotimes: [10804], - lowast: [8727], - lowbar: [95], - loz: [9674], - lozenge: [9674], - lozf: [10731], - lpar: [40], - lparlt: [10643], - lrarr: [8646], - lrcorner: [8991], - lrhar: [8651], - lrhard: [10605], - lrm: [8206], - lrtri: [8895], - lsaquo: [8249], - lscr: [120001], - lsh: [8624], - lsim: [8818], - lsime: [10893], - lsimg: [10895], - lsqb: [91], - lsquo: [8216], - lsquor: [8218], - lstrok: [322], - lt: [60], - ltcc: [10918], - ltcir: [10873], - ltdot: [8918], - lthree: [8907], - ltimes: [8905], - ltlarr: [10614], - ltquest: [10875], - ltrPar: [10646], - ltri: [9667], - ltrie: [8884], - ltrif: [9666], - lurdshar: [10570], - luruhar: [10598], - lvertneqq: [8808, 65024], - lvnE: [8808, 65024], - mDDot: [8762], - macr: [175], - male: [9794], - malt: [10016], - maltese: [10016], - map: [8614], - mapsto: [8614], - mapstodown: [8615], - mapstoleft: [8612], - mapstoup: [8613], - marker: [9646], - mcomma: [10793], - mcy: [1084], - mdash: [8212], - measuredangle: [8737], - mfr: [120106], - mho: [8487], - micro: [181], - mid: [8739], - midast: [42], - midcir: [10992], - middot: [183], - minus: [8722], - minusb: [8863], - minusd: [8760], - minusdu: [10794], - mlcp: [10971], - mldr: [8230], - mnplus: [8723], - models: [8871], - mopf: [120158], - mp: [8723], - mscr: [120002], - mstpos: [8766], - mu: [956], - multimap: [8888], - mumap: [8888], - nGg: [8921, 824], - nGt: [8811, 8402], - nGtv: [8811, 824], - nLeftarrow: [8653], - nLeftrightarrow: [8654], - nLl: [8920, 824], - nLt: [8810, 8402], - nLtv: [8810, 824], - nRightarrow: [8655], - nVDash: [8879], - nVdash: [8878], - nabla: [8711], - nacute: [324], - nang: [8736, 8402], - nap: [8777], - napE: [10864, 824], - napid: [8779, 824], - napos: [329], - napprox: [8777], - natur: [9838], - natural: [9838], - naturals: [8469], - nbsp: [160], - nbump: [8782, 824], - nbumpe: [8783, 824], - ncap: [10819], - ncaron: [328], - ncedil: [326], - ncong: [8775], - ncongdot: [10861, 824], - ncup: [10818], - ncy: [1085], - ndash: [8211], - ne: [8800], - neArr: [8663], - nearhk: [10532], - nearr: [8599], - nearrow: [8599], - nedot: [8784, 824], - nequiv: [8802], - nesear: [10536], - nesim: [8770, 824], - nexist: [8708], - nexists: [8708], - nfr: [120107], - ngE: [8807, 824], - nge: [8817], - ngeq: [8817], - ngeqq: [8807, 824], - ngeqslant: [10878, 824], - nges: [10878, 824], - ngsim: [8821], - ngt: [8815], - ngtr: [8815], - nhArr: [8654], - nharr: [8622], - nhpar: [10994], - ni: [8715], - nis: [8956], - nisd: [8954], - niv: [8715], - njcy: [1114], - nlArr: [8653], - nlE: [8806, 824], - nlarr: [8602], - nldr: [8229], - nle: [8816], - nleftarrow: [8602], - nleftrightarrow: [8622], - nleq: [8816], - nleqq: [8806, 824], - nleqslant: [10877, 824], - nles: [10877, 824], - nless: [8814], - nlsim: [8820], - nlt: [8814], - nltri: [8938], - nltrie: [8940], - nmid: [8740], - nopf: [120159], - not: [172], - notin: [8713], - notinE: [8953, 824], - notindot: [8949, 824], - notinva: [8713], - notinvb: [8951], - notinvc: [8950], - notni: [8716], - notniva: [8716], - notnivb: [8958], - notnivc: [8957], - npar: [8742], - nparallel: [8742], - nparsl: [11005, 8421], - npart: [8706, 824], - npolint: [10772], - npr: [8832], - nprcue: [8928], - npre: [10927, 824], - nprec: [8832], - npreceq: [10927, 824], - nrArr: [8655], - nrarr: [8603], - nrarrc: [10547, 824], - nrarrw: [8605, 824], - nrightarrow: [8603], - nrtri: [8939], - nrtrie: [8941], - nsc: [8833], - nsccue: [8929], - nsce: [10928, 824], - nscr: [120003], - nshortmid: [8740], - nshortparallel: [8742], - nsim: [8769], - nsime: [8772], - nsimeq: [8772], - nsmid: [8740], - nspar: [8742], - nsqsube: [8930], - nsqsupe: [8931], - nsub: [8836], - nsubE: [10949, 824], - nsube: [8840], - nsubset: [8834, 8402], - nsubseteq: [8840], - nsubseteqq: [10949, 824], - nsucc: [8833], - nsucceq: [10928, 824], - nsup: [8837], - nsupE: [10950, 824], - nsupe: [8841], - nsupset: [8835, 8402], - nsupseteq: [8841], - nsupseteqq: [10950, 824], - ntgl: [8825], - ntilde: [241], - ntlg: [8824], - ntriangleleft: [8938], - ntrianglelefteq: [8940], - ntriangleright: [8939], - ntrianglerighteq: [8941], - nu: [957], - num: [35], - numero: [8470], - numsp: [8199], - nvDash: [8877], - nvHarr: [10500], - nvap: [8781, 8402], - nvdash: [8876], - nvge: [8805, 8402], - nvgt: [62, 8402], - nvinfin: [10718], - nvlArr: [10498], - nvle: [8804, 8402], - nvlt: [60, 8402], - nvltrie: [8884, 8402], - nvrArr: [10499], - nvrtrie: [8885, 8402], - nvsim: [8764, 8402], - nwArr: [8662], - nwarhk: [10531], - nwarr: [8598], - nwarrow: [8598], - nwnear: [10535], - oS: [9416], - oacute: [243], - oast: [8859], - ocir: [8858], - ocirc: [244], - ocy: [1086], - odash: [8861], - odblac: [337], - odiv: [10808], - odot: [8857], - odsold: [10684], - oelig: [339], - ofcir: [10687], - ofr: [120108], - ogon: [731], - ograve: [242], - ogt: [10689], - ohbar: [10677], - ohm: [937], - oint: [8750], - olarr: [8634], - olcir: [10686], - olcross: [10683], - oline: [8254], - olt: [10688], - omacr: [333], - omega: [969], - omicron: [959], - omid: [10678], - ominus: [8854], - oopf: [120160], - opar: [10679], - operp: [10681], - oplus: [8853], - or: [8744], - orarr: [8635], - ord: [10845], - order: [8500], - orderof: [8500], - ordf: [170], - ordm: [186], - origof: [8886], - oror: [10838], - orslope: [10839], - orv: [10843], - oscr: [8500], - oslash: [248], - osol: [8856], - otilde: [245], - otimes: [8855], - otimesas: [10806], - ouml: [246], - ovbar: [9021], - par: [8741], - para: [182], - parallel: [8741], - parsim: [10995], - parsl: [11005], - part: [8706], - pcy: [1087], - percnt: [37], - period: [46], - permil: [8240], - perp: [8869], - pertenk: [8241], - pfr: [120109], - phi: [966], - phiv: [981], - phmmat: [8499], - phone: [9742], - pi: [960], - pitchfork: [8916], - piv: [982], - planck: [8463], - planckh: [8462], - plankv: [8463], - plus: [43], - plusacir: [10787], - plusb: [8862], - pluscir: [10786], - plusdo: [8724], - plusdu: [10789], - pluse: [10866], - plusmn: [177], - plussim: [10790], - plustwo: [10791], - pm: [177], - pointint: [10773], - popf: [120161], - pound: [163], - pr: [8826], - prE: [10931], - prap: [10935], - prcue: [8828], - pre: [10927], - prec: [8826], - precapprox: [10935], - preccurlyeq: [8828], - preceq: [10927], - precnapprox: [10937], - precneqq: [10933], - precnsim: [8936], - precsim: [8830], - prime: [8242], - primes: [8473], - prnE: [10933], - prnap: [10937], - prnsim: [8936], - prod: [8719], - profalar: [9006], - profline: [8978], - profsurf: [8979], - prop: [8733], - propto: [8733], - prsim: [8830], - prurel: [8880], - pscr: [120005], - psi: [968], - puncsp: [8200], - qfr: [120110], - qint: [10764], - qopf: [120162], - qprime: [8279], - qscr: [120006], - quaternions: [8461], - quatint: [10774], - quest: [63], - questeq: [8799], - quot: [34], - rAarr: [8667], - rArr: [8658], - rAtail: [10524], - rBarr: [10511], - rHar: [10596], - race: [8765, 817], - racute: [341], - radic: [8730], - raemptyv: [10675], - rang: [10217], - rangd: [10642], - range: [10661], - rangle: [10217], - raquo: [187], - rarr: [8594], - rarrap: [10613], - rarrb: [8677], - rarrbfs: [10528], - rarrc: [10547], - rarrfs: [10526], - rarrhk: [8618], - rarrlp: [8620], - rarrpl: [10565], - rarrsim: [10612], - rarrtl: [8611], - rarrw: [8605], - ratail: [10522], - ratio: [8758], - rationals: [8474], - rbarr: [10509], - rbbrk: [10099], - rbrace: [125], - rbrack: [93], - rbrke: [10636], - rbrksld: [10638], - rbrkslu: [10640], - rcaron: [345], - rcedil: [343], - rceil: [8969], - rcub: [125], - rcy: [1088], - rdca: [10551], - rdldhar: [10601], - rdquo: [8221], - rdquor: [8221], - rdsh: [8627], - real: [8476], - realine: [8475], - realpart: [8476], - reals: [8477], - rect: [9645], - reg: [174], - rfisht: [10621], - rfloor: [8971], - rfr: [120111], - rhard: [8641], - rharu: [8640], - rharul: [10604], - rho: [961], - rhov: [1009], - rightarrow: [8594], - rightarrowtail: [8611], - rightharpoondown: [8641], - rightharpoonup: [8640], - rightleftarrows: [8644], - rightleftharpoons: [8652], - rightrightarrows: [8649], - rightsquigarrow: [8605], - rightthreetimes: [8908], - ring: [730], - risingdotseq: [8787], - rlarr: [8644], - rlhar: [8652], - rlm: [8207], - rmoust: [9137], - rmoustache: [9137], - rnmid: [10990], - roang: [10221], - roarr: [8702], - robrk: [10215], - ropar: [10630], - ropf: [120163], - roplus: [10798], - rotimes: [10805], - rpar: [41], - rpargt: [10644], - rppolint: [10770], - rrarr: [8649], - rsaquo: [8250], - rscr: [120007], - rsh: [8625], - rsqb: [93], - rsquo: [8217], - rsquor: [8217], - rthree: [8908], - rtimes: [8906], - rtri: [9657], - rtrie: [8885], - rtrif: [9656], - rtriltri: [10702], - ruluhar: [10600], - rx: [8478], - sacute: [347], - sbquo: [8218], - sc: [8827], - scE: [10932], - scap: [10936], - scaron: [353], - sccue: [8829], - sce: [10928], - scedil: [351], - scirc: [349], - scnE: [10934], - scnap: [10938], - scnsim: [8937], - scpolint: [10771], - scsim: [8831], - scy: [1089], - sdot: [8901], - sdotb: [8865], - sdote: [10854], - seArr: [8664], - searhk: [10533], - searr: [8600], - searrow: [8600], - sect: [167], - semi: [59], - seswar: [10537], - setminus: [8726], - setmn: [8726], - sext: [10038], - sfr: [120112], - sfrown: [8994], - sharp: [9839], - shchcy: [1097], - shcy: [1096], - shortmid: [8739], - shortparallel: [8741], - shy: [173], - sigma: [963], - sigmaf: [962], - sigmav: [962], - sim: [8764], - simdot: [10858], - sime: [8771], - simeq: [8771], - simg: [10910], - simgE: [10912], - siml: [10909], - simlE: [10911], - simne: [8774], - simplus: [10788], - simrarr: [10610], - slarr: [8592], - smallsetminus: [8726], - smashp: [10803], - smeparsl: [10724], - smid: [8739], - smile: [8995], - smt: [10922], - smte: [10924], - smtes: [10924, 65024], - softcy: [1100], - sol: [47], - solb: [10692], - solbar: [9023], - sopf: [120164], - spades: [9824], - spadesuit: [9824], - spar: [8741], - sqcap: [8851], - sqcaps: [8851, 65024], - sqcup: [8852], - sqcups: [8852, 65024], - sqsub: [8847], - sqsube: [8849], - sqsubset: [8847], - sqsubseteq: [8849], - sqsup: [8848], - sqsupe: [8850], - sqsupset: [8848], - sqsupseteq: [8850], - squ: [9633], - square: [9633], - squarf: [9642], - squf: [9642], - srarr: [8594], - sscr: [120008], - ssetmn: [8726], - ssmile: [8995], - sstarf: [8902], - star: [9734], - starf: [9733], - straightepsilon: [1013], - straightphi: [981], - strns: [175], - sub: [8834], - subE: [10949], - subdot: [10941], - sube: [8838], - subedot: [10947], - submult: [10945], - subnE: [10955], - subne: [8842], - subplus: [10943], - subrarr: [10617], - subset: [8834], - subseteq: [8838], - subseteqq: [10949], - subsetneq: [8842], - subsetneqq: [10955], - subsim: [10951], - subsub: [10965], - subsup: [10963], - succ: [8827], - succapprox: [10936], - succcurlyeq: [8829], - succeq: [10928], - succnapprox: [10938], - succneqq: [10934], - succnsim: [8937], - succsim: [8831], - sum: [8721], - sung: [9834], - sup: [8835], - sup1: [185], - sup2: [178], - sup3: [179], - supE: [10950], - supdot: [10942], - supdsub: [10968], - supe: [8839], - supedot: [10948], - suphsol: [10185], - suphsub: [10967], - suplarr: [10619], - supmult: [10946], - supnE: [10956], - supne: [8843], - supplus: [10944], - supset: [8835], - supseteq: [8839], - supseteqq: [10950], - supsetneq: [8843], - supsetneqq: [10956], - supsim: [10952], - supsub: [10964], - supsup: [10966], - swArr: [8665], - swarhk: [10534], - swarr: [8601], - swarrow: [8601], - swnwar: [10538], - szlig: [223], - target: [8982], - tau: [964], - tbrk: [9140], - tcaron: [357], - tcedil: [355], - tcy: [1090], - tdot: [8411], - telrec: [8981], - tfr: [120113], - there4: [8756], - therefore: [8756], - theta: [952], - thetasym: [977], - thetav: [977], - thickapprox: [8776], - thicksim: [8764], - thinsp: [8201], - thkap: [8776], - thksim: [8764], - thorn: [254], - tilde: [732], - times: [215], - timesb: [8864], - timesbar: [10801], - timesd: [10800], - tint: [8749], - toea: [10536], - top: [8868], - topbot: [9014], - topcir: [10993], - topf: [120165], - topfork: [10970], - tosa: [10537], - tprime: [8244], - trade: [8482], - triangle: [9653], - triangledown: [9663], - triangleleft: [9667], - trianglelefteq: [8884], - triangleq: [8796], - triangleright: [9657], - trianglerighteq: [8885], - tridot: [9708], - trie: [8796], - triminus: [10810], - triplus: [10809], - trisb: [10701], - tritime: [10811], - trpezium: [9186], - tscr: [120009], - tscy: [1094], - tshcy: [1115], - tstrok: [359], - twixt: [8812], - twoheadleftarrow: [8606], - twoheadrightarrow: [8608], - uArr: [8657], - uHar: [10595], - uacute: [250], - uarr: [8593], - ubrcy: [1118], - ubreve: [365], - ucirc: [251], - ucy: [1091], - udarr: [8645], - udblac: [369], - udhar: [10606], - ufisht: [10622], - ufr: [120114], - ugrave: [249], - uharl: [8639], - uharr: [8638], - uhblk: [9600], - ulcorn: [8988], - ulcorner: [8988], - ulcrop: [8975], - ultri: [9720], - umacr: [363], - uml: [168], - uogon: [371], - uopf: [120166], - uparrow: [8593], - updownarrow: [8597], - upharpoonleft: [8639], - upharpoonright: [8638], - uplus: [8846], - upsi: [965], - upsih: [978], - upsilon: [965], - upuparrows: [8648], - urcorn: [8989], - urcorner: [8989], - urcrop: [8974], - uring: [367], - urtri: [9721], - uscr: [120010], - utdot: [8944], - utilde: [361], - utri: [9653], - utrif: [9652], - uuarr: [8648], - uuml: [252], - uwangle: [10663], - vArr: [8661], - vBar: [10984], - vBarv: [10985], - vDash: [8872], - vangrt: [10652], - varepsilon: [1013], - varkappa: [1008], - varnothing: [8709], - varphi: [981], - varpi: [982], - varpropto: [8733], - varr: [8597], - varrho: [1009], - varsigma: [962], - varsubsetneq: [8842, 65024], - varsubsetneqq: [10955, 65024], - varsupsetneq: [8843, 65024], - varsupsetneqq: [10956, 65024], - vartheta: [977], - vartriangleleft: [8882], - vartriangleright: [8883], - vcy: [1074], - vdash: [8866], - vee: [8744], - veebar: [8891], - veeeq: [8794], - vellip: [8942], - verbar: [124], - vert: [124], - vfr: [120115], - vltri: [8882], - vnsub: [8834, 8402], - vnsup: [8835, 8402], - vopf: [120167], - vprop: [8733], - vrtri: [8883], - vscr: [120011], - vsubnE: [10955, 65024], - vsubne: [8842, 65024], - vsupnE: [10956, 65024], - vsupne: [8843, 65024], - vzigzag: [10650], - wcirc: [373], - wedbar: [10847], - wedge: [8743], - wedgeq: [8793], - weierp: [8472], - wfr: [120116], - wopf: [120168], - wp: [8472], - wr: [8768], - wreath: [8768], - wscr: [120012], - xcap: [8898], - xcirc: [9711], - xcup: [8899], - xdtri: [9661], - xfr: [120117], - xhArr: [10234], - xharr: [10231], - xi: [958], - xlArr: [10232], - xlarr: [10229], - xmap: [10236], - xnis: [8955], - xodot: [10752], - xopf: [120169], - xoplus: [10753], - xotime: [10754], - xrArr: [10233], - xrarr: [10230], - xscr: [120013], - xsqcup: [10758], - xuplus: [10756], - xutri: [9651], - xvee: [8897], - xwedge: [8896], - yacute: [253], - yacy: [1103], - ycirc: [375], - ycy: [1099], - yen: [165], - yfr: [120118], - yicy: [1111], - yopf: [120170], - yscr: [120014], - yucy: [1102], - yuml: [255], - zacute: [378], - zcaron: [382], - zcy: [1079], - zdot: [380], - zeetrf: [8488], - zeta: [950], - zfr: [120119], - zhcy: [1078], - zigrarr: [8669], - zopf: [120171], - zscr: [120015], - zwj: [8205], - zwnj: [8204] - }; - }); -define("simple-html-tokenizer/char-refs/min", - ["exports"], - function(__exports__) { - "use strict"; - __exports__["default"] = { - quot: [34], - amp: [38], - apos: [39], - lt: [60], - gt: [62] - }; - }); -define("simple-html-tokenizer/entity-parser", - ["exports"], - function(__exports__) { - "use strict"; - function EntityParser(namedCodepoints) { - this.namedCodepoints = namedCodepoints; - } - - EntityParser.prototype.parse = function (tokenizer) { - var input = tokenizer.input.slice(tokenizer["char"]); - var matches = input.match(/^#(?:x|X)([0-9A-Fa-f]+);/); - if (matches) { - tokenizer["char"] += matches[0].length; - return String.fromCharCode(parseInt(matches[1], 16)); - } - matches = input.match(/^#([0-9]+);/); - if (matches) { - tokenizer["char"] += matches[0].length; - return String.fromCharCode(parseInt(matches[1], 10)); - } - matches = input.match(/^([A-Za-z]+);/); - if (matches) { - var codepoints = this.namedCodepoints[matches[1]]; - if (codepoints) { - tokenizer["char"] += matches[0].length; - for (var i = 0, buffer = ''; i < codepoints.length; i++) { - buffer += String.fromCharCode(codepoints[i]); - } - return buffer; - } - } - }; - - __exports__["default"] = EntityParser; - }); -define("simple-html-tokenizer/generate", - ["./generator","exports"], - function(__dependency1__, __exports__) { - "use strict"; - var Generator = __dependency1__["default"]; - - __exports__["default"] = function generate(tokens) { - var generator = new Generator(); - return generator.generate(tokens); - } - }); -define("simple-html-tokenizer/generator", - ["exports"], - function(__exports__) { - "use strict"; - var escape = (function () { - var test = /[&<>"'`]/; - var replace = /[&<>"'`]/g; - var map = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'", - "`": "`" - }; - function escapeChar(char) { - return map["char"]; - } - return function escape(string) { - if(!test.test(string)) { - return string; - } - return string.replace(replace, escapeChar); - }; - }()); - - function Generator() { - this.escape = escape; - } - - Generator.prototype = { - generate: function (tokens) { - var buffer = ''; - var token; - for (var i=0; i"; - }, - - Chars: function (token) { - return this.escape(token.chars); - }, - - Comment: function (token) { - return ""; - }, - - Attributes: function (attributes) { - var out = [], attribute; - - for (var i=0, l=attributes.length; i") { - return this.emitToken(); - } else { - this.addToComment(char); - this.state = 'comment'; - } - }, - - commentStartDash: function(char) { - if (char === "-") { - this.state = 'commentEnd'; - } else if (char === ">") { - return this.emitToken(); - } else { - this.addToComment("-"); - this.state = 'comment'; - } - }, - - comment: function(char) { - if (char === "-") { - this.state = 'commentEndDash'; - } else { - this.addToComment(char); - } - }, - - commentEndDash: function(char) { - if (char === "-") { - this.state = 'commentEnd'; - } else { - this.addToComment("-" + char); - this.state = 'comment'; - } - }, - - commentEnd: function(char) { - if (char === ">") { - return this.emitToken(); - } else { - this.addToComment("--" + char); - this.state = 'comment'; - } - }, - - tagName: function(char) { - if (isSpace(char)) { - this.state = 'beforeAttributeName'; - } else if (char === "/") { - this.state = 'selfClosingStartTag'; - } else if (char === ">") { - return this.emitToken(); - } else { - this.addToTagName(char); - } - }, - - beforeAttributeName: function(char) { - if (isSpace(char)) { - return; - } else if (char === "/") { - this.state = 'selfClosingStartTag'; - } else if (char === ">") { - return this.emitToken(); - } else { - this.createAttribute(char); - } - }, - - attributeName: function(char) { - if (isSpace(char)) { - this.state = 'afterAttributeName'; - } else if (char === "/") { - this.state = 'selfClosingStartTag'; - } else if (char === "=") { - this.state = 'beforeAttributeValue'; - } else if (char === ">") { - return this.emitToken(); - } else { - this.addToAttributeName(char); - } - }, - - afterAttributeName: function(char) { - if (isSpace(char)) { - return; - } else if (char === "/") { - this.state = 'selfClosingStartTag'; - } else if (char === "=") { - this.state = 'beforeAttributeValue'; - } else if (char === ">") { - return this.emitToken(); - } else { - this.finalizeAttributeValue(); - this.createAttribute(char); - } - }, - - beforeAttributeValue: function(char) { - if (isSpace(char)) { - return; - } else if (char === '"') { - this.state = 'attributeValueDoubleQuoted'; - this.markAttributeQuoted(true); - } else if (char === "'") { - this.state = 'attributeValueSingleQuoted'; - this.markAttributeQuoted(true); - } else if (char === ">") { - return this.emitToken(); - } else { - this.state = 'attributeValueUnquoted'; - this.markAttributeQuoted(false); - this.addToAttributeValue(char); - } - }, - - attributeValueDoubleQuoted: function(char) { - if (char === '"') { - this.finalizeAttributeValue(); - this.state = 'afterAttributeValueQuoted'; - } else if (char === "&") { - this.addToAttributeValue(this.consumeCharRef('"') || "&"); - } else { - this.addToAttributeValue(char); - } - }, - - attributeValueSingleQuoted: function(char) { - if (char === "'") { - this.finalizeAttributeValue(); - this.state = 'afterAttributeValueQuoted'; - } else if (char === "&") { - this.addToAttributeValue(this.consumeCharRef("'") || "&"); - } else { - this.addToAttributeValue(char); - } - }, - - attributeValueUnquoted: function(char) { - if (isSpace(char)) { - this.finalizeAttributeValue(); - this.state = 'beforeAttributeName'; - } else if (char === "&") { - this.addToAttributeValue(this.consumeCharRef(">") || "&"); - } else if (char === ">") { - return this.emitToken(); - } else { - this.addToAttributeValue(char); - } - }, - - afterAttributeValueQuoted: function(char) { - if (isSpace(char)) { - this.state = 'beforeAttributeName'; - } else if (char === "/") { - this.state = 'selfClosingStartTag'; - } else if (char === ">") { - return this.emitToken(); - } else { - this["char"]--; - this.state = 'beforeAttributeName'; - } - }, - - selfClosingStartTag: function(char) { - if (char === ">") { - this.selfClosing(); - return this.emitToken(); - } else { - this["char"]--; - this.state = 'beforeAttributeName'; - } - }, - - endTagOpen: function(char) { - if (isAlpha(char)) { - this.createTag(EndTag, char.toLowerCase()); - } - } - } - }; - - __exports__["default"] = Tokenizer; - }); -define("simple-html-tokenizer/tokens", - ["exports"], - function(__exports__) { - "use strict"; - function StartTag(tagName, attributes, selfClosing) { - this.type = 'StartTag'; - this.tagName = tagName || ''; - this.attributes = attributes || []; - this.selfClosing = selfClosing === true; - } - - __exports__.StartTag = StartTag;function EndTag(tagName) { - this.type = 'EndTag'; - this.tagName = tagName || ''; - } - - __exports__.EndTag = EndTag;function Chars(chars) { - this.type = 'Chars'; - this.chars = chars || ""; - } - - __exports__.Chars = Chars;function Comment(chars) { - this.type = 'Comment'; - this.chars = chars || ''; - } - - __exports__.Comment = Comment; - }); -define("simple-html-tokenizer/utils", - ["exports"], - function(__exports__) { - "use strict"; - function isSpace(char) { - return (/[\t\n\f ]/).test(char); - } - - __exports__.isSpace = isSpace;function isAlpha(char) { - return (/[A-Za-z]/).test(char); - } - - __exports__.isAlpha = isAlpha;function preprocessInput(input) { - return input.replace(/\r\n?/g, "\n"); - } - - __exports__.preprocessInput = preprocessInput; - }); -requireModule("ember-template-compiler"); - -})(); -; -if (typeof exports === "object") { - module.exports = Ember.__loader.require("ember-template-compiler"); - } diff --git a/website/source/assets/stylesheets/_buttons.scss b/website/source/assets/stylesheets/_buttons.scss deleted file mode 100755 index e1037e818b..0000000000 --- a/website/source/assets/stylesheets/_buttons.scss +++ /dev/null @@ -1,37 +0,0 @@ -.button { - background: $button-background; - border: 1px solid $button-font-color; - box-shadow: 3px 4px 0 rgba(0,0,0,0.1); - color: $button-font-color; - display: inline-block; - font-family: $button-font-family; - font-size: $button-font-size; - font-weight: $button-font-weight; - letter-spacing: 1px; - margin-bottom: 4px; - padding: 10px 30px; - text-transform: uppercase; - text-decoration: none; - - &:hover, - &:active, - &:focus { - text-decoration: none; - } - - &:hover { - background: $button-font-color; - border: 1px solid $button-font-color; - color: $button-background; - } - - &.primary { - background: $button-primary-background; - border: 1px solid darken($button-primary-background, 5%); - color: $button-primary-font-color; - - &:hover { - background: lighten($button-primary-background, 5%); - } - } -} diff --git a/website/source/assets/stylesheets/_community.scss b/website/source/assets/stylesheets/_community.scss deleted file mode 100644 index 1ff047de69..0000000000 --- a/website/source/assets/stylesheets/_community.scss +++ /dev/null @@ -1,22 +0,0 @@ -#inner { - .people { - margin-top: 30px; - - .person { - &:after { - display: block; - clear: both; - content: ' '; - } - - img { - width: 125px; - margin: auto auto; - } - - .bio { - padding-left: 150px; - } - } - } -} diff --git a/website/source/assets/stylesheets/_demo.scss b/website/source/assets/stylesheets/_demo.scss deleted file mode 100644 index f68280fd33..0000000000 --- a/website/source/assets/stylesheets/_demo.scss +++ /dev/null @@ -1,134 +0,0 @@ -.demo-active { - background: #000; - - #demo-app { - min-height: 100%; - } - - #header, - #sidebar, - #hero, - #container, - #footer, - .sidebar-overlay { - display: none; - } -} - -.demo-overlay { - background: black; - width: 100%; - height: 100%; - min-height: 100%; - line-height: 1.3; - overflow: auto; - color: #DDDDDD; - display: block; - font-size: 15px; - font-family: $font-family-monospace; - @include box-shadow(0px -2px 30px 0px rgba(0, 0, 0, 0.40)); - z-index: 50; -} - -.instruction-wrapper { - background: #000; - width: 100%; - padding: 20px; - position: fixed; - top: 0; - z-index: 100; -} - -.instruction { - overflow: auto; - padding: 10px; - max-width: 800px; - min-width: 400px; - margin: 0 auto; - background-color: darken($vault-blue, 28%); - - code { - background: none; - color: inherit; - font-weight: 700; - padding-left: 10px; - } - - a { - color: white; - text-decoration: underline; - } - - p:last-child { - margin-bottom: 0px; - } - - ul { - padding-left: 15px; - } - - li { - list-style-type: none; - } -} - -.close-terminal{ - display: inline-block; - position: fixed; - top: 0; - right: 0; - width: 60px; - height: 60px; - color: #8B8A8F; - text-align: center; - line-height: 60px; - font-size: 40px; - transition: all 250ms ease-in; - cursor: pointer; - z-index: 100; - - &:hover{ - text-decoration: none; - color: $white; - transition: all 250ms ease-in; - } -} - - -.demo-terminal { - background-color: black; - padding: 25px 65px 0 25px; - padding-top: 250px; - padding-bottom: 50px; - min-height: 100%; - width: 100%; - display: block; - overflow: auto; - position: relative; - z-index: 90; - - &.fullscreen { - min-height: 300px; - padding-top: 20px; - z-index: 6; - } - - .log { - white-space: pre; - } - - input.shell { - padding: 0; - margin: 0; - display: inline-block; - bottom: 0; - width: 90%; - background-color: black; - border: 0; - outline: 0; - - &.hidden { - opacity: 0; - } - } -} diff --git a/website/source/assets/stylesheets/_docs.scss b/website/source/assets/stylesheets/_docs.scss deleted file mode 100755 index 475aa46d89..0000000000 --- a/website/source/assets/stylesheets/_docs.scss +++ /dev/null @@ -1,91 +0,0 @@ -#docs-sidebar { - margin-bottom: 30px; - margin-top: 50px; - overflow: hidden; - - h1, - h2, - h3, - h4, - h5, - h6 { - margin-top: 30px; - } - - ul.nav.docs-sidenav { - display: block; - padding-bottom: 15px; - - li { - a { - color: $sidebar-link-color; - font-size: $sidebar-font-size; - padding: 10px 0 10px 15px; - - &:before { - color: $sidebar-link-color-active; - content: '\203A'; - font-size: $font-size; - left: 0; - line-height: 100%; - opacity: 0.4; - position: absolute; - - height: 100%; - width: 8px - } - - &:focus, - &:hover { - background-color: transparent; - color: $sidebar-link-color-hover; - - &:before { - opacity: 1; - } - } - - &.back { - &:before { - content: '\2039'; - } - } - } - - // For forcing sub-navs to appear - in the long term, this should not - // be a thing anymore... - > ul.nav-visible { - display: block; - } - } - - li.active { - > a { - color: $sidebar-link-color-active; - - &:before { - opacity: 1; - } - } - - // Open nested navigations - > ul.nav { - display: block; - } - } - - // subnav - ul.nav { - display: none; - margin: 10px; - - li { - margin-left: 10px; - - a { - padding: 6px 15px; - } - } - } - } -} diff --git a/website/source/assets/stylesheets/_downloads.scss b/website/source/assets/stylesheets/_downloads.scss deleted file mode 100644 index 97a4dfc66b..0000000000 --- a/website/source/assets/stylesheets/_downloads.scss +++ /dev/null @@ -1,60 +0,0 @@ -body.layout-downloads { - #inner { - .downloads { - margin-top: 20px; - - .description { - margin-bottom: 20px; - } - - .download { - align-items: center; - border-bottom: 1px solid #b2b2b2; - display: flex; - padding: 15px; - - .details { - padding-left: 20px; - - h2 { - margin-top: 4px; - border: none; - } - - ul { - padding-left: 0px; - margin: -8px 0 0 0; - } - - li { - display: inline-block; - - &:after { - content: " | "; - } - - &:last-child:after { - content: ""; - } - } - } - - .icon { - svg { - width: 75px; - } - } - - .os-name { - font-size: 40px; - margin-bottom: -3px; - } - } - - .poweredby { - margin-top: 20px; - text-align: center; - } - } - } -} diff --git a/website/source/assets/stylesheets/_footer.scss b/website/source/assets/stylesheets/_footer.scss deleted file mode 100644 index ae34a057a4..0000000000 --- a/website/source/assets/stylesheets/_footer.scss +++ /dev/null @@ -1,24 +0,0 @@ -#footer { - padding-top: 50px; - - ul.footer-links { - li { - a { - color: $footer-link-color; - font-size: $footer-font-size; - font-family: $font-family-open-sans; - text-decoration: none; - - &:hover, &:focus, &:active { - background-color: transparent; - color: $footer-link-color-hover; - outline: 0; - } - - @media (max-width: 992px) { - text-align: center; - } - } - } - } -} diff --git a/website/source/assets/stylesheets/_global.scss b/website/source/assets/stylesheets/_global.scss deleted file mode 100755 index 4e1778fd3a..0000000000 --- a/website/source/assets/stylesheets/_global.scss +++ /dev/null @@ -1,30 +0,0 @@ -html { - height: 100%; - min-height: 100%; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; -} - -body { - -webkit-font-smoothing: antialiased; - color: $body-font-color; - background-color: $white; - font-size: $font-size; - font-family: $font-family-open-sans; - font-weight: $font-weight-reg; - height: 100%; - min-height: 100%; -} - -h1, h2, h3, h4, h5 { - font-family: $font-family-klavika; - -webkit-font-smoothing: antialiased; - - code, tt { - font-size: inherit !important; - } -} - -h1 { - margin-bottom: 24px; -} diff --git a/website/source/assets/stylesheets/_header.scss b/website/source/assets/stylesheets/_header.scss deleted file mode 100755 index dde70d7d66..0000000000 --- a/website/source/assets/stylesheets/_header.scss +++ /dev/null @@ -1,78 +0,0 @@ -#header { - background: $header-background-color; - - .navbar-toggle { - height: $header-height; - margin: 0; - padding-right: 15px; - border-radius: 0; - - .icon-bar { - border: 1px solid $white; - border-radius: 0; - } - } - - .navbar-brand { - display: block; - margin: 0; - padding: 0; - - a { - display: flex; - align-items: center; - height: $header-height; - line-height: $header-height; - - svg.logo { - transition: opacity 0.15s ease-in-out; - @extend svg.logo.white; - - &:hover, &:focus, &:active { - opacity: 0.6; - outline: 0; - text-decoration: none; - } - } - } - } - - ul.nav { - li { - a { - color: $header-link-color; - font-size: $header-font-size; - font-family: $font-family-open-sans; - font-weight: $font-weight-bold; - height: $header-height; - line-height: $header-height; - padding: 0 10px; - margin: 0; - text-decoration: none; - - &:hover, &:focus, &:active { - background-color: transparent; - color: $header-link-color-hover; - outline: 0; - - svg { - fill: $header-link-color-hover; - } - } - - svg { - fill: $header-link-color; - position: relative; - top: 2px; - width: 14px; - height: 14px; - margin-right: 3px; - } - } - } - } - - .buttons { - margin-top: 2px; - } -} diff --git a/website/source/assets/stylesheets/_home.scss b/website/source/assets/stylesheets/_home.scss deleted file mode 100755 index 823719fdbe..0000000000 --- a/website/source/assets/stylesheets/_home.scss +++ /dev/null @@ -1,165 +0,0 @@ -#page-home { - // Override the main header - #header { - background: $home-header-background-color; - - .navbar-toggle { - .icon-bar { - border: 1px solid $home-header-link-color; - } - } - - .navbar-brand { - a { - svg.logo { - @extend svg.logo.color; - } - } - } - - ul.nav { - li { - a { - color: $home-header-link-color; - - &:hover, &:focus, &:active { - background-color: transparent; - color: $home-header-link-color-hover; - - svg { - fill: $home-header-link-color-hover; - } - } - - svg { - fill: $home-header-link-color; - } - } - } - } - } - - .button { - &.terminal { - padding-left: 52px; - padding-right: 30px; - margin-left: 12px; - background-image: image-url('icon-terminal.png'); - background-position: 16px center; - background-repeat: no-repeat; - @include img-retina("icon-terminal.png", "icon-terminal@2x.png", 26px, 25px); - } - - &.started { - margin-bottom: 12px; - } - } - - #container { - margin-top: 140px; - position: relative; - text-align: center; - z-index: 1; - - #tag-line { - display: block; - font-size: 24px; - font-weight: 300; - margin: 15px 0 40px 0; - } - - #diagram { - background-image: image-url("hero@2x.png"); - background-origin: content-box; - background-position: center center; - background-repeat: no-repeat; - background-size: contain; - display: block; - margin: 60px 0; - padding: 15px; - - height: 193px; - width: 100%; - } - - h2.features-header { - color: $vault-blue; - display: inline-block; - font-size: 44px; - font-weight: 600; - letter-spacing: 2px; - margin: 120px auto 40px auto; - text-transform: uppercase; - } - - h3.feature-header { - color: $black; - font-size: 36px; - font-weight: 300; - margin: 30px 0; - text-transform: none; - } - - p { - font-size: 18px; - font-weight: 300; - line-height: 36px; - margin: 25px 0; - padding: 15px; - text-align: left; - } - - .feature { - margin-bottom: 150px; - - .graphic { - background-origin: content-box; - background-position: center center; - background-repeat: no-repeat; - background-size: contain; - display: block; - margin: 60px 0; - padding: 15px; - - height: 160px; - width: 100%; - } - - &#crud { - .graphic { - background-image: image-url("graphic-crud@2x.png"); - } - } - - &#key { - .graphic { - background-image: image-url("graphic-key@2x.png"); - } - } - - &#audit { - .graphic { - background-image: image-url("graphic-audit@2x.png"); - } - } - } - - #cta { - @include img-retina("bg-icons.png", "bg-icons@2x.png", 669px, 260px); - background: image-url("bg-icons.png") center center no-repeat; - background-position: center center; - border-top: 1px solid $gray-darker; - border-bottom: 1px solid $gray-darker; - padding: 140px 0; - - p { - margin-top: 10px; - color: $black; - font-size: 14px; - font-weight: 600; - line-height: 1.5esm; - text-align: center; - } - } - } -} diff --git a/website/source/assets/stylesheets/_inner.scss b/website/source/assets/stylesheets/_inner.scss deleted file mode 100644 index 750d42e532..0000000000 --- a/website/source/assets/stylesheets/_inner.scss +++ /dev/null @@ -1,94 +0,0 @@ -#inner { - p, li, .alert { - font-size: $font-size; - font-family: $font-family-open-sans; - font-weight: $font-weight-reg; - line-height: 1.84em; - margin: 0 0 $font-size; - -webkit-font-smoothing: antialiased; - } - - .alert p:last-child { - margin-bottom: 0; - } - - pre, - code, - pre code, - tt { - font-family: $font-family-monospace; - font-size: $font-size - 2; - line-height: 1.6; - } - - pre { - padding: 20px; - margin: 0 0 $font-size; - - // This will force the code to scroll horizontally on small screens - // instead of wrapping. - code { - overflow-wrap: normal; - white-space: pre; - } - } - - a { - color: $body-link-color; - text-decoration: none; - - &:hover { - text-decoration: underline; - } - - code { - background: inherit; - color: $body-link-color; - } - } - - img { - display: block; - margin: 25px auto; - max-width: 650px; - height: auto; - width: 90%; - } - - h1, - h2, - h3, - h4 { - color: $body-font-color; - margin-top: 54px; - margin-bottom: $font-size; - line-height: 1.3; - } - - h2 { - padding-bottom: 3px; - border-bottom: 1px solid $gray-light; - } - - h1 > code, - h2 > code, - h3 > code, - h4 > code, - h5 > code - h6 > code, - li code, - table code, - p code, - tt, - .alert code { - font-family: $font-family-monospace; - background-color: transparent; - color: inherit; - padding: 0; - } - - table { - @extend .table; - @extend .table-striped; - } -} diff --git a/website/source/assets/stylesheets/_latest.scss b/website/source/assets/stylesheets/_latest.scss deleted file mode 100644 index 47eded4f45..0000000000 --- a/website/source/assets/stylesheets/_latest.scss +++ /dev/null @@ -1,41 +0,0 @@ -#page-home { - #latest-announcement { - margin-top: 80px; - - h2 { - margin-bottom: 40px; - } - - .latest-item { - border-bottom: 1px solid #CCCCCC; - margin: 20px 0; - padding: 20px 0; - - &:last-child { - border-bottom: none; - } - - img { - margin-bottom: 20px; - max-width: 100%; - } - - h3 { - padding: 0 0 0 15px; - margin: 0; - text-align: left; - } - - p { - font-size: $font-size; - line-height: 1.8; - margin: 0; - } - - .latest-footer { - padding: 15px 0; - text-align: center; - } - } - } -} diff --git a/website/source/assets/stylesheets/_logos.scss b/website/source/assets/stylesheets/_logos.scss deleted file mode 100644 index 3ee70170dc..0000000000 --- a/website/source/assets/stylesheets/_logos.scss +++ /dev/null @@ -1,43 +0,0 @@ -svg.logo { - &.color { - opacity: 1.0; - - path.text { - fill: $black; - opacity: 1.0; - } - - path.v { - fill: $black; - opacity: 1.0; - } - - path.squares { - fill: $white; - opacity: 1.0; - } - } - - // The default logo class is the colored version - @extend .color; - - &.white { - opacity: 1.0; - - path.text { - fill: $white; - } - - path.v { - fill: $white; - } - - path.squares { - fill: $vault-gray; - } - - path.front { - opacity: 0.7; - } - } -} diff --git a/website/source/assets/stylesheets/_syntax.scss.erb b/website/source/assets/stylesheets/_syntax.scss.erb deleted file mode 100644 index b7ddc9e5b8..0000000000 --- a/website/source/assets/stylesheets/_syntax.scss.erb +++ /dev/null @@ -1,14 +0,0 @@ -pre.highlight code { - color: #333333; -} - -<%= Rouge::Themes::Github.render(scope: ".highlight") %> - -pre.highlight { - border: 1px solid #CCCCCC; -} - -pre.highlight code span.c1 { - font-style: normal; - opacity: 0.8; -} diff --git a/website/source/assets/stylesheets/_variables.scss b/website/source/assets/stylesheets/_variables.scss deleted file mode 100755 index f137379448..0000000000 --- a/website/source/assets/stylesheets/_variables.scss +++ /dev/null @@ -1,63 +0,0 @@ -// Colors -$white: #FFFFFF; -$black: #000000; -$gray-darker: #555555; - -$consul-pink: #D62783; -$consul-pink-dark: #961D59; -$packer-blue: #1DAEFF; -$packer-blue-dark: #1D94DD; -$terraform-purple: #5C4EE5; -$terraform-purple-dark: #4040B2; -$vagrant-blue: #1563FF; -$vagrant-blue-dark: #104EB2; -$vault-black: #000000; -$vault-blue: #00ABE0; -$vault-gray: #919FA8; - -// Typography -$font-family-klavika: 'klavika-web', Helvetica, sans-serif; -$font-family-open-sans: 'Open Sans', sans-serif; -$font-family-monospace: 'Fira Mono', monospace; -$font-size: 15px; -$font-weight-reg: 400; -$font-weight-bold: 600; - -// Body -$body-font-color: $gray-darker; -$body-link-color: $vault-blue; - -// Home -$home-header-background-color: transparent; -$home-header-link-color: $gray-darker; -$home-header-link-color-hover: $black; - -// Sidebar -$sidebar-background-color: $white; -$sidebar-font-size: $font-size - 2; -$sidebar-link-color: $body-font-color; -$sidebar-link-color-hover: $black; -$sidebar-link-color-active: $body-link-color; -$sidebar-font-family: $font-family-open-sans; -$sidebar-font-weight: $font-weight-reg; - -// Header -$header-background-color: $vault-gray; -$header-font-size: $font-size - 2; -$header-height: 92px; -$header-link-color: rgba($white, 0.85); -$header-link-color-hover: $white; - -// Footer -$footer-font-size: $font-size - 2; -$footer-link-color: $body-font-color; -$footer-link-color-hover: $black; - -// Button -$button-background: $white; -$button-font-color: #7b8A8E; -$button-font-family: $font-family-klavika; -$button-font-size: $font-size; -$button-font-weight: $font-weight-bold; -$button-primary-background: $vault-gray; -$button-primary-font-color: $white; diff --git a/website/source/assets/stylesheets/application.scss b/website/source/assets/stylesheets/application.scss deleted file mode 100755 index 3af5a28777..0000000000 --- a/website/source/assets/stylesheets/application.scss +++ /dev/null @@ -1,55 +0,0 @@ -@import 'bootstrap-sprockets'; -@import 'bootstrap'; - -@import url('https://fonts.googleapis.com/css?family=Fira+Mono|Open+Sans:400,600'); - -// Mega Nav -@import 'hashicorp/mega-nav'; - -// Anchor links -@import 'hashicorp/anchor-links'; - -// Core variables and mixins -@import '_variables'; - -// Sidebar -@import 'hashicorp/sidebar'; - -//Global Site -@import '_global'; - -// Components -@import '_header'; -@import '_footer'; -@import '_inner'; -@import '_buttons'; -@import '_syntax'; -@import '_logos'; - -// Pages -@import '_community'; -@import '_docs'; -@import '_downloads'; -@import '_home'; -@import '_latest'; - -// Demo -@import '_demo'; - - -// Docs - visual separation for parameter names and flags -span.param { - font-weight: 800; -} -span.param:after { - content: ":"; -} -span.param-flags { - font-style: italic; -} -span.param-flags:before { - content: "("; -} -span.param-flags:after { - content: ")"; -} diff --git a/website/source/community.html.erb b/website/source/community.html.erb index 05f6d0de4a..1d9e860255 100644 --- a/website/source/community.html.erb +++ b/website/source/community.html.erb @@ -1,35 +1,31 @@ --- layout: "inner" page_title: "Community" -description: |- - Vault is an open source project with a growing community. +description: "Vault is an open source project with a growing community." --- -

    Community

    + -

    - Vault is an open source project with a growing community. There are active, - dedicated users willing to help you through various mediums. -

    -

    - IRC: #vault-tool on Freenode -

    -

    - Announcement list: - HashiCorp Announcement Google Group -

    -

    - Discussion list: - Vault Google Group -

    -

    - Bug Tracker: - Issue tracker - on GitHub. Please only use this for reporting bugs. Do not ask - for general help here. Use IRC or the mailing list for that. -

    -

    - Training: - Paid HashiCorp training courses - are also available in a city near you. Private training courses are also available. -

    + diff --git a/website/source/docs/agent/autoauth/index.html.md b/website/source/docs/agent/autoauth/index.html.md index 755e0df39b..d180019b73 100644 --- a/website/source/docs/agent/autoauth/index.html.md +++ b/website/source/docs/agent/autoauth/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Agent Auto-Auth" +sidebar_title: "Auto-Auth" sidebar_current: "docs-agent-autoauth" description: |- Vault Agent's Auto-Auth functionality allows easy and automatic diff --git a/website/source/docs/agent/autoauth/methods/alicloud.html.md b/website/source/docs/agent/autoauth/methods/alicloud.html.md index 56b94587d1..932fbe85a8 100644 --- a/website/source/docs/agent/autoauth/methods/alicloud.html.md +++ b/website/source/docs/agent/autoauth/methods/alicloud.html.md @@ -1,12 +1,13 @@ --- layout: "docs" page_title: "Vault Agent Auto-Auth AliCloud Method" +sidebar_title: "AliCloud" sidebar_current: "docs-agent-autoauth-methods-alicloud" description: |- AliCloud Method for Vault Agent Auto-Auth --- -# Vault Agent Auto-Auth AliCloud Method +# Vault Agent Auto-Auth AliCloud Method The `alicloud` method performs authentication against the [AliCloud Auth method](https://www.vaultproject.io/docs/auth/alicloud.html). @@ -20,8 +21,8 @@ The Vault agent will use the first credential it can successfully obtain in the 3. Instance metadata (recommended) Wherever possible, we recommend using instance metadata for credentials. These rotate every hour -and require no effort on your part to provision, making instance metadata the most secure of the three methods. If -using instance metadata _and_ a custom `credential_poll_interval`, be sure the frequency is set for +and require no effort on your part to provision, making instance metadata the most secure of the three methods. If +using instance metadata _and_ a custom `credential_poll_interval`, be sure the frequency is set for less than an hour, because instance metadata credentials expire every hour. Environment variables are given first precedence to provide the ability to quickly override your @@ -59,4 +60,4 @@ If instance metadata is not available, you may provide credential information th - `session_expiration` `(string: optional)` - The session expiration to use. -- `role_name` `(string: optional)` - The role name to use. \ No newline at end of file +- `role_name` `(string: optional)` - The role name to use. diff --git a/website/source/docs/agent/autoauth/methods/aws.html.md b/website/source/docs/agent/autoauth/methods/aws.html.md index 08c5e93cb7..2ab7039487 100644 --- a/website/source/docs/agent/autoauth/methods/aws.html.md +++ b/website/source/docs/agent/autoauth/methods/aws.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Agent Auto-Auth AWS Method" +sidebar_title: "AWS" sidebar_current: "docs-agent-autoauth-methods-aws" description: |- AWS Method for Vault Agent Auto-Auth diff --git a/website/source/docs/agent/autoauth/methods/azure.html.md b/website/source/docs/agent/autoauth/methods/azure.html.md index 5aca4bb359..fd3ea434ba 100644 --- a/website/source/docs/agent/autoauth/methods/azure.html.md +++ b/website/source/docs/agent/autoauth/methods/azure.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Agent Auto-Auth Azure Method" +sidebar_title: "Azure" sidebar_current: "docs-agent-autoauth-methods-azure" description: |- Azure Method for Vault Agent Auto-Auth diff --git a/website/source/docs/agent/autoauth/methods/gcp.html.md b/website/source/docs/agent/autoauth/methods/gcp.html.md index 5b8bc98721..1511f0b769 100644 --- a/website/source/docs/agent/autoauth/methods/gcp.html.md +++ b/website/source/docs/agent/autoauth/methods/gcp.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Agent Auto-Auth GCP Method" +sidebar_title: "GCP" sidebar_current: "docs-agent-autoauth-methods-gcp" description: |- GCP Method for Vault Agent Auto-Auth diff --git a/website/source/docs/agent/autoauth/methods/index.html.md b/website/source/docs/agent/autoauth/methods/index.html.md index 88b6d0ab3f..140ce020a9 100644 --- a/website/source/docs/agent/autoauth/methods/index.html.md +++ b/website/source/docs/agent/autoauth/methods/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Agent Auto-Auth Methods" +sidebar_title: "Methods" sidebar_current: "docs-agent-autoauth-methods" description: |- Methods for Vault Agent Auto-Auth diff --git a/website/source/docs/agent/autoauth/methods/jwt.html.md b/website/source/docs/agent/autoauth/methods/jwt.html.md index 2d7a18a94e..4400996636 100644 --- a/website/source/docs/agent/autoauth/methods/jwt.html.md +++ b/website/source/docs/agent/autoauth/methods/jwt.html.md @@ -1,12 +1,13 @@ --- layout: "docs" page_title: "Vault Agent Auto-Auth JWT Method" +sidebar_title: "JWT" sidebar_current: "docs-agent-autoauth-methods-jwt" description: |- JWT Method for Vault Agent Auto-Auth --- -# Vault Agent Auto-Auth JWT Method +# Vault Agent Auto-Auth JWT Method The `jwt` method reads in a JWT from a file and sends it to the [JWT Auth method](https://www.vaultproject.io/docs/auth/jwt.html). Since JWTs often have @@ -16,6 +17,6 @@ JWT to perform a reauthentication. ## Configuration -- `path` `(string: required)` - The path to the JWT file +* `path` `(string: required)` - The path to the JWT file -- `role` `(string: required)` - The role to authenticate against on Vault +* `role` `(string: required)` - The role to authenticate against on Vault diff --git a/website/source/docs/agent/autoauth/methods/kubernetes.html.md b/website/source/docs/agent/autoauth/methods/kubernetes.html.md index 1a21ee8839..560fbaa1e3 100644 --- a/website/source/docs/agent/autoauth/methods/kubernetes.html.md +++ b/website/source/docs/agent/autoauth/methods/kubernetes.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Agent Auto-Auth Kubernetes Method" +sidebar_title: "Kubernetes" sidebar_current: "docs-agent-autoauth-methods-kubernetes" description: |- Kubernetes Method for Vault Agent Auto-Auth diff --git a/website/source/docs/agent/autoauth/sinks/file.html.md b/website/source/docs/agent/autoauth/sinks/file.html.md index 605b97089e..97d34de9f8 100644 --- a/website/source/docs/agent/autoauth/sinks/file.html.md +++ b/website/source/docs/agent/autoauth/sinks/file.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Agent Auto-Auth File Sink" +sidebar_title: "File" sidebar_current: "docs-agent-autoauth-sinks-file" description: |- File sink for Vault Agent Auto-Auth diff --git a/website/source/docs/agent/autoauth/sinks/index.html.md b/website/source/docs/agent/autoauth/sinks/index.html.md index ce52365fd2..f0058fbcb0 100644 --- a/website/source/docs/agent/autoauth/sinks/index.html.md +++ b/website/source/docs/agent/autoauth/sinks/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Agent Auto-Auth Sinks" +sidebar_title: "Sinks" sidebar_current: "docs-agent-autoauth-sinks" description: |- Sinks for Vault Agent Auto-Auth diff --git a/website/source/docs/agent/index.html.md b/website/source/docs/agent/index.html.md index 87a296647f..760a58e471 100644 --- a/website/source/docs/agent/index.html.md +++ b/website/source/docs/agent/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Agent" +sidebar_title: "Vault Agent" sidebar_current: "docs-agent" description: |- Vault Agent is a client-side daemon that can be used to perform some Vault diff --git a/website/source/docs/audit/file.html.md b/website/source/docs/audit/file.html.md index 6bc7ffdb39..2be39492fb 100644 --- a/website/source/docs/audit/file.html.md +++ b/website/source/docs/audit/file.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "File - Audit Devices" +sidebar_title: "File" sidebar_current: "docs-audit-file" description: |- The "file" audit device writes audit logs to a file. diff --git a/website/source/docs/audit/index.html.md b/website/source/docs/audit/index.html.md index efa84709c4..26878af107 100644 --- a/website/source/docs/audit/index.html.md +++ b/website/source/docs/audit/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Audit Devices" +sidebar_title: "Audit Devices" sidebar_current: "docs-audit" description: |- Audit devices are mountable devices that log requests and responses in Vault. diff --git a/website/source/docs/audit/socket.html.md b/website/source/docs/audit/socket.html.md index 38782f0ae7..c34a907c2c 100644 --- a/website/source/docs/audit/socket.html.md +++ b/website/source/docs/audit/socket.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Socket - Audit Devices" +sidebar_title: "Socket" sidebar_current: "docs-audit-socket" description: |- The "socket" audit device writes audit writes to a TCP or UDP socket. diff --git a/website/source/docs/audit/syslog.html.md b/website/source/docs/audit/syslog.html.md index 6ffe1f86b6..10dd5a08c9 100644 --- a/website/source/docs/audit/syslog.html.md +++ b/website/source/docs/audit/syslog.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Syslog - Audit Devices" +sidebar_title: "Syslog" sidebar_current: "docs-audit-syslog" description: |- The "syslog" audit device writes audit logs to syslog. diff --git a/website/source/docs/auth/alicloud.html.md b/website/source/docs/auth/alicloud.html.md index 2d64a508c9..95e10a29c6 100644 --- a/website/source/docs/auth/alicloud.html.md +++ b/website/source/docs/auth/alicloud.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "AliCloud - Auth Methods" +sidebar_title: "AliCloud" sidebar_current: "docs-auth-alicloud" description: |- The AliCloud auth method allows automated authentication of AliCloud entities. diff --git a/website/source/docs/auth/app-id.html.md b/website/source/docs/auth/app-id.html.md index 001c8a5e29..dc6729a16f 100644 --- a/website/source/docs/auth/app-id.html.md +++ b/website/source/docs/auth/app-id.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "AppID - Auth Methods" +sidebar_title: "App ID DEPRECATED" sidebar_current: "docs-auth-appid" description: |- The AppID auth method is a mechanism for machines to authenticate with Vault. @@ -21,7 +22,7 @@ app ID, and a unique user ID. The goal of this auth method is to allow elastic users (dynamic machines, containers, etc.) to authenticate with Vault without having to store passwords outside of Vault. It is a single method of solving the -chicken-and-egg problem of setting up Vault access on a machine. With this +chicken-and-egg problem of setting up Vault access on a machine. With this provider, nobody except the machine itself has access to both pieces of information necessary to authenticate. For example: configuration management will have the app IDs, but the machine itself will detect its user ID based on @@ -30,37 +31,36 @@ salt). An example, real world process for using this provider: -1. Create unique app IDs (UUIDs work well) and map them to policies. (Path: - map/app-id/) +1. Create unique app IDs (UUIDs work well) and map them to policies. (Path: + `map/app-id/`) -2. Store the app IDs within configuration management systems. +2. Store the app IDs within configuration management systems. -3. An out-of-band process run by security operators map unique user IDs to - these app IDs. Example: when an instance is launched, a cloud-init system - tells security operators a unique ID for this machine. This process can be - scripted, but the key is that it is out-of-band and out of reach of - configuration management. (Path: map/user-id/) +3. An out-of-band process run by security operators map unique user IDs to + these app IDs. Example: when an instance is launched, a cloud-init system + tells security operators a unique ID for this machine. This process can be + scripted, but the key is that it is out-of-band and out of reach of + configuration management. (Path: `map/user-id/`) -4. A new server is provisioned. Configuration management configures the app - ID, the server itself detects its user ID. With both of these pieces of - information, Vault can be accessed according to the policy set by the app - ID. +4. A new server is provisioned. Configuration management configures the app + ID, the server itself detects its user ID. With both of these pieces of + information, Vault can be accessed according to the policy set by the app + ID. More details on this process follow: -- The app ID is a unique ID that maps to a set of policies. This ID is generated +* The app ID is a unique ID that maps to a set of policies. This ID is generated by an operator and configured into the method. The ID itself is usually a UUID-formatted random value, but any hard-to-guess unique value can be used. -- After creating app IDs, an operator authorizes a fixed set of user IDs with +* After creating app IDs, an operator authorizes a fixed set of user IDs with each app ID. When a valid {app ID, user ID} tuple is given to the "login" path, then the user is authenticated with the configured app ID policies. -- The user ID can be any value (just like the app ID), however it is generally a +* The user ID can be any value (just like the app ID), however it is generally a value unique to a machine, such as a MAC address or instance ID, or a value hashed from these unique values. - ## Authentication Via the CLI: @@ -84,13 +84,13 @@ Auth methods must be configured in advance before users or machines can authenticate. These steps are usually completed by an operator or configuration management tool. -1. Enable the AppID auth method: +1. Enable the AppID auth method: ```text $ vault auth enable app-id ``` -1. Configure it with the set of AppIDs, user IDs, and the mapping between them: +1. Configure it with the set of AppIDs, user IDs, and the mapping between them: ```text $ vault write auth/app-id/map/app-id/foo value=admins display_name=foo diff --git a/website/source/docs/auth/approle.html.md b/website/source/docs/auth/approle.html.md index 4d7aafbebd..ca0c00a9e0 100644 --- a/website/source/docs/auth/approle.html.md +++ b/website/source/docs/auth/approle.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "AppRole - Auth Methods" +sidebar_title: "AppRole" sidebar_current: "docs-auth-approle" description: |- The AppRole auth method allows machines and services to authenticate with diff --git a/website/source/docs/auth/aws.html.md b/website/source/docs/auth/aws.html.md index 273ab62dd1..ced5ccf764 100644 --- a/website/source/docs/auth/aws.html.md +++ b/website/source/docs/auth/aws.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "AWS - Auth Methods" +sidebar_title: "AWS" sidebar_current: "docs-auth-aws" description: |- The aws auth method allows automated authentication of AWS entities. @@ -38,7 +39,7 @@ Vault EC2 auth method leverages the components of this metadata to authenticate and distribute an initial Vault token to an EC2 instance. The data flow (which is also represented in the graphic below) is as follows: -[![Vault AWS EC2 Authentication Flow](/assets/images/vault-aws-ec2-auth-flow.png)](/assets/images/vault-aws-ec2-auth-flow.png) +[![Vault AWS EC2 Authentication Flow](/img/vault-aws-ec2-auth-flow.png)](/img/vault-aws-ec2-auth-flow.png) 1. An AWS EC2 instance fetches its [AWS Instance Identity Document][aws-iid] from the [EC2 Metadata Service][aws-ec2-mds]. In addition to data itself, AWS diff --git a/website/source/docs/auth/azure.html.md b/website/source/docs/auth/azure.html.md index a1369c47a1..02cb43f183 100644 --- a/website/source/docs/auth/azure.html.md +++ b/website/source/docs/auth/azure.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Azure - Auth Methods" +sidebar_title: "Azure" sidebar_current: "docs-auth-azure" description: |- The azure auth method plugin allows automated authentication of Azure Active diff --git a/website/source/docs/auth/cert.html.md b/website/source/docs/auth/cert.html.md index 4b6d4c9ef4..171095e01a 100644 --- a/website/source/docs/auth/cert.html.md +++ b/website/source/docs/auth/cert.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "TLS Certificates - Auth Methods" +sidebar_title: "TLS Certificates" sidebar_current: "docs-auth-cert" description: |- The "cert" auth method allows users to authenticate with Vault using TLS client certificates. diff --git a/website/source/docs/auth/gcp.html.md b/website/source/docs/auth/gcp.html.md index 55b8a1a253..b6b95edd05 100644 --- a/website/source/docs/auth/gcp.html.md +++ b/website/source/docs/auth/gcp.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Google Cloud - Auth Methods" +sidebar_title: "Google Cloud" sidebar_current: "docs-auth-gcp" description: |- The "gcp" auth method allows users and machines to authenticate to Vault using @@ -172,7 +173,7 @@ required knowledge for using the auth method. IAM login applies only to roles of type `iam`. The Vault authentication workflow for IAM service accounts looks like this: -[![Vault Google Cloud IAM Login Workflow](/assets/images/vault-gcp-iam-auth-workflow.svg)](/assets/images/vault-gcp-iam-auth-workflow.svg) +[![Vault Google Cloud IAM Login Workflow](/img/vault-gcp-iam-auth-workflow.svg)](/img/vault-gcp-iam-auth-workflow.svg) 1. The client generates a signed JWT using the IAM [`projects.serviceAccounts.signJwt`][signjwt-method] method. For examples of @@ -194,7 +195,7 @@ GCE login only applies to roles of type `gce` and **must be completed on an instance running in GCE**. These steps will not work from your local laptop or another cloud provider. -[![Vault Google Cloud GCE Login Workflow](/assets/images/vault-gcp-gce-auth-workflow.svg)](/assets/images/vault-gcp-gce-auth-workflow.svg) +[![Vault Google Cloud GCE Login Workflow](/img/vault-gcp-gce-auth-workflow.svg)](/img/vault-gcp-gce-auth-workflow.svg) 1. The client obtains an [instance identity metadata token][instance-identity] on a GCE instance. diff --git a/website/source/docs/auth/github.html.md b/website/source/docs/auth/github.html.md index 807ffb1bf3..ef0e649777 100644 --- a/website/source/docs/auth/github.html.md +++ b/website/source/docs/auth/github.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "GitHub - Auth Methods" +sidebar_title: "GitHub" sidebar_current: "docs-auth-github" description: |- The GitHub auth method allows authentication with Vault using GitHub. diff --git a/website/source/docs/auth/index.html.md b/website/source/docs/auth/index.html.md index 0f3d0fb227..3964901f1c 100644 --- a/website/source/docs/auth/index.html.md +++ b/website/source/docs/auth/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Auth Methods" +sidebar_title: "Auth Methods" sidebar_current: "docs-auth" description: |- Auth methods are mountable methods that perform authentication for Vault. diff --git a/website/source/docs/auth/jwt.html.md b/website/source/docs/auth/jwt.html.md index 226ee9529f..b96d8771c9 100644 --- a/website/source/docs/auth/jwt.html.md +++ b/website/source/docs/auth/jwt.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "JWT - Auth Methods" +sidebar_title: "JWT" sidebar_current: "docs-auth-jwt" description: |- The JWT auth method allows authentication using JWTs, with support for OIDC Discovery for key fetching diff --git a/website/source/docs/auth/kubernetes.html.md b/website/source/docs/auth/kubernetes.html.md index 7ddb1b6421..32df07f2d9 100644 --- a/website/source/docs/auth/kubernetes.html.md +++ b/website/source/docs/auth/kubernetes.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Kubernetes - Auth Methods" +sidebar_title: "Kubernetes" sidebar_current: "docs-auth-kubernetes" description: |- The Kubernetes auth method allows automated authentication of Kubernetes diff --git a/website/source/docs/auth/ldap.html.md b/website/source/docs/auth/ldap.html.md index 26b08e636f..6fd4128554 100644 --- a/website/source/docs/auth/ldap.html.md +++ b/website/source/docs/auth/ldap.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "LDAP - Auth Methods" +sidebar_title: "LDAP" sidebar_current: "docs-auth-ldap" description: |- The "ldap" auth method allows users to authenticate with Vault using LDAP diff --git a/website/source/docs/auth/mfa.html.md b/website/source/docs/auth/mfa.html.md index 9367bf2963..7333b1ad30 100644 --- a/website/source/docs/auth/mfa.html.md +++ b/website/source/docs/auth/mfa.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Multi-Factor Authentication (MFA) - Auth Methods" +sidebar_title: "MFA LEGACY / UNSUPPORTED" sidebar_current: "docs-auth-mfa" description: |- Multi-factor authentication (MFA) is supported for several authentication diff --git a/website/source/docs/auth/okta.html.md b/website/source/docs/auth/okta.html.md index b3b0e10f74..5e845e133e 100644 --- a/website/source/docs/auth/okta.html.md +++ b/website/source/docs/auth/okta.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Okta - Auth Methods" +sidebar_title: "Okta" sidebar_current: "docs-auth-okta" description: |- The Okta auth method allows users to authenticate with Vault using Okta diff --git a/website/source/docs/auth/radius.html.md b/website/source/docs/auth/radius.html.md index 6ffe87aa63..d48b2776cb 100644 --- a/website/source/docs/auth/radius.html.md +++ b/website/source/docs/auth/radius.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "RADIUS - Auth Methods" +sidebar_title: "RADIUS" sidebar_current: "docs-auth-radius" description: |- The "radius" auth method allows users to authenticate with Vault using an diff --git a/website/source/docs/auth/token.html.md b/website/source/docs/auth/token.html.md index 96b8d223c4..6415e08a0e 100644 --- a/website/source/docs/auth/token.html.md +++ b/website/source/docs/auth/token.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Token - Auth Methods" +sidebar_title: "Tokens" sidebar_current: "docs-auth-token" description: |- The token store auth method is used to authenticate using tokens. diff --git a/website/source/docs/auth/userpass.html.md b/website/source/docs/auth/userpass.html.md index ba92e1337d..2eecb5f07a 100644 --- a/website/source/docs/auth/userpass.html.md +++ b/website/source/docs/auth/userpass.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Userpass - Auth Methods" +sidebar_title: "Username & Password" sidebar_current: "docs-auth-userpass" description: |- The "userpass" auth method allows users to authenticate with Vault using a username and password. diff --git a/website/source/docs/commands/agent.html.md b/website/source/docs/commands/agent.html.md index e61aab1374..689b7a1552 100644 --- a/website/source/docs/commands/agent.html.md +++ b/website/source/docs/commands/agent.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "agent - Command" +sidebar_title: "agent" sidebar_current: "docs-commands-agent" description: |- The "agent" command is used to start Vault Agent diff --git a/website/source/docs/commands/audit/disable.html.md b/website/source/docs/commands/audit/disable.html.md index 7af7568be2..eb3db3d37b 100644 --- a/website/source/docs/commands/audit/disable.html.md +++ b/website/source/docs/commands/audit/disable.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "audit disable - Command" +sidebar_title: "disable" sidebar_current: "docs-commands-audit-disable" description: |- The "audit disable" command disables an audit device at a given path, if one diff --git a/website/source/docs/commands/audit/enable.html.md b/website/source/docs/commands/audit/enable.html.md index 609b265ee5..2db4c3f95e 100644 --- a/website/source/docs/commands/audit/enable.html.md +++ b/website/source/docs/commands/audit/enable.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "audit enable - Command" +sidebar_title: "enable" sidebar_current: "docs-commands-audit-enable" description: |- The "audit enable" command enables an audit device at a given path. diff --git a/website/source/docs/commands/audit.html.md b/website/source/docs/commands/audit/index.html.md similarity index 98% rename from website/source/docs/commands/audit.html.md rename to website/source/docs/commands/audit/index.html.md index 802de73f02..35d84cd0ee 100644 --- a/website/source/docs/commands/audit.html.md +++ b/website/source/docs/commands/audit/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "audit - Command" +sidebar_title: "audit" sidebar_current: "docs-commands-audit" description: |- The "audit" command groups subcommands for interacting with Vault's audit diff --git a/website/source/docs/commands/audit/list.html.md b/website/source/docs/commands/audit/list.html.md index 5b06227199..8f662c1721 100644 --- a/website/source/docs/commands/audit/list.html.md +++ b/website/source/docs/commands/audit/list.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "audit list - Command" +sidebar_title: "list" sidebar_current: "docs-commands-audit-list" description: |- The "audit list" command lists the audit devices enabled. The output lists the diff --git a/website/source/docs/commands/auth/disable.html.md b/website/source/docs/commands/auth/disable.html.md index 23aa69bb0b..411dfe0f24 100644 --- a/website/source/docs/commands/auth/disable.html.md +++ b/website/source/docs/commands/auth/disable.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "auth disable - Command" +sidebar_title: "disable" sidebar_current: "docs-commands-auth-disable" description: |- The "auth disable" command disables an auth method at a given path, if one diff --git a/website/source/docs/commands/auth/enable.html.md b/website/source/docs/commands/auth/enable.html.md index 7f37ee13f9..1de4cfb53c 100644 --- a/website/source/docs/commands/auth/enable.html.md +++ b/website/source/docs/commands/auth/enable.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "auth enable - Command" +sidebar_title: "enable" sidebar_current: "docs-commands-auth-enable" description: |- The "auth enable" command enables an auth method at a given path. If an auth diff --git a/website/source/docs/commands/auth/help.html.md b/website/source/docs/commands/auth/help.html.md index a645e84866..5ac0f8fddb 100644 --- a/website/source/docs/commands/auth/help.html.md +++ b/website/source/docs/commands/auth/help.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "auth help - Command" +sidebar_title: "help" sidebar_current: "docs-commands-auth-help" description: |- The "auth help" command prints usage and help for an auth method. diff --git a/website/source/docs/commands/auth.html.md b/website/source/docs/commands/auth/index.html.md similarity index 92% rename from website/source/docs/commands/auth.html.md rename to website/source/docs/commands/auth/index.html.md index d1617071cb..db8ebccb0f 100644 --- a/website/source/docs/commands/auth.html.md +++ b/website/source/docs/commands/auth/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "auth - Command" +sidebar_title: "auth" sidebar_current: "docs-commands-auth" description: |- The "auth" command groups subcommands for interacting with Vault's auth @@ -17,8 +18,7 @@ For more information, please see the [auth method documentation](/docs/auth/index.html) or the [authentication concepts](/docs/concepts/auth.html) page. -To authenticate to Vault as a user or machine, use the [`vault -login`](/docs/commands/login.html) command instead. This command is for +To authenticate to Vault as a user or machine, use the [`vault login`](/docs/commands/login.html) command instead. This command is for interacting with the auth methods themselves, not authenticating to Vault. ## Examples diff --git a/website/source/docs/commands/auth/list.html.md b/website/source/docs/commands/auth/list.html.md index 45b557c0fc..915a0d096a 100644 --- a/website/source/docs/commands/auth/list.html.md +++ b/website/source/docs/commands/auth/list.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "auth list - Command" +sidebar_title: "list" sidebar_current: "docs-commands-auth-list" description: |- The "auth list" command lists the auth methods enabled. The output lists the diff --git a/website/source/docs/commands/auth/tune.html.md b/website/source/docs/commands/auth/tune.html.md index fc68093bdd..be5a51cee7 100644 --- a/website/source/docs/commands/auth/tune.html.md +++ b/website/source/docs/commands/auth/tune.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "auth tune - Command" +sidebar_title: "tune" sidebar_current: "docs-commands-auth-tune" description: |- The "auth tune" command tunes the configuration options for the auth method at diff --git a/website/source/docs/commands/delete.html.md b/website/source/docs/commands/delete.html.md index dea78efb1c..e6253fad58 100644 --- a/website/source/docs/commands/delete.html.md +++ b/website/source/docs/commands/delete.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "delete - Command" +sidebar_title: "delete" sidebar_current: "docs-commands-delete" description: |- The "delete" command deletes secrets and configuration from Vault at the given diff --git a/website/source/docs/commands/help.html.md b/website/source/docs/commands/help.html.md index 72f3d5dda3..27f3235cc4 100644 --- a/website/source/docs/commands/help.html.md +++ b/website/source/docs/commands/help.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Path Help" +sidebar_title: "path-help" sidebar_current: "docs-commands-path-help" description: |- The Vault CLI has a built-in help system that can be used to get help for not only the CLI itself, but also any paths that the CLI can be used with within Vault. diff --git a/website/source/docs/commands/index.html.md b/website/source/docs/commands/index.html.md index 7ae9bc8d7a..497de7f36c 100644 --- a/website/source/docs/commands/index.html.md +++ b/website/source/docs/commands/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Commands (CLI)" +sidebar_title: "Commands (CLI)" sidebar_current: "docs-commands" description: |- In addition to a verbose HTTP API, Vault features a command-line interface diff --git a/website/source/docs/commands/lease.html.md b/website/source/docs/commands/lease.html.md index f4505e54ee..8d91310498 100644 --- a/website/source/docs/commands/lease.html.md +++ b/website/source/docs/commands/lease.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "lease - Command" +sidebar_title: "lease" sidebar_current: "docs-commands-lease" description: |- The "lease" command groups subcommands for interacting with leases attached to diff --git a/website/source/docs/commands/lease/index.html.md b/website/source/docs/commands/lease/index.html.md new file mode 100644 index 0000000000..764ca01ca3 --- /dev/null +++ b/website/source/docs/commands/lease/index.html.md @@ -0,0 +1,49 @@ +--- +layout: "docs" +page_title: "lease - Command" +sidebar_title: "lease" +sidebar_current: "docs-commands-lease" +description: |- + The "lease" command groups subcommands for interacting with leases attached to + secrets. +--- + +# lease + +The `lease` command groups subcommands for interacting with leases attached to +secrets. For leases attached to tokens, use the [`vault token`](/docs/commands/token.html) subcommand. + +## Examples + +Renew a lease: + +```text +$ vault lease renew database/creds/readonly/27e1b9a1-27b8-83d9-9fe0-d99d786bdc83 +Key Value +--- ----- +lease_id database/creds/readonly/27e1b9a1-27b8-83d9-9fe0-d99d786bdc83 +lease_duration 5m +lease_renewable true +``` + +Revoke a lease: + +```text +$ vault lease revoke database/creds/readonly/27e1b9a1-27b8-83d9-9fe0-d99d786bdc83 +Success! Revoked lease: database/creds/readonly/27e1b9a1-27b8-83d9-9fe0-d99d786bdc83 +``` + +## Usage + +```text +Usage: vault lease [options] [args] + + # ... + +Subcommands: + renew Renews the lease of a secret + revoke Revokes leases and secrets +``` + +For more information, examples, and usage about a subcommand, click on the name +of the subcommand in the sidebar. diff --git a/website/source/docs/commands/lease/renew.html.md b/website/source/docs/commands/lease/renew.html.md index 09affc72b0..8c0ee6b396 100644 --- a/website/source/docs/commands/lease/renew.html.md +++ b/website/source/docs/commands/lease/renew.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "lease renew - Command" +sidebar_title: "renew" sidebar_current: "docs-commands-lease-renew" description: |- The "lease renew" command renews the lease on a secret, extending the time diff --git a/website/source/docs/commands/lease/revoke.html.md b/website/source/docs/commands/lease/revoke.html.md index 7a996fb898..d641b8eb50 100644 --- a/website/source/docs/commands/lease/revoke.html.md +++ b/website/source/docs/commands/lease/revoke.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "lease revoke - Command" +sidebar_title: "revoke" sidebar_current: "docs-commands-lease-revoke" description: |- The "lease revoke" command revokes the lease on a secret, invalidating the diff --git a/website/source/docs/commands/list.html.md b/website/source/docs/commands/list.html.md index 990935390f..1754bea902 100644 --- a/website/source/docs/commands/list.html.md +++ b/website/source/docs/commands/list.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "list - Command" +sidebar_title: "list" sidebar_current: "docs-commands-list" description: |- The "list" command lists data from Vault at the given path. This can be used diff --git a/website/source/docs/commands/login.html.md b/website/source/docs/commands/login.html.md index 800e49a37a..4cf630231a 100644 --- a/website/source/docs/commands/login.html.md +++ b/website/source/docs/commands/login.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "login - Command" +sidebar_title: "login" sidebar_current: "docs-commands-login" description: |- The "login" command authenticates users or machines to Vault using the diff --git a/website/source/docs/commands/namespace.html.md b/website/source/docs/commands/namespace.html.md index 817fee586f..6a2734d0d5 100644 --- a/website/source/docs/commands/namespace.html.md +++ b/website/source/docs/commands/namespace.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "namespace - Command" +sidebar_title: "namespace" sidebar_current: "docs-commands-namespace" description: |- The "namespace" command groups subcommands for interacting with namespaces. diff --git a/website/source/docs/commands/operator/generate-root.html.md b/website/source/docs/commands/operator/generate-root.html.md index 9e3e2cd12a..f9393eba89 100644 --- a/website/source/docs/commands/operator/generate-root.html.md +++ b/website/source/docs/commands/operator/generate-root.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "operator generate-root - Command" +sidebar_title: "generate-root" sidebar_current: "docs-commands-operator-generate-root" description: |- The "operator generate-root" command generates a new root token by combining a diff --git a/website/source/docs/commands/operator.html.md b/website/source/docs/commands/operator/index.html.md similarity index 98% rename from website/source/docs/commands/operator.html.md rename to website/source/docs/commands/operator/index.html.md index e881e24074..67ea6143e3 100644 --- a/website/source/docs/commands/operator.html.md +++ b/website/source/docs/commands/operator/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "operator - Command" +sidebar_title: "operator" sidebar_current: "docs-commands-operator" description: |- The "operator" command groups subcommands for operators interacting with diff --git a/website/source/docs/commands/operator/init.html.md b/website/source/docs/commands/operator/init.html.md index fb6900a90d..4aefb3a602 100644 --- a/website/source/docs/commands/operator/init.html.md +++ b/website/source/docs/commands/operator/init.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "operator init - Command" +sidebar_title: "init" sidebar_current: "docs-commands-operator-init" description: |- The "operator init" command initializes a Vault server. Initialization is the diff --git a/website/source/docs/commands/operator/key-status.html.md b/website/source/docs/commands/operator/key-status.html.md index 7070a82277..589fc20519 100644 --- a/website/source/docs/commands/operator/key-status.html.md +++ b/website/source/docs/commands/operator/key-status.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "operator key-status - Command" +sidebar_title: "key-status" sidebar_current: "docs-commands-operator-key-status" description: |- The "operator key-status" provides information about the active encryption diff --git a/website/source/docs/commands/operator/migrate.html.md b/website/source/docs/commands/operator/migrate.html.md index 31acc12db9..928c604937 100644 --- a/website/source/docs/commands/operator/migrate.html.md +++ b/website/source/docs/commands/operator/migrate.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "operator migrate - Command" +sidebar_title: "migrate" sidebar_current: "docs-commands-operator-migrate" description: |- The "operator migrate" command copies data between storage backends to facilitate diff --git a/website/source/docs/commands/operator/rekey.html.md b/website/source/docs/commands/operator/rekey.html.md index cbd1fd3c2e..40b8c667e4 100644 --- a/website/source/docs/commands/operator/rekey.html.md +++ b/website/source/docs/commands/operator/rekey.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "operator rekey - Command" +sidebar_title: "rekey" sidebar_current: "docs-commands-operator-rekey" description: |- The "operator rekey" command generates a new set of unseal keys. This can diff --git a/website/source/docs/commands/operator/rotate.html.md b/website/source/docs/commands/operator/rotate.html.md index 21b2dc4ce0..a721f99fb8 100644 --- a/website/source/docs/commands/operator/rotate.html.md +++ b/website/source/docs/commands/operator/rotate.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "operator rotate - Command" +sidebar_title: "rotate" sidebar_current: "docs-commands-operator-rotate" description: |- The "operator rotate" rotates the underlying encryption key which is used to diff --git a/website/source/docs/commands/operator/seal.html.md b/website/source/docs/commands/operator/seal.html.md index 54935c10f7..dae7795ad1 100644 --- a/website/source/docs/commands/operator/seal.html.md +++ b/website/source/docs/commands/operator/seal.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "operator seal - Command" +sidebar_title: "seal" sidebar_current: "docs-commands-operator-seal" description: |- The "operator seal" command seals the Vault server. Sealing tells the Vault server to diff --git a/website/source/docs/commands/operator/step-down.html.md b/website/source/docs/commands/operator/step-down.html.md index 63764dc23d..79dc2b2a0f 100644 --- a/website/source/docs/commands/operator/step-down.html.md +++ b/website/source/docs/commands/operator/step-down.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "operator step-down - Command" +sidebar_title: "step-down" sidebar_current: "docs-commands-operator-step-down" description: |- The "operator step-down" forces the Vault server at the given address to step diff --git a/website/source/docs/commands/operator/unseal.html.md b/website/source/docs/commands/operator/unseal.html.md index f036ac7d42..410572167a 100644 --- a/website/source/docs/commands/operator/unseal.html.md +++ b/website/source/docs/commands/operator/unseal.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "operator unseal - Command" +sidebar_title: "unseal" sidebar_current: "docs-commands-operator-unseal" description: |- The "operator unseal" allows the user to provide a portion of the master key diff --git a/website/source/docs/commands/path-help.html.md b/website/source/docs/commands/path-help.html.md index 9ce7c25648..dcc6769501 100644 --- a/website/source/docs/commands/path-help.html.md +++ b/website/source/docs/commands/path-help.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "path-help - Command" +sidebar_title: "path-help" sidebar_current: "docs-commands-path-help" description: |- The "path-help" command retrieves API help for paths. All endpoints in Vault diff --git a/website/source/docs/commands/plugin/deregister.html.md b/website/source/docs/commands/plugin/deregister.html.md index e49bf9a4b5..a7953e07a5 100644 --- a/website/source/docs/commands/plugin/deregister.html.md +++ b/website/source/docs/commands/plugin/deregister.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "plugin deregister - Command" +sidebar_title: "deregister" sidebar_current: "docs-commands-plugin-deregister" description: |- The "plugin deregister" command deregisters a new plugin in Vault's plugin diff --git a/website/source/docs/commands/plugin.html.md b/website/source/docs/commands/plugin/index.html.md similarity index 98% rename from website/source/docs/commands/plugin.html.md rename to website/source/docs/commands/plugin/index.html.md index c86c06fb7c..f6c6e710dd 100644 --- a/website/source/docs/commands/plugin.html.md +++ b/website/source/docs/commands/plugin/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "plugin - Command" +sidebar_title: "plugin" sidebar_current: "docs-commands-plugin" description: |- The "plugin" command groups subcommands for interacting with diff --git a/website/source/docs/commands/plugin/info.html.md b/website/source/docs/commands/plugin/info.html.md index 2e3284d095..899bf9cd2c 100644 --- a/website/source/docs/commands/plugin/info.html.md +++ b/website/source/docs/commands/plugin/info.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "plugin info - Command" +sidebar_title: "info" sidebar_current: "docs-commands-plugin-info" description: |- The "plugin info" command displays information about a plugin in the catalog. diff --git a/website/source/docs/commands/plugin/list.html.md b/website/source/docs/commands/plugin/list.html.md index ab35ae5614..8f494a6da1 100644 --- a/website/source/docs/commands/plugin/list.html.md +++ b/website/source/docs/commands/plugin/list.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "plugin list - Command" +sidebar_title: "list" sidebar_current: "docs-commands-plugin-list" description: |- The "plugin list" command lists all available plugins in the plugin catalog. diff --git a/website/source/docs/commands/plugin/register.html.md b/website/source/docs/commands/plugin/register.html.md index cde96f4d6e..e4b8fe7924 100644 --- a/website/source/docs/commands/plugin/register.html.md +++ b/website/source/docs/commands/plugin/register.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "plugin register - Command" +sidebar_title: "register" sidebar_current: "docs-commands-plugin-register" description: |- The "plugin register" command registers a new plugin in Vault's plugin diff --git a/website/source/docs/commands/policy/delete.html.md b/website/source/docs/commands/policy/delete.html.md index abcf284595..cb25a69b6e 100644 --- a/website/source/docs/commands/policy/delete.html.md +++ b/website/source/docs/commands/policy/delete.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "policy delete - Command" +sidebar_title: "delete" sidebar_current: "docs-commands-policy-delete" description: |- The "policy delete" command deletes the policy named NAME in the Vault server. diff --git a/website/source/docs/commands/policy/fmt.html.md b/website/source/docs/commands/policy/fmt.html.md index e692f6172e..a86d620d8b 100644 --- a/website/source/docs/commands/policy/fmt.html.md +++ b/website/source/docs/commands/policy/fmt.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "policy fmt - Command" +sidebar_title: "fmt" sidebar_current: "docs-commands-policy-fmt" description: |- The "policy fmt" formats a local policy file to the policy specification. This diff --git a/website/source/docs/commands/policy.html.md b/website/source/docs/commands/policy/index.html.md similarity index 97% rename from website/source/docs/commands/policy.html.md rename to website/source/docs/commands/policy/index.html.md index b1ab03b575..f839c78a37 100644 --- a/website/source/docs/commands/policy.html.md +++ b/website/source/docs/commands/policy/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "policy - Command" +sidebar_title: "policy" sidebar_current: "docs-commands-policy" description: |- The "policy" command groups subcommands for interacting with policies. Users diff --git a/website/source/docs/commands/policy/list.html.md b/website/source/docs/commands/policy/list.html.md index b195a657e7..612c0c82fc 100644 --- a/website/source/docs/commands/policy/list.html.md +++ b/website/source/docs/commands/policy/list.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "policy list - Command" +sidebar_title: "list" sidebar_current: "docs-commands-policy-list" description: |- The "policy list" command Lists the names of the policies that are installed diff --git a/website/source/docs/commands/policy/read.html.md b/website/source/docs/commands/policy/read.html.md index 9091228627..ddf374d50f 100644 --- a/website/source/docs/commands/policy/read.html.md +++ b/website/source/docs/commands/policy/read.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "policy read - Command" +sidebar_title: "read" sidebar_current: "docs-commands-policy-read" description: |- The "policy read" command prints the contents and metadata of the Vault policy diff --git a/website/source/docs/commands/policy/write.html.md b/website/source/docs/commands/policy/write.html.md index ff092699fb..c86b817574 100644 --- a/website/source/docs/commands/policy/write.html.md +++ b/website/source/docs/commands/policy/write.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "policy write - Command" +sidebar_title: "write" sidebar_current: "docs-commands-policy-write" description: |- The "policy write" command uploads a policy with name NAME from the contents diff --git a/website/source/docs/commands/read.html.md b/website/source/docs/commands/read.html.md index 3d8ca690a6..e0bcea81c4 100644 --- a/website/source/docs/commands/read.html.md +++ b/website/source/docs/commands/read.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "read - Command" +sidebar_title: "read" sidebar_current: "docs-commands-read" description: |- The "read" command reads data from Vault at the given path. This can be used diff --git a/website/source/docs/commands/secrets/disable.html.md b/website/source/docs/commands/secrets/disable.html.md index 27ef3e63fd..6c0c9928c5 100644 --- a/website/source/docs/commands/secrets/disable.html.md +++ b/website/source/docs/commands/secrets/disable.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "secrets disable - Command" +sidebar_title: "disable" sidebar_current: "docs-commands-secrets-disable" description: |- The "secrets disable" command disables an secrets engine at a given PATH. The diff --git a/website/source/docs/commands/secrets/enable.html.md b/website/source/docs/commands/secrets/enable.html.md index 5d3542937a..3180b8ed29 100644 --- a/website/source/docs/commands/secrets/enable.html.md +++ b/website/source/docs/commands/secrets/enable.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "secrets enable - Command" +sidebar_title: "enable" sidebar_current: "docs-commands-secrets-enable" description: |- The "secrets enable" command enables an secrets engine at a given path. If an diff --git a/website/source/docs/commands/secrets.html.md b/website/source/docs/commands/secrets/index.html.md similarity index 98% rename from website/source/docs/commands/secrets.html.md rename to website/source/docs/commands/secrets/index.html.md index d7353cc4dd..5235c1674b 100644 --- a/website/source/docs/commands/secrets.html.md +++ b/website/source/docs/commands/secrets/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "secrets - Command" +sidebar_title: "secrets" sidebar_current: "docs-commands-secrets" description: |- The "secrets" command groups subcommands for interacting with Vault's secrets diff --git a/website/source/docs/commands/secrets/list.html.md b/website/source/docs/commands/secrets/list.html.md index 4edf7fa369..3b1ddbfd97 100644 --- a/website/source/docs/commands/secrets/list.html.md +++ b/website/source/docs/commands/secrets/list.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "secrets list - Command" +sidebar_title: "list" sidebar_current: "docs-commands-secrets-list" description: |- The "secrets list" command lists the enabled secrets engines on the Vault diff --git a/website/source/docs/commands/secrets/move.html.md b/website/source/docs/commands/secrets/move.html.md index 3b0f0371da..078f6736c1 100644 --- a/website/source/docs/commands/secrets/move.html.md +++ b/website/source/docs/commands/secrets/move.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "secrets move - Command" +sidebar_title: "move" sidebar_current: "docs-commands-secrets-move" description: |- The "secrets move" command moves an existing secrets engine to a new path. Any diff --git a/website/source/docs/commands/secrets/tune.html.md b/website/source/docs/commands/secrets/tune.html.md index ce1ab57247..394609702a 100644 --- a/website/source/docs/commands/secrets/tune.html.md +++ b/website/source/docs/commands/secrets/tune.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "secrets tune - Command" +sidebar_title: "tune" sidebar_current: "docs-commands-secrets-tune" description: |- The "secrets tune" command tunes the configuration options for the secrets diff --git a/website/source/docs/commands/server.html.md b/website/source/docs/commands/server.html.md index d4e064860e..115c4bef59 100644 --- a/website/source/docs/commands/server.html.md +++ b/website/source/docs/commands/server.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "server - Command" +sidebar_title: "server" sidebar_current: "docs-commands-server" description: |- The "server" command starts a Vault server that responds to API requests. By diff --git a/website/source/docs/commands/ssh.html.md b/website/source/docs/commands/ssh.html.md index d97e0c3b61..d39de9a16b 100644 --- a/website/source/docs/commands/ssh.html.md +++ b/website/source/docs/commands/ssh.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "ssh - Command" +sidebar_title: "ssh" sidebar_current: "docs-commands-ssh" description: |- The "ssh" command establishes an SSH connection with the target machine using diff --git a/website/source/docs/commands/status.html.md b/website/source/docs/commands/status.html.md index 5ce352331a..47412c6092 100644 --- a/website/source/docs/commands/status.html.md +++ b/website/source/docs/commands/status.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "status - Command" +sidebar_title: "status" sidebar_current: "docs-commands-status" description: |- The "status" command prints the current state of Vault including whether it is diff --git a/website/source/docs/commands/token-helper.html.md b/website/source/docs/commands/token-helper.html.md index 2c74dc7b9f..c10c491807 100644 --- a/website/source/docs/commands/token-helper.html.md +++ b/website/source/docs/commands/token-helper.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Token Helpers" +sidebar_title: "Token Helpers" sidebar_current: "docs-commands-token-helper" description: |- The Vault CLI supports external token helpers that make retrieving, setting and erasing tokens simpler to use. diff --git a/website/source/docs/commands/token/capabilities.html.md b/website/source/docs/commands/token/capabilities.html.md index 9581478c36..e9326a0bb5 100644 --- a/website/source/docs/commands/token/capabilities.html.md +++ b/website/source/docs/commands/token/capabilities.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "token capabilities - Command" +sidebar_title: "capabilities" sidebar_current: "docs-commands-token-capabilities" description: |- The "token capabilities" command fetches the capabilities of a token for a diff --git a/website/source/docs/commands/token/create.html.md b/website/source/docs/commands/token/create.html.md index 653a3c279c..7b19df1335 100644 --- a/website/source/docs/commands/token/create.html.md +++ b/website/source/docs/commands/token/create.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "token create - Command" +sidebar_title: "create" sidebar_current: "docs-commands-token-create" description: |- The "token create" command creates a new token that can be used for diff --git a/website/source/docs/commands/token.html.md b/website/source/docs/commands/token/index.html.md similarity index 98% rename from website/source/docs/commands/token.html.md rename to website/source/docs/commands/token/index.html.md index e1cbe25685..54a9e6dfe8 100644 --- a/website/source/docs/commands/token.html.md +++ b/website/source/docs/commands/token/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "token - Command" +sidebar_title: "token" sidebar_current: "docs-commands-token" description: |- The "token" command groups subcommands for interacting with tokens. Users can diff --git a/website/source/docs/commands/token/lookup.html.md b/website/source/docs/commands/token/lookup.html.md index f9338103f7..af5fca74a1 100644 --- a/website/source/docs/commands/token/lookup.html.md +++ b/website/source/docs/commands/token/lookup.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "token lookup - Command" +sidebar_title: "lookup" sidebar_current: "docs-commands-token-lookup" description: |- The "token lookup" displays information about a token or accessor. If a TOKEN diff --git a/website/source/docs/commands/token/renew.html.md b/website/source/docs/commands/token/renew.html.md index 06e01fcd68..d74e198ff7 100644 --- a/website/source/docs/commands/token/renew.html.md +++ b/website/source/docs/commands/token/renew.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "token renew - Command" +sidebar_title: "renew" sidebar_current: "docs-commands-token-renew" description: |- The "token renew" renews a token's lease, extending the amount of time it can diff --git a/website/source/docs/commands/token/revoke.html.md b/website/source/docs/commands/token/revoke.html.md index a99ac96151..11c8020272 100644 --- a/website/source/docs/commands/token/revoke.html.md +++ b/website/source/docs/commands/token/revoke.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "token revoke - Command" +sidebar_title: "revoke" sidebar_current: "docs-commands-token-revoke" description: |- The "token revoke" revokes authentication tokens and their children. If a diff --git a/website/source/docs/commands/unwrap.html.md b/website/source/docs/commands/unwrap.html.md index 2c4bea2062..2ab395e78f 100644 --- a/website/source/docs/commands/unwrap.html.md +++ b/website/source/docs/commands/unwrap.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "unwrap - Command" +sidebar_title: "unwrap" sidebar_current: "docs-commands-unwrap" description: |- The "unwrap" command unwraps a wrapped secret from Vault by the given token. diff --git a/website/source/docs/commands/write.html.md b/website/source/docs/commands/write.html.md index c61a86a770..2c94dee83c 100644 --- a/website/source/docs/commands/write.html.md +++ b/website/source/docs/commands/write.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "write - Command" +sidebar_title: "write" sidebar_current: "docs-commands-write" description: |- The "write" command writes data to Vault at the given path. The data can be diff --git a/website/source/docs/concepts/auth.html.md b/website/source/docs/concepts/auth.html.md index b257e978ec..1911114b42 100644 --- a/website/source/docs/concepts/auth.html.md +++ b/website/source/docs/concepts/auth.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Authentication" +sidebar_title: "Authentication" sidebar_current: "docs-concepts-auth" description: |- Before performing any operation with Vault, the connecting client must be authenticated. diff --git a/website/source/docs/concepts/dev-server.html.md b/website/source/docs/concepts/dev-server.html.md index 262b9b0a88..cf2d5cb1f2 100644 --- a/website/source/docs/concepts/dev-server.html.md +++ b/website/source/docs/concepts/dev-server.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Dev Server Mode" +sidebar_title: "'Dev' Server" sidebar_current: "docs-concepts-devserver" description: |- The dev server in Vault can be used for development or to experiment with Vault. diff --git a/website/source/docs/concepts/ha.html.md b/website/source/docs/concepts/ha.html.md index 8ae84ba0d3..4356be9b7a 100644 --- a/website/source/docs/concepts/ha.html.md +++ b/website/source/docs/concepts/ha.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "High Availability" +sidebar_title: "High Availability" sidebar_current: "docs-concepts-ha" description: |- Vault can be highly available, allowing you to run multiple Vaults to protect against outages. diff --git a/website/source/docs/concepts/index.html.md b/website/source/docs/concepts/index.html.md index 37063f5bd2..e9d79c13e6 100644 --- a/website/source/docs/concepts/index.html.md +++ b/website/source/docs/concepts/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Basic Concepts" +sidebar_title: "Basic Concepts" sidebar_current: "docs-concepts" description: |- Basic concepts that are important to understand for Vault usage. diff --git a/website/source/docs/concepts/lease.html.md b/website/source/docs/concepts/lease.html.md index 25ea3caa2f..99ac39000f 100644 --- a/website/source/docs/concepts/lease.html.md +++ b/website/source/docs/concepts/lease.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Lease, Renew, and Revoke" +sidebar_title: "Lease, Renew, and Revoke" sidebar_current: "docs-concepts-lease" description: |- Vault provides a lease with every secret. When this lease is expired, Vault will revoke that secret. diff --git a/website/source/docs/concepts/pgp-gpg-keybase.html.md b/website/source/docs/concepts/pgp-gpg-keybase.html.md index a7b492485d..4b0923ebae 100644 --- a/website/source/docs/concepts/pgp-gpg-keybase.html.md +++ b/website/source/docs/concepts/pgp-gpg-keybase.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Using PGP, GPG, and Keybase" +sidebar_title: "PGP, GPG, and Keybase" sidebar_current: "docs-concepts-pgp-gpg-keybase" description: |- Vault has the ability to integrate with OpenPGP-compatible programs like GPG diff --git a/website/source/docs/concepts/policies.html.md b/website/source/docs/concepts/policies.html.md index cc773d72cb..aea8b131fa 100644 --- a/website/source/docs/concepts/policies.html.md +++ b/website/source/docs/concepts/policies.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Policies" +sidebar_title: "Policies" sidebar_current: "docs-concepts-policies" description: |- Policies are how authorization is done in Vault, allowing you to restrict which parts of Vault a user can access. @@ -27,7 +28,7 @@ would take to configure Vault to authenticate using a corporate LDAP or ActiveDirectory installation. Even though this example uses LDAP, the concept applies to all auth methods. -[![Vault Auth Workflow](/assets/images/vault-policy-workflow.svg)](/assets/images/vault-policy-workflow.svg) +[![Vault Auth Workflow](/img/vault-policy-workflow.svg)](/img/vault-policy-workflow.svg) 1. The security team configures Vault to connect to an auth method. This configuration varies by auth method. In the case of LDAP, Vault @@ -55,7 +56,7 @@ Now Vault has an internal mapping between a backend authentication system and internal policy. When a user authenticates to Vault, the actual authentication is delegated to the auth method. As a user, the flow looks like: -[![Vault Auth Workflow](/assets/images/vault-auth-workflow.svg)](/assets/images/vault-auth-workflow.svg) +[![Vault Auth Workflow](/img/vault-auth-workflow.svg)](/img/vault-auth-workflow.svg) 1. A user attempts to authenticate to Vault using their LDAP credentials, providing Vault with their LDAP username and password. diff --git a/website/source/docs/concepts/response-wrapping.html.md b/website/source/docs/concepts/response-wrapping.html.md index ed6e209aa5..f3added980 100644 --- a/website/source/docs/concepts/response-wrapping.html.md +++ b/website/source/docs/concepts/response-wrapping.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Response Wrapping" +sidebar_title: "Response Wrapping" sidebar_current: "docs-concepts-response-wrapping" description: |- Wrapping responses in cubbyholes for secure distribution. diff --git a/website/source/docs/concepts/seal.html.md b/website/source/docs/concepts/seal.html.md index 6c0113c7d4..e27c62666f 100644 --- a/website/source/docs/concepts/seal.html.md +++ b/website/source/docs/concepts/seal.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Seal/Unseal" +sidebar_title: "Seal/Unseal" sidebar_current: "docs-concepts-seal" description: |- A Vault must be unsealed before it can access its data. Likewise, it can be sealed to lock it down. diff --git a/website/source/docs/concepts/tokens.html.md b/website/source/docs/concepts/tokens.html.md index 8cbf7a0c50..b984e0cb01 100644 --- a/website/source/docs/concepts/tokens.html.md +++ b/website/source/docs/concepts/tokens.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Tokens" +sidebar_title: "Tokens" sidebar_current: "docs-concepts-tokens" description: |- Tokens are a core auth method in Vault. Concepts and important features. diff --git a/website/source/docs/configuration/index.html.md b/website/source/docs/configuration/index.html.md index e0084f9e55..04d4b488bf 100644 --- a/website/source/docs/configuration/index.html.md +++ b/website/source/docs/configuration/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Server Configuration" +sidebar_title: "Configuration" sidebar_current: "docs-configuration" description: |- Vault server configuration reference. diff --git a/website/source/docs/configuration/listener/index.html.md b/website/source/docs/configuration/listener/index.html.md index 6e38a05b11..4436a1f3c3 100644 --- a/website/source/docs/configuration/listener/index.html.md +++ b/website/source/docs/configuration/listener/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Listeners - Configuration" +sidebar_title: "listener" sidebar_current: "docs-configuration-listener" description: |- The listener stanza configures the addresses and ports on which Vault will diff --git a/website/source/docs/configuration/listener/tcp.html.md b/website/source/docs/configuration/listener/tcp.html.md index 2688b30e8f..c8446f27d1 100644 --- a/website/source/docs/configuration/listener/tcp.html.md +++ b/website/source/docs/configuration/listener/tcp.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "TCP - Listeners - Configuration" +sidebar_title: "TCP" sidebar_current: "docs-configuration-listener-tcp" description: |- The TCP listener configures Vault to listen on the specified TCP address and diff --git a/website/source/docs/configuration/seal/alicloudkms.html.md b/website/source/docs/configuration/seal/alicloudkms.html.md index 47f40643c2..3bb14e265a 100644 --- a/website/source/docs/configuration/seal/alicloudkms.html.md +++ b/website/source/docs/configuration/seal/alicloudkms.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "AliCloud KMS - Seals - Configuration" +sidebar_title: "AliCloud KMS ENT" sidebar_current: "docs-configuration-seal-alicloudkms" description: |- The AliCloud KMS seal configures Vault to use AliCloud KMS as the seal wrapping @@ -37,23 +38,23 @@ seal "alicloudkms" { These parameters apply to the `seal` stanza in the Vault configuration file: -- `region` `(string: "us-east-1")`: The AliCloud region where the encryption key +* `region` `(string: "us-east-1")`: The AliCloud region where the encryption key lives. May also be specified by the `ALICLOUD_REGION` environment variable. - -- `domain` `(string: "kms.us-east-1.aliyuncs.com")`: If set, overrides the endpoint + +* `domain` `(string: "kms.us-east-1.aliyuncs.com")`: If set, overrides the endpoint AliCloud would normally use for KMS for a particular region. May also be specified by the `ALICLOUD_DOMAIN` environment variable. -- `access_key` `(string: )`: The AliCloud access key ID to use. May also be +* `access_key` `(string: )`: The AliCloud access key ID to use. May also be specified by the `ALICLOUD_ACCESS_KEY` environment variable or as part of the AliCloud profile from the AliCloud CLI or instance profile. -- `secret_key` `(string: )`: The AliCloud secret access key to use. May +* `secret_key` `(string: )`: The AliCloud secret access key to use. May also be specified by the `ALICLOUD_SECRET_KEY` environment variable or as part of the AliCloud profile from the AliCloud CLI or instance profile. -- `kms_key_id` `(string: )`: The AliCloud KMS key ID to use for encryption +* `kms_key_id` `(string: )`: The AliCloud KMS key ID to use for encryption and decryption. May also be specified by the `VAULT_ALICLOUDKMS_SEAL_KEY_ID` environment variable. @@ -64,7 +65,7 @@ variables or as configuration parameters. ~> **Note:** Although the configuration file allows you to pass in `ALICLOUD_ACCESS_KEY` and `ALICLOUD_SECRET_KEY` as part of the seal's parameters, it -is *strongly* recommended to set these values via environment variables. +is _strongly_ recommended to set these values via environment variables. ```text AliCloud authentication values: @@ -74,7 +75,7 @@ AliCloud authentication values: * `ALICLOUD_SECRET_KEY` ``` -Note: The client uses the official AliCloud SDK and will use environment credentials, +Note: The client uses the official AliCloud SDK and will use environment credentials, the specified credentials, or RAM role credentials in that order. ## `alicloudkms` Environment Variables diff --git a/website/source/docs/configuration/seal/awskms.html.md b/website/source/docs/configuration/seal/awskms.html.md index e2a41d332b..c2fc6d3dca 100644 --- a/website/source/docs/configuration/seal/awskms.html.md +++ b/website/source/docs/configuration/seal/awskms.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "AWS KMS - Seals - Configuration" +sidebar_title: "AWS KMS ENT" sidebar_current: "docs-configuration-seal-awskms" description: |- The AWS KMS seal configures Vault to use AWS KMS as the seal wrapping diff --git a/website/source/docs/configuration/seal/azurekeyvault.html.md b/website/source/docs/configuration/seal/azurekeyvault.html.md index af275b4fb0..c19f0c961a 100644 --- a/website/source/docs/configuration/seal/azurekeyvault.html.md +++ b/website/source/docs/configuration/seal/azurekeyvault.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Azure Key Vault - Seals - Configuration" +sidebar_title: "Azure Key Vault ENT" sidebar_current: "docs-configuration-seal-azurekeyvault" description: |- The Azure Key Vault seal configures Vault to use Azure Key Vault as the seal wrapping diff --git a/website/source/docs/configuration/seal/gcpckms.html.md b/website/source/docs/configuration/seal/gcpckms.html.md index 53007d1c57..60a2519029 100644 --- a/website/source/docs/configuration/seal/gcpckms.html.md +++ b/website/source/docs/configuration/seal/gcpckms.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "GCP Cloud KMS - Seals - Configuration" +sidebar_title: "GCP Cloud KMS ENT" sidebar_current: "docs-configuration-seal-gcpckms" description: |- The GCP Cloud KMS seal configures Vault to use GCP Cloud KMS as the seal wrapping diff --git a/website/source/docs/configuration/seal/index.html.md b/website/source/docs/configuration/seal/index.html.md index 5de7d8165b..fba25a1cb1 100644 --- a/website/source/docs/configuration/seal/index.html.md +++ b/website/source/docs/configuration/seal/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Seals - Configuration" +sidebar_title: "seal" sidebar_current: "docs-configuration-seal" description: |- The seal stanza configures the seal type to use for additional data protection. diff --git a/website/source/docs/configuration/seal/pkcs11.html.md b/website/source/docs/configuration/seal/pkcs11.html.md index eaa829d983..8b169428bb 100644 --- a/website/source/docs/configuration/seal/pkcs11.html.md +++ b/website/source/docs/configuration/seal/pkcs11.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "PKCS11 - Seals - Configuration" +sidebar_title: "HSM PKCS11 ENT" sidebar_current: "docs-configuration-seal-pkcs11" description: |- The PKCS11 seal configures Vault to use an HSM with PKCS11 as the seal diff --git a/website/source/docs/configuration/storage/alicloudoss.html.md b/website/source/docs/configuration/storage/alicloudoss.html.md index fcf76c358e..212a2bf0cd 100644 --- a/website/source/docs/configuration/storage/alicloudoss.html.md +++ b/website/source/docs/configuration/storage/alicloudoss.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Alicloud OSS - Storage Backends - Configuration" +sidebar_title: "AliCloud OSS" sidebar_current: "docs-configuration-storage-alicloudoss" description: |- The Alicloud OSS storage backend is used to persist Vault's data in diff --git a/website/source/docs/configuration/storage/azure.html.md b/website/source/docs/configuration/storage/azure.html.md index d249c93659..a3c4cf0432 100644 --- a/website/source/docs/configuration/storage/azure.html.md +++ b/website/source/docs/configuration/storage/azure.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Azure - Storage Backends - Configuration" +sidebar_title: "Azure" sidebar_current: "docs-configuration-storage-azure" description: |- The Azure storage backend is used to persist Vault's data in an Azure Storage diff --git a/website/source/docs/configuration/storage/cassandra.html.md b/website/source/docs/configuration/storage/cassandra.html.md index 6770000485..417a5bb1e1 100644 --- a/website/source/docs/configuration/storage/cassandra.html.md +++ b/website/source/docs/configuration/storage/cassandra.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Cassandra - Storage Backends - Configuration" +sidebar_title: "Cassandra" sidebar_current: "docs-configuration-storage-cassandra" description: |- The Cassandra storage backend is used to persist Vault's data in an Apache diff --git a/website/source/docs/configuration/storage/cockroachdb.html.md b/website/source/docs/configuration/storage/cockroachdb.html.md index 28f569996c..500b64fc39 100644 --- a/website/source/docs/configuration/storage/cockroachdb.html.md +++ b/website/source/docs/configuration/storage/cockroachdb.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "CockroachDB - Storage Backends - Configuration" +sidebar_title: "CockroachDB" sidebar_current: "docs-configuration-storage-cockroachdb" description: |- The CockroachDB storage backend is used to persist Vault's data in a CockroachDB diff --git a/website/source/docs/configuration/storage/consul.html.md b/website/source/docs/configuration/storage/consul.html.md index 6d3938d44a..6b9c0a113d 100644 --- a/website/source/docs/configuration/storage/consul.html.md +++ b/website/source/docs/configuration/storage/consul.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Consul - Storage Backends - Configuration" +sidebar_title: "Consul" sidebar_current: "docs-configuration-storage-consul" description: |- The Consul storage backend is used to persist Vault's data in Consul's diff --git a/website/source/docs/configuration/storage/couchdb.html.md b/website/source/docs/configuration/storage/couchdb.html.md index 5df23e5dab..f7f074365f 100644 --- a/website/source/docs/configuration/storage/couchdb.html.md +++ b/website/source/docs/configuration/storage/couchdb.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "CouchDB - Storage Backends - Configuration" +sidebar_title: "CouchDB" sidebar_current: "docs-configuration-storage-couchdb" description: |- The CouchDB storage backend is used to persist Vault's data in a CouchDB diff --git a/website/source/docs/configuration/storage/dynamodb.html.md b/website/source/docs/configuration/storage/dynamodb.html.md index d9e3398175..0a61e95c6e 100644 --- a/website/source/docs/configuration/storage/dynamodb.html.md +++ b/website/source/docs/configuration/storage/dynamodb.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "DynamoDB - Storage Backends - Configuration" +sidebar_title: "DynamoDB" sidebar_current: "docs-configuration-storage-dynamodb" description: |- The DynamoDB storage backend is used to persist Vault's data in DynamoDB diff --git a/website/source/docs/configuration/storage/etcd.html.md b/website/source/docs/configuration/storage/etcd.html.md index 6eb4f6fcf4..8ad574d13d 100644 --- a/website/source/docs/configuration/storage/etcd.html.md +++ b/website/source/docs/configuration/storage/etcd.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Etcd - Storage Backends - Configuration" +sidebar_title: "Etcd" sidebar_current: "docs-configuration-storage-etcd" description: |- The Etcd storage backend is used to persist Vault's data in Etcd. It supports diff --git a/website/source/docs/configuration/storage/filesystem.html.md b/website/source/docs/configuration/storage/filesystem.html.md index ebf5840e77..4b63ab2e07 100644 --- a/website/source/docs/configuration/storage/filesystem.html.md +++ b/website/source/docs/configuration/storage/filesystem.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Filesystem - Storage Backends - Configuration" +sidebar_title: "Filesystem" sidebar_current: "docs-configuration-storage-filesystem" description: |- The Filesystem storage backend stores Vault's data on the filesystem using a diff --git a/website/source/docs/configuration/storage/foundationdb.html.md b/website/source/docs/configuration/storage/foundationdb.html.md index fed673b151..4447fcc6fd 100644 --- a/website/source/docs/configuration/storage/foundationdb.html.md +++ b/website/source/docs/configuration/storage/foundationdb.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "FoundationDB - Storage Backends - Configuration" +sidebar_title: "FoundationDB" sidebar_current: "docs-configuration-storage-foundationdb" description: |- The FoundationDB storage backend is used to persist Vault's data in the diff --git a/website/source/docs/configuration/storage/google-cloud-spanner.html.md b/website/source/docs/configuration/storage/google-cloud-spanner.html.md index 3d330249e4..3a2ef6a8ae 100644 --- a/website/source/docs/configuration/storage/google-cloud-spanner.html.md +++ b/website/source/docs/configuration/storage/google-cloud-spanner.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Google Cloud Spanner - Storage Backends - Configuration" +sidebar_title: "Google Cloud Spanner" sidebar_current: "docs-configuration-storage-spanner" description: |- The Google Cloud Spanner storage backend is used to persist Vault's data in diff --git a/website/source/docs/configuration/storage/google-cloud-storage.html.md b/website/source/docs/configuration/storage/google-cloud-storage.html.md index 1ff4a8e891..d456ba7f97 100644 --- a/website/source/docs/configuration/storage/google-cloud-storage.html.md +++ b/website/source/docs/configuration/storage/google-cloud-storage.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Google Cloud Storage - Storage Backends - Configuration" +sidebar_title: "Google Cloud Storage" sidebar_current: "docs-configuration-storage-google-cloud" description: |- The Google Cloud Storage storage backend is used to persist Vault's data in diff --git a/website/source/docs/configuration/storage/in-memory.html.md b/website/source/docs/configuration/storage/in-memory.html.md index 5a9efea389..d23b3d49b3 100644 --- a/website/source/docs/configuration/storage/in-memory.html.md +++ b/website/source/docs/configuration/storage/in-memory.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "In-Memory - Storage Backends - Configuration" +sidebar_title: "In-Memory" sidebar_current: "docs-configuration-storage-in-memory" description: |- The In-Memory storage backend is used to persist Vault's data entirely diff --git a/website/source/docs/configuration/storage/index.html.md b/website/source/docs/configuration/storage/index.html.md index 085b7ee754..413748e18e 100644 --- a/website/source/docs/configuration/storage/index.html.md +++ b/website/source/docs/configuration/storage/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Storage Backends - Configuration" +sidebar_title: "storage" sidebar_current: "docs-configuration-storage" description: |- The storage stanza configures the storage backend, which represents the diff --git a/website/source/docs/configuration/storage/manta.html.md b/website/source/docs/configuration/storage/manta.html.md index 4f837e5952..4aee11481f 100644 --- a/website/source/docs/configuration/storage/manta.html.md +++ b/website/source/docs/configuration/storage/manta.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Manta - Storage Backends - Configuration" +sidebar_title: "Manta" sidebar_current: "docs-configuration-storage-manta" description: |- The Manta storage backend is used to persist Vault's data in Triton's Manta Object diff --git a/website/source/docs/configuration/storage/mssql.html.md b/website/source/docs/configuration/storage/mssql.html.md index 195afdcc97..5d786c3ecb 100644 --- a/website/source/docs/configuration/storage/mssql.html.md +++ b/website/source/docs/configuration/storage/mssql.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "MSSQL - Storage Backends - Configuration" +sidebar_title: 'MSSQL' sidebar_current: "docs-configuration-storage-mssql" description: |- The MSSQL storage backend is used to persist Vault's data in a Microsoft SQL Server. @@ -36,8 +37,8 @@ storage "mssql" { - `server` `(string: )` – host or host\instance. -- `username` `(string: "")` - enter the SQL Server Authentication user id or - the Windows Authentication user id in the DOMAIN\User format. +- `username` `(string: "")` - enter the SQL Server Authentication user id or + the Windows Authentication user id in the DOMAIN\User format. On Windows, if user id is empty or missing Single-Sign-On is used. - `password` `(string: "")` – specifies the MSSQL password to connect to @@ -77,5 +78,3 @@ storage "mssql" { password = "pass5678" } ``` - - diff --git a/website/source/docs/configuration/storage/mysql.html.md b/website/source/docs/configuration/storage/mysql.html.md index 45cc16d1f0..e90c6eba1b 100644 --- a/website/source/docs/configuration/storage/mysql.html.md +++ b/website/source/docs/configuration/storage/mysql.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "MySQL - Storage Backends - Configuration" +sidebar_title: "MySQL" sidebar_current: "docs-configuration-storage-mysql" description: |- The MySQL storage backend is used to persist Vault's data in a MySQL server or diff --git a/website/source/docs/configuration/storage/postgresql.html.md b/website/source/docs/configuration/storage/postgresql.html.md index 979bf16eca..84d5cdaa23 100644 --- a/website/source/docs/configuration/storage/postgresql.html.md +++ b/website/source/docs/configuration/storage/postgresql.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "PostgreSQL - Storage Backends - Configuration" +sidebar_title: "PostgreSQL" sidebar_current: "docs-configuration-storage-postgresql" description: |- The PostgreSQL storage backend is used to persist Vault's data in a PostgreSQL diff --git a/website/source/docs/configuration/storage/s3.html.md b/website/source/docs/configuration/storage/s3.html.md index 247b1fe973..c5ef6e163a 100644 --- a/website/source/docs/configuration/storage/s3.html.md +++ b/website/source/docs/configuration/storage/s3.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "S3 - Storage Backends - Configuration" +sidebar_title: "S3" sidebar_current: "docs-configuration-storage-s3" description: |- The S3 storage backend is used to persist Vault's data in an Amazon S3 diff --git a/website/source/docs/configuration/storage/swift.html.md b/website/source/docs/configuration/storage/swift.html.md index 7c24bdf31e..1108949e41 100644 --- a/website/source/docs/configuration/storage/swift.html.md +++ b/website/source/docs/configuration/storage/swift.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Swift - Storage Backends - Configuration" +sidebar_title: "Swift" sidebar_current: "docs-configuration-storage-swift" description: |- The Swift storage backend is used to persist Vault's data in an OpenStack diff --git a/website/source/docs/configuration/storage/zookeeper.html.md b/website/source/docs/configuration/storage/zookeeper.html.md index ba4a785ac6..49e32fea3b 100644 --- a/website/source/docs/configuration/storage/zookeeper.html.md +++ b/website/source/docs/configuration/storage/zookeeper.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Zookeeper - Storage Backends - Configuration" +sidebar_title: "Zookeeper" sidebar_current: "docs-configuration-storage-zookeeper" description: |- The Zookeeper storage backend is used to persist Vault's data in Zookeeper. diff --git a/website/source/docs/configuration/telemetry.html.md b/website/source/docs/configuration/telemetry.html.md index 6999965ba1..e2e4788b41 100644 --- a/website/source/docs/configuration/telemetry.html.md +++ b/website/source/docs/configuration/telemetry.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Telemetry - Configuration" +sidebar_title: "telemetry" sidebar_current: "docs-configuration-telemetry" description: |- The telemetry stanza specifies various configurations for Vault to publish @@ -27,7 +28,7 @@ parameters on this page are grouped by the telemetry provider. The following options are available on all telemetry configurations. -- `disable_hostname` `(bool: false)` - Specifies if gauge values should be +* `disable_hostname` `(bool: false)` - Specifies if gauge values should be prefixed with the local hostname. ### `statsite` @@ -35,7 +36,7 @@ The following options are available on all telemetry configurations. These `telemetry` parameters apply to [statsite](https://github.com/armon/statsite). -- `statsite_address` `(string: "")` - Specifies the address of a statsite server +* `statsite_address` `(string: "")` - Specifies the address of a statsite server to forward metrics data to. ```hcl @@ -49,7 +50,7 @@ telemetry { These `telemetry` parameters apply to [statsd](https://github.com/etsy/statsd). -- `statsd_address` `(string: "")` - Specifies the address of a statsd server to +* `statsd_address` `(string: "")` - Specifies the address of a statsd server to forward metrics to. ```hcl @@ -62,51 +63,51 @@ telemetry { These `telemetry` parameters apply to [Circonus](http://circonus.com/). -- `circonus_api_token` `(string: "")` - Specifies a valid Circonus API Token +* `circonus_api_token` `(string: "")` - Specifies a valid Circonus API Token used to create/manage check. If provided, metric management is enabled. -- `circonus_api_app` `(string: "nomad")` - Specifies a valid app name associated +* `circonus_api_app` `(string: "nomad")` - Specifies a valid app name associated with the API token. -- `circonus_api_url` `(string: "https://api.circonus.com/v2")` - Specifies the +* `circonus_api_url` `(string: "https://api.circonus.com/v2")` - Specifies the base URL to use for contacting the Circonus API. -- `circonus_submission_interval` `(string: "10s")` - Specifies the interval at +* `circonus_submission_interval` `(string: "10s")` - Specifies the interval at which metrics are submitted to Circonus. -- `circonus_submission_url` `(string: "")` - Specifies the +* `circonus_submission_url` `(string: "")` - Specifies the `check.config.submission_url` field, of a Check API object, from a previously created HTTPTRAP check. -- `circonus_check_id` `(string: "")` - Specifies the Check ID (**not check +* `circonus_check_id` `(string: "")` - Specifies the Check ID (**not check bundle**) from a previously created HTTPTRAP check. The numeric portion of the `check._cid` field in the Check API object. -- `circonus_check_force_metric_activation` `(bool: false)` - Specifies if force +* `circonus_check_force_metric_activation` `(bool: false)` - Specifies if force activation of metrics which already exist and are not currently active. If check management is enabled, the default behavior is to add new metrics as they are encountered. If the metric already exists in the check, it will not be activated. This setting overrides that behavior. -- `circonus_check_instance_id` `(string: ":")` - Serves - to uniquely identify the metrics coming from this *instance*. It can be used +* `circonus_check_instance_id` `(string: ":")` - Serves + to uniquely identify the metrics coming from this _instance_. It can be used to maintain metric continuity with transient or ephemeral instances as they move around within an infrastructure. By default, this is set to hostname:application name (e.g. "host123:nomad"). -- `circonus_check_search_tag` `(string: :)` - Specifies a +* `circonus_check_search_tag` `(string: :)` - Specifies a special tag which, when coupled with the instance id, helps to narrow down the search results when neither a Submission URL or Check ID is provided. By default, this is set to service:app (e.g. "service:nomad"). -- `circonus_check_display_name` `(string: "")` - Specifies a name to give a - check when it is created. This name is displayed in the Circonus UI Checks - list. +* `circonus_check_display_name` `(string: "")` - Specifies a name to give a + check when it is created. This name is displayed in the Circonus UI Checks + list. -- `circonus_check_tags` `(string: "")` - Comma separated list of additional +* `circonus_check_tags` `(string: "")` - Comma separated list of additional tags to add to a check when it is created. -- `circonus_broker_id` `(string: "")` - Specifies the ID of a specific Circonus +* `circonus_broker_id` `(string: "")` - Specifies the ID of a specific Circonus Broker to use when creating a new check. The numeric portion of `broker._cid` field in a Broker API object. If metric management is enabled and neither a Submission URL nor Check ID is provided, an attempt will be made to search for @@ -114,10 +115,10 @@ These `telemetry` parameters apply to [Circonus](http://circonus.com/). HTTPTRAP check will be created. By default, this is a random Enterprise Broker is selected, or, the default Circonus Public Broker. -- `circonus_broker_select_tag` `(string: "")` - Specifies a special tag which +* `circonus_broker_select_tag` `(string: "")` - Specifies a special tag which will be used to select a Circonus Broker when a Broker ID is not provided. The best use of this is to as a hint for which broker should be used based on - *where* this particular instance is running (e.g. a specific geo location or + _where_ this particular instance is running (e.g. a specific geo location or datacenter, dc:sfo). ### `dogstatsd` @@ -125,13 +126,12 @@ These `telemetry` parameters apply to [Circonus](http://circonus.com/). These `telemetry` parameters apply to [DogStatsD](http://docs.datadoghq.com/guides/dogstatsd/). -- `dogstatsd_addr` `(string: "")` - This provides the address of a DogStatsD +* `dogstatsd_addr` `(string: "")` - This provides the address of a DogStatsD instance. DogStatsD is a protocol-compatible flavor of statsd, with the added ability to decorate metrics with tags and event information. If provided, Vault will send various telemetry information to that instance for aggregation. This can be used to capture runtime information. - - `dogstatsd_tags` `(string array: [])` - This provides a list of global tags that will be added to all telemetry packets sent to DogStatsD. It is a list of strings, where each string looks like "my_tag_name:my_tag_value". diff --git a/website/source/docs/configuration/ui/index.html.md b/website/source/docs/configuration/ui/index.html.md index 3b52bac8c7..7d34787950 100644 --- a/website/source/docs/configuration/ui/index.html.md +++ b/website/source/docs/configuration/ui/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "UI - Configuration" +sidebar_title: "ui" sidebar_current: "docs-configuration-ui" description: |- Vault features a user interface (web interface) for interacting with Vault. diff --git a/website/source/docs/enterprise/auto-unseal/index.html.md b/website/source/docs/enterprise/auto-unseal/index.html.md index a00122e9ce..248f1efbdd 100644 --- a/website/source/docs/enterprise/auto-unseal/index.html.md +++ b/website/source/docs/enterprise/auto-unseal/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Enterprise Auto Unseal" +sidebar_title: "Auto Unseal" sidebar_current: "docs-vault-enterprise-auto-unseal" description: |- Vault Enterprise supports automatic unsealing via cloud technologies like KMS. diff --git a/website/source/docs/enterprise/control-groups/index.html.md b/website/source/docs/enterprise/control-groups/index.html.md index 651d9be88f..f41489d944 100644 --- a/website/source/docs/enterprise/control-groups/index.html.md +++ b/website/source/docs/enterprise/control-groups/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Enterprise Control Groups" +sidebar_title: "Control Groups" sidebar_current: "docs-vault-enterprise-control-groups" description: |- Vault Enterprise has support for Control Group Authorization. diff --git a/website/source/docs/enterprise/hsm/behavior.html.md b/website/source/docs/enterprise/hsm/behavior.html.md index e834513cf6..0545751525 100644 --- a/website/source/docs/enterprise/hsm/behavior.html.md +++ b/website/source/docs/enterprise/hsm/behavior.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Behavioral Changes - HSM Integration - Vault Enterprise" +sidebar_title: "Behavioral Changes" sidebar_current: "docs-vault-enterprise-hsm-behavior" description: |- Vault Enterprise HSM support changes the way Vault works with regard to unseal and recovery keys as well as rekey and recovery operations. diff --git a/website/source/docs/enterprise/hsm/index.html.md b/website/source/docs/enterprise/hsm/index.html.md index 9e1d3dbc15..304da4dbd6 100644 --- a/website/source/docs/enterprise/hsm/index.html.md +++ b/website/source/docs/enterprise/hsm/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "HSM Integration - Vault Enterprise" +sidebar_title: "HSM Support" sidebar_current: "docs-vault-enterprise-hsm" description: |- Vault Enterprise has HSM support, allowing for external master key storage and automatic unsealing. diff --git a/website/source/docs/enterprise/hsm/security.html.md b/website/source/docs/enterprise/hsm/security.html.md index 911304c021..75bf68fbf3 100644 --- a/website/source/docs/enterprise/hsm/security.html.md +++ b/website/source/docs/enterprise/hsm/security.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Security Details - HSM Integration - Vault Enterprise" +sidebar_title: "Security" sidebar_current: "docs-vault-enterprise-hsm-security" description: |- Recommendations to ensure the security of a Vault Enterprise HSM deployment. diff --git a/website/source/docs/enterprise/index.html.md b/website/source/docs/enterprise/index.html.md index d25ec92567..972e2752e2 100644 --- a/website/source/docs/enterprise/index.html.md +++ b/website/source/docs/enterprise/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Enterprise" +sidebar_title: "Vault Enterprise" sidebar_current: "docs-vault-enterprise" description: |- Vault Enterprise features a number of capabilities beyond the open diff --git a/website/source/docs/enterprise/mfa/index.html.md b/website/source/docs/enterprise/mfa/index.html.md index 0ad9aa5d3d..8c4f979031 100644 --- a/website/source/docs/enterprise/mfa/index.html.md +++ b/website/source/docs/enterprise/mfa/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "MFA Support - Vault Enterprise" +sidebar_title: "MFA" sidebar_current: "docs-vault-enterprise-mfa" description: |- Vault Enterprise has support for Multi-factor Authentication (MFA), using different authentication types. diff --git a/website/source/docs/enterprise/mfa/mfa-duo.html.md b/website/source/docs/enterprise/mfa/mfa-duo.html.md index 9d7189c595..e8cd04d42e 100644 --- a/website/source/docs/enterprise/mfa/mfa-duo.html.md +++ b/website/source/docs/enterprise/mfa/mfa-duo.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Duo MFA - MFA Support - Vault Enterprise" +sidebar_title: "Duo MFA" sidebar_current: "docs-vault-enterprise-mfa-duo" description: |- Vault Enterprise supports Duo MFA type. diff --git a/website/source/docs/enterprise/mfa/mfa-okta.html.md b/website/source/docs/enterprise/mfa/mfa-okta.html.md index 34ad53f0f2..e83f5196b7 100644 --- a/website/source/docs/enterprise/mfa/mfa-okta.html.md +++ b/website/source/docs/enterprise/mfa/mfa-okta.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Okta MFA - MFA Support - Vault Enterprise" +sidebar_title: "Okta MFA" sidebar_current: "docs-vault-enterprise-mfa-okta" description: |- Vault Enterprise supports Okta MFA type. diff --git a/website/source/docs/enterprise/mfa/mfa-pingid.html.md b/website/source/docs/enterprise/mfa/mfa-pingid.html.md index 6c6ce75359..6eaedfc23b 100644 --- a/website/source/docs/enterprise/mfa/mfa-pingid.html.md +++ b/website/source/docs/enterprise/mfa/mfa-pingid.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "PingID MFA - MFA Support - Vault Enterprise" +sidebar_title: "PingID MFA" sidebar_current: "docs-vault-enterprise-mfa-pingid" description: |- Vault Enterprise supports PingID MFA type. diff --git a/website/source/docs/enterprise/mfa/mfa-totp.html.md b/website/source/docs/enterprise/mfa/mfa-totp.html.md index 4f7699980e..b0bd3013a1 100644 --- a/website/source/docs/enterprise/mfa/mfa-totp.html.md +++ b/website/source/docs/enterprise/mfa/mfa-totp.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "TOTP MFA - MFA Support - Vault Enterprise" +sidebar_title: "TOTP MFA" sidebar_current: "docs-vault-enterprise-mfa-totp" description: |- Vault Enterprise supports TOTP MFA type. diff --git a/website/source/docs/enterprise/namespaces/index.html.md b/website/source/docs/enterprise/namespaces/index.html.md index c41c791d1e..4d37281eaa 100644 --- a/website/source/docs/enterprise/namespaces/index.html.md +++ b/website/source/docs/enterprise/namespaces/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Namespaces - Vault Enterprise" +sidebar_title: "Namespaces" sidebar_current: "docs-vault-enterprise-namespaces" description: |- Vault Enterprise has support for Namespaces, a feature to enable Secure Multi-tenancy (SMT) and self-management. diff --git a/website/source/docs/enterprise/performance-standby/index.html.md b/website/source/docs/enterprise/performance-standby/index.html.md index f07bd24244..57797313f5 100644 --- a/website/source/docs/enterprise/performance-standby/index.html.md +++ b/website/source/docs/enterprise/performance-standby/index.html.md @@ -1,21 +1,22 @@ --- layout: "docs" page_title: "Performance Standby Nodes - Vault Enterprise" +sidebar_title: "Performance Standbys" sidebar_current: "docs-vault-enterprise-perf-standbys" description: |- Performance Standby Nodes - Vault Enterprise --- -# Performance Standby Nodes +# Performance Standby Nodes Vault supports a multi-server mode for high availability. This mode protects against outages by running multiple Vault servers. High availability mode -is automatically enabled when using a data store that supports it. You can +is automatically enabled when using a data store that supports it. You can learn more about HA mode on the [Concepts](/docs/concepts/ha.html) page. Vault Enterprise offers additional features that allow HA nodes to service read-only requests on the local standby node. Read-only requests are requests -that do not modify Vault's storage. +that do not modify Vault's storage. ## Server-to-Server Communication diff --git a/website/source/docs/enterprise/replication/index.html.md b/website/source/docs/enterprise/replication/index.html.md index 4069f6884b..c35dd0cf9a 100644 --- a/website/source/docs/enterprise/replication/index.html.md +++ b/website/source/docs/enterprise/replication/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Replication - Vault Enterprise" +sidebar_title: "Replication" sidebar_current: "docs-vault-enterprise-replication" description: |- Vault Enterprise has support for Replication, allowing critical data to be replicated across clusters to support horizontally scaling and disaster recovery workloads. diff --git a/website/source/docs/enterprise/sealwrap/index.html.md b/website/source/docs/enterprise/sealwrap/index.html.md index e53e56e17d..7337b5d7ab 100644 --- a/website/source/docs/enterprise/sealwrap/index.html.md +++ b/website/source/docs/enterprise/sealwrap/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Enterprise Seal Wrap" +sidebar_title: "Seal Wrap / FIPS 140-2" sidebar_current: "docs-vault-enterprise-sealwrap" description: |- Vault Enterprise features a mechanism to wrap values with an extra layer of diff --git a/website/source/docs/enterprise/sentinel/examples.html.md b/website/source/docs/enterprise/sentinel/examples.html.md index 80c045b193..f361e4d7cf 100644 --- a/website/source/docs/enterprise/sentinel/examples.html.md +++ b/website/source/docs/enterprise/sentinel/examples.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Sentinel Examples" +sidebar_title: "Examples" sidebar_current: "docs-vault-enterprise-sentinel-examples" description: |- An overview of how Sentinel interacts with Vault Enterprise. diff --git a/website/source/docs/enterprise/sentinel/index.html.md b/website/source/docs/enterprise/sentinel/index.html.md index ee9ab5bcb5..94385e0c03 100644 --- a/website/source/docs/enterprise/sentinel/index.html.md +++ b/website/source/docs/enterprise/sentinel/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Vault Enterprise Sentinel Integration" +sidebar_title: "Sentinel" sidebar_current: "docs-vault-enterprise-sentinel" description: |- An overview of how Sentinel interacts with Vault Enterprise. diff --git a/website/source/docs/enterprise/sentinel/properties.html.md b/website/source/docs/enterprise/sentinel/properties.html.md index e910e5b8a7..77faedaeda 100644 --- a/website/source/docs/enterprise/sentinel/properties.html.md +++ b/website/source/docs/enterprise/sentinel/properties.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Sentinel Properties" +sidebar_title: "Properties" sidebar_current: "docs-vault-enterprise-sentinel-properties" description: |- An overview of how Sentinel interacts with Vault Enterprise. diff --git a/website/source/docs/index.html.erb b/website/source/docs/index.html.erb new file mode 100644 index 0000000000..0d2820d83c --- /dev/null +++ b/website/source/docs/index.html.erb @@ -0,0 +1,85 @@ +--- +page_title: "Vault Documentation" +description: |- + Vault reference documentation. +--- + +<% @meganav_title = 'Docs' %> + + + +
    +
    + + +
    + + +
    +
    + +
    + +
    + +
    +
    + + +
    + +
    +
    +
    + +
    + + + +
    + +
    +
    + + +
    + + +
    +
    +
    +
    diff --git a/website/source/docs/index.html.markdown b/website/source/docs/index.html.markdown deleted file mode 100644 index 9ae720a8b9..0000000000 --- a/website/source/docs/index.html.markdown +++ /dev/null @@ -1,14 +0,0 @@ ---- -layout: "docs" -page_title: "Documentation" -sidebar_current: "docs-home" -description: |- - Welcome to the Vault documentation! This documentation is more of a reference guide for all available features and options of Vault. If you're just getting started with Vault, please start with the introduction and getting started guide instead. ---- - -# Vault Documentation - -Welcome to the Vault documentation! This documentation is more of a reference -guide for all available features and options of Vault. If you're just getting -started with Vault, please start with the -[introduction](/intro/index.html) instead, and work your way up to the [Getting Started](/intro/getting-started/install.html) guide. diff --git a/website/source/docs/install/index.html.md b/website/source/docs/install/index.html.md index af3137d291..7ca9ef996c 100644 --- a/website/source/docs/install/index.html.md +++ b/website/source/docs/install/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Install Vault" +sidebar_title: "Installing Vault" sidebar_current: "docs-install-install" description: |- Installing Vault is simple. You can download a precompiled binary or compile diff --git a/website/source/docs/internals/architecture.html.md b/website/source/docs/internals/architecture.html.md index 848c5bf847..db70e9f337 100644 --- a/website/source/docs/internals/architecture.html.md +++ b/website/source/docs/internals/architecture.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Architecture" +sidebar_title: "Architecture" sidebar_current: "docs-internals-architecture" description: |- Learn about the internal architecture of Vault. @@ -84,7 +85,7 @@ clarify what is being discussed: A very high level overview of Vault looks like this: -[![Architecture Overview](/assets/images/layers.png)](/assets/images/layers.png) +[![Architecture Overview](/img/layers.png)](/img/layers.png) Let's begin to break down this picture. There is a clear separation of components that are inside or outside of the security barrier. Only the storage @@ -105,7 +106,7 @@ algorithm](https://en.wikipedia.org/wiki/Shamir's_Secret_Sharing) to split the master key into 5 shares, any 3 of which are required to reconstruct the master key. -[![Vault Shamir Secret Sharing Algorithm](/assets/images/vault-shamir-secret-sharing.svg)](/assets/images/vault-shamir-secret-sharing.svg) +[![Vault Shamir Secret Sharing Algorithm](/img/vault-shamir-secret-sharing.svg)](/img/vault-shamir-secret-sharing.svg) The number of shares and the minimum threshold required can both be specified. Shamir's technique can be disabled, and the master key used directly for diff --git a/website/source/docs/internals/high-availability.html.md b/website/source/docs/internals/high-availability.html.md index 2900633377..6d5f0e5540 100644 --- a/website/source/docs/internals/high-availability.html.md +++ b/website/source/docs/internals/high-availability.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "High Availability" +sidebar_title: "High Availability" sidebar_current: "docs-internals-ha" description: |- Learn about the high availability design of Vault. diff --git a/website/source/docs/internals/index.html.md b/website/source/docs/internals/index.html.md index f2defdf66e..46d5d2d653 100644 --- a/website/source/docs/internals/index.html.md +++ b/website/source/docs/internals/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Internals" +sidebar_title: "Internals" sidebar_current: "docs-internals" description: |- This section covers the internals of Vault and explains technical details of Vaults operation. diff --git a/website/source/docs/internals/plugins.html.md b/website/source/docs/internals/plugins.html.md index 752725df85..9903dba866 100644 --- a/website/source/docs/internals/plugins.html.md +++ b/website/source/docs/internals/plugins.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Plugin System" +sidebar_title: "Plugins" sidebar_current: "docs-internals-plugins" description: |- Learn about Vault's plugin system. diff --git a/website/source/docs/internals/replication.html.md b/website/source/docs/internals/replication.html.md index cc11b19232..2aba911d40 100644 --- a/website/source/docs/internals/replication.html.md +++ b/website/source/docs/internals/replication.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Replication" +sidebar_title: "Replication" sidebar_current: "docs-internals-replication" description: |- Learn about the details of multi-datacenter replication within Vault. diff --git a/website/source/docs/internals/rotation.html.md b/website/source/docs/internals/rotation.html.md index b1afe79ca3..5daa34603b 100644 --- a/website/source/docs/internals/rotation.html.md +++ b/website/source/docs/internals/rotation.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Key Rotation" +sidebar_title: "Key Rotation" sidebar_current: "docs-internals-rotation" description: |- Learn about the details of key rotation within Vault. @@ -19,7 +20,7 @@ to split the master key into 5 shares, any 3 of which are required to reconstruc key. The master key is used to protect the encryption key, which is ultimately used to protect data written to the storage backend. -[![Vault Shamir Secret Sharing Algorithm](/assets/images/vault-shamir-secret-sharing.svg)](/assets/images/vault-shamir-secret-sharing.svg) +[![Vault Shamir Secret Sharing Algorithm](/img/vault-shamir-secret-sharing.svg)](/img/vault-shamir-secret-sharing.svg) To support key rotation, we need to support changing the unseal keys, master key, and the backend encryption key. We split this into two separate operations, `rekey` and `rotate`. diff --git a/website/source/docs/internals/security.html.md b/website/source/docs/internals/security.html.md index edbfd1dc0c..0683b626e7 100644 --- a/website/source/docs/internals/security.html.md +++ b/website/source/docs/internals/security.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Security Model" +sidebar_title: "Security Model" sidebar_current: "docs-internals-security" description: |- Learn about the security model of Vault. diff --git a/website/source/docs/internals/telemetry.html.md b/website/source/docs/internals/telemetry.html.md index 29861451cb..79f9aaba33 100644 --- a/website/source/docs/internals/telemetry.html.md +++ b/website/source/docs/internals/telemetry.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Telemetry" +sidebar_title: "Telemetry" sidebar_current: "docs-internals-telemetry" description: |- Learn about the telemetry data available in Vault. diff --git a/website/source/docs/internals/token.html.md b/website/source/docs/internals/token.html.md index e0abbb3add..4bf96492ad 100644 --- a/website/source/docs/internals/token.html.md +++ b/website/source/docs/internals/token.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Token Authentication" +sidebar_title: "Token Authentication" sidebar_current: "docs-internals-token" description: |- Learn about the client token authentication in Vault. diff --git a/website/source/docs/partnerships/index.html.md b/website/source/docs/partnerships/index.html.md new file mode 100644 index 0000000000..95662c0b30 --- /dev/null +++ b/website/source/docs/partnerships/index.html.md @@ -0,0 +1,110 @@ +--- +layout: "docs" +page_title: "Partnerships - Vault Integration Program" +sidebar_current: "docs-partnerships" +description: |- + Guide to partnership integrations and creating plugins for Vault. +--- + +# Vault Integration Program + +The Vault Integration Program (VIP) enables vendors to build integrations with HashiCorp Vault that are officially tested and approved by HashiCorp. The program is intended to be largely self-service, with links to code samples, documentation and clearly defined integration steps. + +## Types of Vault Integrations + +By leveraging Vault's plugin system, vendors are able to build extensible secrets, authentication, and audit plugins to extend Vault's functionality. These integrations can be done with the OSS (open-source) version of Vault. Hardware Security Module (HSM) integrations need to be tested against Vault Enterprise since the HSM functionality is only supported in the Vault Enterprise version. + +**Authentication Methods**: Auth methods are the components in Vault that perform authentication and are responsible for assigning identity and a set of policies to a user. + +**Vault Secrets Engine**: Secrets engines are components which store, generate, or encrypt data. Secrets engines are incredibly flexible, so it is easiest to think about them in terms of their function. Secrets engines are provided some set of data, they take some action on that data, and they return a result. + +**Audit Devices**: Audit devices are the components in Vault that keep a detailed log of all requests and response to Vault. Because every operation with Vault is an API request/response, the audit log contains every authenticated interaction with Vault, including errors. (no plugin interface - built into Vault Core. Leave it there - no reqs yet but expect some soon) + +**Hardware Security Module (HSM)**: HSM support is a feature of Vault Enterprise that takes advantage of HSMs to provide Master Key Wrapping, Automatic Unsealing and Seal Wrapping via the PKCS#11 protocol ver. 2.2+. + +**Cloud / Third Party Autounseal Integration**: Non-PKCS#11 integrations with secure external data stores (e.g.: AWS KMS, Azure Key Vault) to provide Autounsealing and Seal-Wrapping. + +**Storage Backend**: A storage backend is a durable storage location where Vault stores its information. + +## Development Process + +The Vault integration development process is described into the steps below. By following these steps, Vault integrations can be developed alongside HashiCorp to ensure new integrations are reviewed, certified and released as quickly as possible. + +1. Engage: Initial contact between vendor and HashiCorp +2. Enable: Documentation, code samples and best practices for developing the integration +3. Develop and Test: Integration development and testing by vendor +4. Review/Certification: HashiCorp code review and certification of integration +5. Release: Vault integration released +6. Support: Ongoing maintenance and support of the integration by the vendor. + +### 1. Engage + +Please begin by completing Vault Integration Program webform to tell us about your company and the Vault integration you’re interested in. + +### 2. Enable + +Here are links to resources, documentation, examples and best practices to guide you through the Vault integration development and testing process: + +**General Vault Plugin Development:** + +* [Plugins documentation](https://www.vaultproject.io/docs/internals/plugins.html) +* [Guide to building Vault plugin backends](https://www.vaultproject.io/guides/operations/plugin-backends.html) +* [Vault's source code](https://github.com/hashicorp/vault) + +**Secrets Engines** + +* [Secret engine documentation](https://www.vaultproject.io/docs/secrets/index.html) +* [Sample plugin code](https://github.com/hashicorp/vault-auth-plugin-example) + +**Authentication Methods** + +* [Auth Methods documentation](https://www.vaultproject.io/docs/auth/index.html) +* [Example of how to build, install, and maintain auth method plugins plugin](https://www.hashicorp.com/blog/building-a-vault-secure-plugin) +* [Sample plugin code](https://github.com/hashicorp/vault-auth-plugin-example) + +**Audit Devices** + +[Audit devices documentation](https://www.vaultproject.io/docs/audit/index.html) + +**HSM Integration** + +* [HSM documentation](https://www.vaultproject.io/docs/enterprise/hsm/index.html) +* [Configuration information](https://www.vaultproject.io/docs/configuration/seal/pkcs11.html) + +**Storage Backends** + +[Storage configuration documentation](https://www.vaultproject.io/docs/configuration/storage/index.html) + +**Community Forum** + +[Vault developer community forum](https://groups.google.com/forum/#!forum/vault-tool) + +### 3. Develop and Test + +The only knowledge necessary to write a plugin is basic command-line skills and knowledge of the [Go programming language](http://www.golang.org). Use the plugin interface to develop your integration. All integrations should contain unit and acceptance testing. + +### 4. Review + +HashiCorp will review and certify your Vault integration. Please send the Vault logs and other relevant logs for verification at: [vault-integration-dev@hashicorp.com](mailto:vault-integration-dev@hashicorp.com). For Auth, Secret and Storage plugins, submit a GitHub pull request (PR) against the Vault project (https://github.com/hashicorp/vault). Where applicable, the vendor will need to provide HashiCorp with a test account. + +### 5. Release + +At this stage, the Vault integration is fully developed, documented, tested and certified. Once released, HashiCorp will officially list the Vault integration. + +### 6. Support + +Many vendors view the release step to be the end of the journey, while at HashiCorp we view it to be the start. Getting the Vault integration built is just the first step in enabling users. Once this is done, on-going effort is required to maintain the integration and address any issues in a timely manner. +The expectation for vendors is to respond to all critical issues within 48 hours and all other issues within 5 business days. HashiCorp Vault has an extremely wide community of users and we encourage everyone to report issues however small, as well as help resolve them when possible. + +## Checklist + +Below is a checklist of steps that should be followed during the Vault integration development process. This reiterates the steps described above. + +* Complete the [Vault Integration webform](https://docs.google.com/forms/d/e/1FAIpQLSfQL1uj-mL59bd2EyCPI31LT9uvVT-xKyoHAb5FKIwWwwJ1qQ/viewform) +* Develop and test your Vault integration following examples, documentation and best practices +* When the integration is completed and ready for HashiCorp review, send the Vault and other relevant logs to us for review and certification at: [vault-integration-dev@hashicorp.com](mailto:vault-integration-dev@hashicorp.com) +* Once released, plan to support the integration with additional functionality and responding to customer issues + +## Contact Us + +For any questions or feedback, please contact us at: [vault-integration-dev@hashicorp.com](mailto:vault-integration-dev@hashicorp.com) diff --git a/website/source/docs/plugin/index.html.md b/website/source/docs/plugin/index.html.md index 7b19a5484e..8e2fc91bd9 100644 --- a/website/source/docs/plugin/index.html.md +++ b/website/source/docs/plugin/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Custom Plugin Backends" +sidebar_title: "Plugin Backends" sidebar_current: "docs-plugin" description: |- Plugin backends are mountable backends that are implemented unsing Vault's plugin system. diff --git a/website/source/docs/secrets/ad/index.html.md b/website/source/docs/secrets/ad/index.html.md index f8b8d1d42b..ea7df6ca74 100644 --- a/website/source/docs/secrets/ad/index.html.md +++ b/website/source/docs/secrets/ad/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Active Directory - Secrets Engines" +sidebar_title: "Active Directory" sidebar_current: "docs-secrets-active-directory" description: |- The Active Directory secrets engine for Vault generates passwords dynamically based on diff --git a/website/source/docs/secrets/alicloud/index.html.md b/website/source/docs/secrets/alicloud/index.html.md index d8b8cec004..6e4985f045 100644 --- a/website/source/docs/secrets/alicloud/index.html.md +++ b/website/source/docs/secrets/alicloud/index.html.md @@ -1,18 +1,19 @@ --- layout: "docs" page_title: "AliCloud - Secrets Engines" +sidebar_title: "AliCloud" sidebar_current: "docs-secrets-alicloud" description: |- - The AliCloud secrets engine for Vault generates access tokens or STS credentials + The AliCloud secrets engine for Vault generates access tokens or STS credentials dynamically based on RAM policies or roles. --- # AliCloud Secrets Engine The AliCloud secrets engine dynamically generates AliCloud access tokens based on RAM -policies, or AliCloud STS credentials based on RAM roles. This generally -makes working with AliCloud easier, since it does not involve clicking in the web UI. -The AliCloud access tokens are time-based and are automatically revoked when the Vault +policies, or AliCloud STS credentials based on RAM roles. This generally +makes working with AliCloud easier, since it does not involve clicking in the web UI. +The AliCloud access tokens are time-based and are automatically revoked when the Vault lease expires. STS credentials are short-lived, non-renewable, and expire on their own. ## Setup @@ -30,19 +31,19 @@ management tool. By default, the secrets engine will mount at the name of the engine. To enable the secrets engine at a different path, use the `-path` argument. - -1. [Create a custom policy](https://www.alibabacloud.com/help/doc-detail/28640.htm) -in AliCloud that will be used for the access key you will give Vault. See "Example + +1. [Create a custom policy](https://www.alibabacloud.com/help/doc-detail/28640.htm) +in AliCloud that will be used for the access key you will give Vault. See "Example RAM Policy for Vault". -1. [Create a user](https://www.alibabacloud.com/help/faq-detail/28637.htm) in AliCloud +1. [Create a user](https://www.alibabacloud.com/help/faq-detail/28637.htm) in AliCloud with a name like "hashicorp-vault", and directly apply the new custom policy to that user in the "User Authorization Policies" section. 1. Create an access key for that user in AliCloud, which is an action available in AliCloud's UI on the user's page. -1. Configure that access key as the credentials that Vault will use to communicate with +1. Configure that access key as the credentials that Vault will use to communicate with AliCloud to generate credentials: ```text @@ -50,19 +51,19 @@ AliCloud to generate credentials: access_key=0wNEpMMlzy7szvai \ secret_key=PupkTg8jdmau1cXxYacgE736PJj4cA ``` - + Alternatively, the AliCloud secrets engine can pick up credentials set as environment variables, or credentials available through instance metadata. Since it checks current credentials on every API call, - changes in credentials will be picked up almost immediately without a Vault restart. - - If available, we recommend using instance metadata for these credentials as they are the most + changes in credentials will be picked up almost immediately without a Vault restart. + + If available, we recommend using instance metadata for these credentials as they are the most secure option. To do so, simply ensure that the instance upon which Vault is running has sufficient privileges, and do not add any config. -1. Configure a role describing how credentials will be granted. +1. Configure a role describing how credentials will be granted. To generate access tokens using only policies that have already been created in AliCloud: - + ```text $ vault write alicloud/role/policy-based \ remote_policies='name:AliyunOSSReadOnlyAccess,type:System' \ @@ -70,7 +71,7 @@ AliCloud to generate credentials: ``` To generate access tokens using only policies that will be dynamically created in AliCloud by Vault: - + ```text $ vault write alicloud/role/policy-based \ inline_policies=-<DEPRECATED" sidebar_current: "docs-secrets-cassandra" description: |- The Cassandra secrets engine for Vault generates database credentials to access Cassandra. diff --git a/website/source/docs/secrets/consul/index.html.md b/website/source/docs/secrets/consul/index.html.md index 77855f91f9..f775f0cbd7 100644 --- a/website/source/docs/secrets/consul/index.html.md +++ b/website/source/docs/secrets/consul/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Consul - Secrets Engines" +sidebar_title: "Consul" sidebar_current: "docs-secrets-consul" description: |- The Consul secrets engine for Vault generates tokens for Consul dynamically. diff --git a/website/source/docs/secrets/cubbyhole/index.html.md b/website/source/docs/secrets/cubbyhole/index.html.md index 07f3b7759e..4df913a1be 100644 --- a/website/source/docs/secrets/cubbyhole/index.html.md +++ b/website/source/docs/secrets/cubbyhole/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Cubbyhole - Secrets Engines" +sidebar_title: "Cubbyhole" sidebar_current: "docs-secrets-cubbyhole" description: |- The cubbyhole secrets engine can store arbitrary secrets scoped to a single token. diff --git a/website/source/docs/secrets/databases/cassandra.html.md b/website/source/docs/secrets/databases/cassandra.html.md index e68d2b38cc..8995aac0dd 100644 --- a/website/source/docs/secrets/databases/cassandra.html.md +++ b/website/source/docs/secrets/databases/cassandra.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Cassandra - Database - Secrets Engines" +sidebar_title: "Cassandra" sidebar_current: "docs-secrets-databases-cassandra" description: |- Cassandra is one of the supported plugins for the database secrets engine. diff --git a/website/source/docs/secrets/databases/custom.html.md b/website/source/docs/secrets/databases/custom.html.md index 0b3218955b..824c92c866 100644 --- a/website/source/docs/secrets/databases/custom.html.md +++ b/website/source/docs/secrets/databases/custom.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Custom - Database - Secrets Engines" +sidebar_title: "Custom" sidebar_current: "docs-secrets-databases-custom" description: |- The database secrets engine allows new functionality to be added through a diff --git a/website/source/docs/secrets/databases/hanadb.html.md b/website/source/docs/secrets/databases/hanadb.html.md index e2980cf4eb..9c199f0f16 100644 --- a/website/source/docs/secrets/databases/hanadb.html.md +++ b/website/source/docs/secrets/databases/hanadb.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "HANA - Database - Secrets Engines" +sidebar_title: "HanaDB" sidebar_current: "docs-secrets-databases-hanadb" description: |- HANA is one of the supported plugins for the database secrets engine. This diff --git a/website/source/docs/secrets/databases/index.html.md b/website/source/docs/secrets/databases/index.html.md index ac1ed31239..459a0e5d96 100644 --- a/website/source/docs/secrets/databases/index.html.md +++ b/website/source/docs/secrets/databases/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Database - Secrets Engines" +sidebar_title: "Databases" sidebar_current: "docs-secrets-databases" description: |- The database secrets engine generates database credentials dynamically based diff --git a/website/source/docs/secrets/databases/mongodb.html.md b/website/source/docs/secrets/databases/mongodb.html.md index 1dccaeb378..acf99437fa 100644 --- a/website/source/docs/secrets/databases/mongodb.html.md +++ b/website/source/docs/secrets/databases/mongodb.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "MongoDB - Database - Secrets Engines" +sidebar_title: "MongoDB" sidebar_current: "docs-secrets-databases-mongodb" description: |- MongoDB is one of the supported plugins for the database secrets engine. This diff --git a/website/source/docs/secrets/databases/mssql.html.md b/website/source/docs/secrets/databases/mssql.html.md index 547883fe19..9a3e00fe4a 100644 --- a/website/source/docs/secrets/databases/mssql.html.md +++ b/website/source/docs/secrets/databases/mssql.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "MSSQL - Database - Secrets Engines" +sidebar_title: "MSSQL" sidebar_current: "docs-secrets-databases-mssql" description: |- diff --git a/website/source/docs/secrets/databases/mysql-maria.html.md b/website/source/docs/secrets/databases/mysql-maria.html.md index 2875c46e6c..a67fa0df9d 100644 --- a/website/source/docs/secrets/databases/mysql-maria.html.md +++ b/website/source/docs/secrets/databases/mysql-maria.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "MySQL/MariaDB - Database - Secrets Engines" +sidebar_title: "MySQL/MariaDB" sidebar_current: "docs-secrets-databases-mysql-maria" description: |- MySQL is one of the supported plugins for the database secrets engine. This diff --git a/website/source/docs/secrets/databases/oracle.html.md b/website/source/docs/secrets/databases/oracle.html.md index 9df6320c07..ee4ee45dea 100644 --- a/website/source/docs/secrets/databases/oracle.html.md +++ b/website/source/docs/secrets/databases/oracle.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Oracle - Database - Secrets Engines" +sidebar_title: "Oracle" sidebar_current: "docs-secrets-databases-oracle" description: |- Oracle is one of the supported plugins for the database secrets engine. This diff --git a/website/source/docs/secrets/databases/postgresql.html.md b/website/source/docs/secrets/databases/postgresql.html.md index fa07819962..9d35705a0f 100644 --- a/website/source/docs/secrets/databases/postgresql.html.md +++ b/website/source/docs/secrets/databases/postgresql.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "PostgreSQL - Database - Secrets Engines" +sidebar_title: "PostgreSQL" sidebar_current: "docs-secrets-databases-postgresql" description: |- PostgreSQL is one of the supported plugins for the database secrets engine. diff --git a/website/source/docs/secrets/gcp/index.html.md b/website/source/docs/secrets/gcp/index.html.md index 96e1fe549d..99ac6c0f92 100644 --- a/website/source/docs/secrets/gcp/index.html.md +++ b/website/source/docs/secrets/gcp/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Google Cloud - Secrets Engines" +sidebar_title: "Google Cloud" sidebar_current: "docs-secrets-gcp" description: |- The Google Cloud secrets engine for Vault dynamically generates Google Cloud diff --git a/website/source/docs/secrets/identity/index.html.md b/website/source/docs/secrets/identity/index.html.md index 9e9a844617..176e776f12 100644 --- a/website/source/docs/secrets/identity/index.html.md +++ b/website/source/docs/secrets/identity/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Identity - Secrets Engines" +sidebar_title: "Identity" sidebar_current: "docs-secrets-identity" description: |- The Identity secrets engine for Vault manages client identities. diff --git a/website/source/docs/secrets/index.html.md b/website/source/docs/secrets/index.html.md index 49576192b2..10a8318541 100644 --- a/website/source/docs/secrets/index.html.md +++ b/website/source/docs/secrets/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Secrets Engines" +sidebar_title: "Secrets Engines" sidebar_current: "docs-secrets" description: |- Secrets engines are mountable engines that store or generate secrets in Vault. diff --git a/website/source/docs/secrets/kv/index.html.md b/website/source/docs/secrets/kv/index.html.md index b02984ea07..fb8c430038 100644 --- a/website/source/docs/secrets/kv/index.html.md +++ b/website/source/docs/secrets/kv/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "KV - Secrets Engines" +sidebar_title: "Key/Value" sidebar_current: "docs-secrets-kv" description: |- The KV secrets engine can store arbitrary secrets. diff --git a/website/source/docs/secrets/kv/kv-v1.html.md b/website/source/docs/secrets/kv/kv-v1.html.md index 61b9d875b7..a22a1c510d 100644 --- a/website/source/docs/secrets/kv/kv-v1.html.md +++ b/website/source/docs/secrets/kv/kv-v1.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "KV - Secrets Engines" +sidebar_title: "K/V Version 1" sidebar_current: "docs-secrets-kv-v1" description: |- The KV secrets engine can store arbitrary secrets. diff --git a/website/source/docs/secrets/kv/kv-v2.html.md b/website/source/docs/secrets/kv/kv-v2.html.md index 87514d476d..54d456a401 100644 --- a/website/source/docs/secrets/kv/kv-v2.html.md +++ b/website/source/docs/secrets/kv/kv-v2.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "KV - Secrets Engines" +sidebar_title: "K/V Version 2" sidebar_current: "docs-secrets-kv-v2" description: |- The KV secrets engine can store arbitrary secrets. diff --git a/website/source/docs/secrets/mongodb/index.html.md b/website/source/docs/secrets/mongodb/index.html.md index 3121a8f926..759229100a 100644 --- a/website/source/docs/secrets/mongodb/index.html.md +++ b/website/source/docs/secrets/mongodb/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "MongoDB - Secrets Engines" +sidebar_title: "MongoDB DEPRECATED" sidebar_current: "docs-secrets-mongodb" description: |- The mongodb secrets engine for Vault generates database credentials to access MongoDB. diff --git a/website/source/docs/secrets/mssql/index.html.md b/website/source/docs/secrets/mssql/index.html.md index b0aa015c78..157cb0089b 100644 --- a/website/source/docs/secrets/mssql/index.html.md +++ b/website/source/docs/secrets/mssql/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "MSSQL - Secrets Engines" +sidebar_title: "MSSQL DEPRECATED" sidebar_current: "docs-secrets-mssql" description: |- The MSSQL secrets engine for Vault generates database credentials to access Microsoft Sql Server. diff --git a/website/source/docs/secrets/mysql/index.html.md b/website/source/docs/secrets/mysql/index.html.md index 961998e409..3c1a174196 100644 --- a/website/source/docs/secrets/mysql/index.html.md +++ b/website/source/docs/secrets/mysql/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "MySQL - Secrets Engines" +sidebar_title: "MySQL DEPRECATED" sidebar_current: "docs-secrets-mysql" description: |- The MySQL secrets engine for Vault generates database credentials to access MySQL. diff --git a/website/source/docs/secrets/nomad/index.html.md b/website/source/docs/secrets/nomad/index.html.md index c949add401..1e9aa910ab 100644 --- a/website/source/docs/secrets/nomad/index.html.md +++ b/website/source/docs/secrets/nomad/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Nomad Secret Backend" +sidebar_title: "Nomad" sidebar_current: "docs-secrets-nomad" description: |- The Nomad secret backend for Vault generates tokens for Nomad dynamically. diff --git a/website/source/docs/secrets/pki/index.html.md b/website/source/docs/secrets/pki/index.html.md index 0100c8ec24..b1b0e8b516 100644 --- a/website/source/docs/secrets/pki/index.html.md +++ b/website/source/docs/secrets/pki/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "PKI - Secrets Engines" +sidebar_title: "PKI (Certificates)" sidebar_current: "docs-secrets-pki" description: |- The PKI secrets engine for Vault generates TLS certificates. diff --git a/website/source/docs/secrets/postgresql/index.html.md b/website/source/docs/secrets/postgresql/index.html.md index f11819a36c..741766938d 100644 --- a/website/source/docs/secrets/postgresql/index.html.md +++ b/website/source/docs/secrets/postgresql/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "PostgreSQL - Secrets Engines" +sidebar_title: "PostgreSQL DEPRECATED" sidebar_current: "docs-secrets-postgresql" description: |- The PostgreSQL secrets engine for Vault generates database credentials to access PostgreSQL. diff --git a/website/source/docs/secrets/rabbitmq/index.html.md b/website/source/docs/secrets/rabbitmq/index.html.md index 4a2c0236f6..f90d05f76e 100644 --- a/website/source/docs/secrets/rabbitmq/index.html.md +++ b/website/source/docs/secrets/rabbitmq/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "RabbitMQ - Secrets Engines" +sidebar_title: "RabbitMQ" sidebar_current: "docs-secrets-rabbitmq" description: |- The RabbitMQ secrets engine for Vault generates user credentials to access RabbitMQ. diff --git a/website/source/docs/secrets/ssh/dynamic-ssh-keys.html.md b/website/source/docs/secrets/ssh/dynamic-ssh-keys.html.md index 964834f3a8..849ee2e4a6 100644 --- a/website/source/docs/secrets/ssh/dynamic-ssh-keys.html.md +++ b/website/source/docs/secrets/ssh/dynamic-ssh-keys.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Dynamic SSH Keys - SSH - Secrets Engines" +sidebar_title: "Dynamic Key" sidebar_current: "docs-secrets-ssh-dynamic-ssh-keys" description: |- When using this type, the administrator registers a secret key with diff --git a/website/source/docs/secrets/ssh/index.html.md b/website/source/docs/secrets/ssh/index.html.md index 568d53331d..a9484c7194 100644 --- a/website/source/docs/secrets/ssh/index.html.md +++ b/website/source/docs/secrets/ssh/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "SSH - Secrets Engines" +sidebar_title: "SSH" sidebar_current: "docs-secrets-ssh" description: |- The Vault SSH secrets engine provides secure authentication and authorization diff --git a/website/source/docs/secrets/ssh/one-time-ssh-passwords.html.md b/website/source/docs/secrets/ssh/one-time-ssh-passwords.html.md index 7f845d83fa..2e4d0ed0c9 100644 --- a/website/source/docs/secrets/ssh/one-time-ssh-passwords.html.md +++ b/website/source/docs/secrets/ssh/one-time-ssh-passwords.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "One-Time SSH Passwords (OTP) - SSH - Secrets Engines" +sidebar_title: "SSH OTP" sidebar_current: "docs-secrets-ssh-one-time-ssh-passwords" description: |- The One-Time SSH Password (OTP) SSH secrets engine type allows a Vault server diff --git a/website/source/docs/secrets/ssh/signed-ssh-certificates.html.md b/website/source/docs/secrets/ssh/signed-ssh-certificates.html.md index 0127a57c73..fce8b4c408 100644 --- a/website/source/docs/secrets/ssh/signed-ssh-certificates.html.md +++ b/website/source/docs/secrets/ssh/signed-ssh-certificates.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Signed SSH Certificates - SSH - Secrets Engines" +sidebar_title: "Signed Certificates" sidebar_current: "docs-secrets-ssh-signed-ssh-certificates" description: |- The signed SSH certificates is the simplest and most powerful in terms of diff --git a/website/source/docs/secrets/totp/index.html.md b/website/source/docs/secrets/totp/index.html.md index a2d26f2fac..5950a71cb4 100644 --- a/website/source/docs/secrets/totp/index.html.md +++ b/website/source/docs/secrets/totp/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "TOTP - Secrets Engines" +sidebar_title: "TOTP" sidebar_current: "docs-secrets-totp" description: |- The TOTP secrets engine for Vault generates time-based one-time use passwords. diff --git a/website/source/docs/secrets/transit/index.html.md b/website/source/docs/secrets/transit/index.html.md index 75ad95a432..e814d80e28 100644 --- a/website/source/docs/secrets/transit/index.html.md +++ b/website/source/docs/secrets/transit/index.html.md @@ -1,6 +1,7 @@ --- layout: "docs" page_title: "Transit - Secrets Engines" +sidebar_title: "Transit" sidebar_current: "docs-secrets-transit" description: |- The transit secrets engine for Vault encrypts/decrypts data in-transit. It doesn't store any secrets. diff --git a/website/source/guides/upgrading/index.html.md b/website/source/docs/upgrading/index.html.md similarity index 97% rename from website/source/guides/upgrading/index.html.md rename to website/source/docs/upgrading/index.html.md index e08b4d5417..f48ca5a6bc 100644 --- a/website/source/guides/upgrading/index.html.md +++ b/website/source/docs/upgrading/index.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading Vault - Guides" -sidebar_current: "guides-upgrading" +sidebar_title: "Upgrade Guides" +sidebar_current: "docs-upgrading" description: |- These are general upgrade instructions for Vault for both non-HA and HA setups. Please ensure that you also read the version-specific upgrade notes. @@ -83,5 +84,3 @@ Upgrading installations of Vault which participate in [Enterprise Replication](/ - **Upgrade the replication secondary instances first** using appropriate guidance from the previous sections depending on whether each secondary instance is Non-HA or HA - Verify functionality of each secondary instance after upgrading - When satisfied with functionality of upgraded secondary instances, upgrade the primary instance - - diff --git a/website/source/guides/upgrading/upgrade-to-0.10.0.html.md b/website/source/docs/upgrading/upgrade-to-0.10.0.html.md similarity index 98% rename from website/source/guides/upgrading/upgrade-to-0.10.0.html.md rename to website/source/docs/upgrading/upgrade-to-0.10.0.html.md index 18eb69dd40..c5cd07b305 100644 --- a/website/source/guides/upgrading/upgrade-to-0.10.0.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.10.0.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.10.0 - Guides" -sidebar_current: "guides-upgrading-to-0.10.0" +sidebar_title: "Upgrade to 0.10.0" +sidebar_current: "docs-upgrading-to-0.10.0" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.10.0. Please read it carefully. @@ -17,11 +18,11 @@ for Vault 0.10.0 compared to 0.9.0. Please read it carefully. ### Database Plugin Compatibility The database plugin interface was enhanced to support some additional -functionality related to root credential rotation and supporting templated -URL strings. The changes were made in a backwards-compatible way and all +functionality related to root credential rotation and supporting templated +URL strings. The changes were made in a backwards-compatible way and all builtin plugins were updated with the new features. Custom plugins not built -into Vault will need to be upgraded to support templated URL strings and -root rotation. Additionally, the Initialize method was deprecated in favor +into Vault will need to be upgraded to support templated URL strings and +root rotation. Additionally, the Initialize method was deprecated in favor of a new Init method that supports configuration modifications that occur in the plugin back to the primary data store. diff --git a/website/source/guides/upgrading/upgrade-to-0.10.2.html.md b/website/source/docs/upgrading/upgrade-to-0.10.2.html.md similarity index 91% rename from website/source/guides/upgrading/upgrade-to-0.10.2.html.md rename to website/source/docs/upgrading/upgrade-to-0.10.2.html.md index 781a5be5b8..30e375ed83 100644 --- a/website/source/guides/upgrading/upgrade-to-0.10.2.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.10.2.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.10.2 - Guides" -sidebar_current: "guides-upgrading-to-0.10.2" +sidebar_title: "Upgrade to 0.10.2" +sidebar_current: "docs-upgrading-to-0.10.2" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.10.2. Please read it carefully. diff --git a/website/source/guides/upgrading/upgrade-to-0.10.4.html.md b/website/source/docs/upgrading/upgrade-to-0.10.4.html.md similarity index 86% rename from website/source/guides/upgrading/upgrade-to-0.10.4.html.md rename to website/source/docs/upgrading/upgrade-to-0.10.4.html.md index 51b9e70f36..9120213864 100644 --- a/website/source/guides/upgrading/upgrade-to-0.10.4.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.10.4.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.10.4 - Guides" -sidebar_current: "guides-upgrading-to-0.10.4" +sidebar_title: "Upgrade to 0.10.4" +sidebar_current: "docs-upgrading-to-0.10.4" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.10.4. Please read it carefully. @@ -12,7 +13,7 @@ description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.10.4 compared to 0.10.3. Please read it carefully. -### Revocations of dynamic secrets leases now asynchronous +### Revocations of dynamic secrets leases now asynchronous Dynamic secret lease revocation are now queued/asynchronous rather than synchronous. This allows Vault to take responsibility for revocation @@ -27,7 +28,7 @@ The CLI will no longer retry commands on 5xx errors. This was a source of confusion to users as to why Vault would "hang" before returning a 5xx error. The Go API client still defaults to two retries. -### Identity Entity Alias metadata +### Identity Entity Alias metadata You can no longer manually set metadata on entity aliases. All alias data (except the canonical entity ID it refers to) diff --git a/website/source/guides/upgrading/upgrade-to-0.11.0.html.md b/website/source/docs/upgrading/upgrade-to-0.11.0.html.md similarity index 97% rename from website/source/guides/upgrading/upgrade-to-0.11.0.html.md rename to website/source/docs/upgrading/upgrade-to-0.11.0.html.md index 44c3c03b12..c52825711c 100644 --- a/website/source/guides/upgrading/upgrade-to-0.11.0.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.11.0.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.11.0 - Guides" -sidebar_current: "guides-upgrading-to-0.11.0" +sidebar_title: "Upgrade to 0.11.0" +sidebar_current: "docs-upgrading-to-0.11.0" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.11.0. Please read it carefully. @@ -16,14 +17,14 @@ for Vault 0.11.0 compared to 0.10.0. Please read it carefully. ### Nomad Integration -Users that integrate Vault with Nomad should hold off on upgrading. A modification to +Users that integrate Vault with Nomad should hold off on upgrading. A modification to Vault's API is causing a runtime issue with the Nomad to Vault integration. ### Minified JSON Policies -Users that generate policies in minfied JSON may cause a parsing errors due to -a regression in the policy parser when it encounters repeating brackets. Although -HCL is the official language for policies in Vault, HCL is JSON compatible and JSON +Users that generate policies in minfied JSON may cause a parsing errors due to +a regression in the policy parser when it encounters repeating brackets. Although +HCL is the official language for policies in Vault, HCL is JSON compatible and JSON should work in place of HCL. To work around this error, pretty print the JSON policies or add spaces between repeating brackets. This regression will be addressed in a future release. diff --git a/website/source/guides/upgrading/upgrade-to-0.11.2.html.md b/website/source/docs/upgrading/upgrade-to-0.11.2.html.md similarity index 85% rename from website/source/guides/upgrading/upgrade-to-0.11.2.html.md rename to website/source/docs/upgrading/upgrade-to-0.11.2.html.md index cbcb05b394..741dc25acc 100644 --- a/website/source/guides/upgrading/upgrade-to-0.11.2.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.11.2.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.11.2 - Guides" -sidebar_current: "guides-upgrading-to-0.11.2" +sidebar_title: "Upgrade to 0.11.2" +sidebar_current: "docs-upgrading-to-0.11.2" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.11.2. Please read it carefully. @@ -14,11 +15,11 @@ for Vault 0.11.2 compared to 0.11.1. Please read it carefully. ### `sys/seal-status` Behavior Change -The `sys/seal-status` endpoint now includes an initialized boolean in the -output. If Vault is not initialized, it will return a 200 with this value +The `sys/seal-status` endpoint now includes an initialized boolean in the +output. If Vault is not initialized, it will return a 200 with this value set false instead of a 400 ### Mount Config Passthrough Headers -The mount config option for `passthrough_request_headers` will now deny +The mount config option for `passthrough_request_headers` will now deny certain headers from being provided to backends based on a global denylist. diff --git a/website/source/guides/upgrading/upgrade-to-0.5.0.html.md b/website/source/docs/upgrading/upgrade-to-0.5.0.html.md similarity index 98% rename from website/source/guides/upgrading/upgrade-to-0.5.0.html.md rename to website/source/docs/upgrading/upgrade-to-0.5.0.html.md index 9ac5e57616..4afd0e3c70 100644 --- a/website/source/guides/upgrading/upgrade-to-0.5.0.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.5.0.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.5.0 - Guides" -sidebar_current: "guides-upgrading-to-0.5.0" +sidebar_title: "Upgrade to 0.5.0" +sidebar_current: "docs-upgrading-to-0.5.0" description: |- This page contains the full list of breaking changes for Vault 0.5, including actions you must take to facilitate a smooth upgrade path. diff --git a/website/source/guides/upgrading/upgrade-to-0.5.1.html.md b/website/source/docs/upgrading/upgrade-to-0.5.1.html.md similarity index 96% rename from website/source/guides/upgrading/upgrade-to-0.5.1.html.md rename to website/source/docs/upgrading/upgrade-to-0.5.1.html.md index 2256511a32..8dc2cb5c86 100644 --- a/website/source/guides/upgrading/upgrade-to-0.5.1.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.5.1.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.5.1 - Guides" -sidebar_current: "guides-upgrading-to-0.5.1" +sidebar_title: "Upgrade to 0.5.1" +sidebar_current: "docs-upgrading-to-0.5.1" description: |- This page contains the list of breaking changes for Vault 0.5.1. Please read it carefully. diff --git a/website/source/guides/upgrading/upgrade-to-0.6.0.html.md b/website/source/docs/upgrading/upgrade-to-0.6.0.html.md similarity index 95% rename from website/source/guides/upgrading/upgrade-to-0.6.0.html.md rename to website/source/docs/upgrading/upgrade-to-0.6.0.html.md index 0b4fcef307..36cc0dc9fc 100644 --- a/website/source/guides/upgrading/upgrade-to-0.6.0.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.6.0.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.6.0 - Guides" -sidebar_current: "guides-upgrading-to-0.6.0" +sidebar_title: "Upgrade to 0.6.0" +sidebar_current: "docs-upgrading-to-0.6.0" description: |- This page contains the list of breaking changes for Vault 0.6. Please read it carefully. diff --git a/website/source/guides/upgrading/upgrade-to-0.6.1.html.md b/website/source/docs/upgrading/upgrade-to-0.6.1.html.md similarity index 97% rename from website/source/guides/upgrading/upgrade-to-0.6.1.html.md rename to website/source/docs/upgrading/upgrade-to-0.6.1.html.md index 0b837337b0..8802e603e6 100644 --- a/website/source/guides/upgrading/upgrade-to-0.6.1.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.6.1.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.6.1 - Guides" -sidebar_current: "guides-upgrading-to-0.6.1" +sidebar_title: "Upgrade to 0.6.1" +sidebar_current: "docs-upgrading-to-0.6.1" description: |- This page contains the list of breaking changes for Vault 0.6.1. Please read it carefully. diff --git a/website/source/guides/upgrading/upgrade-to-0.6.2.html.md b/website/source/docs/upgrading/upgrade-to-0.6.2.html.md similarity index 97% rename from website/source/guides/upgrading/upgrade-to-0.6.2.html.md rename to website/source/docs/upgrading/upgrade-to-0.6.2.html.md index 256d811efc..a0b6c948ea 100644 --- a/website/source/guides/upgrading/upgrade-to-0.6.2.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.6.2.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.6.2 - Guides" -sidebar_current: "guides-upgrading-to-0.6.2" +sidebar_title: "Upgrade to 0.6.2" +sidebar_current: "docs-upgrading-to-0.6.2" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.6.2. Please read it carefully. diff --git a/website/source/guides/upgrading/upgrade-to-0.6.3.html.md b/website/source/docs/upgrading/upgrade-to-0.6.3.html.md similarity index 93% rename from website/source/guides/upgrading/upgrade-to-0.6.3.html.md rename to website/source/docs/upgrading/upgrade-to-0.6.3.html.md index 51cf62c709..0798893e3d 100644 --- a/website/source/guides/upgrading/upgrade-to-0.6.3.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.6.3.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.6.3 - Guides" -sidebar_current: "guides-upgrading-to-0.6.3" +sidebar_title: "Upgrade to 0.6.3" +sidebar_current: "docs-upgrading-to-0.6.3" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.6.3. Please read it carefully. diff --git a/website/source/guides/upgrading/upgrade-to-0.6.4.html.md b/website/source/docs/upgrading/upgrade-to-0.6.4.html.md similarity index 97% rename from website/source/guides/upgrading/upgrade-to-0.6.4.html.md rename to website/source/docs/upgrading/upgrade-to-0.6.4.html.md index 1daaf5860a..39b87854c5 100644 --- a/website/source/guides/upgrading/upgrade-to-0.6.4.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.6.4.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.6.4 - Guides" -sidebar_current: "guides-upgrading-to-0.6.4" +sidebar_title: "Upgrade to 0.6.4" +sidebar_current: "docs-upgrading-to-0.6.4" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.6.4. Please read it carefully. diff --git a/website/source/guides/upgrading/upgrade-to-0.7.0.html.md b/website/source/docs/upgrading/upgrade-to-0.7.0.html.md similarity index 95% rename from website/source/guides/upgrading/upgrade-to-0.7.0.html.md rename to website/source/docs/upgrading/upgrade-to-0.7.0.html.md index cffa2bac04..e196e0ad3f 100644 --- a/website/source/guides/upgrading/upgrade-to-0.7.0.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.7.0.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.7.0 - Guides" -sidebar_current: "guides-upgrading-to-0.7.0" +sidebar_title: "Upgrade to 0.7.0" +sidebar_current: "docs-upgrading-to-0.7.0" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.7.0. Please read it carefully. diff --git a/website/source/guides/upgrading/upgrade-to-0.8.0.html.md b/website/source/docs/upgrading/upgrade-to-0.8.0.html.md similarity index 95% rename from website/source/guides/upgrading/upgrade-to-0.8.0.html.md rename to website/source/docs/upgrading/upgrade-to-0.8.0.html.md index 155bbfdc71..b97e649bcb 100644 --- a/website/source/guides/upgrading/upgrade-to-0.8.0.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.8.0.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.8.0 - Guides" -sidebar_current: "guides-upgrading-to-0.8.0" +sidebar_title: "Upgrade to 0.8.0" +sidebar_current: "docs-upgrading-to-0.8.0" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.8.0. Please read it carefully. diff --git a/website/source/guides/upgrading/upgrade-to-0.9.0.html.md b/website/source/docs/upgrading/upgrade-to-0.9.0.html.md similarity index 98% rename from website/source/guides/upgrading/upgrade-to-0.9.0.html.md rename to website/source/docs/upgrading/upgrade-to-0.9.0.html.md index 6e638b6ba3..da181456a0 100644 --- a/website/source/guides/upgrading/upgrade-to-0.9.0.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.9.0.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.9.0 - Guides" -sidebar_current: "guides-upgrading-to-0.9.0" +sidebar_title: "Upgrade to 0.9.0" +sidebar_current: "docs-upgrading-to-0.9.0" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.9.0. Please read it carefully. diff --git a/website/source/guides/upgrading/upgrade-to-0.9.1.html.md b/website/source/docs/upgrading/upgrade-to-0.9.1.html.md similarity index 95% rename from website/source/guides/upgrading/upgrade-to-0.9.1.html.md rename to website/source/docs/upgrading/upgrade-to-0.9.1.html.md index a98833a7f7..71a5bc07c4 100644 --- a/website/source/guides/upgrading/upgrade-to-0.9.1.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.9.1.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.9.1 - Guides" -sidebar_current: "guides-upgrading-to-0.9.1" +sidebar_title: "Upgrade to 0.9.1" +sidebar_current: "docs-upgrading-to-0.9.1" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.9.1. Please read it carefully. diff --git a/website/source/guides/upgrading/upgrade-to-0.9.2.html.md b/website/source/docs/upgrading/upgrade-to-0.9.2.html.md similarity index 96% rename from website/source/guides/upgrading/upgrade-to-0.9.2.html.md rename to website/source/docs/upgrading/upgrade-to-0.9.2.html.md index e5cf40ec9c..7c9cad7a11 100644 --- a/website/source/guides/upgrading/upgrade-to-0.9.2.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.9.2.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.9.2 - Guides" -sidebar_current: "guides-upgrading-to-0.9.2" +sidebar_title: "Upgrade to 0.9.2" +sidebar_current: "docs-upgrading-to-0.9.2" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.9.2. Please read it carefully. diff --git a/website/source/guides/upgrading/upgrade-to-0.9.3.html.md b/website/source/docs/upgrading/upgrade-to-0.9.3.html.md similarity index 84% rename from website/source/guides/upgrading/upgrade-to-0.9.3.html.md rename to website/source/docs/upgrading/upgrade-to-0.9.3.html.md index 0d721a40e0..8a7f1875de 100644 --- a/website/source/guides/upgrading/upgrade-to-0.9.3.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.9.3.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.9.3 - Guides" -sidebar_current: "guides-upgrading-to-0.9.3" +sidebar_title: "Upgrade to 0.9.3" +sidebar_current: "docs-upgrading-to-0.9.3" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.9.3. Please read it carefully. @@ -14,4 +15,3 @@ instructions although any upgrade notices for 0.9.2 apply if you are coming from a previous version. Please see the [0.9.2 upgrade guide](/guides/upgrading/upgrade-to-0.9.2.html) for notes on upgrading to 0.9.3. - diff --git a/website/source/guides/upgrading/upgrade-to-0.9.6.html.md b/website/source/docs/upgrading/upgrade-to-0.9.6.html.md similarity index 91% rename from website/source/guides/upgrading/upgrade-to-0.9.6.html.md rename to website/source/docs/upgrading/upgrade-to-0.9.6.html.md index 29259e0c9b..4dbd1592e6 100644 --- a/website/source/guides/upgrading/upgrade-to-0.9.6.html.md +++ b/website/source/docs/upgrading/upgrade-to-0.9.6.html.md @@ -1,7 +1,8 @@ --- -layout: "guides" +layout: "docs" page_title: "Upgrading to Vault 0.9.6 - Guides" -sidebar_current: "guides-upgrading-to-0.9.6" +sidebar_title: "Upgrade to 0.9.6" +sidebar_current: "docs-upgrading-to-0.9.6" description: |- This page contains the list of deprecations and important or breaking changes for Vault 0.9.6. Please read it carefully. diff --git a/website/source/intro/use-cases.html.markdown b/website/source/docs/use-cases/index.html.md similarity index 98% rename from website/source/intro/use-cases.html.markdown rename to website/source/docs/use-cases/index.html.md index 4f9df23815..e7afe94228 100644 --- a/website/source/intro/use-cases.html.markdown +++ b/website/source/docs/use-cases/index.html.md @@ -1,6 +1,7 @@ --- -layout: "intro" +layout: "docs" page_title: "Use Cases" +sidebar_title: "Use Cases" sidebar_current: "use-cases" description: |- This page lists some concrete use cases for Vault, but the possible use cases are much broader than what we cover. diff --git a/website/source/intro/vs/chef-puppet-etc.html.md b/website/source/docs/vs/chef-puppet-etc.html.md similarity index 98% rename from website/source/intro/vs/chef-puppet-etc.html.md rename to website/source/docs/vs/chef-puppet-etc.html.md index df1eea3be0..28e009f5c8 100644 --- a/website/source/intro/vs/chef-puppet-etc.html.md +++ b/website/source/docs/vs/chef-puppet-etc.html.md @@ -1,6 +1,7 @@ --- -layout: "intro" +layout: "docs" page_title: "Vault vs. Chef, Puppet, etc." +sidebar_title: "Chef, Puppet, etc." sidebar_current: "vs-other-chef" description: |- Comparison between Vault and configuration management solutions such as Chef, Puppet, etc. diff --git a/website/source/intro/vs/consul.html.md b/website/source/docs/vs/consul.html.md similarity index 97% rename from website/source/intro/vs/consul.html.md rename to website/source/docs/vs/consul.html.md index 7f392fb5d1..2595a1719a 100644 --- a/website/source/intro/vs/consul.html.md +++ b/website/source/docs/vs/consul.html.md @@ -1,6 +1,7 @@ --- -layout: "intro" +layout: "docs" page_title: "Vault vs. Consul" +sidebar_title: "Consul" sidebar_current: "vs-other-consul" description: |- Comparison between Vault and attempting to store secrets with Consul. @@ -29,4 +30,3 @@ is used for durable storage of encrypted data at rest and provides coordination so that Vault can be highly available and fault tolerant. Vault provides the higher level policy management, secret leasing, audit logging, and automatic revocation. - diff --git a/website/source/intro/vs/custom.html.markdown b/website/source/docs/vs/custom.html.md similarity index 95% rename from website/source/intro/vs/custom.html.markdown rename to website/source/docs/vs/custom.html.md index 1b815a2e57..cb3f8c3353 100644 --- a/website/source/intro/vs/custom.html.markdown +++ b/website/source/docs/vs/custom.html.md @@ -1,6 +1,7 @@ --- -layout: "intro" +layout: "docs" page_title: "Vault vs. Custom Solutions" +sidebar_title: "Custom Solutions" sidebar_current: "vs-other-custom" description: |- Comparison between Vault and writing a custom solution. diff --git a/website/source/docs/vs/dropbox.html.md b/website/source/docs/vs/dropbox.html.md new file mode 100644 index 0000000000..91a0ac1109 --- /dev/null +++ b/website/source/docs/vs/dropbox.html.md @@ -0,0 +1,18 @@ +--- +layout: "docs" +page_title: "Vault vs. Dropbox" +sidebar_title: "Dropbox" +sidebar_current: "vs-other-dropbox" +description: |- + Comparison between Vault and attempting to store secrets with Dropbox. +--- + +# Vault vs. Dropbox + +It is an unfortunate truth that many organizations, big and small, often use Dropbox as a mechanism for storing secrets. It is so common that we've decided to make a special section for it instead of throwing it under the "custom solutions" header. + +Dropbox is not made for storing secrets. Even if you're using something such as an encrypted disk image within Dropbox, it is subpar versus a real secret storage server. + +A real secret management tool such as Vault has a stronger security model, integrates with many different authentication services, stores audit logs, can generate dynamic secrets, and more. + +And, due to `vault` CLI, using `vault` on a developer machine is simple! diff --git a/website/source/intro/vs/hsm.html.md b/website/source/docs/vs/hsm.html.md similarity index 98% rename from website/source/intro/vs/hsm.html.md rename to website/source/docs/vs/hsm.html.md index 34476e5784..c92e36a887 100644 --- a/website/source/intro/vs/hsm.html.md +++ b/website/source/docs/vs/hsm.html.md @@ -1,6 +1,7 @@ --- -layout: "intro" +layout: "docs" page_title: "Vault vs. HSMs" +sidebar_title: "HSMs" sidebar_current: "vs-other-hsm" description: |- Comparison between Vault and HSM systems. diff --git a/website/source/intro/vs/index.html.markdown b/website/source/docs/vs/index.html.md similarity index 92% rename from website/source/intro/vs/index.html.markdown rename to website/source/docs/vs/index.html.md index ce7fc0b418..116e09ff77 100644 --- a/website/source/intro/vs/index.html.markdown +++ b/website/source/docs/vs/index.html.md @@ -1,6 +1,7 @@ --- -layout: "intro" +layout: "docs" page_title: "Vault vs. Other Software" +sidebar_title: "Vault vs. Other Software" sidebar_current: "vs-other" description: |- Comparisons between Vault and other software that claim to store secrets in some capacity. diff --git a/website/source/intro/vs/keywhiz.html.md b/website/source/docs/vs/keywhiz.html.md similarity index 91% rename from website/source/intro/vs/keywhiz.html.md rename to website/source/docs/vs/keywhiz.html.md index de51589d49..45935f829f 100644 --- a/website/source/intro/vs/keywhiz.html.md +++ b/website/source/docs/vs/keywhiz.html.md @@ -1,6 +1,7 @@ --- -layout: "intro" +layout: "docs" page_title: "Vault vs. Keywhiz" +sidebar_title: "Keywhiz" sidebar_current: "vs-other-keywhiz" description: |- Comparison between Vault and Keywhiz. @@ -13,7 +14,7 @@ client/server architecture based on a RESTful API. Clients of Keywhiz access secrets through the API by authenticating with a client certificate or cookie. To allow for flexible consumption of secrets by arbitrary software, clients may also make use of a FUSE filesystem to expose secrets as files on disk, and use -Unix file permissions for access control. Human operators may authenticate +Unix file permissions for access control. Human operators may authenticate using a cookie-based authentication either via command line utilities or through a management web interface. @@ -26,7 +27,7 @@ operator usage. Vault and Keywhiz expose secrets via an API. The Vault [ACL system](/docs/concepts/policies.html) is used to protect secrets and gate -access, similarly to the Keywhiz ACL system. With Vault, all auditing is done +access, similarly to the Keywhiz ACL system. With Vault, all auditing is done server side using [audit devices](/docs/audit/index.html). Keywhiz focuses on storage and distribution of secrets and supports rotation diff --git a/website/source/intro/vs/kms.html.md b/website/source/docs/vs/kms.html.md similarity index 97% rename from website/source/intro/vs/kms.html.md rename to website/source/docs/vs/kms.html.md index eb290dba97..a54ba6fb15 100644 --- a/website/source/intro/vs/kms.html.md +++ b/website/source/docs/vs/kms.html.md @@ -1,6 +1,7 @@ --- -layout: "intro" +layout: "docs" page_title: "Vault vs. Amazon Key Management Service" +sidebar_title: "Amazon KMS" sidebar_current: "vs-other-kms" description: |- Comparison between Vault and Amazon Key Management Service. @@ -37,4 +38,3 @@ procedure after a potential compromise. Vault is an open source tool that can be deployed to any environment, and does not require any special hardware. This makes it well suited for cloud environments where HSMs are not available or are cost prohibitive. - diff --git a/website/source/intro/index.html.markdown b/website/source/docs/what-is-vault/index.html.md similarity index 98% rename from website/source/intro/index.html.markdown rename to website/source/docs/what-is-vault/index.html.md index 6b299ed29e..180a38dd2d 100644 --- a/website/source/intro/index.html.markdown +++ b/website/source/docs/what-is-vault/index.html.md @@ -1,6 +1,7 @@ --- -layout: "intro" +layout: "docs" page_title: "Introduction" +sidebar_title: "What is Vault?" sidebar_current: "what" description: |- Welcome to the intro guide to Vault! This guide is the best place to start with Vault. We cover what Vault is, what problems it can solve, how it compares to existing software, and contains a quick start for using Vault. diff --git a/website/source/downloads.html.erb b/website/source/downloads.html.erb index 4ebaa55aa3..7e8399f7ab 100644 --- a/website/source/downloads.html.erb +++ b/website/source/downloads.html.erb @@ -1,61 +1,12 @@ --- -layout: "downloads" +layout: "inner" page_title: "Download Vault" -sidebar_current: "downloads-vault" description: |- Download Vault --- -

    Download Vault

    - -
    -
    -
    -

    - Below are the available downloads for the latest version of Vault - (<%= latest_version %>). Please download the proper package for your - operating system and architecture. -

    -

    - You can find the - - SHA256 checksums for Vault <%= latest_version %> - - online and you can - - verify the checksums signature file - - which has been signed using HashiCorp's GPG key. - You can also download older versions of Vault from the releases service. -

    -

    Check out the v<%= latest_version %> CHANGELOG for information on the latest release.

    -

    Community resources are available to learn more about Vault and interact with the community. -

    -
    - - <% product_versions.each do |os, arches| %> - <% next if os == "web" %> -
    -
    -
    <%= system_icon(os) %>
    -
    -

    <%= pretty_os(os) %>

    - -
    -
    -
    -
    - <% end %> - - -
    + diff --git a/website/source/guides/encryption/index.html.md b/website/source/guides/encryption/index.html.md index 8f0bd2c61e..ce4d9d7f91 100644 --- a/website/source/guides/encryption/index.html.md +++ b/website/source/guides/encryption/index.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Encryption as a Service - Guides" +sidebar_title: "Encryption as a Service" sidebar_current: "guides-encryption" description: |- The transit secrets engine handles cryptographic functions on data in-transit. diff --git a/website/source/guides/encryption/spring-demo.html.md b/website/source/guides/encryption/spring-demo.html.md index 4be1a30f04..0796b45916 100644 --- a/website/source/guides/encryption/spring-demo.html.md +++ b/website/source/guides/encryption/spring-demo.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Java Application Demo - Guides" +sidebar_title: "Java Application Demo" sidebar_current: "guides-encryption-spring-demo" description: |- This guide discusses the concepts necessary to help users @@ -20,7 +21,7 @@ with Vault](https://www.hashicorp.com/resources/solutions-engineering-webinar-series-episode-2-vault) webinar. -[![YouTube](/assets/images/vault-java-demo-1.png)](https://youtu.be/NxL2-XuZ3kc) +[![YouTube](/img/vault-java-demo-1.png)](https://youtu.be/NxL2-XuZ3kc) The Java application in this demo leverages the [_Spring Cloud Vault_](https://cloud.spring.io/spring-cloud-vault/) library which provides @@ -30,7 +31,7 @@ environment. ## Reference Material -- [Encryption as a Service](/guides/encryption/transit.html) +- [Encryption as a Service](/guides/encryption/transit.html) - [Manage secrets, access, and encryption in the public cloud with Vault](https://www.hashicorp.com/resources/solutions-engineering-webinar-series-episode-2-vault) @@ -60,7 +61,7 @@ data. Your system can communicate with Vault easily through the Vault API to encrypt and decrypt your data, and the encryption keys never have to leave the Vault. -![Encryption as a Service](/assets/images/vault-eaas.png) +![Encryption as a Service](/img/vault-eaas.png) ## Prerequisites @@ -100,7 +101,7 @@ In this guide, you will perform the following: 1. [Run the demo application](#step3) 1. [Reload the Static Secrets](#step4) -![Encryption as a Service](/assets/images/vault-java-demo-10.png) +![Encryption as a Service](/img/vault-java-demo-10.png) ### Step 1: Review the demo application implementation @@ -275,11 +276,11 @@ click **Sign In**. Select the **`transit/`** secrets engine, and you should find an encryption key named, "`order`". -![Vault UI](/assets/images/vault-java-demo-2.png) +![Vault UI](/img/vault-java-demo-2.png) Under the **Policies**, verify that the `order` policy exists. -![Vault UI](/assets/images/vault-java-demo-3.png) +![Vault UI](/img/vault-java-demo-3.png) This `order` policy is for the application. It permits `read` on the `database/creds/order` path so that the demo app can get a dynamically generated @@ -429,7 +430,7 @@ and SSH into the demo virtual machine. If everything looked fine in [Step 2](#step2), you are ready to write some data. -![Vault UI](/assets/images/vault-java-demo-9.png) +![Vault UI](/img/vault-java-demo-9.png) You have [verified in the `spring` log](#task-3-examine-the-sprig-container) that the demo app successfully retrieved a database credential from the Vault @@ -462,7 +463,7 @@ EOF [Postman](https://www.getpostman.com/apps) instead of cURL to invoke the API if you prefer. -![Postman](/assets/images/vault-java-demo-4.png) +![Postman](/img/vault-java-demo-4.png) The order data you sent gets encrypted by Vault. The database only sees the @@ -518,20 +519,20 @@ Vault UI makes it easy to decrypt the data. In the **Secrets** tab, select **`transit/` > `orders`**, and select **Key actions**. -![Web UI](/assets/images/vault-java-demo-5.png) +![Web UI](/img/vault-java-demo-5.png) Select **Decrypt** from the transit actions. Now, copy the ciphertext from the **`orders`** table and paste it in. -![Web UI](/assets/images/vault-java-demo-6.png) +![Web UI](/img/vault-java-demo-6.png) Click **Decrypt**. -![Web UI](/assets/images/vault-java-demo-7.png) +![Web UI](/img/vault-java-demo-7.png) Finally, click **Decode from base64** to reveal the customer name. -![Web UI](/assets/images/vault-java-demo-8.png) +![Web UI](/img/vault-java-demo-8.png) ### Step 4: Reloading the Static Secrets @@ -573,7 +574,7 @@ The demo app retrieved the secret from `secret/spring-vault-demo` and has a local copy. If someone (or perhaps another app) updates the secret, it makes the secret held by the demo app to be obsolete. -![Static Secret](/assets/images/vault-java-demo-11.png) +![Static Secret](/img/vault-java-demo-11.png) Spring offers [Spring Boot Actuator](https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready) diff --git a/website/source/guides/encryption/transit-rewrap.html.md b/website/source/guides/encryption/transit-rewrap.html.md index a5335e7ee3..3a5230353b 100644 --- a/website/source/guides/encryption/transit-rewrap.html.md +++ b/website/source/guides/encryption/transit-rewrap.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Transit Secrets Re-wrapping - Guides" +sidebar_title: "Transit Secrets Re-wrapping" sidebar_current: "guides-encryption-transit-rewrap" description: |- The goal of this guide is to demonstrate one possible way to re-wrap data after @@ -21,7 +22,7 @@ large files such as images, can be protected with the transit engine. This EaaS function can augment or eliminate the need for Transparent Data Encryption (TDE) with databases to encrypt the contents of a bucket, volume, and disk, etc. -![Encryption as a Service](/assets/images/vault-encryption.png) +![Encryption as a Service](/img/vault-encryption.png) ## Encryption Key Rotation @@ -36,7 +37,7 @@ rotating an encryption key in the transit engine in Vault. ## Reference Material -- [Encryption as a Service](/guides/encryption/transit.html) +- [Encryption as a Service](/guides/encryption/transit.html) - [Transit Secret Engine](/docs/secrets/transit/index.html) - [Transit Secret Engine API](/api/secret/transit/index.html) - [Transparent Data Encryption in the Modern Datacenter](https://www.hashicorp.com/blog/transparent-data-encryption-in-the-modern-datacenter) diff --git a/website/source/guides/encryption/transit.html.md b/website/source/guides/encryption/transit.html.md index 3933518d5d..19119c7951 100644 --- a/website/source/guides/encryption/transit.html.md +++ b/website/source/guides/encryption/transit.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Encryption as a Service - Guides" +sidebar_title: "Encryption as a Service" sidebar_current: "guides-encryption-transit" description: |- HashiCorp Vault's transit secrets engine handles cryptographic functions on data in-transit. It can also viewed as _encryption as a service_. @@ -62,7 +63,7 @@ AES 256-bit CBC encryption (TLS in transit). Even if an attacker were able to access the raw data, they would only have encrypted bits. This means attackers would need to compromise multiple systems before exfiltrating data. -![Encryption as a Service](/assets/images/vault-encryption.png) +![Encryption as a Service](/img/vault-encryption.png) This guide demonstrates the basics of the `transit` secrets engine. @@ -188,12 +189,12 @@ Open a web browser and launch the Vault UI (e.g. http://127.0.0.1:8200/ui) and t 1. Select **Enable new engine** and select **Transit** from **Secrets engine type** drop-down list. - ![Enable new engine](/assets/images/vault-secrets-enable.png) + ![Enable new engine](/img/vault-secrets-enable.png) 1. Click **Enable Engine**. 1. Select **Create encryption key** and enter `orders` in the **Name** field. - ![Create a key](/assets/images/vault-transit-1.png) + ![Create a key](/img/vault-transit-1.png) 1. Click **Create encryption key** to complete. @@ -280,11 +281,11 @@ database) or pass it to another application. 1. Select the **orders** encryption key. 1. Select **Key actions**. - ![Key action](/assets/images/vault-transit-2.png) + ![Key action](/img/vault-transit-2.png) 1. Make sure that **Encrypt** is selected under **TRANSIT ACTIONS**, and then enter "credit-card-number" in the **Plaintext** field. - ![Encrypt plaintext](/assets/images/vault-transit-3.png) + ![Encrypt plaintext](/img/vault-transit-3.png) 1. Click **Encode to base64** to encode the plaintext. @@ -292,7 +293,7 @@ enter "credit-card-number" in the **Plaintext** field. Vault does *NOT* store any of this data. The output you received is the ciphertext. You can click **Copy** to copy the resulting ciphertext and store it at the desired location (e.g. MySQL database) or pass it to another application. -![Encrypt plaintext](/assets/images/vault-transit-4.png) +![Encrypt plaintext](/img/vault-transit-4.png) @@ -365,7 +366,7 @@ credit-card-number 1. Make sure that **Decrypt** is selected under **TRANSIT ACTIONS**, and then enter the ciphertext you wish to decrypt. - ![Decrypt ciphertext](/assets/images/vault-transit-5.png) + ![Decrypt ciphertext](/img/vault-transit-5.png) 1. Click **Decrypt**. diff --git a/website/source/guides/getting-started/index.html.md b/website/source/guides/getting-started/index.html.md index e3f2634a73..d315704a55 100644 --- a/website/source/guides/getting-started/index.html.md +++ b/website/source/guides/getting-started/index.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Guides" +sidebar_title: "Getting Started" sidebar_current: "getting-started" description: |- This section takes you to the Getting Started section. diff --git a/website/source/guides/identity/approle-trusted-entities.html.md b/website/source/guides/identity/approle-trusted-entities.html.md index b6aa594ae0..240892eb35 100644 --- a/website/source/guides/identity/approle-trusted-entities.html.md +++ b/website/source/guides/identity/approle-trusted-entities.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "AppRole With Terraform & Chef - Guides" +sidebar_title: "AppRole with Terraform and Chef" sidebar_current: "guides-identity-approle-tf-chef" description: |- This guide discusses the concepts necessary to help users @@ -17,7 +18,7 @@ the question of how best to deliver the Role ID and Secret ID were brought up, and the role of trusted entities (Terraform, Chef, Nomad, Kubernetes, etc.) was mentioned. -![AppRole auth method workflow](/assets/images/vault-approle-workflow2.png) +![AppRole auth method workflow](/img/vault-approle-workflow2.png) This _intermediate_ Vault guide aims to provide a **simple**, **end-to-end** example of how to use Vault's [AppRole authentication @@ -31,7 +32,7 @@ with Terraform and Chef](https://www.hashicorp.com/resources/delivering-secret-zero-vault-approle-terraform-chef) webinar. -[![YouTube](/assets/images/vault-approle-youtube.png)](https://youtu.be/OIcIzFWjThM) +[![YouTube](/img/vault-approle-youtube.png)](https://youtu.be/OIcIzFWjThM) -> **NOTE:** This is a proof of concept and **NOT SUITABLE FOR PRODUCTION USE**. @@ -119,7 +120,7 @@ appropriate mounts and policies in Vault for this demo. The scenario in this guide uses Terraform and Chef as trusted entities to deliver `RoleID` and `SecretID`. -![AppRole auth method workflow](/assets/images/vault-approle-tf-chef.png) +![AppRole auth method workflow](/img/vault-approle-tf-chef.png) For the simplicity of the demonstration, both Vault and Chef are installed on the same node. Terraform provisions the node which contains the `RoleID` as an @@ -422,7 +423,7 @@ interact with Vault. Remember, the point here is that you are giving each system a _limited_ token that is only able to pull either the `RoleID` or `SecretID`, _but not both_. -![AppRole auth method workflow](/assets/images/vault-approle-tf-chef-2.png) +![AppRole auth method workflow](/img/vault-approle-tf-chef-2.png) #### Task 1: Create a policy and token for Terraform Create a token with appropriate policies allowing Terraform to pull @@ -847,7 +848,7 @@ At this point, Terraform will perform the following actions: - Run our Chef recipe which will install NGINX, perform our AppRole login, get our secrets, and output them to our `index.html` file -![AppRole auth method workflow](/assets/images/vault-approle-tf-chef-3.png) +![AppRole auth method workflow](/img/vault-approle-tf-chef-3.png) The Chef recipe can be found at `identity/vault-chef-approle/chef/cookbooks/vault_chef_approle_demo/recipes/default.rb`. diff --git a/website/source/guides/identity/authentication.html.md b/website/source/guides/identity/authentication.html.md index 4d0a6e8dd0..871116eb8c 100644 --- a/website/source/guides/identity/authentication.html.md +++ b/website/source/guides/identity/authentication.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "AppRole Pull Authentication - Guides" +sidebar_title: "AppRole Pull Authentication" sidebar_current: "guides-identity-authentication" description: |- Authentication is a process in Vault by which user or machine-supplied @@ -135,7 +136,7 @@ to allow machines or apps to acquire a token to interact with Vault. It uses **Role ID** and **Secret ID** for login. The basic workflow is: -![AppRole auth method workflow](/assets/images/vault-approle-workflow.png) +![AppRole auth method workflow](/img/vault-approle-workflow.png) > For the purpose of introducing the basics of AppRole, this guide walks you > through a very simple scenario involving only two personas (admin and app). @@ -621,7 +622,7 @@ For example, Terraform as a trusted entity can deliver the Role ID onto the virtual machine. When the app runs on the virtual machine, the Role ID already exists on the virtual machine. -![AppRole auth method workflow](/assets/images/vault-approle-workflow2.png) +![AppRole auth method workflow](/img/vault-approle-workflow2.png) The secret ID can be delivered using [**response wrapping**](/docs/concepts/response-wrapping.html) to transmit the _reference_ diff --git a/website/source/guides/identity/control-groups.html.md b/website/source/guides/identity/control-groups.html.md index 31b071a6eb..f47b95c552 100644 --- a/website/source/guides/identity/control-groups.html.md +++ b/website/source/guides/identity/control-groups.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Control Groups - Guides" +sidebar_title: "Control Groups" sidebar_current: "guides-identity-control-groups" description: |- Vault Enterprise has a support for Control Group Authorization which adds @@ -138,7 +139,7 @@ read the data. As a member of the **`acct_manager`** group, **`Ellen Wright`** can authorize Bob's request. -![Scenario](/assets/images/vault-ctrl-grp-1.png) +![Scenario](/img/vault-ctrl-grp-1.png) You are going to perform the following: @@ -275,7 +276,7 @@ then login. 1. Toggle **Upload file**, and click **Choose a file** to select your **`read-gdpr-order.hcl`** file you authored at [Step 1](#step1). - ![Create Policy](/assets/images/vault-ctrl-grp-2.png) + ![Create Policy](/img/vault-ctrl-grp-2.png) This loads the policy and sets the **Name** to be `read-gdpr-order`. @@ -357,7 +358,7 @@ following command to create a new user, **`bob`**: ```plaintext $ vault write auth/userpass/users/bob password="training" ``` - ![Create Policy](/assets/images/vault-ctrl-grp-3.png) + ![Create Policy](/img/vault-ctrl-grp-3.png) 1. Enter the following command to create a new user, **`ellen`**: @@ -371,7 +372,7 @@ following command to create a new user, **`bob`**: 1. Populate the **Name**, **Policies** and **Metadata** fields as shown below. - ![Create Entity](/assets/images/vault-ctrl-grp-7.png) + ![Create Entity](/img/vault-ctrl-grp-7.png) 1. Click **Create**. @@ -382,7 +383,7 @@ following command to create a new user, **`bob`**: 1. Populate the **Name**, **Policies** and **Metadata** fields as shown below. - ![Create Entity](/assets/images/vault-ctrl-grp-4.png) + ![Create Entity](/img/vault-ctrl-grp-4.png) 1. Click **Create**. @@ -607,10 +608,10 @@ enter **`ellen`** in the **Username** field, and **`training`** in the 1. Select the **Access** tab, and then **Control Groups**. 1. Enter the **`wrapping_accessor`** value in the **Accessor** field and click -**Lookup**. ![Control Groups](/assets/images/vault-ctrl-grp-5.png) +**Lookup**. ![Control Groups](/img/vault-ctrl-grp-5.png) 1. _Awaiting authorization_ message displays. ![Control -Groups](/assets/images/vault-ctrl-grp-6.png) +Groups](/img/vault-ctrl-grp-6.png) 1. Click **Authorize**. The message changes to "_Thanks! You have given authorization_." diff --git a/website/source/guides/identity/identity.html.md b/website/source/guides/identity/identity.html.md index 48585efcb2..968424add7 100644 --- a/website/source/guides/identity/identity.html.md +++ b/website/source/guides/identity/identity.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Identity: Entities and Groups - Guides" +sidebar_title: "Identity - Entities & Groups" sidebar_current: "guides-identity-identity" description: |- This guide demonstrates the commands to create entities, entity aliases, and @@ -159,7 +160,7 @@ credentials: `bob` and `bsmith`. He can authenticate with Vault using either one of his accounts. To manage his accounts and link them to identity `Bob Smith` in QA team, you are going to create an entity for Bob. -![Entity Bob Smith](/assets/images/vault-entity-1.png) +![Entity Bob Smith](/img/vault-entity-1.png) -> For the simplicity of this guide, you are going to work with the `userpass` auth method. However, in reality, the user `bob` might be a username exists in @@ -559,19 +560,19 @@ and then login. 1. Enter **`base`** in the **Name** field, and paste in the [`base.hcl` policy rules](#scenario-policies) in the **Policy** text editor. - ![Create Policy](/assets/images/vault-policy-2.png) + ![Create Policy](/img/vault-policy-2.png) 1. Click **Create Policy** to complete. 1. Repeat the steps to create policies for **`test`** and **`team-qa`** as well. - ![Create Policy](/assets/images/vault-policy-1.png) + ![Create Policy](/img/vault-policy-1.png) 1. Click the **Access** tab, and select **Enable new method**. 1. Select **Username & Password** from the **Type** drop-down menu. - ![Create Policy](/assets/images/vault-auth-method-2.png) + ![Create Policy](/img/vault-auth-method-2.png) 1. Click **Enable Method**. @@ -581,14 +582,14 @@ following command to create a new user, **`bob`**: ```plaintext $ vault write auth/userpass/users/bob password="training" policies="test" ``` - ![Create Policy](/assets/images/vault-auth-method-3.png) + ![Create Policy](/img/vault-auth-method-3.png) 1. Enter the following command to create a new user, **`bsmith`**: ```plaintext $ vault write auth/userpass/users/bsmith password="training" policies="team-qa" ``` - ![Create Policy](/assets/images/vault-auth-method-4.png) + ![Create Policy](/img/vault-auth-method-4.png) 1. Click the icon (**`>_`**) again to hide the shell. @@ -596,21 +597,21 @@ following command to create a new user, **`bob`**: 1. Populate the **Name**, **Policies** and **Metadata** fields as shown below: - ![Create Policy](/assets/images/vault-entity-4.png) + ![Create Policy](/img/vault-entity-4.png) 1. Click **Create**. 1. Select **Add alias**. Enter **`bob`** in the **Name** field and select **`userpass/ (userpass)`** from the **Auth Backend** drop-down list. - ![Create Policy](/assets/images/vault-entity-5.png) + ![Create Policy](/img/vault-entity-5.png) 1. Click **Create**. 1. Return to the **Entities** list. Select **Add alias** from the **`bob-smith`** entity menu. - ![Create Policy](/assets/images/vault-entity-6.png) + ![Create Policy](/img/vault-entity-6.png) 1. Enter **`bsmith`** in the **Name** field and select **`userpass/ (userpass)`** from the **Auth Backend** drop-down list, and then click **Create**. @@ -782,7 +783,7 @@ The user can access the `secret/team-qa` path only if he logs in with Now, you are going to create an internal group named, **`engineers`**. Its member is `bob-smith` entity that you created in [Step 1](#step1). -![Entity Bob Smith](/assets/images/vault-entity-3.png) +![Entity Bob Smith](/img/vault-entity-3.png) The group policy, `team-eng` defines the following: **`team-eng.hcl`** @@ -906,7 +907,7 @@ rules](#step3) in the **Policy** text editor, and then click **Create Policy**. 1. Enter the group information as shown below. - ![Group](/assets/images/vault-entity-7.png) + ![Group](/img/vault-entity-7.png) ~> **NOTE:** Make sure to enter the `bob-smith` entity **ID** you copied in the **Member Entity IDs** field. @@ -1099,14 +1100,14 @@ you are running KV v2, set the path to **`secret/data/education`** instead.) 1. Select **Create group**. Enter the group information as shown below. - ![Create Policy](/assets/images/vault-entity-9.png) + ![Create Policy](/img/vault-entity-9.png) 1. Click **Create**. 1. Select **Add alias** and enter **`training`** in the **Name** field. Select **github/ (github)** from the **Auth Backend** drop-down list. - ![Create Policy](/assets/images/vault-entity-10.png) + ![Create Policy](/img/vault-entity-10.png) 1. Click **Create**. diff --git a/website/source/guides/identity/index.html.md b/website/source/guides/identity/index.html.md index 74b363d1e1..01908eccd3 100644 --- a/website/source/guides/identity/index.html.md +++ b/website/source/guides/identity/index.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Identity and Access Management - Guides" +sidebar_title: "Identity and Access Management" sidebar_current: "guides-identity" description: |- Once a Vault instance has been installed, the next step is to configure auth diff --git a/website/source/guides/identity/lease.html.md b/website/source/guides/identity/lease.html.md index e0fd4fd19d..6ad8f83c98 100644 --- a/website/source/guides/identity/lease.html.md +++ b/website/source/guides/identity/lease.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Tokens and Leases - Guides" +sidebar_title: "Tokens and Leases" sidebar_current: "guides-identity-lease" description: |- Tokens are the core method for authentication within Vault. For every diff --git a/website/source/guides/identity/policies.html.md b/website/source/guides/identity/policies.html.md index cc1716a9bc..9a20aae681 100644 --- a/website/source/guides/identity/policies.html.md +++ b/website/source/guides/identity/policies.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Policies - Guides" +sidebar_title: "Policies" sidebar_current: "guides-identity-policies" description: |- Policies in Vault control what a user can access. @@ -176,7 +177,7 @@ path "sys/health" The basic workflow of creating policies is: -![Policy Creation Workflow](/assets/images/vault-policy-authoring-workflow.png) +![Policy Creation Workflow](/img/vault-policy-authoring-workflow.png) This guide demonstrates basic policy authoring and management tasks. diff --git a/website/source/guides/identity/policy-templating.html.md b/website/source/guides/identity/policy-templating.html.md index ab6f3e1084..62362ff31f 100644 --- a/website/source/guides/identity/policy-templating.html.md +++ b/website/source/guides/identity/policy-templating.html.md @@ -261,7 +261,7 @@ then login. 1. Toggle **Upload file**, and click **Choose a file** to select the `user-tmpl.hcl` file you wrote at [Step 1](#step1). - ![Create Policy](/assets/images/vault-ctrl-grp-2.png) + ![Create Policy](/img/vault-ctrl-grp-2.png) This loads the policy and sets the **Name** to `user-tmpl`. @@ -276,7 +276,7 @@ Let's create an entity, **`bob_smith`** with a user **`bob`** as its entity alias. Also, create a group, **`education`** and add the **`bob_smith`** entity as its group member. -![Entity & Group](/assets/images/vault-acl-templating.png) +![Entity & Group](/img/vault-acl-templating.png) -> This step only demonstrates CLI commands and Web UI to create entities and groups. Refer to the [Identity - Entities and @@ -332,7 +332,7 @@ following command to create a new user, **`bob`**. ```plaintext $ vault write auth/userpass/users/bob password="training" ``` - ![Create Policy](/assets/images/vault-ctrl-grp-3.png) + ![Create Policy](/img/vault-ctrl-grp-3.png) 1. Click the icon (**`>_`**) again to hide the shell. @@ -355,7 +355,7 @@ following command to create a new user, **`bob`**. **Policies** fields. Under **Metadata**, enter **`region`** as a key and **`us-west`** as the key value. Enter the `bob_smith` entity ID in the **Member Entity IDs** field. - ![Group](/assets/images/vault-acl-templating-2.png) + ![Group](/img/vault-acl-templating-2.png) 1. Click **Create**. @@ -570,7 +570,7 @@ version. 1. Click **Enable Engine**. 1. Now, sign out as the current user so that you can log in as `bob`. ![Sign -off](/assets/images/vault-acl-templating-3.png) +off](/img/vault-acl-templating-3.png) 1. In the Vault sign in page, select **Username** and then enter **`bob`** in the **Username** field, and **`training`** in the **Password** field. diff --git a/website/source/guides/identity/secure-intro.html.md b/website/source/guides/identity/secure-intro.html.md index d8b5ab60fc..60904d0831 100644 --- a/website/source/guides/identity/secure-intro.html.md +++ b/website/source/guides/identity/secure-intro.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Secure Introduction of Vault Clients - Guides" +sidebar_title: "Secure Introduction of Vault Clients" sidebar_current: "guides-identity-secure-intro" description: |- This introductory guide walk through the mechanism of Vault clients to @@ -21,7 +22,7 @@ authenticated with the trust established by the successful distribution and user of that first secret. Getting the first secret to the consumer, is the ***secure introduction*** challenge. -![Secure Introduction](/assets/images/vault-secure-intro-1.png) +![Secure Introduction](/img/vault-secure-intro-1.png) The Vault authentication process verifies the secret consumer's identity and then generate a **token** to associate with that identity. @@ -43,7 +44,7 @@ introduction? Vault's auth methods perform authentication of its client and assigning a set of policies which defines the permitted operations for the client. -![Auth Method](/assets/images/vault-auth-method.png) +![Auth Method](/img/vault-auth-method.png) There are three basic approaches to securely authenticate a secret consumer: @@ -64,7 +65,7 @@ interacting with the underlying platform. After the client identity is verified, Vault returns a token to the client that is bound to their identity and policies that grant access to secrets. -![Platform Integration](/assets/images/vault-secure-intro-2.png) +![Platform Integration](/img/vault-secure-intro-2.png) For example, suppose we have an application running on a virtual machine in AWS EC2. When that instance is started, an IAM token is provided via the machine @@ -81,7 +82,7 @@ client are made with the associated token, allowing Vault to efficiently authenticate the client and check for proper authorizations when consuming secrets. -![Vault AWS EC2 Authentication Flow](/assets/images/vault-aws-ec2-auth-flow.png) +![Vault AWS EC2 Authentication Flow](/img/vault-aws-ec2-auth-flow.png) ### Use Case @@ -103,7 +104,7 @@ already authenticated against Vault with privileged permissions. The orchestrator launches new applications and inject a mechanism they can use to authenticate (e.g. AppRole, PKI cert, token, etc) with Vault. -![Trusted Orchestrator](/assets/images/vault-secure-intro-3.png) +![Trusted Orchestrator](/img/vault-secure-intro-3.png) For example, suppose [Terraform](https://www.terraform.io/) is being used as a trusted orchestrator. This means Terraform already has a Vault token, with @@ -118,7 +119,7 @@ is acting as a trusted orchestrator and extending trust to the new machine. The new machine, or application running on it, can use the injected credentials to authenticate against Vault. -![AppRole auth method workflow](/assets/images/vault-secure-intro-4.png) +![AppRole auth method workflow](/img/vault-secure-intro-4.png) ### Use Case @@ -151,7 +152,7 @@ methods](/docs/agent/autoauth/methods/index.html) longer allowed - Designed with robustness and fault tolerance -![Vault Agent](/assets/images/vault-secure-intro-5.png) +![Vault Agent](/img/vault-secure-intro-5.png) To leverage this feature, run the vault binary in agent mode (`vault agent -config=`) on the client. The agent configuration file must specify diff --git a/website/source/guides/identity/sentinel.html.md b/website/source/guides/identity/sentinel.html.md index b92765cf5f..f358b56596 100644 --- a/website/source/guides/identity/sentinel.html.md +++ b/website/source/guides/identity/sentinel.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Sentinel - Guides" +sidebar_title: "Sentinel Policies" sidebar_current: "guides-identity-sentinel" description: |- Vault Enterprise supports Sentinel to provide a rich set of access control @@ -494,7 +495,7 @@ then login. 1. Enter **`secret/accounting/*`** in the **Paths** field, and then click **Create Policy**. - ![EGP](/assets/images/vault-sentinel-1.png) + ![EGP](/img/vault-sentinel-1.png) 1. Select **Endpoint Governing Policies** again, and then **Create EGP policy**. @@ -596,7 +597,7 @@ $ curl --header "X-Vault-Token: ..." \ 1. Select **Delete** from the policy menu for `business-hrs`. - ![Delete EGP](/assets/images/vault-sentinel-2.png) + ![Delete EGP](/img/vault-sentinel-2.png) 1. When prompted, click **Delete** again to confirm. diff --git a/website/source/guides/operations/autounseal-aws-kms.html.md b/website/source/guides/operations/autounseal-aws-kms.html.md index 316015d4fb..5ba73d06b7 100644 --- a/website/source/guides/operations/autounseal-aws-kms.html.md +++ b/website/source/guides/operations/autounseal-aws-kms.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Vault Auto-unseal using AWS KMS - Guides" +sidebar_title: "Vault Auto-unseal with AWS KMS" sidebar_current: "guides-operations-autounseal-aws-kms" description: |- In this guide, we'll show an example of how to use Terraform to provision an @@ -19,7 +20,7 @@ decrypt data. Before any operation can be performed on the Vault, it must be unsealed. Unsealing is the process of constructing the master key necessary to decrypt the data encryption key. -![Unseal with Shamir's Secret Sharing](/assets/images/vault-autounseal.png) +![Unseal with Shamir's Secret Sharing](/img/vault-autounseal.png) This guide demonstrates an example of how to use Terraform to provision an instance that can utilize an encryption key from [AWS Key Management Services @@ -56,7 +57,7 @@ delegate the unsealing process to trusted cloud providers to ease operations in the event of partial failure and to aid in the creation of new or ephemeral clusters. -![Unseal with AWS KMS](/assets/images/vault-autounseal-2.png) +![Unseal with AWS KMS](/img/vault-autounseal-2.png) ## Prerequisites @@ -85,7 +86,7 @@ AWS KMS. Included is a Terraform configuration that has the following: * Vault configured with access to an AWS KMS key -[![YouTube](/assets/images/vault-autounseal-4.png)](https://youtu.be/iRyqOEDFIiY) +[![YouTube](/img/vault-autounseal-4.png)](https://youtu.be/iRyqOEDFIiY) You are going to perform the following steps: @@ -267,7 +268,7 @@ At this point, you should be able to launch the Vault Enterprise UI by entering the address provided in the `terraform apply` outputs (e.g. http://192.0.2.1:8200/ui) and log in with your initial root token. -![Vault Enterprise UI Login](/assets/images/vault-autounseal-3.png) +![Vault Enterprise UI Login](/img/vault-autounseal-3.png) ### Step 3: Clean Up diff --git a/website/source/guides/operations/deployment-guide.html.md b/website/source/guides/operations/deployment-guide.html.md index 7da421c9c9..bda1fba850 100644 --- a/website/source/guides/operations/deployment-guide.html.md +++ b/website/source/guides/operations/deployment-guide.html.md @@ -25,7 +25,7 @@ During the installation of Vault you should also review and apply the recommenda To provide a highly-available single cluster architecture, we recommend Vault be deployed to more than one host, as shown in the [Vault Reference Architecture](/guides/operations/reference-architecture.html), and connected to a Consul cluster for persistent data storage. -![Reference Diagram](/assets/images/vault-ref-arch-2-02305ae7.png) +![Reference Diagram](/img/vault-ref-arch-2-02305ae7.png) The below setup steps should be completed on all Vault hosts. diff --git a/website/source/guides/operations/disaster-recovery.html.md b/website/source/guides/operations/disaster-recovery.html.md index 7a45a0e5d8..033091e96d 100644 --- a/website/source/guides/operations/disaster-recovery.html.md +++ b/website/source/guides/operations/disaster-recovery.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Vault Disaster Recovery Replication Setup - Guides" +sidebar_title: "Disaster Recovery Setup" sidebar_current: "guides-operations-dr" description: |- This guide demonstrates step-by-step instruction of setting up a disaster @@ -21,7 +22,7 @@ leader-follower model. A leader cluster is referred to as the **primary** cluster and is considered the _system of record_. Data is streamed from the primary cluster to all **secondary** (follower) clusters. -![Replication Pattern](/assets/images/vault-ref-arch-8.png) +![Replication Pattern](/img/vault-ref-arch-8.png) ~> **Important:** In DR replication, secondary clusters ***do not forward*** service read or write requests until they are promoted and become a new primary @@ -55,7 +56,7 @@ knowledge of Vault. You need two Vault Enterprise clusters: one behaves as the **primary cluster**, and another becomes the **secondary**. -![DR Prerequisites](/assets/images/vault-dr-0.png) +![DR Prerequisites](/img/vault-dr-0.png) ## Steps @@ -165,18 +166,18 @@ Open a web browser and launch the Vault UI (e.g. https://cluster-A.example.com:8200/ui) and then login. 1. Select **Replication** and check the **Disaster Recovery (DR)** radio button. - ![DR Replication - primary](/assets/images/vault-dr-1.png) + ![DR Replication - primary](/img/vault-dr-1.png) 1. Click **Enable replication**. 1. Select the **Secondaries** tab, and then click **Add**. - ![DR Replication - primary](/assets/images/vault-dr-2.png) + ![DR Replication - primary](/img/vault-dr-2.png) 1. Populate the **Secondary ID** field, and click **Generate token**. - ![DR Replication - primary](/assets/images/vault-dr-3.png) + ![DR Replication - primary](/img/vault-dr-3.png) 1. Click **Copy** to copy the token which you will need to enable the DR secondary cluster. - ![DR Replication - primary](/assets/images/vault-dr-4.png) + ![DR Replication - primary](/img/vault-dr-4.png)
    @@ -248,10 +249,10 @@ The following operations must be performed on the DR secondary cluster. 1. Now, launch the Vault UI for the **secondary** cluster (e.g. https://cluster-B.example.com:8200/ui) and click **Replication**. 1. Check the **Disaster Recovery (DR)** radio button and select **secondary** under the **Cluster mode**. Paste the token you copied from the primary in the **Secondary activation token** field. - ![DR Replication - secondary](/assets/images/vault-dr-5.png) + ![DR Replication - secondary](/img/vault-dr-5.png) 1. Click **Enable replication**. - ![DR Replication - secondary](/assets/images/vault-dr-5.2.png) + ![DR Replication - secondary](/img/vault-dr-5.2.png) !> **NOTE:** This will immediately clear all data in the secondary cluster. @@ -404,21 +405,21 @@ contains the DR operation token. #### Web UI 1. Click on **Generate OTP** to generate an OTP. Then click **Copy OTP**. - ![DR Replication - secondary](/assets/images/vault-dr-6.png) + ![DR Replication - secondary](/img/vault-dr-6.png) 1. Click **Generate Operation Token**. 1. A quorum of unseal keys must be entered to create a new operation token for the DR secondary. - ![DR Replication - secondary](/assets/images/vault-dr-7.png) + ![DR Replication - secondary](/img/vault-dr-7.png) -> This operation must be performed by each unseal-key holder. 1. Once the quorum has been reached, the output displays the encoded DR operation token. Click **Copy CLI command**. - ![DR Replication - secondary](/assets/images/vault-dr-8.png) + ![DR Replication - secondary](/img/vault-dr-8.png) 1. Execute the CLI command from a terminal to generate a DR operation token using the OTP generated earlier. (Be sure to enter your OTP in the command.) @@ -435,13 +436,13 @@ using the OTP generated earlier. (Be sure to enter your OTP in the command.) 1. Now, click **Promote** tab, and then enter the generated DR operation token. - ![DR Replication - secondary](/assets/images/vault-dr-9-1.png) + ![DR Replication - secondary](/img/vault-dr-9-1.png) 1. Click **Promote cluster**. When you prompted, "_Are you sure you want to promote this cluster?_", click **Promote cluster** again to complete. - ![DR Replication - secondary](/assets/images/vault-dr-9.png) + ![DR Replication - secondary](/img/vault-dr-9.png)
    @@ -511,12 +512,12 @@ reconnected to the same DR replication set without wiping local storage. Select **Replication** and click **Demote cluster**. -![DR Replication - demotion](/assets/images/vault-dr-10.png) +![DR Replication - demotion](/img/vault-dr-10.png) When you prompted, "_Are you sure you want to demote this cluster?_", click **Demote cluster** again to complete. -![DR Replication - demotion](/assets/images/vault-dr-12.png) +![DR Replication - demotion](/img/vault-dr-12.png) ### Step 5: Disable DR Primary @@ -575,12 +576,12 @@ Any secondaries will no longer be able to connect. Select **Replication** and click **Disable replication**. -![DR Replication - demotion](/assets/images/vault-dr-11.png) +![DR Replication - demotion](/img/vault-dr-11.png) When you prompted, "_Are you sure you want to disable replication on this cluster?_", click **Disable** again to complete. -![DR Replication - demotion](/assets/images/vault-dr-13.png) +![DR Replication - demotion](/img/vault-dr-13.png) Any secondaries will no longer be able to connect. diff --git a/website/source/guides/operations/generate-root.html.md b/website/source/guides/operations/generate-root.html.md index 5e067a722d..a7c2e669a4 100644 --- a/website/source/guides/operations/generate-root.html.md +++ b/website/source/guides/operations/generate-root.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Generate Root Tokens using Unseal Keys - Guides" +sidebar_title: "Root Token Generation" sidebar_current: "guides-operations-generate-root" description: |- Generate a new root token using a threshold of unseal keys. diff --git a/website/source/guides/operations/index.html.md b/website/source/guides/operations/index.html.md index 960ea3cb9a..766c79e5c0 100644 --- a/website/source/guides/operations/index.html.md +++ b/website/source/guides/operations/index.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Vault Operations - Guides" +sidebar_title: "Vault Operations" sidebar_current: "guides-operations" description: |- Vault architecture guide covers Vault infrastructure discussions including diff --git a/website/source/guides/operations/monitoring.html.md b/website/source/guides/operations/monitoring.html.md index 752d0d477f..dbe1e11c05 100644 --- a/website/source/guides/operations/monitoring.html.md +++ b/website/source/guides/operations/monitoring.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Vault Cluster Monitoring - Guides" +sidebar_title: "Vault Cluster Monitoring" sidebar_current: "guides-operations-monitoring" description: |- Learn how to set up and manage Vault Enterprise Performance Replication. @@ -20,7 +21,7 @@ The guide walks you through: - How to configure Vault and Consul to send telemetry to a monitoring agent. - Which metrics are important to monitor, and why. -![Dashboard Example](/assets/images/vault_cluster.png) +![Dashboard Example](/img/vault_cluster.png) ## Reference Materials diff --git a/website/source/guides/operations/mount-filter.html.md b/website/source/guides/operations/mount-filter.html.md index d794d6c729..9f855fc109 100644 --- a/website/source/guides/operations/mount-filter.html.md +++ b/website/source/guides/operations/mount-filter.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Vault Mount Filter - Guides" +sidebar_title: "Mount Filter" sidebar_current: "guides-operations-mount-filter" description: |- This guide demonstrates how to selectively filter out secret mounts for @@ -21,7 +22,7 @@ part of replication. The mount filter feature allows users to whitelist or blacklist which secret engines are replicated, thereby allowing users to further control the movement of secrets across their infrastructure. -![Performance Replication](/assets/images/vault-mount-filter-2.png) +![Performance Replication](/img/vault-mount-filter-2.png) ## Reference Materials @@ -57,7 +58,7 @@ The [***Preparing for GDPR Compliance with HashiCorp Vault***](https://www.hashicorp.com/resources/preparing-for-gdpr-compliance-with-hashicorp-vault) webinar discusses the GDPR compliance further in details. -[![YouTube](/assets/images/vault-mount-filter.png)](https://youtu.be/hmf6sN4W8pE) +[![YouTube](/img/vault-mount-filter.png)](https://youtu.be/hmf6sN4W8pE) ## Prerequisites @@ -75,7 +76,7 @@ States by setting up a secondary cluster and enable the performance replication. However, some data must remain in EU and should ***not*** be replicated to the US cluster. -![Guide Scenario](/assets/images/vault-mount-filter-0.png) +![Guide Scenario](/img/vault-mount-filter-0.png) Leverage the mount filter feature to blacklist the secrets, that are subject to GDPR, from being replicated across the regions. @@ -129,9 +130,9 @@ https://eu-west-1.compute.com:8200/ui) and then login. Select **Enable new engine** and enter corresponding parameter values: -![GDPR KV](/assets/images/vault-mount-filter-3.png) +![GDPR KV](/img/vault-mount-filter-3.png) -![Non-GDPR KV](/assets/images/vault-mount-filter-4.png) +![Non-GDPR KV](/img/vault-mount-filter-4.png) Click **Enable Engine** to complete. @@ -256,12 +257,12 @@ Click **Enable Engine** to complete. #### Web UI 1. Select **Replication** and check the **Performance** radio button. - ![Performance Replication - primary](/assets/images/vault-mount-filter-5.png) + ![Performance Replication - primary](/img/vault-mount-filter-5.png) 1. Click **Enable replication**. 1. Select the **Secondaries** tab, and then click **Add**. - ![Performance Replication - primary](/assets/images/vault-mount-filter-6.png) + ![Performance Replication - primary](/img/vault-mount-filter-6.png) 1. Populate the **Secondary ID** field, and then select **Configure performance mount filtering** to set your mount filter options. You can filter by @@ -269,17 +270,17 @@ whitelisting or blacklisting. For this example, select **Blacklist**. 1. Check **EU_GDPR_data** to prevent it from being replicated to the secondary cluster. - ![Performance Replication - primary](/assets/images/vault-mount-filter-7.png) + ![Performance Replication - primary](/img/vault-mount-filter-7.png) 1. Click **Generate token**. - ![Performance Replication - primary](/assets/images/vault-mount-filter-8.png) + ![Performance Replication - primary](/img/vault-mount-filter-8.png) 1. Click **Copy** to copy the token. 1. Now, launch the Vault UI for the secondary cluster (e.g. https://us-central.compute.com:8201/ui), and then click **Replication**. 1. Check the **Performance** radio button, and then select **secondary** under the **Cluster mode**. Paste the token you copied from the primary. - ![Performance Replication - secondary](/assets/images/vault-mount-filter-9.png) + ![Performance Replication - secondary](/img/vault-mount-filter-9.png) 1. Click **Enable replication**. @@ -449,7 +450,7 @@ $ curl --header "X-Vault-Token: ..." \ On the **EU** cluster, select **EU_GDPR_data** > **Create secret**: -![Secrets](/assets/images/vault-mount-filter-12.png) +![Secrets](/img/vault-mount-filter-12.png) Enter the values and click **Save**. Repeat the step to write some secrets at the **US_NON_GDPR_data** path as well. @@ -458,7 +459,7 @@ the **US_NON_GDPR_data** path as well. On the **US** cluster, select **US_NON_GDPR_data**. You should be able to see the `apikey` under `US_NON_GDPR_data/secret`. -![Secrets](/assets/images/vault-mount-filter-13.png) +![Secrets](/img/vault-mount-filter-13.png) The **EU_GDPR_data** data is not replicated, so you won't be able to see the secrets. @@ -504,7 +505,7 @@ $ curl --header "X-Vault-Token: ..." \ Be sure to select the check box for **Local** to keep it mounted locally within the cluster. -![Local Secret](/assets/images/vault-mount-filter-10.png) +![Local Secret](/img/vault-mount-filter-10.png)
    diff --git a/website/source/guides/operations/multi-tenant.html.md b/website/source/guides/operations/multi-tenant.html.md index 4592e6ba47..9aa64c27e3 100644 --- a/website/source/guides/operations/multi-tenant.html.md +++ b/website/source/guides/operations/multi-tenant.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Secure Multi-Tenancy with Namepaces - Guides" +sidebar_title: "Multi-Tenant: Namespaces" sidebar_current: "guides-operations-multi-tenant" description: |- This guide provides guidance in creating a multi-tenant environment. @@ -47,7 +48,7 @@ a Service*** model allowing each organization (tenant) to manage their own secrets and policies. The most importantly, tenants should be restricted to work only within their tenant scope. -![Multi-Tenant](/assets/images/vault-multi-tenant.png) +![Multi-Tenant](/img/vault-multi-tenant.png) ## Solution @@ -82,7 +83,7 @@ the Education organization which has Training and Certification teams. Delegate operational tasks to the team admins so that the Vault cluster operators won't have to be involved. -![Scenario](/assets/images/vault-multi-tenant-2.png) +![Scenario](/img/vault-multi-tenant-2.png) In this guide, you are going to perform the following steps: @@ -215,7 +216,7 @@ and then login. 1. To create child namespaces, select the down-arrow on the upper left corner of the UI, and select **education** under **CURRENT NAMESPACE**. - ![NS Selection](/assets/images/vault-multi-tenant-1.png) + ![NS Selection](/img/vault-multi-tenant-1.png) 1. Under the **Access** tab, select **Namespaces** and then click **Create a namespace**. @@ -426,7 +427,7 @@ $ curl --header "X-Vault-Token: ..." \ 1. Set the **CURRENT NAMESPACE** to be **education/training** in the upper left menu. - ![Namespace](/assets/images/vault-multi-tenant-6.png) + ![Namespace](/img/vault-multi-tenant-6.png) 1. In the **Policies** tab, select **Create ACL policy**. @@ -448,7 +449,7 @@ Admin**, and add Bob Smith entity as a group member so that Bob can inherit the `training-admin` policy to manage the child namespace if he ever has to take over. -![Entities and Groups](/assets/images/vault-multi-tenant-3.png) +![Entities and Groups](/img/vault-multi-tenant-3.png) -> This step only demonstrates CLI commands and Web UI to create entities and groups. Refer to the [Identity - Entities and @@ -518,7 +519,7 @@ following command to create a new user, **`bob`**. ```plaintext vault write auth/userpass/users/bob password="password" ``` - ![Create Policy](/assets/images/vault-multi-tenant-4.png) + ![Create Policy](/img/vault-multi-tenant-4.png) 1. Click the icon (**`>_`**) again to hide the shell. @@ -540,7 +541,7 @@ following command to create a new user, **`bob`**. **Details** tab. 1. Now, set the **CURRENT NAMESPACE** to **education/training**. - ![Namespace](/assets/images/vault-multi-tenant-6.png) + ![Namespace](/img/vault-multi-tenant-6.png) 1. In the **Access** tab, select **Groups**, and select **Create group**. @@ -554,7 +555,7 @@ following command to create a new user, **`bob`**. 1. Select **Username & Password** from the **Type** drop-down menu. 1. Click **Enable Method**. Copy the mount accessor value which you will user later. - ![Namespace](/assets/images/vault-multi-tenant-8.png) + ![Namespace](/img/vault-multi-tenant-8.png) 1. Click the Vault CLI shell icon (**`>_`**) to open a command shell. Enter the following command to create a new user, **`bsmith`**. @@ -695,7 +696,7 @@ you are already logged in, sign out. 1. Select the **Userpass** tab, and enter **`bob`** in the **Username** field, and **`password`** in the **Password** field. - ![Login](/assets/images/vault-multi-tenant-5.png) + ![Login](/img/vault-multi-tenant-5.png) 1. Click **Sign in**. Notice that the CURRENT NAMESPACE is set to **education** in the upper left corner of the UI. diff --git a/website/source/guides/operations/performance-nodes.html.md b/website/source/guides/operations/performance-nodes.html.md index 4fe6c82fb3..6a81696afa 100644 --- a/website/source/guides/operations/performance-nodes.html.md +++ b/website/source/guides/operations/performance-nodes.html.md @@ -18,7 +18,7 @@ was explained that only one Vault server will be _active_ in a cluster and handles **all** requests (reads and writes). The rest of the servers become the _standby_ nodes and simply forward requests to the _active_ node. -![HA Architecture](/assets/images/vault-ha-consul-3.png) +![HA Architecture](/img/vault-ha-consul-3.png) If you are running **_Vault Enterprise_ 0.11** or later, those standby nodes can handle most read-only requests. For example, performance standbys can handle @@ -59,7 +59,7 @@ A highly available Vault Enterprise cluster consists of multiple servers, and there will be only one active node. The rest can serve as performance standby nodes handling read-only requests locally. -![Cluster Architecture](/assets/images/vault-perf-standby-1.png) +![Cluster Architecture](/img/vault-perf-standby-1.png) The number of performance standby nodes within a cluster depends on your Vault Enterprise license. @@ -69,7 +69,7 @@ Consider the following scenario: - A cluster contains **five** Vault servers - Your Vault Enterprise license allows **two** performance standby nodes -![Cluster Architecture](/assets/images/vault-perf-standby.png) +![Cluster Architecture](/img/vault-perf-standby.png) In this scenario, the performance standby nodes running on VM 8 and VM 9 can process read-only requests. However, the _standby_ nodes running on VM 6 and VM diff --git a/website/source/guides/operations/plugin-backends.html.md b/website/source/guides/operations/plugin-backends.html.md index aadb91eed3..db72b6c561 100644 --- a/website/source/guides/operations/plugin-backends.html.md +++ b/website/source/guides/operations/plugin-backends.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Plugin Backends - Guides" +sidebar_title: "Building Plugin Backends" sidebar_current: "guides-operations-plugin-backends" description: |- Learn how to build, register, and mount a custom plugin backend. diff --git a/website/source/guides/operations/production.html.md b/website/source/guides/operations/production.html.md index c9f0769a69..0fb84633ab 100644 --- a/website/source/guides/operations/production.html.md +++ b/website/source/guides/operations/production.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Production Hardening - Guides" +sidebar_title: "Production Hardening" sidebar_current: "guides-operations-production-hardening" description: |- This guide provides guidance on best practices for a production hardened deployment of HashiCorp Vault. diff --git a/website/source/guides/operations/reference-architecture.html.md b/website/source/guides/operations/reference-architecture.html.md index 3cba618e7b..277bc5adbc 100644 --- a/website/source/guides/operations/reference-architecture.html.md +++ b/website/source/guides/operations/reference-architecture.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Vault Reference Architecture - Guides" +sidebar_title: "Reference Architecture" sidebar_current: "guides-operations-reference-architecture" description: |- This guide provides guidance in the best practices of Vault @@ -39,7 +40,7 @@ cluster replication. ### Reference Diagram Eight Nodes with [Consul Storage Backend](/docs/configuration/storage/consul.html) -![Reference diagram](/assets/images/vault-ref-arch-2.png) +![Reference diagram](/img/vault-ref-arch-2.png) #### Design Summary @@ -62,12 +63,12 @@ voting member per AZ, providing both Zone and Node level failure protection. -> Refer to the online documentation to learn more about the [Consul leader election process](https://www.consul.io/docs/guides/leader-election.html). -![Failure tolerance|40%](/assets/images/vault-ref-arch-3.png) +![Failure tolerance|40%](/img/vault-ref-arch-3.png) ### Network Connectivity Details -![Network Connectivity Details](/assets/images/vault-ref-arch.png) +![Network Connectivity Details](/img/vault-ref-arch.png) ### Deployment System Requirements @@ -164,7 +165,7 @@ operate just as a typical DNS resolution operation. ### Load Balancing Using External Load Balancer -![Vault Behind a Load Balancer](/assets/images/vault-ref-arch-9.png) +![Vault Behind a Load Balancer](/img/vault-ref-arch-9.png) External load balancers are supported as well, and would be placed in front of the Vault cluster, and would poll specific Vault URL's to detect the active node and @@ -222,7 +223,7 @@ datacenters requires Vault Enterprise. ## Deployment Topology for Multiple Datacenters - + ### Vault Replication @@ -233,7 +234,7 @@ and **disaster recovery**. The [Vault documentation](/docs/enterprise/replication/index.html) provides more detailed information on the replication capabilities within Vault Enterprise. -![Replication Pattern](/assets/images/vault-ref-arch-8.png) +![Replication Pattern](/img/vault-ref-arch-8.png) #### Performance Replication @@ -258,7 +259,7 @@ utmost concern. If your disaster recovery strategy is to plan for a loss of an entire data center, the following diagram illustrates a possible replication scenario. -![Replication Pattern](/assets/images/vault-ref-arch-4.png) +![Replication Pattern](/img/vault-ref-arch-4.png) In this scenario, if the Vault cluster in Region A fails and you promote the DR cluster in Region B to be the new primary, your applications will need to read @@ -273,7 +274,7 @@ If your disaster recovery strategy is to plan for a loss of a cluster but not th entire data center, the following diagram illustrates a possible replication scenario. -![Replication Pattern](/assets/images/vault-ref-arch-7.png) +![Replication Pattern](/img/vault-ref-arch-7.png) -> Refer to the [Vault Disaster Recovery Setup](/guides/operations/disaster-recovery.html) guide for additional information. diff --git a/website/source/guides/operations/rekeying-and-rotating.html.md b/website/source/guides/operations/rekeying-and-rotating.html.md index 8bfe42c05c..7464eedb32 100644 --- a/website/source/guides/operations/rekeying-and-rotating.html.md +++ b/website/source/guides/operations/rekeying-and-rotating.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Rekeying & Rotating Vault - Guides" +sidebar_title: "Rekeying & Rotating" sidebar_current: "guides-operations-rekeying-and-rotating" description: |- Vault supports generating new unseal keys as well as rotating the underlying @@ -36,7 +37,7 @@ Typically each of these key shares is distributed to trusted parties in the organization. These parties must come together to "unseal" the Vault by entering their key share. -[![Vault Shamir Secret Sharing Algorithm](/assets/images/vault-shamir-secret-sharing.svg)](/assets/images/vault-shamir-secret-sharing.svg) +[![Vault Shamir Secret Sharing Algorithm](/img/vault-shamir-secret-sharing.svg)](/img/vault-shamir-secret-sharing.svg) [shamir]: https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing @@ -50,7 +51,7 @@ are a few examples: In addition to rekeying the master key, there may be an independent desire to rotate the underlying encryption key Vault uses to encrypt data at rest. -[![Vault Rekey vs Rotate](/assets/images/vault-rekey-vs-rotate.svg)](/assets/images/vault-rekey-vs-rotate.svg) +[![Vault Rekey vs Rotate](/img/vault-rekey-vs-rotate.svg)](/img/vault-rekey-vs-rotate.svg) In Vault, _rekeying_ and _rotating_ are two separate operations. The process for generating a new master key and applying Shamir's algorithm is called diff --git a/website/source/guides/operations/replication.html.md b/website/source/guides/operations/replication.html.md index de7b5d82aa..5adedda048 100644 --- a/website/source/guides/operations/replication.html.md +++ b/website/source/guides/operations/replication.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Setting up Vault Enterprise Performance Replication - Guides" +sidebar_title: "Replication Setup & Guidance" sidebar_current: "guides-operations-replication" description: |- Learn how to set up and manage Vault Enterprise Performance Replication. diff --git a/website/source/guides/operations/seal-wrap.html.md b/website/source/guides/operations/seal-wrap.html.md index b3c70b7a06..4adcc8f265 100644 --- a/website/source/guides/operations/seal-wrap.html.md +++ b/website/source/guides/operations/seal-wrap.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Seal Wrap / FIPS 140-2 - Guides" +sidebar_title: "Seal Wrap / FIPS 140-2" sidebar_current: "guides-operations-seal-wrap" description: |- In this guide, @@ -22,7 +23,7 @@ the HSM for encryption rather than splitting into key shares allowing for automatic unsealing - **Seal Wrapping** to provide FIPS KeyStorage-conforming functionality for Critical Security Parameters -![Unseal with HSM](/assets/images/vault-hsm-autounseal.png) +![Unseal with HSM](/img/vault-hsm-autounseal.png) In some large organizations, there is a fair amount of complexity in designating key officers, who might be available to unseal Vault installations as the most @@ -73,7 +74,7 @@ nonce prior to writing them to its persistent storage. By enabling seal wrap, Vault wraps your secrets with **an extra layer of encryption** leveraging the HSM encryption and decryption. -![Seal Wrap](/assets/images/vault-seal-wrap.png) +![Seal Wrap](/img/vault-seal-wrap.png) #### Benefits of the Seal Wrap: @@ -426,7 +427,7 @@ Notice that the `seal_wrap` parameter is set to **`true`** at `secret2/`. Open a web browser and launch the Vault UI (e.g. `http://127.0.0.1:8200/ui`) and then login. -![Enable Secret Engine](/assets/images/vault-seal-wrap-2.png) +![Enable Secret Engine](/img/vault-seal-wrap-2.png) > For the purpose of comparing seal wrapped data against unwrapped data, enable additional key/value secret engine at the `secret2/` path. @@ -437,7 +438,7 @@ Select **Enable new engine**. - Select **Version 1** for KV version - Select the check box for **Seal Wrap** -![Enable Secret Engine](/assets/images/vault-seal-wrap-3.png) +![Enable Secret Engine](/img/vault-seal-wrap-3.png) Click **Enable Engine**. @@ -557,7 +558,7 @@ the seal wrap. Select **secret** and click **Create secret**. -![Enable Secret Engine](/assets/images/vault-seal-wrap-4.png) +![Enable Secret Engine](/img/vault-seal-wrap-4.png) Enter the following: @@ -565,14 +566,14 @@ Enter the following: - key: `password` - value: `my-long-password` -![Enable Secret Engine](/assets/images/vault-seal-wrap-5.png) +![Enable Secret Engine](/img/vault-seal-wrap-5.png) Click **Save**. Repeat the same step for **secret2** to write the same secret at the `secret2/wrapped` path. -![Enable Secret Engine](/assets/images/vault-seal-wrap-6.png) +![Enable Secret Engine](/img/vault-seal-wrap-6.png) Click **Save**. diff --git a/website/source/guides/operations/vault-ha-consul.html.md b/website/source/guides/operations/vault-ha-consul.html.md index 0e51d4929e..165a962f92 100644 --- a/website/source/guides/operations/vault-ha-consul.html.md +++ b/website/source/guides/operations/vault-ha-consul.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Vault HA with Consul - Guides" +sidebar_title: "Vault HA with Consul" sidebar_current: "guides-operations-vault-ha" description: |- This guide will walk you through a simple Vault Highly Available (HA) cluster @@ -23,7 +24,7 @@ and ***active***. Within a Vault cluster, only a single instance will be _active_ and handles all requests (reads and writes) and all _standby_ nodes redirect requests to the _active_ node. -![Reference Architecture](/assets/images/vault-ha-consul-3.png) +![Reference Architecture](/img/vault-ha-consul-3.png) > **NOTE:** As of version **0.11**, those standby nodes can handle most read-only requests and behave as read-replica nodes. This **Performance Standby @@ -69,7 +70,7 @@ consisting of the following: This diagram lays out the simple architecture details for reference: -![Reference Architecture](/assets/images/vault-ha-consul.png) +![Reference Architecture](/img/vault-ha-consul.png) You perform the following: @@ -294,7 +295,7 @@ this example. Now, you are good to move on to the Vault server configuration. The Vault server nodes require **both** the Consul and Vault binaries on each node. Consul will be configured as a **client** agent and Vault will be configured as a server. -![Reference Architecture](/assets/images/vault-ha-consul-2.png) +![Reference Architecture](/img/vault-ha-consul-2.png) #### Consul Client Agent Configuration diff --git a/website/source/guides/partnerships/index.html.md b/website/source/guides/partnerships/index.html.md deleted file mode 100644 index 4784555535..0000000000 --- a/website/source/guides/partnerships/index.html.md +++ /dev/null @@ -1,137 +0,0 @@ ---- -layout: "guides" -page_title: "Partnerships - Vault Integration Program" -sidebar_current: "guides-partnerships" -description: |- - Guide to partnership integrations and creating plugins for Vault. ---- - -# Vault Integration Program - -

    - The Vault Integration Program (VIP) enables vendors to build integrations with HashiCorp Vault that are officially tested and approved by HashiCorp. The program is intended to be largely self-service, with links to code samples, documentation and clearly defined integration steps. -

    - -## Types of Vault Integrations - -

    -By leveraging Vault's plugin system, vendors are able to build extensible secrets, authentication, and audit plugins to extend Vault's functionality. These integrations can be done with the OSS (open-source) version of Vault. Hardware Security Module (HSM) integrations need to be tested against Vault Enterprise since the HSM functionality is only supported in the Vault Enterprise version. -

    - -

    -Authentication Methods: Auth methods are the components in Vault that perform authentication and are responsible for assigning identity and a set of policies to a user. -

    - -

    -Vault Secrets Engine: Secrets engines are components which store, generate, or encrypt data. Secrets engines are incredibly flexible, so it is easiest to think about them in terms of their function. Secrets engines are provided some set of data, they take some action on that data, and they return a result. -

    - -

    -Audit Devices: Audit devices are the components in Vault that keep a detailed log of all requests and response to Vault. Because every operation with Vault is an API request/response, the audit log contains every authenticated interaction with Vault, including errors. (no plugin interface - built into Vault Core. Leave it there - no reqs yet but expect some soon) -

    - -

    - -Hardware Security Module (HSM): HSM support is a feature of Vault Enterprise that takes advantage of HSMs to provide Master Key Wrapping, Automatic Unsealing and Seal Wrapping via the PKCS#11 protocol ver. 2.2+. -

    - -

    - -Cloud / Third Party Autounseal Integration: Non-PKCS#11 integrations with secure external data stores (e.g.: AWS KMS, Azure Key Vault) to provide Autounsealing and Seal-Wrapping. -

    - -

    - -Storage Backend: A storage backend is a durable storage location where Vault stores its information. -

    - -

    Development Process

    - -

    The Vault integration development process is described into the steps below. By following these steps, Vault integrations can be developed alongside HashiCorp to ensure new integrations are reviewed, certified and released as quickly as possible.

    - -
      -
    1. Engage: Initial contact between vendor and HashiCorp
    2. -
    3. Enable: Documentation, code samples and best practices for developing the integration
    4. -
    5. Develop and Test: Integration development and testing by vendor
    6. -
    7. Review/Certification: HashiCorp code review and certification of integration
    8. -
    9. Release: Vault integration released
    10. -
    11. Support: Ongoing maintenance and support of the integration by the vendor.
    12. -
    - -### 1. Engage -

    -Please begin by completing Vault Integration Program webform to tell us about your company and the Vault integration you’re interested in. -

    - -### 2. Enable -

    -Here are links to resources, documentation, examples and best practices to guide you through the Vault integration development and testing process: -

    - -

    General Vault Plugin Development:

    - - -

    Secrets Engines

    - - -

    Authentication Methods

    - - -

    Audit Devices

    -

    Audit devices documentation

    - -

    HSM Integration

    - - -

    Storage Backends

    -

    Storage configuration documentation

    - -

    Community Forum

    -

    Vault developer community forum

    - -### 3. Develop and Test -

    -The only knowledge necessary to write a plugin is basic command-line skills and knowledge of the Go programming language. Use the plugin interface to develop your integration. All integrations should contain unit and acceptance testing. -

    - -### 4. Review -

    -HashiCorp will review and certify your Vault integration. Please send the Vault logs and other relevant logs for verification at: vault-integration-dev@hashicorp.com. For Auth, Secret and Storage plugins, submit a GitHub pull request (PR) against the Vault project (https://github.com/hashicorp/vault). Where applicable, the vendor will need to provide HashiCorp with a test account. -

    - -### 5. Release -

    -At this stage, the Vault integration is fully developed, documented, tested and certified. Once released, HashiCorp will officially list the Vault integration. -

    - -### 6. Support -

    -Many vendors view the release step to be the end of the journey, while at HashiCorp we view it to be the start. Getting the Vault integration built is just the first step in enabling users. Once this is done, on-going effort is required to maintain the integration and address any issues in a timely manner. -The expectation for vendors is to respond to all critical issues within 48 hours and all other issues within 5 business days. HashiCorp Vault has an extremely wide community of users and we encourage everyone to report issues however small, as well as help resolve them when possible. -

    - -## Checklist -

    Below is a checklist of steps that should be followed during the Vault integration development process. This reiterates the steps described above.

    -
      -

    • Complete the Vault Integration webform
    • -

    • Develop and test your Vault integration following examples, documentation and best practices
    • -

    • When the integration is completed and ready for HashiCorp review, send the Vault and other relevant logs to us for review and certification at: vault-integration-dev@hashicorp.com
    • -

    • Once released, plan to support the integration with additional functionality and responding to customer issues
    • -
    - -## Contact Us -

    For any questions or feedback, please contact us at: vault-integration-dev@hashicorp.com

    diff --git a/website/source/guides/secret-mgmt/app-integration.html.md b/website/source/guides/secret-mgmt/app-integration.html.md index 044506a176..b234d14c7b 100644 --- a/website/source/guides/secret-mgmt/app-integration.html.md +++ b/website/source/guides/secret-mgmt/app-integration.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Direct Application Integration - Guides" +sidebar_title: "Direct Application Integration" sidebar_current: "guides-secret-mgmt-app-integration" description: |- This guide demonstrates the use of Consul Template and Envconsul tools. To diff --git a/website/source/guides/secret-mgmt/cubbyhole.html.md b/website/source/guides/secret-mgmt/cubbyhole.html.md index a2c6b83264..838e202f7b 100644 --- a/website/source/guides/secret-mgmt/cubbyhole.html.md +++ b/website/source/guides/secret-mgmt/cubbyhole.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Cubbyhole Response Wrapping - Guides" +sidebar_title: "Cubbyhole Response Wrapping" sidebar_current: "guides-secret-mgmt-cubbyhole" description: |- Vault provides a capability to wrap Vault response and store it in a @@ -109,7 +110,7 @@ Think of a scenario where apps read secrets from Vault. The `apps` need: - Policy granting "read" permission on the specific path (`secret/dev`) - Valid tokens to interact with Vault -![Response Wrapping Scenario](/assets/images/vault-cubbyhole.png) +![Response Wrapping Scenario](/img/vault-cubbyhole.png) Setting the appropriate policies and token generation are done by the `admin` persona. For the `admin` to distribute the initial token to the app securely, it diff --git a/website/source/guides/secret-mgmt/db-root-rotation.html.md b/website/source/guides/secret-mgmt/db-root-rotation.html.md index 973ae03693..df7b83a548 100644 --- a/website/source/guides/secret-mgmt/db-root-rotation.html.md +++ b/website/source/guides/secret-mgmt/db-root-rotation.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "DB Root Credential Rotation - Guides" +sidebar_title: "DB Root Credential Rotation" sidebar_current: "guides-secret-mgmt-db-root-rotation" description: |- Vault enables the combined database secret engines to automate the rotation of @@ -53,7 +54,7 @@ surrounding that data stored in the database. Use the Vault's **`/database/rotate-root/:name`** API endpoint to rotate the root credentials stored for the database connection. -![DB Root Credentials](/assets/images/vault-db-root-rotation.png) +![DB Root Credentials](/img/vault-db-root-rotation.png) ~> **Best Practice:** Use this feature to rotate the root credentials immediately after the initial configuration of each database. diff --git a/website/source/guides/secret-mgmt/dynamic-secrets.html.md b/website/source/guides/secret-mgmt/dynamic-secrets.html.md index 802f16fc55..0f398ee751 100644 --- a/website/source/guides/secret-mgmt/dynamic-secrets.html.md +++ b/website/source/guides/secret-mgmt/dynamic-secrets.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Secret as a Service - Guides" +sidebar_title: "Secret as a Service" sidebar_current: "guides-secret-mgmt-dynamic-secrets" description: |- Vault can dynamically generate secrets on-demand for some systems. @@ -50,7 +51,7 @@ environment variables. The administrator specifies the TTL of the database credentials to enforce its validity so that they are automatically revoked when they are no longer used. -![Dynamic Secret Workflow](/assets/images/vault-dynamic-secrets.png) +![Dynamic Secret Workflow](/img/vault-dynamic-secrets.png) Each app instance can get unique credentials that they don't have to share. By making those credentials to be short-lived, you reduced the change of the secret diff --git a/website/source/guides/secret-mgmt/index.html.md b/website/source/guides/secret-mgmt/index.html.md index 29768e6872..81b9167111 100644 --- a/website/source/guides/secret-mgmt/index.html.md +++ b/website/source/guides/secret-mgmt/index.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Secrets Management - Guides" +sidebar_title: "Secrets Management" sidebar_current: "guides-secret-mgmt" description: |- A very common use case of Vault is to manage your organization's secrets from diff --git a/website/source/guides/secret-mgmt/pki-engine.html.md b/website/source/guides/secret-mgmt/pki-engine.html.md index 0e788a26b8..55ffc87f06 100644 --- a/website/source/guides/secret-mgmt/pki-engine.html.md +++ b/website/source/guides/secret-mgmt/pki-engine.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Build Your Own Certificate Authority - Guides" +sidebar_title: "Build Your Own CA" sidebar_current: "guides-secret-mgmt-pki" description: |- The PKI secrets engine generates dynamic X.509 certificates. With this secrets @@ -118,7 +119,7 @@ Then you are going to generate an intermediate certificate which is signed by the root. Finally, you are going to generate a certificate for `test.example.com` domain. -![Overview](/assets/images/vault-pki-4.png) +![Overview](/img/vault-pki-4.png) In this guide, you perform the following: @@ -268,7 +269,7 @@ then login. 1. Click the **URLs** tab, and then set: - Issuing certificates: `http://127.0.0.1:8200/v1/pki/ca` - CRL Distribution Points: `http://127.0.0.1:8200/v1/pki/crl` - ![Configure URL](/assets/images/vault-pki-1.png) + ![Configure URL](/img/vault-pki-1.png) 1. Click **Save**.
    @@ -509,7 +510,7 @@ hours`**. Select **Hide Options**. 1. Select **Domain Handling** to expand, and then select the **Allow subdomains** check-box. Enter **`example.com`** in the **Allowed domains** field. - ![Create Role](/assets/images/vault-pki-2.png) + ![Create Role](/img/vault-pki-2.png) 1. Click **Create role**. @@ -598,7 +599,7 @@ serial number. 1. Enter **`test.example.com`** in the **Common Name** field. 1. Select **Options** to expand, and then set the **TTL** to **`24 hours`**. 1. Select **Hide Options** and then click **Generate**. - ![Issue Certificate](/assets/images/vault-pki-3.png) + ![Issue Certificate](/img/vault-pki-3.png) > The response contains the PEM-encoded private key, key type and certificate serial number. diff --git a/website/source/guides/secret-mgmt/ssh-otp.html.md b/website/source/guides/secret-mgmt/ssh-otp.html.md index 41d0ab97b8..12bfb279d9 100644 --- a/website/source/guides/secret-mgmt/ssh-otp.html.md +++ b/website/source/guides/secret-mgmt/ssh-otp.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "One-Time SSH Password - Guides" +sidebar_title: "One-Time SSH Password" sidebar_current: "guides-secret-mgmt-ssh-otp" description: |- The one-time SSH password secrets engine allows Vault to issue a one-time @@ -52,7 +53,7 @@ Vault can create a one-time password (OTP) for SSH authentication on a network every time a client wants to SSH into a remote host using a helper command on the remote host to perform verification. -![SSH OTP Workflow](/assets/images/vault-ssh-otp-1.png) +![SSH OTP Workflow](/img/vault-ssh-otp-1.png) An authenticated client requests an OTP from the Vault server. If the client is authorized, Vault issues and returns an OTP. The client uses this OTP during the @@ -303,7 +304,7 @@ field. 1. Select **More options** to expand the optional parameter fields, and then enter **`0.0.0.0/0`** in the **CIDR list** field. -![Create Role](/assets/images/vault-ssh-otp-2.png) +![Create Role](/img/vault-ssh-otp-2.png) 1. Click **Create role**. diff --git a/website/source/guides/secret-mgmt/static-secrets.html.md b/website/source/guides/secret-mgmt/static-secrets.html.md index 28f4cf2225..6aa9bd0a61 100644 --- a/website/source/guides/secret-mgmt/static-secrets.html.md +++ b/website/source/guides/secret-mgmt/static-secrets.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Static Secrets - Guides" +sidebar_title: "Static Secrets" sidebar_current: "guides-secret-mgmt-static-secrets" description: |- Vault supports generating new unseal keys as well as rotating the underlying @@ -124,7 +125,7 @@ You will perform the following: 1. [Generate a token for apps](#step4) 1. [Retrieve the secrets](#step5) -![Personas Introduction](/assets/images/vault-static-secrets.png) +![Personas Introduction](/img/vault-static-secrets.png) Step 1 through 4 are performed by `devops` persona. Step 5 describes the commands that `apps` persona runs to read secrets from Vault. @@ -457,7 +458,7 @@ consumer of the API key may be different from the consumer of the root certificate. Then each persona would have a policy based on what it needs to access. -![Personas Introduction](/assets/images/vault-static-secrets2.png) +![Personas Introduction](/img/vault-static-secrets2.png) diff --git a/website/source/guides/secret-mgmt/versioned-kv.html.md b/website/source/guides/secret-mgmt/versioned-kv.html.md index c0c39d3e09..4ab643d656 100644 --- a/website/source/guides/secret-mgmt/versioned-kv.html.md +++ b/website/source/guides/secret-mgmt/versioned-kv.html.md @@ -1,6 +1,7 @@ --- layout: "guides" page_title: "Versioned KV Secret Engine - Guides" +sidebar_title: "Versioned KV Secret Engine" sidebar_current: "guides-secret-mgmt-versioned-kv" description: |- Vault 0.10.0 introduced version 2 of key-value secret engine which supports @@ -49,7 +50,7 @@ in case of unwanted deletion or updates of the data. In addition, its _Check-and-Set_ operations can be used to protect the data from being overwritten unintentionally. -![Versioned KV](/assets/images/vault-versioned-kv-1.png) +![Versioned KV](/img/vault-versioned-kv-1.png) ## Prerequisites @@ -198,7 +199,7 @@ $ curl --header "X-Vault-Token: ..." \ Open a web browser and launch the Vault UI (e.g. `http://127.0.0.1:8200/ui`) and then login. -![Web UI](/assets/images/vault-versioned-kv-2.png) +![Web UI](/img/vault-versioned-kv-2.png) If `secret/` does not indicates **`v2`**, you can upgrade it from `v1` to `v2` by executing the following CLI command: @@ -211,7 +212,7 @@ Alternatively, you can enable KV secret engine v2 at a different path by clicking **Enable new engine**. Select **KV** from the **Secret engine type** drop-down list. Be sure that the **Version** is set to be **Version 2**. -![Enabling kv-v2](/assets/images/vault-versioned-kv-3.png) +![Enabling kv-v2](/img/vault-versioned-kv-3.png) Click **Enable Engine** to complete. @@ -341,14 +342,14 @@ $ curl --header "X-Vault-Token: ..." \ In the Web UI, select `secret/` and then click **Create secret**. -![Write Secret](/assets/images/vault-versioned-kv-5.png) +![Write Secret](/img/vault-versioned-kv-5.png) Click **Save**. To update the existing secret, select **Edit**, change the `contact_email` value, and then click **Save**. -![Write Secret](/assets/images/vault-versioned-kv-6.png) +![Write Secret](/img/vault-versioned-kv-6.png) ### Step 3: Retrieve a Specific Version of Secret diff --git a/website/source/index.html.erb b/website/source/index.html.erb index 8d8d1d0e31..2f1b64a75d 100644 --- a/website/source/index.html.erb +++ b/website/source/index.html.erb @@ -1,129 +1,58 @@ --- -description: |- - Vault secures, stores, and tightly controls access to tokens, passwords, - certificates, API keys, and other secrets in modern computing. Vault handles - leasing, key revocation, key rolling, auditing, and provides secrets as a - service through a unified API. +description: "Vault secures, stores, and tightly controls access to tokens, passwords, certificates, API keys, and other secrets in modern computing. Vault handles leasing, key revocation, key rolling, auditing, and provides secrets as a service through a unified API." --- -<%= partial "layouts/sidebar" %> +<% page = dato.vault_oss_page %> -
    + -
    -
    - <%= inline_svg "logo-hashicorp.svg", height: 120, class: "logo" %> - A Tool for Managing Secrets + +
    +
    + - + +
    -
    +
    +
    + -

    - HashiCorp Vault secures, stores, and tightly - controls access to tokens, passwords, certificates, API keys, - and other secrets in modern computing. Vault handles leasing, - key revocation, key rolling, and auditing. Through a unified - API, users can access an encrypted Key/Value store and network - encryption-as-a-service, or generate AWS IAM/STS credentials, - SQL/NoSQL databases, X.509 certificates, SSH credentials, and - more. -

    -
    - -
    -

    Features

    - -
    -
    -

    Secret Storage

    -

    - Vault can store your existing secrets, or it can - dynamically generate new secrets to control access to - third-party resources or provide time-limited credentials - for your infrastructure. All data that Vault stores is - encrypted. Any dynamically-generated secrets are associated - with leases, and Vault will automatically revoke these - secrets after the lease period ends. Access control - policies provide strict control over who can access what - secrets. -

    - -
    -
    - -
    -
    -
    -

    Key Rolling

    -

    - Secrets you store within Vault can be updated at any time. - If using Vault's encryption-as-a-service functionality, the - keys used can be rolled to a new key version at any time, - while retaining the ability to decrypt values encrypted - with past key versions. For dynamically-generated secrets, - configurable maximum lease lifetimes ensure that key - rolling is easy to enforce. -

    - -
    -
    - -
    -
    -
    -

    Audit Logs

    -

    - Vault stores a detailed audit log of all authenticated - client interaction: authentication, token creation, secret - access, secret revocation, and more. Audit logs can be sent - to multiple backends to ensure redundant copies. Paired - with Vault's strict leasing policies, operators can easily - trace the lifetime and origin of any secret. -

    - -
    -
    - -
    -
    - Get Started with Vault -

    Completely free and open source.

    -
    -
    - -
    -
    -

    Latest Vault News

    -
    - -
    - <% data.news.posts.each do |post| %> -
    - <%= post.media_html %> -

    <%= post.title %>

    - <%= simple_format post.body %> - <% if post.link_url %> - +
    + <% if page.features_buttons %> + <% page.features_buttons.buttons.each do |btn| %> + <% end %> -
    - <% end %> + <% end %> +
    -
    +
    + +
    + + + +
    + +
    + +
    - - -<% content_for(:scripts) do %> - <%= javascript_include_tag "demo-app", defer: true %> -<% end %> diff --git a/website/source/intro/getting-started/apis.html.md b/website/source/intro/getting-started/apis.html.md index c357584e98..5db1d3147a 100644 --- a/website/source/intro/getting-started/apis.html.md +++ b/website/source/intro/getting-started/apis.html.md @@ -1,6 +1,7 @@ --- layout: "intro" page_title: "Using the HTTP APIs with Authentication" +sidebar_title: "HTTP API" sidebar_current: "gettingstarted-apis" description: |- Using the HTTP APIs for authentication and secret access. diff --git a/website/source/intro/getting-started/authentication.html.md b/website/source/intro/getting-started/authentication.html.md index 2fb6015dc9..66a01047e6 100644 --- a/website/source/intro/getting-started/authentication.html.md +++ b/website/source/intro/getting-started/authentication.html.md @@ -1,6 +1,7 @@ --- layout: "intro" page_title: "Authentication - Getting Started" +sidebar_title: "Authentication" sidebar_current: "gettingstarted-auth" description: |- Authentication to Vault gives a user access to use Vault. Vault can authenticate using multiple methods. diff --git a/website/source/intro/getting-started/deploy.html.md b/website/source/intro/getting-started/deploy.html.md index 3b81881c7f..733de327b6 100644 --- a/website/source/intro/getting-started/deploy.html.md +++ b/website/source/intro/getting-started/deploy.html.md @@ -1,6 +1,7 @@ --- layout: "intro" page_title: "Deploy Vault - Getting Started" +sidebar_title: "Deploy Vault" sidebar_current: "gettingstarted-deploy" description: |- Learn how to deploy Vault into production, how to initialize it, configure it, etc. diff --git a/website/source/intro/getting-started/dev-server.html.md b/website/source/intro/getting-started/dev-server.html.md index e27a72a741..fcaed0f4df 100644 --- a/website/source/intro/getting-started/dev-server.html.md +++ b/website/source/intro/getting-started/dev-server.html.md @@ -1,7 +1,8 @@ --- layout: "intro" page_title: "Starting the Server - Getting Started" -sidebar_current: "gettingstarted-devserver" +sidebar_title: "Starting the Server" +sidebar_current: "gettingstarted-dev-server" description: |- After installing Vault, the next step is to start the server. --- @@ -71,15 +72,15 @@ and root access key. **Do not run a dev server in production!** With the dev server running, do the following three things before anything else: - 1. Launch a new terminal session. +1. Launch a new terminal session. - 2. Copy and run the `export VAULT_ADDR ...` command from the terminal - output. This will configure the Vault client to talk to our dev server. +2. Copy and run the `export VAULT_ADDR ...` command from the terminal + output. This will configure the Vault client to talk to our dev server. - 3. Save the unseal key somewhere. Don't worry about _how_ to save this - securely. For now, just save it anywhere. +3. Save the unseal key somewhere. Don't worry about _how_ to save this + securely. For now, just save it anywhere. - 4. Do the same as step 3, but with the root token. We'll use this later. +4. Do the same as step 3, but with the root token. We'll use this later. ## Verify the Server is Running diff --git a/website/source/intro/getting-started/dynamic-secrets.html.md b/website/source/intro/getting-started/dynamic-secrets.html.md index fa92514e1d..93f460a3f6 100644 --- a/website/source/intro/getting-started/dynamic-secrets.html.md +++ b/website/source/intro/getting-started/dynamic-secrets.html.md @@ -1,7 +1,8 @@ --- layout: "intro" page_title: "Dynamic Secrets - Getting Started" -sidebar_current: "gettingstarted-dynamicsecrets" +sidebar_title: "Dynamic Secrets" +sidebar_current: "gettingstarted-dynamic-secrets" description: |- On this page we introduce dynamic secrets by showing you how to create AWS access keys with Vault. --- diff --git a/website/source/intro/getting-started/first-secret.html.md b/website/source/intro/getting-started/first-secret.html.md index 7c5226334b..7a8095df9b 100644 --- a/website/source/intro/getting-started/first-secret.html.md +++ b/website/source/intro/getting-started/first-secret.html.md @@ -1,7 +1,8 @@ --- layout: "intro" page_title: "Your First Secret - Getting Started" -sidebar_current: "gettingstarted-firstsecret" +sidebar_title: "Your First Secret" +sidebar_current: "gettingstarted-first-secret" description: |- With the Vault server running, let's read and write our first secret. --- diff --git a/website/source/intro/getting-started/help.html.md b/website/source/intro/getting-started/help.html.md index bba118a1b1..41059682ed 100644 --- a/website/source/intro/getting-started/help.html.md +++ b/website/source/intro/getting-started/help.html.md @@ -1,6 +1,7 @@ --- layout: "intro" page_title: "Built-in Help - Getting Started" +sidebar_title: "Built-in Help" sidebar_current: "gettingstarted-help" description: |- Vault has a built-in help system to learn about the available paths in Vault and how to use them. diff --git a/website/source/intro/getting-started/install.html.md b/website/source/intro/getting-started/index.html.md similarity index 98% rename from website/source/intro/getting-started/install.html.md rename to website/source/intro/getting-started/index.html.md index a7ef2657ee..92f69bf287 100644 --- a/website/source/intro/getting-started/install.html.md +++ b/website/source/intro/getting-started/index.html.md @@ -1,7 +1,8 @@ --- layout: "intro" page_title: "Install Vault - Getting Started" -sidebar_current: "gettingstarted-install" +sidebar_title: "Getting Started" +sidebar_current: "gettingstarted" description: |- The first step to using Vault is to get it installed. --- @@ -83,6 +84,7 @@ $ vault -autocomplete-install This will automatically install the helpers in your `~/.bashrc` or `~/.zshrc`, or to `~/.config/fish/completions/vault.fish` for Fish users. Then restart your terminal or reload your shell: + ```sh $ exec $SHELL ``` diff --git a/website/source/intro/getting-started/next-steps.html.md b/website/source/intro/getting-started/next-steps.html.md index d4bc6b2420..dc6006813a 100644 --- a/website/source/intro/getting-started/next-steps.html.md +++ b/website/source/intro/getting-started/next-steps.html.md @@ -1,7 +1,8 @@ --- layout: "intro" page_title: "Next Steps - Getting Started" -sidebar_current: "gettingstarted-nextsteps" +sidebar_title: "Next Steps" +sidebar_current: "gettingstarted-next-steps" description: |- After completing the getting started guide, learn about what to do next with Vault. --- diff --git a/website/source/intro/getting-started/policies.html.md b/website/source/intro/getting-started/policies.html.md index 0649c6e896..0586b10d5e 100644 --- a/website/source/intro/getting-started/policies.html.md +++ b/website/source/intro/getting-started/policies.html.md @@ -1,6 +1,7 @@ --- layout: "intro" page_title: "Policies - Getting Started" +sidebar_title: "Policies" sidebar_current: "gettingstarted-policies" description: |- Policies in Vault control what a user can access. diff --git a/website/source/intro/getting-started/secrets-engines.html.md b/website/source/intro/getting-started/secrets-engines.html.md index e37d148475..73793493eb 100644 --- a/website/source/intro/getting-started/secrets-engines.html.md +++ b/website/source/intro/getting-started/secrets-engines.html.md @@ -1,7 +1,8 @@ --- layout: "intro" page_title: "Secrets Engines - Getting Started" -sidebar_current: "gettingstarted-secretbackends" +sidebar_title: "Secrets Engines" +sidebar_current: "gettingstarted-secret-backends" description: |- secrets engines are what create, read, update, and delete secrets. --- diff --git a/website/source/intro/vs/dropbox.html.md b/website/source/intro/vs/dropbox.html.md deleted file mode 100644 index f3089549b1..0000000000 --- a/website/source/intro/vs/dropbox.html.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -layout: "intro" -page_title: "Vault vs. Dropbox" -sidebar_current: "vs-other-dropbox" -description: |- - Comparison between Vault and attempting to store secrets with Dropbox. ---- - -# Vault vs. Dropbox - -It is an unfortunate truth that many organizations, big and small, -often use Dropbox as a mechanism for storing secrets. It is so common -that we've decided to make a special section for it instead of throwing -it under the "custom solutions" header. - -Dropbox is not made for storing secrets. Even if you're using something -such as an encrypted disk image within Dropbox, it is subpar versus a -real secret storage server. - -A real secret management tool such as Vault has a stronger security -model, integrates with many different authentication services, stores -audit logs, can generate dynamic secrets, and more. - -And, due to `vault` CLI, using `vault` on a developer machine is -simple! diff --git a/website/source/layouts/_sidebar.erb b/website/source/layouts/_sidebar.erb deleted file mode 100644 index 4c2ace01e5..0000000000 --- a/website/source/layouts/_sidebar.erb +++ /dev/null @@ -1,33 +0,0 @@ - - - diff --git a/website/source/layouts/api.erb b/website/source/layouts/api.erb index 4fca03a026..2b404cb9cd 100644 --- a/website/source/layouts/api.erb +++ b/website/source/layouts/api.erb @@ -1,346 +1,150 @@ +<% @meganav_title = 'API Docs' %> + <% wrap_layout :inner do %> <% content_for :sidebar do %> - + <% end %> - <%= yield %> +
    + <%= yield %> +
    <% end %> diff --git a/website/source/layouts/docs.erb b/website/source/layouts/docs.erb index 08d1afeafc..4a76cde30f 100644 --- a/website/source/layouts/docs.erb +++ b/website/source/layouts/docs.erb @@ -1,723 +1,358 @@ +<% @meganav_title = 'Docs' %> + <% wrap_layout :inner do %> <% content_for :sidebar do %> - + <% end %> - <%= yield %> +
    + <%= yield %> +
    <% end %> diff --git a/website/source/layouts/downloads.erb b/website/source/layouts/downloads.erb deleted file mode 100644 index ecba2c2b80..0000000000 --- a/website/source/layouts/downloads.erb +++ /dev/null @@ -1,24 +0,0 @@ -<% wrap_layout :inner do %> - <% content_for :sidebar do %> - - <% end %> - - <%= yield %> -<% end %> diff --git a/website/source/layouts/guides.erb b/website/source/layouts/guides.erb index 99ebb937fa..8b97547dd7 100644 --- a/website/source/layouts/guides.erb +++ b/website/source/layouts/guides.erb @@ -1,214 +1,70 @@ <% wrap_layout :inner do %> <% content_for :sidebar do %> - + <% end %> - <%= yield %> +
    + <%= yield %> +
    <% end %> diff --git a/website/source/layouts/inner.erb b/website/source/layouts/inner.erb index 5cb8b75d0d..1589fa2f3b 100644 --- a/website/source/layouts/inner.erb +++ b/website/source/layouts/inner.erb @@ -1,13 +1,19 @@ <% wrap_layout :layout do %> -
    -
    - + -
    - <%= yield %> -
    -
    -
    +
    + + +
    + <%= yield %> +
    +
    <% end %> diff --git a/website/source/layouts/intro.erb b/website/source/layouts/intro.erb index 35b4bc6a76..8d36e7dbe2 100644 --- a/website/source/layouts/intro.erb +++ b/website/source/layouts/intro.erb @@ -1,97 +1,32 @@ <% wrap_layout :inner do %> <% content_for :sidebar do %> - + <% end %> - <%= yield %> +
    + <%= yield %> +
    <% end %> diff --git a/website/source/layouts/layout.erb b/website/source/layouts/layout.erb index 028a3be58b..1cfa31085a 100644 --- a/website/source/layouts/layout.erb +++ b/website/source/layouts/layout.erb @@ -6,18 +6,18 @@ - "> - " sizes="32x32"> - " sizes="16x16"> + + + - " color="#23414a"> + - + "/> @@ -27,99 +27,37 @@ <%= title_for(current_page) %> - - - <%= stylesheet_link_tag "application" %> + + + - - - <%= javascript_include_tag "application", defer: true %> + - <%= yield_content :scripts %> - - - + <%= yield_content :head %> + +
    <%= yield %>
    + - <%= mega_nav :vault %> + - <%= partial "layouts/sidebar" %> - - <%= yield %> - - <%= partial "ember_templates" %> - <%= partial "ember_steps" %> - - + <%= yield_content :scripts %> + diff --git a/website/source/netlify-redirects b/website/source/netlify-redirects new file mode 100644 index 0000000000..d16719ab0f --- /dev/null +++ b/website/source/netlify-redirects @@ -0,0 +1,166 @@ +/api/secret/generic/index.html /api/secret/kv +/api/system/renew.html /api/system/leases +/api/system/revoke-force.html /api/system/leases +/api/system/revoke-prefix.html /api/system/leases +/api/system/revoke.html /api/system/leases +/docs/auth/aws-ec2.html /docs/auth/aws +/docs/commands/environment.html /docs/commands/#environment-variables +/docs/commands/help.html /docs/commands/path-help +/docs/commands/read-write.html /docs/commands#reading-and-writing-data +/docs/config/index.html /docs/configuration +/docs/configuration/storage/google-cloud.html /docs/configuration/storage/google-cloud-storage +/docs/configuration/storage/spanner.html /docs/configuration/storage/google-cloud-spanner +/docs/enterprise/hsm/configuration.html /docs/configuration/seal/pkcs11 +/docs/enterprise/ui/index.html /docs/configuration/ui +/docs/guides/generate-root.html /guides/operations/generate-root +/docs/guides/index.html /guides +/docs/guides/production.html /guides/operations/production +/docs/guides/replication.html /guides/operations/replication +/docs/guides/upgrading/index.html /docs/upgrading +/docs/guides/upgrading/upgrade-to-0.5.0.html /docs/upgrading/upgrade-to-0.5.0 +/docs/guides/upgrading/upgrade-to-0.5.1.html /docs/upgrading/upgrade-to-0.5.1 +/docs/guides/upgrading/upgrade-to-0.6.0.html /docs/upgrading/upgrade-to-0.6.0 +/docs/guides/upgrading/upgrade-to-0.6.1.html /docs/upgrading/upgrade-to-0.6.1 +/docs/guides/upgrading/upgrade-to-0.6.2.html /docs/upgrading/upgrade-to-0.6.2 +/docs/guides/upgrading/upgrade-to-0.6.3.html /docs/upgrading/upgrade-to-0.6.3 +/docs/guides/upgrading/upgrade-to-0.6.4.html /docs/upgrading/upgrade-to-0.6.4 +/docs/guides/upgrading/upgrade-to-0.7.0.html /docs/upgrading/upgrade-to-0.7.0 +/guides/upgrading/upgrade-to-0.5.0.html /docs/upgrading/upgrade-to-0.5.0 +/guides/upgrading/upgrade-to-0.5.1.html /docs/upgrading/upgrade-to-0.5.1 +/guides/upgrading/upgrade-to-0.6.0.html /docs/upgrading/upgrade-to-0.6.0 +/guides/upgrading/upgrade-to-0.6.1.html /docs/upgrading/upgrade-to-0.6.1 +/guides/upgrading/upgrade-to-0.6.2.html /docs/upgrading/upgrade-to-0.6.2 +/guides/upgrading/upgrade-to-0.6.3.html /docs/upgrading/upgrade-to-0.6.3 +/guides/upgrading/upgrade-to-0.6.4.html /docs/upgrading/upgrade-to-0.6.4 +/guides/upgrading/upgrade-to-0.7.0.html /docs/upgrading/upgrade-to-0.7.0 +/guides/upgrading/upgrade-to-0.8.0.html /docs/upgrading/upgrade-to-0.8.0 +/guides/upgrading/upgrade-to-0.9.0.html /docs/upgrading/upgrade-to-0.9.0 +/guides/upgrading/upgrade-to-0.9.1.html /docs/upgrading/upgrade-to-0.9.1 +/guides/upgrading/upgrade-to-0.9.2.html /docs/upgrading/upgrade-to-0.9.2 +/guides/upgrading/upgrade-to-0.9.3.html /docs/upgrading/upgrade-to-0.9.3 +/guides/upgrading/upgrade-to-0.9.6.html /docs/upgrading/upgrade-to-0.9.6 +/guides/upgrading/upgrade-to-0.10.0.html /docs/upgrading/upgrade-to-0.10.0 +/guides/upgrading/upgrade-to-0.10.2.html /docs/upgrading/upgrade-to-0.10.2 +/guides/upgrading/upgrade-to-0.10.4.html /docs/upgrading/upgrade-to-0.10.4 +/guides/upgrading/upgrade-to-0.11.0.html /docs/upgrading/upgrade-to-0.11.0 +/guides/upgrading/upgrade-to-0.11.2.html /docs/upgrading/upgrade-to-0.11.2 +/docs/http/sys-audit.html /api/system/audit +/docs/http/sys-auth.html /api/system/auth +/docs/http/sys-health.html /api/system/health +/docs/http/sys-init.html /api/system/init +/docs/http/sys-key-status.html /api/system/key-status +/docs/http/sys-leader.html /api/system/leader +/docs/http/sys-mounts.html /api/system/mounts +/docs/http/sys-policy.html /api/system/policy +/docs/http/sys-raw.html /api/system/raw +/docs/http/sys-rekey.html /api/system/rekey +/docs/http/sys-remount.html /api/system/remount +/docs/http/sys-renew.html /api/system/leases +/docs/http/sys-revoke-prefix.html /api/system/leases +/docs/http/sys-revoke.html /api/system/leases +/docs/http/sys-rotate.html /api/system/rotate +/docs/http/sys-seal-status.html /api/system/seal-status +/docs/http/sys-seal.html /api/system/seal +/docs/http/sys-unseal.html /api/system/unseal +/docs/install/install.html /docs/install +/docs/install/upgrade-to-0.5.1.html /docs/upgrading/upgrade-to-0.5.1 +/docs/install/upgrade-to-0.5.html /docs/upgrading/upgrade-to-0.5.0 +/docs/install/upgrade-to-0.6.1.html /docs/upgrading/upgrade-to-0.6.1 +/docs/install/upgrade-to-0.6.2.html /docs/upgrading/upgrade-to-0.6.2 +/docs/install/upgrade-to-0.6.html /docs/upgrading/upgrade-to-0.6.0 +/docs/install/upgrade.html /docs/upgrading +/docs/secrets/custom.html /docs/plugin +/docs/secrets/generic/index.html /docs/secrets/kv +/docs/vault-enterprise/hsm/behavior.html /docs/enterprise/hsm/behavior +/docs/vault-enterprise/hsm/configuration.html /docs/enterprise/hsm/configuration +/docs/vault-enterprise/hsm/index.html /docs/enterprise/hsm +/docs/vault-enterprise/hsm/security.html /docs/enterprise/hsm/security +/docs/vault-enterprise/identity/index.html /docs/enterprise/identity +/docs/vault-enterprise/index.html /docs/enterprise +/docs/vault-enterprise/mfa/index.html /docs/enterprise/mfa +/docs/vault-enterprise/mfa/mfa-duo.html /docs/enterprise/mfa/mfa-duo +/docs/vault-enterprise/mfa/mfa-okta.html /docs/enterprise/mfa/mfa-okta +/docs/vault-enterprise/mfa/mfa-pingid.html /docs/enterprise/mfa/mfa-pingid +/docs/vault-enterprise/mfa/mfa-totp.html /docs/enterprise/mfa/mfa-totp +/docs/vault-enterprise/replication/index.html /docs/enterprise/replication +/docs/vault-enterprise/ui/index.html /docs/configuration/ui +/guides/authentication.html /guides/identity/authentication +/guides/configuration/authentication.html /guides/identity/authentication +/guides/configuration/generate-root.html /guides/operations/generate-root +/guides/configuration/lease.html /guides/identity/lease +/guides/configuration/plugin-backends.html /guides/operations/plugin-backends +/guides/configuration/policies.html /guides/identity/policies +/guides/configuration/rekeying-and-rotating.html /guides/operations/rekeying-and-rotating +/guides/cubbyhole.html /guides/secret-mgmt/cubbyhole +/guides/dynamic-secret.html /guides/secret-mgmt/dynamic-secret +/guides/generate-root.html /guides/operations/generate-root +/guides/lease.html /guides/identity/lease +/guides/plugin-backends.html /guides/operations/plugin-backends +/guides/policies.html /guides/identity/policies +/guides/production.html /guides/operations/production +/guides/rekeying-and-rotating.html /guides/operations/rekeying-and-rotating +/guides/replication.html /guides/operations/replication +/guides/static-secrets.html /guides/secret-mgmt/static-secrets +/intro/getting-started/acl.html /intro/getting-started/policies +/intro/getting-started/secret-backends.html /intro/getting-started/secrets-engines + +/guides/getting-started/index.html https://learn.hashicorp.com/vault + +/guides/operations/index.html https://learn.hashicorp.com/vault/vault/?track=operations#operations +/guides/operations/reference-architecture.html https://learn.hashicorp.com/vault/vault/operations/ops-reference-architecture +/guides/operations/deployment-guide.html https://learn.hashicorp.com/vault/vault/operations/ops-deployment-guide +/guides/operations/vault-ha-consul.html https://learn.hashicorp.com/vault/operations/ops-vault-ha-consul +/guides/operations/production.html https://learn.hashicorp.com/vault/operations/production-hardening +/guides/operations/generate-root.html https://learn.hashicorp.com/vault/operations/ops-generate-root +/guides/operations/rekeying-and-rotating.html https://learn.hashicorp.com/vault/operations/ops-rekeying-and-rotating +/guides/operations/plugin-backends.html https://learn.hashicorp.com/vault/developer/plugin-backends +/guides/operations/replication.html https://learn.hashicorp.com/vault/operations/ops-replication +/guides/operations/disaster-recovery.html https://learn.hashicorp.com/vault/operations/ops-disaster-recovery +/guides/operations/mount-filter.html https://learn.hashicorp.com/vault/operations/mount-filter +/guides/operations/performance-nodes.html https://learn.hashicorp.com/vault/operations/performance-standbys +/guides/operations/multi-tenant.html https://learn.hashicorp.com/vault/operations/namespaces +/guides/operations/autounseal-aws-kms.html https://learn.hashicorp.com/vault/operations/ops-autounseal-aws-kms +/guides/operations/seal-wrap.html https://learn.hashicorp.com/vault/operations/ops-seal-wrap + +# Identity +/guides/identity/index.html https://learn.hashicorp.com/vault?track=identity-access-management#identity-access-management +/guides/identity/secure-intro.html https://learn.hashicorp.com/vault/identity-access-management/iam-secure-intro +/guides/identity/policies.html https://learn.hashicorp.com/vault/identity-access-management/iam-policies +/guides/identity/policy-templating.html https://learn.hashicorp.com/vault/identity-access-management/policy-templating +/guides/identity/authentication.html https://learn.hashicorp.com/vault/identity-access-management/iam-authentication +/guides/identity/approle-trusted-entities.html https://learn.hashicorp.com/vault/identity-access-management/iam-approle-trusted-entities +/guides/identity/lease.html https://learn.hashicorp.com/vault/secrets-management/sm-lease +/guides/identity/identity.html https://learn.hashicorp.com/vault/identity-access-management/iam-identity +/guides/identity/sentinel.html https://learn.hashicorp.com/vault/identity-access-management/iam-sentinel +/guides/identity/control-groups.html https://learn.hashicorp.com/vault/identity-access-management/iam-control-groups + +# Secret management +/guides/secret-mgmt/index.html https://learn.hashicorp.com/vault/?track=secrets-management#secrets-management +/guides/secret-mgmt/static-secrets.html https://learn.hashicorp.com/vault/secrets-management/sm-static-secrets +/guides/secret-mgmt/versioned-kv.html https://learn.hashicorp.com/vault/secrets-management/sm-versioned-kv +/guides/secret-mgmt/dynamic-secrets.html https://learn.hashicorp.com/vault/secrets-management/sm-dynamic-secrets +/guides/secret-mgmt/db-root-rotation.html https://learn.hashicorp.com/vault/secrets-management/db-root-rotation +/guides/secret-mgmt/cubbyhole.html https://learn.hashicorp.com/vault/secrets-management/sm-cubbyhole +/guides/secret-mgmt/ssh-otp.html https://learn.hashicorp.com/vault/secrets-management/sm-ssh-otp +/guides/secret-mgmt/pki-engine.html https://learn.hashicorp.com/vault/secrets-management/sm-pki-engine +/guides/secret-mgmt/app-integration.html https://learn.hashicorp.com/vault/developer/sm-app-integration + +# Encryption +/guides/encryption/index.html https://learn.hashicorp.com/vault/?track=encryption-as-a-service#encryption-as-a-service +/guides/encryption/transit.html https://learn.hashicorp.com/vault/encryption-as-a-service/eaas-transit +/guides/encryption/spring-demo.html https://learn.hashicorp.com/vault/encryption-as-a-service/eaas-spring-demo +/guides/encryption/transit-rewrap.html https://learn.hashicorp.com/vault/encryption-as-a-service/eaas-transit-rewrap + +# Rearranged out of `guides` but still on `.io` +/guides/partnerships/index.html /docs/partnerships +/intro/use-cases.html /docs/use-cases +/intro/vs/index.html /docs/vs +/intro/vs/chef-puppet-etc.html /docs/vs/chef-puppet-etc +/intro/vs/consul.html /docs/vs/consul +/intro/vs/custom.html /docs/vs/custom +/intro/vs/dropbox.html /docs/vs/dropbox +/intro/vs/hsm.html /docs/vs/hsm +/intro/vs/index.html /docs/vs +/intro/vs/keywhiz.html /docs/vs/keywhiz +/intro/vs/kms.html /docs/vs/kms +/intro/what-is-vault/index.html /docs/what-is-vault diff --git a/website/source/sitemap.xml.builder b/website/source/sitemap.xml.builder index a08b5b0e34..a2b5b1a558 100644 --- a/website/source/sitemap.xml.builder +++ b/website/source/sitemap.xml.builder @@ -10,7 +10,7 @@ xml.urlset 'xmlns' => "http://www.sitemaps.org/schemas/sitemap/0.9" do .select { |page| !page.data.noindex } .each do |page| xml.url do - xml.loc File.join(base_url, page.url) + xml.loc File.join(config[:base_url], page.url) xml.lastmod Date.today.to_time.iso8601 xml.changefreq page.data.changefreq || "monthly" xml.priority page.data.priority || "0.5" From 56b3fb337a33d31c5ddf18abeae44a6b946a4530 Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Fri, 19 Oct 2018 12:54:56 -0400 Subject: [PATCH 07/18] fix github repo reference (#5555) --- website/deploy/variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/deploy/variables.tf b/website/deploy/variables.tf index 2386d407cf..0f0b2a1399 100644 --- a/website/deploy/variables.tf +++ b/website/deploy/variables.tf @@ -4,7 +4,7 @@ variable "name" { } variable "github_repo" { - default = "hashicorp/packer" + default = "hashicorp/vault" description = "GitHub repository of the provider in 'org/name' format." } From ae9b0fbd6b9bd02fa78ddf055f2558f419256fea Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 19 Oct 2018 11:46:36 -0700 Subject: [PATCH 08/18] website: Fix makefile commands to quote command (#5559) --- website/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/Makefile b/website/Makefile index f5f0b1ad13..7e6d8ca0c8 100644 --- a/website/Makefile +++ b/website/Makefile @@ -1,5 +1,5 @@ configure-cache: - mkdir -p tmp/cache + @mkdir -p tmp/cache build: configure-cache @echo "==> Starting build in Docker..." @@ -11,7 +11,7 @@ build: configure-cache --volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \ --env "ENV=production" \ netlify/build \ - build sh bootstrap.sh && middleman build --verbose + build "sh bootstrap.sh && middleman build --verbose" website: configure-cache @echo "==> Starting website in Docker..." @@ -25,6 +25,6 @@ website: configure-cache --publish "35729:35729" \ --env "ENV=production" \ netlify/build \ - build sh bootstrap.sh && middleman + build "sh bootstrap.sh && middleman" .PHONY: configure-cache build website From d069e90e4dc8fb45d0cb6354ca623d4977d52f35 Mon Sep 17 00:00:00 2001 From: madalynrose Date: Fri, 19 Oct 2018 15:16:43 -0400 Subject: [PATCH 09/18] add masked input to sensitive parts of credentials (#5551) --- .../components/generate-credentials.hbs | 17 ++++++++++++++++- .../partials/secret-backend-settings/aws.hbs | 5 ++--- ui/tests/acceptance/ssh-test.js | 2 +- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ui/app/templates/components/generate-credentials.hbs b/ui/app/templates/components/generate-credentials.hbs index 5c07dde8be..377f645cd9 100644 --- a/ui/app/templates/components/generate-credentials.hbs +++ b/ui/app/templates/components/generate-credentials.hbs @@ -42,7 +42,22 @@ {{#if (eq attr.type "object")}} {{info-table-row label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=(stringify (get model attr.name))}} {{else}} - {{info-table-row label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=(get model attr.name)}} + {{#if (or + (eq attr.name "key") + (eq attr.name "secretKey") + (eq attr.name "securityToken") + (eq attr.name "privateKey") + )}} + {{#info-table-row label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=(get model attr.name)}} + + {{/info-table-row}} + {{else}} + {{info-table-row label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=(get model attr.name)}} + {{/if}} {{/if}} {{/each}}
    diff --git a/ui/app/templates/partials/secret-backend-settings/aws.hbs b/ui/app/templates/partials/secret-backend-settings/aws.hbs index 0ee253b4ef..ea5224859d 100644 --- a/ui/app/templates/partials/secret-backend-settings/aws.hbs +++ b/ui/app/templates/partials/secret-backend-settings/aws.hbs @@ -52,7 +52,7 @@ Access Key
    - {{input type="text" id="access" name="access" class="input" value=accessKey data-test-aws-input="accessKey"}} + {{input type="text" id="access" name="access" class="input" autocomplete="off" value=accessKey data-test-aws-input="accessKey"}}
    @@ -61,7 +61,7 @@ Secret Key
    - {{input type="text" id="secret" name="secret" class="input" value=secretKey data-test-aws-input="secretKey"}} + {{input type="password" id="secret" name="secret" class="input" value=secretKey data-test-aws-input="secretKey"}}
    @@ -119,4 +119,3 @@ {{/if}} - diff --git a/ui/tests/acceptance/ssh-test.js b/ui/tests/acceptance/ssh-test.js index 572b231f18..08a49d1e4e 100644 --- a/ui/tests/acceptance/ssh-test.js +++ b/ui/tests/acceptance/ssh-test.js @@ -52,7 +52,7 @@ module('Acceptance | ssh secret backend', function(hooks) { 'otp credential url is correct' ); assert.dom('[data-test-row-label="Key"]').exists({ count: 1 }, 'renders the key'); - assert.dom('[data-test-row-value="Key"]').exists({ count: 1 }, "renders the key's value"); + assert.dom('[data-test-masked-input]').exists({ count: 1 }, 'renders mask for key value'); assert.dom('[data-test-row-label="Port"]').exists({ count: 1 }, 'renders the port'); assert.dom('[data-test-row-value="Port"]').exists({ count: 1 }, "renders the port's value"); }, From ba9c1a249c969447b9a6bfb83f66cf4bc4be1787 Mon Sep 17 00:00:00 2001 From: Chris Hoffman Date: Fri, 19 Oct 2018 15:21:42 -0400 Subject: [PATCH 10/18] safely clean up loaded map (#5558) --- vault/expiration.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vault/expiration.go b/vault/expiration.go index 574c58e5b2..4d3ceff54a 100644 --- a/vault/expiration.go +++ b/vault/expiration.go @@ -497,9 +497,12 @@ func (m *ExpirationManager) Restore(errorFunc func()) (retErr error) { wg.Wait() m.restoreModeLock.Lock() - m.restoreLoaded = sync.Map{} - m.restoreLocks = nil atomic.StoreInt32(m.restoreMode, 0) + m.restoreLoaded.Range(func(k, v interface{}) bool { + m.restoreLoaded.Delete(k) + return true + }) + m.restoreLocks = nil m.restoreModeLock.Unlock() m.logger.Info("lease restore complete") From 8afbc3d32bd526caa32c81cf94bd227c713114ce Mon Sep 17 00:00:00 2001 From: madalynrose Date: Fri, 19 Oct 2018 15:22:43 -0400 Subject: [PATCH 11/18] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98ecd2bcd9..9c5ccf4256 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ IMPROVEMENTS: packet [GH-5465] * ui: Allow viewing and updating Vault license via the UI * ui: Onboarding will now display your progress through the chosen tutorials + * ui: Dynamic secret backends obfuscate sensitive data by default and visibility is toggleable BUG FIXES: From fabe1d9e071e18f3b5465b9bc524c58cadd0cd10 Mon Sep 17 00:00:00 2001 From: Vishal Nayak Date: Fri, 19 Oct 2018 12:47:26 -0700 Subject: [PATCH 12/18] Case insensitive identity names (#5404) * case insensitive identity names * TestIdentityStore_GroupHierarchyCases * address review feedback * Use errwrap.Contains instead of errwrap.ContainsType * Warn about duplicate names all the time to help fix them * Address review feedback --- vault/identity_store.go | 20 +++-- vault/identity_store_aliases.go | 10 ++- vault/identity_store_aliases_test.go | 84 ++++++++++++++++++++ vault/identity_store_entities.go | 2 +- vault/identity_store_entities_test.go | 76 +++++++++++++++++- vault/identity_store_group_aliases_test.go | 76 ++++++++++++++++++ vault/identity_store_groups_test.go | 72 +++++++++++++++++ vault/identity_store_schema.go | 26 ++++--- vault/identity_store_structs.go | 4 + vault/identity_store_util.go | 89 +++++++++++++++++++--- 10 files changed, 425 insertions(+), 34 deletions(-) diff --git a/vault/identity_store.go b/vault/identity_store.go index c0c435614b..c2976ce675 100644 --- a/vault/identity_store.go +++ b/vault/identity_store.go @@ -31,23 +31,31 @@ func (c *Core) IdentityStore() *IdentityStore { return c.identityStore } -// NewIdentityStore creates a new identity store -func NewIdentityStore(ctx context.Context, core *Core, config *logical.BackendConfig, logger log.Logger) (*IdentityStore, error) { +func (i *IdentityStore) resetDB(ctx context.Context) error { var err error - // Create a new in-memory database for the identity store - db, err := memdb.NewMemDB(identityStoreSchema()) + i.db, err = memdb.NewMemDB(identityStoreSchema(!i.disableLowerCasedNames)) if err != nil { - return nil, errwrap.Wrapf("failed to create memdb for identity store: {{err}}", err) + return err } + return nil +} + +func NewIdentityStore(ctx context.Context, core *Core, config *logical.BackendConfig, logger log.Logger) (*IdentityStore, error) { iStore := &IdentityStore{ view: config.StorageView, - db: db, logger: logger, core: core, } + // Create a memdb instance, which by default, operates on lower cased + // identity names + err := iStore.resetDB(ctx) + if err != nil { + return nil, err + } + entitiesPackerLogger := iStore.logger.Named("storagepacker").Named("entities") core.AddLogger(entitiesPackerLogger) groupsPackerLogger := iStore.logger.Named("storagepacker").Named("groups") diff --git a/vault/identity_store_aliases.go b/vault/identity_store_aliases.go index 43b1ddbb06..e81851283a 100644 --- a/vault/identity_store_aliases.go +++ b/vault/identity_store_aliases.go @@ -181,10 +181,6 @@ func (i *IdentityStore) handleAliasUpdateCommon() framework.OperationFunc { if entity == nil { return nil, fmt.Errorf("existing alias is not associated with an entity") } - if canonicalID == "" || entity.ID == canonicalID { - // Nothing to do - return nil, nil - } } resp := &logical.Response{} @@ -255,6 +251,12 @@ func (i *IdentityStore) handleAliasUpdateCommon() framework.OperationFunc { return nil, err } + for index, item := range entity.Aliases { + if item.ID == alias.ID { + entity.Aliases[index] = alias + } + } + // Index entity and its aliases in MemDB and persist entity along with // aliases in storage. If the alias is being transferred over from // one entity to another, previous entity needs to get refreshed in MemDB diff --git a/vault/identity_store_aliases_test.go b/vault/identity_store_aliases_test.go index 1e1494eda0..a09b8a6e96 100644 --- a/vault/identity_store_aliases_test.go +++ b/vault/identity_store_aliases_test.go @@ -2,6 +2,7 @@ package vault import ( "reflect" + "strings" "testing" "github.com/hashicorp/vault/helper/identity" @@ -9,6 +10,89 @@ import ( "github.com/hashicorp/vault/logical" ) +func TestIdentityStore_CaseInsensitiveEntityAliasName(t *testing.T) { + ctx := namespace.RootContext(nil) + i, accessor, _ := testIdentityStoreWithGithubAuth(ctx, t) + + // Create an entity + resp, err := i.HandleRequest(ctx, &logical.Request{ + Path: "entity", + Operation: logical.UpdateOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + entityID := resp.Data["id"].(string) + + testAliasName := "testAliasName" + // Create a case sensitive alias name + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "entity-alias", + Operation: logical.UpdateOperation, + Data: map[string]interface{}{ + "mount_accessor": accessor, + "canonical_id": entityID, + "name": testAliasName, + }, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + aliasID := resp.Data["id"].(string) + + // Ensure that reading the alias returns case sensitive alias name + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "entity-alias/id/" + aliasID, + Operation: logical.ReadOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + aliasName := resp.Data["name"].(string) + if aliasName != testAliasName { + t.Fatalf("bad alias name; expected: %q, actual: %q", testAliasName, aliasName) + } + + // Overwrite the alias using lower cased alias name. This shouldn't error. + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "entity-alias/id/" + aliasID, + Operation: logical.UpdateOperation, + Data: map[string]interface{}{ + "mount_accessor": accessor, + "canonical_id": entityID, + "name": strings.ToLower(testAliasName), + }, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + + // Ensure that reading the alias returns lower cased alias name + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "entity-alias/id/" + aliasID, + Operation: logical.ReadOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + aliasName = resp.Data["name"].(string) + if aliasName != strings.ToLower(testAliasName) { + t.Fatalf("bad alias name; expected: %q, actual: %q", testAliasName, aliasName) + } + + // Ensure that there is one entity alias + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "entity-alias/id", + Operation: logical.ListOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + if len(resp.Data["keys"].([]string)) != 1 { + t.Fatalf("bad length of entity aliases; expected: 1, actual: %d", len(resp.Data["keys"].([]string))) + } +} + // This test is required because MemDB does not take care of ensuring // uniqueness of indexes that are marked unique. func TestIdentityStore_AliasSameAliasNames(t *testing.T) { diff --git a/vault/identity_store_entities.go b/vault/identity_store_entities.go index c1f06fa810..3097b1b573 100644 --- a/vault/identity_store_entities.go +++ b/vault/identity_store_entities.go @@ -467,7 +467,7 @@ func (i *IdentityStore) pathEntityNameDelete() framework.OperationFunc { defer txn.Abort() // Fetch the entity using its name - entity, err := i.MemDBEntityByNameInTxn(txn, ctx, entityName, true) + entity, err := i.MemDBEntityByNameInTxn(ctx, txn, entityName, true) if err != nil { return nil, err } diff --git a/vault/identity_store_entities_test.go b/vault/identity_store_entities_test.go index b1e03bca7a..e6a379fe30 100644 --- a/vault/identity_store_entities_test.go +++ b/vault/identity_store_entities_test.go @@ -5,6 +5,7 @@ import ( "fmt" "reflect" "sort" + "strings" "testing" uuid "github.com/hashicorp/go-uuid" @@ -14,6 +15,77 @@ import ( "github.com/hashicorp/vault/logical" ) +func TestIdentityStore_CaseInsensitiveEntityName(t *testing.T) { + ctx := namespace.RootContext(nil) + i, _, _ := testIdentityStoreWithGithubAuth(ctx, t) + + testEntityName := "testEntityName" + + // Create an entity with case sensitive name + resp, err := i.HandleRequest(ctx, &logical.Request{ + Path: "entity", + Operation: logical.UpdateOperation, + Data: map[string]interface{}{ + "name": testEntityName, + }, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + entityID := resp.Data["id"].(string) + + // Lookup the entity by ID and check that name returned is case sensitive + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "entity/id/" + entityID, + Operation: logical.ReadOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + entityName := resp.Data["name"].(string) + if entityName != testEntityName { + t.Fatalf("bad entity name; expected: %q, actual: %q", testEntityName, entityName) + } + + // Lookup the entity by case sensitive name + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "entity/name/" + testEntityName, + Operation: logical.ReadOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err: %v\nresp: %#v", err, resp) + } + entityName = resp.Data["name"].(string) + if entityName != testEntityName { + t.Fatalf("bad entity name; expected: %q, actual: %q", testEntityName, entityName) + } + + // Lookup the entity by case insensitive name + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "entity/name/" + strings.ToLower(testEntityName), + Operation: logical.ReadOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err: %v\nresp: %#v", err, resp) + } + entityName = resp.Data["name"].(string) + if entityName != testEntityName { + t.Fatalf("bad entity name; expected: %q, actual: %q", testEntityName, entityName) + } + + // Ensure that there is only one entity + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "entity/name", + Operation: logical.ListOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err: %v\nresp: %#v", err, resp) + } + if len(resp.Data["keys"].([]string)) != 1 { + t.Fatalf("bad length of entities; expected: 1, actual: %d", len(resp.Data["keys"].([]string))) + } +} + func TestIdentityStore_EntityByName(t *testing.T) { ctx := namespace.RootContext(nil) i, _, _ := testIdentityStoreWithGithubAuth(ctx, t) @@ -270,8 +342,8 @@ func TestIdentityStore_EntityCreateUpdate(t *testing.T) { func TestIdentityStore_CloneImmutability(t *testing.T) { alias := &identity.Alias{ - ID: "testaliasid", - Name: "testaliasname", + ID: "testaliasid", + Name: "testaliasname", MergedFromCanonicalIDs: []string{"entityid1"}, } diff --git a/vault/identity_store_group_aliases_test.go b/vault/identity_store_group_aliases_test.go index 9b3788c09b..ca1ca3c465 100644 --- a/vault/identity_store_group_aliases_test.go +++ b/vault/identity_store_group_aliases_test.go @@ -1,6 +1,7 @@ package vault import ( + "strings" "testing" credLdap "github.com/hashicorp/vault/builtin/credential/ldap" @@ -10,6 +11,81 @@ import ( "github.com/hashicorp/vault/logical" ) +func TestIdentityStore_CaseInsensitiveGroupAliasName(t *testing.T) { + ctx := namespace.RootContext(nil) + i, accessor, _ := testIdentityStoreWithGithubAuth(ctx, t) + + // Create a group + resp, err := i.HandleRequest(ctx, &logical.Request{ + Path: "group", + Operation: logical.UpdateOperation, + Data: map[string]interface{}{ + "type": "external", + }, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err: %v\nresp: %#v", err, resp) + } + groupID := resp.Data["id"].(string) + + testAliasName := "testAliasName" + + // Create a case sensitive alias name + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "group-alias", + Operation: logical.UpdateOperation, + Data: map[string]interface{}{ + "mount_accessor": accessor, + "canonical_id": groupID, + "name": testAliasName, + }, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + aliasID := resp.Data["id"].(string) + + // Ensure that reading the alias returns case sensitive alias name + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "group-alias/id/" + aliasID, + Operation: logical.ReadOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + aliasName := resp.Data["name"].(string) + if aliasName != testAliasName { + t.Fatalf("bad alias name; expected: %q, actual: %q", testAliasName, aliasName) + } + + // Overwrite the alias using lower cased alias name. This shouldn't error. + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "group-alias/id/" + aliasID, + Operation: logical.UpdateOperation, + Data: map[string]interface{}{ + "mount_accessor": accessor, + "canonical_id": groupID, + "name": strings.ToLower(testAliasName), + }, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + + // Ensure that reading the alias returns lower cased alias name + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "group-alias/id/" + aliasID, + Operation: logical.ReadOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + aliasName = resp.Data["name"].(string) + if aliasName != strings.ToLower(testAliasName) { + t.Fatalf("bad alias name; expected: %q, actual: %q", testAliasName, aliasName) + } +} + func TestIdentityStore_EnsureNoDanglingGroupAlias(t *testing.T) { err := AddTestCredentialBackend("userpass", credUserpass.Factory) if err != nil { diff --git a/vault/identity_store_groups_test.go b/vault/identity_store_groups_test.go index 20efae7f16..2f326630b1 100644 --- a/vault/identity_store_groups_test.go +++ b/vault/identity_store_groups_test.go @@ -3,6 +3,7 @@ package vault import ( "reflect" "sort" + "strings" "testing" "github.com/go-test/deep" @@ -80,6 +81,77 @@ func TestIdentityStore_MemberGroupIDDelete(t *testing.T) { } } +func TestIdentityStore_CaseInsensitiveGroupName(t *testing.T) { + ctx := namespace.RootContext(nil) + i, _, _ := testIdentityStoreWithGithubAuth(ctx, t) + + testGroupName := "testGroupName" + + // Create an group with case sensitive name + resp, err := i.HandleRequest(ctx, &logical.Request{ + Path: "group", + Operation: logical.UpdateOperation, + Data: map[string]interface{}{ + "name": testGroupName, + }, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + groupID := resp.Data["id"].(string) + + // Lookup the group by ID and check that name returned is case sensitive + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "group/id/" + groupID, + Operation: logical.ReadOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err:%v\nresp: %#v", err, resp) + } + groupName := resp.Data["name"].(string) + if groupName != testGroupName { + t.Fatalf("bad group name; expected: %q, actual: %q", testGroupName, groupName) + } + + // Lookup the group by case sensitive name + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "group/name/" + testGroupName, + Operation: logical.ReadOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err: %v\nresp: %#v", err, resp) + } + groupName = resp.Data["name"].(string) + if groupName != testGroupName { + t.Fatalf("bad group name; expected: %q, actual: %q", testGroupName, groupName) + } + + // Lookup the group by case insensitive name + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "group/name/" + strings.ToLower(testGroupName), + Operation: logical.ReadOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err: %v\nresp: %#v", err, resp) + } + groupName = resp.Data["name"].(string) + if groupName != testGroupName { + t.Fatalf("bad group name; expected: %q, actual: %q", testGroupName, groupName) + } + + // Ensure that there is only one group + resp, err = i.HandleRequest(ctx, &logical.Request{ + Path: "group/name", + Operation: logical.ListOperation, + }) + if err != nil || (resp != nil && resp.IsError()) { + t.Fatalf("bad: err: %v\nresp: %#v", err, resp) + } + if len(resp.Data["keys"].([]string)) != 1 { + t.Fatalf("bad length of groups; expected: 1, actual: %d", len(resp.Data["keys"].([]string))) + } +} + func TestIdentityStore_GroupByName(t *testing.T) { ctx := namespace.RootContext(nil) i, _, _ := testIdentityStoreWithGithubAuth(ctx, t) diff --git a/vault/identity_store_schema.go b/vault/identity_store_schema.go index 34915f4534..5989c4f162 100644 --- a/vault/identity_store_schema.go +++ b/vault/identity_store_schema.go @@ -13,12 +13,12 @@ const ( groupAliasesTable = "group_aliases" ) -func identityStoreSchema() *memdb.DBSchema { +func identityStoreSchema(lowerCaseName bool) *memdb.DBSchema { iStoreSchema := &memdb.DBSchema{ Tables: make(map[string]*memdb.TableSchema), } - schemas := []func() *memdb.TableSchema{ + schemas := []func(bool) *memdb.TableSchema{ entitiesTableSchema, aliasesTableSchema, groupsTableSchema, @@ -26,7 +26,7 @@ func identityStoreSchema() *memdb.DBSchema { } for _, schemaFunc := range schemas { - schema := schemaFunc() + schema := schemaFunc(lowerCaseName) if _, ok := iStoreSchema.Tables[schema.Name]; ok { panic(fmt.Sprintf("duplicate table name: %s", schema.Name)) } @@ -36,7 +36,7 @@ func identityStoreSchema() *memdb.DBSchema { return iStoreSchema } -func aliasesTableSchema() *memdb.TableSchema { +func aliasesTableSchema(lowerCaseName bool) *memdb.TableSchema { return &memdb.TableSchema{ Name: entityAliasesTable, Indexes: map[string]*memdb.IndexSchema{ @@ -56,7 +56,8 @@ func aliasesTableSchema() *memdb.TableSchema { Field: "MountAccessor", }, &memdb.StringFieldIndex{ - Field: "Name", + Field: "Name", + Lowercase: lowerCaseName, }, }, }, @@ -71,7 +72,7 @@ func aliasesTableSchema() *memdb.TableSchema { } } -func entitiesTableSchema() *memdb.TableSchema { +func entitiesTableSchema(lowerCaseName bool) *memdb.TableSchema { return &memdb.TableSchema{ Name: entitiesTable, Indexes: map[string]*memdb.IndexSchema{ @@ -91,7 +92,8 @@ func entitiesTableSchema() *memdb.TableSchema { Field: "NamespaceID", }, &memdb.StringFieldIndex{ - Field: "Name", + Field: "Name", + Lowercase: lowerCaseName, }, }, }, @@ -120,7 +122,7 @@ func entitiesTableSchema() *memdb.TableSchema { } } -func groupsTableSchema() *memdb.TableSchema { +func groupsTableSchema(lowerCaseName bool) *memdb.TableSchema { return &memdb.TableSchema{ Name: groupsTable, Indexes: map[string]*memdb.IndexSchema{ @@ -140,7 +142,8 @@ func groupsTableSchema() *memdb.TableSchema { Field: "NamespaceID", }, &memdb.StringFieldIndex{ - Field: "Name", + Field: "Name", + Lowercase: lowerCaseName, }, }, }, @@ -175,7 +178,7 @@ func groupsTableSchema() *memdb.TableSchema { } } -func groupAliasesTableSchema() *memdb.TableSchema { +func groupAliasesTableSchema(lowerCaseName bool) *memdb.TableSchema { return &memdb.TableSchema{ Name: groupAliasesTable, Indexes: map[string]*memdb.IndexSchema{ @@ -195,7 +198,8 @@ func groupAliasesTableSchema() *memdb.TableSchema { Field: "MountAccessor", }, &memdb.StringFieldIndex{ - Field: "Name", + Field: "Name", + Lowercase: lowerCaseName, }, }, }, diff --git a/vault/identity_store_structs.go b/vault/identity_store_structs.go index c9ddb245bd..c8e8026c59 100644 --- a/vault/identity_store_structs.go +++ b/vault/identity_store_structs.go @@ -70,6 +70,10 @@ type IdentityStore struct { // core is the pointer to Vault's core core *Core + + // disableLowerCaseNames indicates whether or not identity artifacts are + // operated case insensitively + disableLowerCasedNames bool } type groupDiff struct { diff --git a/vault/identity_store_util.go b/vault/identity_store_util.go index 6fe3d0daa0..b60ce972b9 100644 --- a/vault/identity_store_util.go +++ b/vault/identity_store_util.go @@ -2,6 +2,7 @@ package vault import ( "context" + "errors" "fmt" "strings" "sync" @@ -19,24 +20,57 @@ import ( "github.com/hashicorp/vault/logical" ) +var ( + errDuplicateIdentityName = errors.New("duplicate identity name") +) + func (c *Core) loadIdentityStoreArtifacts(ctx context.Context) error { - var err error if c.identityStore == nil { c.logger.Warn("identity store is not setup, skipping loading") return nil } - err = c.identityStore.loadEntities(ctx) + loadFunc := func(context.Context) error { + err := c.identityStore.loadEntities(ctx) + if err != nil { + return err + } + return c.identityStore.loadGroups(ctx) + } + + // Load everything when memdb is set to operate on lower cased names + err := loadFunc(ctx) + switch { + case err == nil: + // If it succeeds, all is well + return nil + case err != nil && !errwrap.Contains(err, errDuplicateIdentityName.Error()): + return err + } + + c.identityStore.logger.Warn("enabling case sensitive identity names") + + // Set identity store to operate on case sensitive identity names + c.identityStore.disableLowerCasedNames = true + + // Swap the memdb instance by the one which operates on case sensitive + // names, hence obviating the need to unload anything that's already + // loaded. + err = c.identityStore.resetDB(ctx) if err != nil { return err } - err = c.identityStore.loadGroups(ctx) - if err != nil { - return err - } + // Attempt to load identity artifacts once more after memdb is reset to + // accept case sensitive names + return loadFunc(ctx) +} - return nil +func (i *IdentityStore) sanitizeName(name string) string { + if i.disableLowerCasedNames { + return name + } + return strings.ToLower(name) } func (i *IdentityStore) loadGroups(ctx context.Context) error { @@ -66,6 +100,18 @@ func (i *IdentityStore) loadGroups(ctx context.Context) error { continue } + // Ensure that there are no groups with duplicate names + groupByName, err := i.MemDBGroupByName(ctx, group.Name, false) + if err != nil { + return err + } + if groupByName != nil { + i.logger.Warn(errDuplicateIdentityName.Error(), "group_name", group.Name, "conflicting_group_name", groupByName.Name, "action", "merge the contents of duplicated groups into one and delete the other") + if !i.disableLowerCasedNames { + return errDuplicateIdentityName + } + } + if i.logger.IsDebug() { i.logger.Debug("loading group", "name", group.Name, "id", group.ID) } @@ -187,6 +233,18 @@ func (i *IdentityStore) loadEntities(ctx context.Context) error { continue } + // Ensure that there are no entities with duplicate names + entityByName, err := i.MemDBEntityByName(ctx, entity.Name, false) + if err != nil { + return nil + } + if entityByName != nil { + i.logger.Warn(errDuplicateIdentityName.Error(), "entity_name", entity.Name, "conflicting_entity_name", entityByName.Name, "action", "merge the duplicate entities into one") + if !i.disableLowerCasedNames { + return errDuplicateIdentityName + } + } + // Only update MemDB and don't hit the storage again err = i.upsertEntity(ctx, entity, nil, false) if err != nil { @@ -223,7 +281,9 @@ func (i *IdentityStore) upsertEntityInTxn(ctx context.Context, txn *memdb.Txn, e return fmt.Errorf("entity is nil") } - for _, alias := range entity.Aliases { + aliasFactors := make([]string, len(entity.Aliases)) + + for index, alias := range entity.Aliases { // Verify that alias is not associated to a different one already aliasByFactors, err := i.MemDBAliasByFactors(alias.MountAccessor, alias.Name, false, false) if err != nil { @@ -244,11 +304,20 @@ func (i *IdentityStore) upsertEntityInTxn(ctx context.Context, txn *memdb.Txn, e return nil } + if strutil.StrListContains(aliasFactors, i.sanitizeName(alias.Name)+alias.MountAccessor) { + i.logger.Warn(errDuplicateIdentityName.Error(), "alias_name", alias.Name, "mount_accessor", alias.MountAccessor, "entity_name", entity.Name, "action", "delete one of the duplicate aliases") + if !i.disableLowerCasedNames { + return errDuplicateIdentityName + } + } + // Insert or update alias in MemDB using the transaction created above err = i.MemDBUpsertAliasInTxn(txn, alias, false) if err != nil { return err } + + aliasFactors[index] = i.sanitizeName(alias.Name) + alias.MountAccessor } // If previous entity is set, update it in MemDB and persist it @@ -583,10 +652,10 @@ func (i *IdentityStore) MemDBEntityByName(ctx context.Context, entityName string txn := i.db.Txn(false) - return i.MemDBEntityByNameInTxn(txn, ctx, entityName, clone) + return i.MemDBEntityByNameInTxn(ctx, txn, entityName, clone) } -func (i *IdentityStore) MemDBEntityByNameInTxn(txn *memdb.Txn, ctx context.Context, entityName string, clone bool) (*identity.Entity, error) { +func (i *IdentityStore) MemDBEntityByNameInTxn(ctx context.Context, txn *memdb.Txn, entityName string, clone bool) (*identity.Entity, error) { if entityName == "" { return nil, fmt.Errorf("missing entity name") } From 36be5785a2316db6d0a5540e6245a38b27f17b18 Mon Sep 17 00:00:00 2001 From: vishalnayak Date: Fri, 19 Oct 2018 15:51:31 -0400 Subject: [PATCH 13/18] changelog++ --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c5ccf4256..7f0abe5651 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ FEATURES: IMPROVEMENTS: + * identity: Identity names will now be handled case insensitively by default. + This includes names of entities, aliases and groups [GH-5404] * secret/database: Allow Cassandra user to be non-superuser so long as it has role creation permissions [GH-5402] * secret/radius: Allow setting the NAS Identifier value in the generated From 068da60712ce8ccc260513b564bd862b110deadd Mon Sep 17 00:00:00 2001 From: Jim Kalafut Date: Fri, 19 Oct 2018 13:48:15 -0700 Subject: [PATCH 14/18] Update Azure Secrets docs (#5554) Add coverage of application_object_id parameter. --- website/source/api/secret/azure/index.html.md | 12 ++-- .../source/docs/secrets/azure/index.html.md | 70 +++++++++++++++---- 2 files changed, 64 insertions(+), 18 deletions(-) diff --git a/website/source/api/secret/azure/index.html.md b/website/source/api/secret/azure/index.html.md index 7fba82016c..f51832ccdf 100644 --- a/website/source/api/secret/azure/index.html.md +++ b/website/source/api/secret/azure/index.html.md @@ -112,9 +112,10 @@ $ curl \ ## Create/Update Role -Create or update a Vault role. The provided Azure roles must exist -for this call to succeed. See the Azure secrets [roles docs][roles] -for more information about roles. +Create or update a Vault role. Either `application_object_id` or +`azure_roles` must be provided, and these resources must exist for this +call to succeed. See the Azure secrets [roles docs][roles] for more +information about roles. | Method | Path | Produces | | :------- | :------------------------| :------------------------ | @@ -123,9 +124,12 @@ for more information about roles. ### Parameters -- `azure_roles` (`string: `) - List of Azure roles to be assigned to the generated service +- `azure_roles` (`string: ""`) - List of Azure roles to be assigned to the generated service principal. The array must be in JSON format, properly escaped as a string. See [roles docs][roles] for details on role definition. +- `application_object_id` (`string: ""`) - Application Object ID for an existing service principal that will + be used instead of creating dynamic service principals. If present, `azure_roles` will be ignored. See + [roles docs][roles] for details on role definition. - `ttl` (`string: ""`) – Specifies the default TTL for service principals generated using this role. Accepts time suffixed strings ("1h") or an integer number of seconds. Defaults to the system/engine default TTL time. - `max_ttl` (`string: ""`) – Specifies the maximum TTL for service principals generated using this role. Accepts time diff --git a/website/source/docs/secrets/azure/index.html.md b/website/source/docs/secrets/azure/index.html.md index 90eb26f5c2..6ce133ac7c 100644 --- a/website/source/docs/secrets/azure/index.html.md +++ b/website/source/docs/secrets/azure/index.html.md @@ -19,6 +19,10 @@ Each service principal is associated with a Vault lease. When the lease expires (either during normal revocation or through early revocation), the service principal is automatically deleted. +If an existing service principal is specified as part of the role configuration, +a new password will be dynamically generated instead of a new service principal. +The password will be deleted when the lease is revoked. + ## Setup Most secrets engines must be configured in advance before they can perform their @@ -50,10 +54,16 @@ management tool. If you are running Vault inside an Azure VM with MSI enabled, `client_id` and `client_secret` may be omitted. For more information on authentication, see the [authentication](#authentication) section below. -1. Configure a role. Roles determine the permissions that the service principal -generated by Vault will have to Azure resources. +1. Configure a role. A role may be set up with either an existing service principal, or +a set of Azure roles that will be assigned to a dynamically created service principal. - To configure a role called "my-role": +To configure a role called "my-role" with an existing service principal: + + ```text + $ vault write azure/roles/my-role application_object_id= ttl=1h + ``` + + Alternatively, to configure the role to create a new service principal with Azure roles: ```text $ vault write azure/roles/my-role ttl=1h azure_roles=-< Date: Fri, 19 Oct 2018 17:04:09 -0400 Subject: [PATCH 15/18] analytics correction to run through segment, clean up extra methods in config.rb (#5562) --- website/config.rb | 69 ++++--------------------------- website/source/layouts/layout.erb | 7 ++-- 2 files changed, 13 insertions(+), 63 deletions(-) diff --git a/website/config.rb b/website/config.rb index ce5c2930c2..9a1727b1b7 100644 --- a/website/config.rb +++ b/website/config.rb @@ -13,31 +13,19 @@ activate :hashicorp do |h| h.datocms_api_key = '78d2968c99a076419fbb' end -# ready do -# dato.tap do |dato| -# sitemap.resources.each do |page| -# if page.path.match(/\.html$/) -# if page.metadata[:options][:layout] && ['docs', 'guides', 'api', 'intro'].include?(page.metadata[:options][:layout]) -# # get the page category from the url -# match = page.path.match(/^(.*?)\//) -# # proxy the page route -# proxy "#{page.path}", "/content", { -# layout: page.metadata[:options][:layout], -# locals: page.metadata[:page].merge({ -# content: render(page), -# sidebar_data: get_sidebar_data(match ? match[1] : nil) -# }) -# }, ignore: true -# end -# end -# end -# end -# end - # Netlify redirects/headers proxy '_redirects', 'netlify-redirects', ignore: true helpers do + # get correct analytics id + def segmentId() + if (ENV['ENV'] == 'production') + 'OdSFDq9PfujQpmkZf03dFpcUlywme4sC' + else + '0EXTgkNx0Ydje2PGXVbRhpKKoe5wtzcE' + end + end + # Formats and filters a category of docs for the sidebar component def get_sidebar_data(category) sitemap.resources.select { |resource| @@ -139,42 +127,3 @@ helpers do return classes.join(" ") end end - -# custom version of middleman's render that renders only a file's contents -# without front matter or layouts -def render(page) - full_path = page.file_descriptor[:full_path] - relative_path = page.file_descriptor[:relative_path] - content = File.read(full_path).to_s - locals = {} - options = {} - - data = @app.extensions[:front_matter].data(relative_path.to_s) - frontmatter = data[0] - content = data[1] - - context = @app.template_context_class.new(@app, locals, options) - _render_with_all_renderers(relative_path.to_s, locals, context, options) -end - -# pirated from middleman source, its protected there sadly -def _render_with_all_renderers(path, locs, context, opts, &block) - # Keep rendering template until we've used up all extensions. This - # handles cases like `style.css.sass.erb` - content = nil - - while ::Middleman::Util.tilt_class(path) - begin - opts[:template_body] = content if content - - content_renderer = ::Middleman::FileRenderer.new(@app, path) - content = content_renderer.render(locs, opts, context, &block) - - path = path.sub(/\.[^.]*\z/, '') - rescue LocalJumpError - raise "Tried to render a layout (calls yield) at #{path} like it was a template. Non-default layouts need to be in #{@app.config[:source]}/#{@app.config[:layouts_dir]}." - end - end - - content -end diff --git a/website/source/layouts/layout.erb b/website/source/layouts/layout.erb index 1cfa31085a..4b8e235613 100644 --- a/website/source/layouts/layout.erb +++ b/website/source/layouts/layout.erb @@ -33,9 +33,10 @@ - + + <%= yield_content :head %> From 2651d0b5686f1de9022af0f6ef67b0f436fcafd3 Mon Sep 17 00:00:00 2001 From: RJ Spiker Date: Fri, 19 Oct 2018 14:05:23 -0700 Subject: [PATCH 16/18] fix product-subnav broken links (#5561) --- website/source/api/index.html.erb | 7 ++----- website/source/docs/index.html.erb | 7 ++----- website/source/index.html.erb | 7 ++----- website/source/layouts/inner.erb | 9 +++------ 4 files changed, 9 insertions(+), 21 deletions(-) diff --git a/website/source/api/index.html.erb b/website/source/api/index.html.erb index f5319f92a1..6b7aa2d27c 100644 --- a/website/source/api/index.html.erb +++ b/website/source/api/index.html.erb @@ -6,12 +6,9 @@ description: |- <% @meganav_title = 'API Docs' %> -
    diff --git a/website/source/docs/index.html.erb b/website/source/docs/index.html.erb index 0d2820d83c..fdbce13adf 100644 --- a/website/source/docs/index.html.erb +++ b/website/source/docs/index.html.erb @@ -6,12 +6,9 @@ description: |- <% @meganav_title = 'Docs' %> -
    diff --git a/website/source/index.html.erb b/website/source/index.html.erb index 2f1b64a75d..bcad1560d1 100644 --- a/website/source/index.html.erb +++ b/website/source/index.html.erb @@ -4,12 +4,9 @@ description: "Vault secures, stores, and tightly controls access to tokens, pass <% page = dato.vault_oss_page %> - diff --git a/website/source/layouts/inner.erb b/website/source/layouts/inner.erb index 1589fa2f3b..26480cac65 100644 --- a/website/source/layouts/inner.erb +++ b/website/source/layouts/inner.erb @@ -1,10 +1,7 @@ <% wrap_layout :layout do %> -
    From 4498b88fc5acbab2cd59f869cd5f12d7406e9c67 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 19 Oct 2018 14:10:18 -0700 Subject: [PATCH 17/18] website: fix broken link in docs header --- website/source/docs/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/index.html.erb b/website/source/docs/index.html.erb index fdbce13adf..0a9360094c 100644 --- a/website/source/docs/index.html.erb +++ b/website/source/docs/index.html.erb @@ -15,7 +15,7 @@ description: |-
    From 7e0b47df282d8675d9af8d78f48c844c03af7351 Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Fri, 19 Oct 2018 17:34:23 -0400 Subject: [PATCH 18/18] fix docs sidebar issue, update product subnav (#5564) --- .../js/components/docs-sidebar/index.js | 141 ------------------ .../js/components/docs-sidebar/style.css | 127 ---------------- website/assets/js/index.js | 6 +- website/assets/package.json | 5 +- website/assets/reshape.js | 4 +- website/assets/yarn.lock | 8 +- website/source/layouts/api.erb | 4 +- website/source/layouts/docs.erb | 4 +- website/source/layouts/guides.erb | 4 +- website/source/layouts/intro.erb | 2 +- 10 files changed, 19 insertions(+), 286 deletions(-) delete mode 100644 website/assets/js/components/docs-sidebar/index.js delete mode 100644 website/assets/js/components/docs-sidebar/style.css diff --git a/website/assets/js/components/docs-sidebar/index.js b/website/assets/js/components/docs-sidebar/index.js deleted file mode 100644 index ef40b3a110..0000000000 --- a/website/assets/js/components/docs-sidebar/index.js +++ /dev/null @@ -1,141 +0,0 @@ -const { h, Component } = require('preact') -const { decode } = require('reshape-preact-components') -const assign = require('object-assign') - -module.exports = class Sidebar extends Component { - render() { - const current = this.props.current_page.split('/').slice(1) - const category = this.props.category - const order = decode(this.props.order) - const data = decode(this.props.data).map(p => { - p.path = p.path - .split('/') - .slice(1) - .join('/') - return p - }) - - return ( -
    - -
    - ) - } - - // replace all terminal page nodes with page data from middleman - matchOrderToPageData(content, pageData) { - // go through each item in the user-established order - return content.map(item => { - if (typeof item === 'string') { - // special divider functionality - if (item.match(/^-+$/)) return item - // if we have a string, that's a terminal page. we match it with - // middleman's page data and return the enhanced object - return pageData.filter(page => { - const pageName = page.path - .split('/') - .pop() - .replace(/\.html$/, '') - return pageName === item - })[0] - } else { - // grab the index page, as it can contain data about the top level link - item.indexData = pageData.find(page => { - const split = page.path.split('/') - return ( - split[split.length - 2] === item.category && - split[split.length - 1] === 'index.html' - ) - }) - // otherwise, it's a nested category. if the category has content, we - // recurse, passing in that category's content, and the matching - // subsection of page data from middleman - if (item.content) { - item.content = this.matchOrderToPageData( - item.content, - this.filterData(pageData, item.category) - ) - } - return item - } - }) - } - - // recursive render for a recursive data structure! - renderNavTree(category, content, currentPath, depth = 0) { - return content.map(item => { - // dividers are the only items left as strings - if (typeof item === 'string') return
    - - if (item.path) { - const fileName = item.path.split('/').pop() - return ( -
  • - -
  • - ) - } else { - const title = item.indexData - ? item.indexData.data.sidebar_title || item.indexData.data.page_title - : item.category - return ( -
  • - - {item.content && ( - - )} -
  • - ) - } - }) - } - - filterData(data, category) { - return data.filter(d => d.path.split('/').includes(category)) - } - - categoryMatch(navItemPath, currentPath) { - navItemPath = navItemPath.slice(0, navItemPath.length - 1) - currentPath = currentPath.slice(0, currentPath.length - 1) - return currentPath.reduce((result, item, i) => { - if (item !== navItemPath[i]) result = false - return result - }, true) - } - - fileMatch(navItemPath, currentPath) { - return currentPath.reduce((result, item, i) => { - if (item !== navItemPath[i]) result = false - return result - }, true) - } -} diff --git a/website/assets/js/components/docs-sidebar/style.css b/website/assets/js/components/docs-sidebar/style.css deleted file mode 100644 index 878b561b43..0000000000 --- a/website/assets/js/components/docs-sidebar/style.css +++ /dev/null @@ -1,127 +0,0 @@ -@import '@hashicorp/hashi-global-styles/_variables'; - -.g-docs-sidebar { - width: 275px; - padding-left: 5px; - - & ul { - list-style: none; - margin: 0; - padding: 0; - - & a { - color: var(--gray-4); - padding: 7px 0 7px 12px; - display: block; - transition: color 0.2s ease; - - &:hover { - color: var(--gray-2); - } - } - - & hr { - background: none; - padding: 8px 0; - margin: 0; - - &:after { - content: ""; - border-bottom: 1px solid var(--gray-9); - display: block; - width: 90%; - } - } - - & > li { - position: relative; - - &.active > a:first-child { - color: var(--default-blue); - position: relative; - } - - &.dir::after { - content: ""; - width: 5px; - height: 8px; - display: block; - position: absolute; - background: url('/img/docs-sidebar-chevron.svg'); - top: 17px; - left: -3px; - } - - &.active.dir::after { - width: 8px; - height: 5px; - background: url('/img/docs-sidebar-chevron-active.svg'); - top: 19px; - left: -5px; - } - - & > ul > li, & > ul > hr { - display: none; - } - - &.active > ul > li, &.active > ul > hr { - display: block; - } - - & > ul { - & > li { - margin-left: 21.5px; - border-left: 1px solid var(--gray-9); - - &:last-child a { - padding-bottom: 0; - margin-bottom: 7px; - } - - &.active:not(.dir) > a:first-child { - &:after { - content: ""; - width: 4px; - height: 4px; - display: block; - background: var(--default-blue); - position: absolute; - left: -2px; - top: 18px; - border-radius: 50%; - } - - &:before { - content: ""; - width: 14px; - height: 14px; - display: block; - background: white; - position: absolute; - left: -7px; - top: 13px; - border-radius: 50%; - } - } - - &.dir::before { - content: ""; - width: 17px; - height: 23px; - display: block; - background: white; - position: absolute; - left: -9px; - top: 10px; - border-radius: 50%; - } - } - - & > hr { - border-left: 1px solid var(--gray-9); - margin-left: 21.5px; - } - } - } - } -} diff --git a/website/assets/js/index.js b/website/assets/js/index.js index 011ea9f9b7..749b591835 100644 --- a/website/assets/js/index.js +++ b/website/assets/js/index.js @@ -5,18 +5,18 @@ import nav from '@hashicorp/hashi-nav' import footer from '@hashicorp/hashi-footer' import newsletterSignupForm from '@hashicorp/hashi-newsletter-signup-form' import productSubnav from '@hashicorp/hashi-product-subnav' -import docsSidebar from './components/docs-sidebar' import megaNav from '@hashicorp/hashi-mega-nav' import productDownloader from '@hashicorp/hashi-product-downloader' import hero from '@hashicorp/hashi-hero' +import docsSidenav from '@hashicorp/hashi-docs-sidenav' const components = initializeComponents({ nav, footer, newsletterSignupForm, - docsSidebar, productSubnav, megaNav, productDownloader, - hero + hero, + docsSidenav }) diff --git a/website/assets/package.json b/website/assets/package.json index 664b10148c..277d0634e3 100644 --- a/website/assets/package.json +++ b/website/assets/package.json @@ -1,6 +1,7 @@ { "name": "middleman-spike-assets", - "description": "simple config to use postcss and webpack for asset processing", + "description": + "simple config to use postcss and webpack for asset processing", "version": "0.0.0", "author": "Jeff Escalante", "main": "app.js", @@ -24,7 +25,7 @@ "@hashicorp/hashi-nav": "1.0.5", "@hashicorp/hashi-newsletter-signup-form": "1.0.4", "@hashicorp/hashi-product-downloader": "^0.4.0", - "@hashicorp/hashi-product-subnav": "^0.4.3", + "@hashicorp/hashi-product-subnav": "^0.5.0", "@hashicorp/hashi-section-header": "2.0.2", "@hashicorp/hashi-split-cta": "^0.1.3", "@hashicorp/hashi-vertical-text-block-list": "^0.1.0", diff --git a/website/assets/reshape.js b/website/assets/reshape.js index 8adc66bab1..c4f419e465 100644 --- a/website/assets/reshape.js +++ b/website/assets/reshape.js @@ -7,7 +7,7 @@ const verticalTextBlockList = require('@hashicorp/hashi-vertical-text-block-list const sectionHeader = require('@hashicorp/hashi-section-header') const content = require('@hashicorp/hashi-content') const productDownloader = require('@hashicorp/hashi-product-downloader') -const docsSidebar = require('@hashicorp/hashi-docs-sidenav') +const docsSidenav = require('@hashicorp/hashi-docs-sidenav') const hero = require('@hashicorp/hashi-hero') const callouts = require('@hashicorp/hashi-callouts') const splitCta = require('@hashicorp/hashi-split-cta') @@ -18,7 +18,7 @@ module.exports = { 'hashi-footer': footer, 'hashi-nav': nav, 'hashi-button': button, - 'hashi-docs-sidebar': docsSidebar, + 'hashi-docs-sidenav': docsSidenav, 'hashi-mega-nav': megaNav, 'hashi-product-subnav': productSubnav, 'hashi-content': content, diff --git a/website/assets/yarn.lock b/website/assets/yarn.lock index e5284aaf19..62516e71f8 100644 --- a/website/assets/yarn.lock +++ b/website/assets/yarn.lock @@ -158,10 +158,10 @@ resolved "https://registry.yarnpkg.com/@hashicorp/hashi-product-downloader/-/hashi-product-downloader-0.4.0.tgz#68eb0048eccd3ce17231a93517fb91b29e2c40a8" integrity sha512-UXc3JhHMuhDIlm++fe2N4vwUXHvthzXoqaGkLPWS/T7g7COlzzj/EIjLw7hoSnu4Wb3T0uQXHP6hkRu5NbRZNA== -"@hashicorp/hashi-product-subnav@^0.4.3": - version "0.4.3" - resolved "https://registry.yarnpkg.com/@hashicorp/hashi-product-subnav/-/hashi-product-subnav-0.4.3.tgz#9ffa0992df3440c18cadac7f1cb8f43287563b41" - integrity sha512-V3tTZYwreWtxPxdCmeJ0KVrvgI5Mq3T2SkslmVtGUyq/O1UGjqCYnBe7iA8XIBux2nhJzFDH5YITNTEbEOAvnw== +"@hashicorp/hashi-product-subnav@^0.5.0": + version "0.5.0" + resolved "https://registry.yarnpkg.com/@hashicorp/hashi-product-subnav/-/hashi-product-subnav-0.5.0.tgz#0d012f7d496bff4b8204fcd42e498f3fb803fdc1" + integrity sha512-x7JvbHA04J9Hg6QZlEV3TqlEN3gPTTPIEXRbKAqdL53RR/3V9pfjW5iI+yhrCUH44QndJ7UclbRrKvVhdIrjOw== "@hashicorp/hashi-section-header@2.0.2": version "2.0.2" diff --git a/website/source/layouts/api.erb b/website/source/layouts/api.erb index 2b404cb9cd..156d41ebb8 100644 --- a/website/source/layouts/api.erb +++ b/website/source/layouts/api.erb @@ -3,7 +3,7 @@ <% wrap_layout :inner do %> <% content_for :sidebar do %> <% end %> diff --git a/website/source/layouts/docs.erb b/website/source/layouts/docs.erb index 4a76cde30f..8d174c3601 100644 --- a/website/source/layouts/docs.erb +++ b/website/source/layouts/docs.erb @@ -3,7 +3,7 @@ <% wrap_layout :inner do %> <% content_for :sidebar do %> <% end %> diff --git a/website/source/layouts/guides.erb b/website/source/layouts/guides.erb index 8b97547dd7..916b681120 100644 --- a/website/source/layouts/guides.erb +++ b/website/source/layouts/guides.erb @@ -1,7 +1,7 @@ <% wrap_layout :inner do %> <% content_for :sidebar do %> <% end %> diff --git a/website/source/layouts/intro.erb b/website/source/layouts/intro.erb index 8d36e7dbe2..806af7b71f 100644 --- a/website/source/layouts/intro.erb +++ b/website/source/layouts/intro.erb @@ -1,7 +1,7 @@ <% wrap_layout :inner do %> <% content_for :sidebar do %>