{"id":20832273,"url":"https://github.com/scbd/idb-views","last_synced_at":"2026-03-19T17:44:31.961Z","repository":{"id":142470438,"uuid":"611926447","full_name":"scbd/idb-views","owner":"scbd","description":"Vue component to produce different views for the https://www.cbd.int/biodiversity-day","archived":false,"fork":false,"pushed_at":"2024-03-26T16:03:34.000Z","size":156,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-18T20:41:08.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scbd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-09T20:38:35.000Z","updated_at":"2024-03-26T15:27:24.000Z","dependencies_parsed_at":"2024-11-18T01:35:40.143Z","dependency_job_id":null,"html_url":"https://github.com/scbd/idb-views","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scbd%2Fidb-views","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scbd%2Fidb-views/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scbd%2Fidb-views/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scbd%2Fidb-views/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scbd","download_url":"https://codeload.github.com/scbd/idb-views/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243182545,"owners_count":20249651,"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-11-18T00:11:03.593Z","updated_at":"2025-12-26T02:36:47.069Z","avatar_url":"https://github.com/scbd.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# idb-views\nVue component to produce different views for the https://www.cbd.int/biodiversity-day\n\n# dev\n\nRuns the code base locally in development. To run on of the different views change the view param in src/main.js.  index.html in the root is the entry file for the server.\n\n[ 'IdbMessages', 'IdbMessagesAdmin','IdbActions', 'IdbActionsAdmin', 'IdbMessagesCommunity', 'IdbActionsCountries' ]\n\n# preview\n\nRuns the code base after being built but not as a self embedded component.  Preview uses public/preview/index.html as the entry point template.  However, points directly to dist/dev/es/preview/index.html and uses dist/dev/es/ as the server root.\n\nChange the view param on the fly in dist/dev/es/preview/index.html\n\n# preview-widget \n\nRuns the code base after being built and using the one line self embedding component. Preview-widget uses public/preview/widget/index.html as the entry point template. However, points directly to dist/dev/es/preview/widget/index.html and uses dist/dev/es/ as the server root.\n\nChange the view param on the fly in dist/dev/es/preview/widget/index.html\n\n# release-dev-s3\n1. build\n2. Replace reference to self in dist/import-map.json to s3 location.  '@scbd/idb-views': 'https://scbd-components.s3.amazonaws.com/%40scbd/idb-views%40${version}/dist/widget/index.js'\n3. In src/widget.js pass cdnUrl to WidgetBuilder\n\nTest the widget released on dev\n```\n\u003cscript \n      type = \"module\"\n      src  = \"https://scbd-components.s3.amazonaws.com/%40scbd/idb-views%400.0.2-alpha/dist/widget/index.js?d\"\n      options = \"{ \n                    debug      : true,\n                    baseApiUrl : 'https://api.cbddev.xyz/api',\n                    accountsUrl: 'https://accounts.cbddev.xyz',\n                    year       : 2023,\n                    view       : 'IdbActionsAdmin',\n                    editUrl    : 'https://rjh.bioland.cbddev.xyz/idb-message'\n                  }\"\u003e \n\u003c/script\u003e\n```\n# release\n\nRelease directly to npm for prod.  This need to be removed for ci release on pr.\n\n# clean-reinstall\n\ndeletes all node_modules and reinstalls all dependencies fresh.\n\n\n# view options\n\n```\n{ \n  // required by all\n\n    view        : '', // oneOf: [ 'IdbMessages', 'IdbMessagesAdmin','IdbActions', 'IdbActionsAdmin', 'IdbMessagesCommunity', 'IdbActionsCountries' ]\n    baseApiUrl  : 'https://api.cbd.int/api',\n    accountsUrl : 'https://accounts.cbd.int',\n    editUrl     : '', // url that homes edit form component for message or action\n    year        : '', // year of the IDB\n\n  // required by all\n  \n  // required by views: ['IdbMessages','IdbMessagesCommunity']\n\n    order       : [], // defines which types in what order are displayed on IdbMessages and what types not displayed on IdbMessagesCommunity\n\n  // required by views: ['IdbMessages','IdbMessagesCommunity']\n\n  // required by views: ['IdbActionsCountries']\n\n    countryBaseUrl:'https://rjh.bioland.cbddev.xyz/biodiversity-day/celebrations', the base url that will end with a country code https://rjh.bioland.cbddev.xyz/biodiversity-day/celebrations/ca\n\n  // required by views: ['IdbActionsCountries']\n\n  // required by views: ['IdbActions']\n\n  country     : '', // specifies current country to display\n\n  // required by views: ['IdbActions']\n\n  debug       : false\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscbd%2Fidb-views","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscbd%2Fidb-views","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscbd%2Fidb-views/lists"}