{"id":13741742,"url":"https://github.com/FieldDB/bower-fielddb-angular","last_synced_at":"2025-05-08T22:32:02.941Z","repository":{"id":19378854,"uuid":"22619473","full_name":"FieldDB/bower-fielddb-angular","owner":"FieldDB","description":"A bower repository which hosts fielddb-angular compiled versions, see https://github.com/OpenSourceFieldlinguistics/FieldDB/tree/master/angular_client/modules/core to modify the source code","archived":false,"fork":false,"pushed_at":"2015-08-04T14:38:07.000Z","size":1960,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-03T04:08:53.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FieldDB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-04T20:50:16.000Z","updated_at":"2015-01-09T12:16:08.000Z","dependencies_parsed_at":"2022-08-05T04:00:20.880Z","dependency_job_id":null,"html_url":"https://github.com/FieldDB/bower-fielddb-angular","commit_stats":null,"previous_names":["opensourcefieldlinguistics/bower-fielddb-angular"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FieldDB%2Fbower-fielddb-angular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FieldDB%2Fbower-fielddb-angular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FieldDB%2Fbower-fielddb-angular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FieldDB%2Fbower-fielddb-angular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FieldDB","download_url":"https://codeload.github.com/FieldDB/bower-fielddb-angular/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224775031,"owners_count":17367852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T04:01:02.264Z","updated_at":"2024-11-15T11:31:46.469Z","avatar_url":"https://github.com/FieldDB.png","language":"JavaScript","readme":"# FieldDB Angular\n\nA library of Angular components which can be reused to create new widgets or dashboards that connect/display/interact with FieldDB data\n\n## Getting Started\n\n### In the browser\n\nInstall the module with: `bower install fielddb-angular --save`\n\nOr, download the [production version][js],  [optional vendor libraries][vendor], and the [optional html templates][html_templates].\n\n[js]: https://raw.github.com/OpenSourceFieldlinguistics/bower-fielddb-angular/master/dist/scripts/scripts.js\n[html_templates]: https://raw.github.com/OpenSourceFieldlinguistics/bower-fielddb-angular/master/dist/scripts/templates.js\n[vendor]: https://raw.github.com/OpenSourceFieldlinguistics/bower-fielddb-angular/master/dist/scripts/vendor.js\n\nIn your app load the `script.js` and optionally:\n* `vendor.js` packages together all the dependancies for `fielddb-angular`, or you can use the copies in your own app if they are already there (see `bower.json` for a list of `fielddb-angular`'s dependancies) \n* `templates.js` if you want to use use some or all of the default tempaltes, or you can declare your own in your own project as long as they have the same name (eg, a custom `user.html`):\n\n```html\n\u003clink rel=\"stylesheet\" href=\"/bower_components/fielddb-angular/dist/styles/vendor.css\" /\u003e\n\u003clink rel=\"stylesheet\" href=\"/bower_components/fielddb-angular/dist/styles/main.css\" /\u003e\n\n\u003cscript src=\"bower_components/fielddb-angular/dist/scripts/vendor.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/fielddb-angular/dist/scripts/scripts.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/fielddb-angular/dist/scripts/templates.js\"\u003e\u003c/script\u003e\n```\n\n```javascript\n  angular\n  .module('myAppWhichUsesFieldDB', [\n    'ngAnimate',\n    'ngCookies',\n    'ngResource',\n    'ngRoute',\n    'ngSanitize',\n    'ngTouch',\n    'fielddbAngularApp'\n  ])\n  .config(function($routeProvider, $locationProvider) {\n    // $locationProvider.html5Mode(true);\n\n    $sceDelegateProvider.resourceUrlWhitelist([\n      // Allow same origin resource loads.\n      'self',\n      // Allow loading from outer domain.\n      'https://*.example.org/**',\n      'http://*.yourdomain.ca/**'\n    ]);\n\n    if (FieldDB \u0026\u0026 FieldDB.Router) {\n      for (var when in FieldDB.Router.routes) {\n        FieldDB.Router.routes[when].angularRoute.controller = 'FieldDBCorpusPagesController';\n        $routeProvider.when(FieldDB.Router.routes[when].path, FieldDB.Router.routes[when].angularRoute);\n      }\n      if (FieldDB.Router.otherwise) {\n        $routeProvider.otherwise(FieldDB.Router.otherwise);\n      }\n    }\n  });\n```\n\n## Examples\n\nYou can find more examples on how to use each component/directive in the specs directory.\n\n\nTo show a corpus's details:\n\n```html\n\u003cdiv data-fielddb-corpus json=\"corpus\"\u003e\u003c/div\u003e\n```\n\nTo show a corpus term's of use:\n\n```html\n\u003cdiv data-fielddb-corpus-terms-of-use json=\"corpus\"\u003e\u003c/div\u003e\n```\n\nTo show a team's profile:\n\n```html\n\u003cdiv data-fielddb-user json=\"team\"\u003e\u003c/div\u003e\n```\n\nTo show a login/logout button:\n\n```html\n\u003cdiv data-fielddb-authentication json=\"authentication\"\u003e\u003c/div\u003e\n```\n\nTo show an import widget:\n\n```html\n\u003cdiv data-fielddb-import json=\"{type: 'users'}\"\u003e\u003c/div\u003e\n```\n\n```html\n\u003cdiv data-fielddb-import json=\"{type: 'participants'}\"\u003e\u003c/div\u003e\n```\n\n```html\n\u003cdiv data-fielddb-import json=\"{type: 'datum'}\"\u003e\u003c/div\u003e\n```\n\nTo show a document of any type (it will autoguess)\n\n```html\n\u003cdiv data-fielddb-doc json=\"doc\"\u003e\u003c/div\u003e\n```\n\n\n[More directives....](https://github.com/OpenSourceFieldlinguistics/FieldDB/tree/master/angular_client/modules/core/app/scripts/directives)\n\n[More sample use of directives....](https://github.com/OpenSourceFieldlinguistics/FieldDB/tree/master/angular_client/modules/core/app/views)\n\n\n## Contributing\n\nGet the source code from https://github.com/OpenSourceFieldlinguistics/FieldDB. (https://github.com/OpenSourceFieldlinguistics/bower-fielddb-angular is only for hosting the bower compiled version) \n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n_Also, please don't edit files in the \"dist\" subdirectory as they are generated via Grunt. You'll find source code in the \"lib\" subdirectory!_\n\n## Release History\n\n* v2.14.0 iteration 2 of psycholinguistics dashboard (example at https://github.com/ProjetDeRechercheSurLecriture/DyslexDisorthGame/tree/master/angular_client)\n* v2.24.0 iteration 11 of psycholinguistics dashboard (example at https://github.com/ProjetDeRechercheSurLecriture/DyslexDisorthGame/tree/master/angular_client)\n\n## License\nCopyright (c) 2013-2014 FieldDB Contributors\nLicensed under the Apache 2.0 license.\n","funding_links":[],"categories":["FieldDB Webservices/Components/Plugins"],"sub_categories":["Utilities"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFieldDB%2Fbower-fielddb-angular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFieldDB%2Fbower-fielddb-angular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFieldDB%2Fbower-fielddb-angular/lists"}