{"id":18512726,"url":"https://github.com/visual-framework/vf-sample-integrations","last_synced_at":"2025-05-14T12:14:35.294Z","repository":{"id":102077258,"uuid":"167536609","full_name":"visual-framework/vf-sample-integrations","owner":"visual-framework","description":"A few demo pages showing how the VF 2.0 can be used (fairly) seamlessly with other CSS and JS stacks.","archived":false,"fork":false,"pushed_at":"2023-12-15T08:34:17.000Z","size":539,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"gh-pages","last_synced_at":"2025-02-17T03:18:24.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://visual-framework.github.io/vf-sample-integrations/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/visual-framework.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":"2019-01-25T11:24:36.000Z","updated_at":"2019-06-13T09:45:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"6eb4ffe7-7dc4-47c3-8be9-2ebc61906ba8","html_url":"https://github.com/visual-framework/vf-sample-integrations","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/visual-framework%2Fvf-sample-integrations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visual-framework%2Fvf-sample-integrations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visual-framework%2Fvf-sample-integrations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visual-framework%2Fvf-sample-integrations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/visual-framework","download_url":"https://codeload.github.com/visual-framework/vf-sample-integrations/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254140772,"owners_count":22021222,"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-06T15:35:12.351Z","updated_at":"2025-05-14T12:14:35.224Z","avatar_url":"https://github.com/visual-framework.png","language":"JavaScript","readme":"# vf-sample-integrations\n\nA few demo pages showing how the [Visual Framework 2.0](https://visual-framework.github.io/vf-welcome/) (alpha.5) can be used without disrupting a site's CSS and JS stacks.\n\n## What does this show?\n\nIt demonstrates the VF 2.0's CSS and JS isolation through namespacing and element isolation (add link).\n\nTo illustrate, on the below demos we use the VF to:\n\n1. pull in reusable content from the EMBL ContentHub (add link) (uses CSS + JS)\n\n```html\n\u003c!-- BEGIN: VF 2.0 sample --\u003e\n\u003c!-- Jobs feed import --\u003e\n\u003clink rel=\"import\" href=\"https://dev.beta.embl.org/api/v1/pattern.html?pattern=vf-jobs-snippet\u0026filter-content-type=jobs\u0026filter-field-contains[field_jobs_description]=protein\u0026filter-field-date-after[field_jobs_expiration]=today\u0026limit=3\u0026amp;source=contenthub\" data-target=\"self\" data-embl-js-content-hub-loader=\"\"\u003e\n\u003clink rel=\"stylesheet\" media=\"all\" href=\"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.5/components/raw/vf-summary/vf-summary.css\"\u003e\n\u003c!-- END: VF 2.0 sample --\u003e\n```\n\n2. show dismissible banners (uses CSS + JS)\n\n```html\n\u003c!-- BEGIN: VF 2.0 sample --\u003e\n\u003c!-- Data protection banner --\u003e\n\u003clink rel=\"import\" href=\"https://dev.beta.embl.org/api/v1/pattern.html?filter-content-type=article\u0026filter-id=581\u0026pattern=node-body\u0026amp;source=contenthub\" data-target=\"self\" data-embl-js-content-hub-loader\u003e\n\u003clink rel=\"stylesheet\" media=\"all\" href=\"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.5/components/raw/vf-banner/vf-banner.css\"\u003e\n\u003c!-- END: VF 2.0 sample --\u003e\n```\n\nIn both cases this can be done without disrupting existing page styles and JavaScript.\n\n### View the demos\n\n\u003c!-- - [Ensembl](samples/ensembl.html) --\u003e\n- [PDBe](samples/pdbe.html)\n- [Uniprot](samples/uniprot.html)\n- [Chembl](samples/chembl.html)\n\u003c!-- - [Chembl beta](samples/chembl-beta.html) --\u003e\n\n### What are you adding in\n\nFor each sample page, three things:\n\n1. A CSS file\n    - `\u003clink rel=\"stylesheet\" media=\"all\" href=\"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.5/css/styles.css\"\u003e`\n1. A JS file\n    - `\u003cscript src=\"https://dev.assets.emblstatic.net/vf/v2.0.0-alpha.5/scripts/scripts.js\"\u003e\u003c/script\u003e`\n1. Snippets of HTML\n    - look at the source for `\u003c!-- BEGIN: VF 2.0 sample --\u003e`\n\n## Work on the pages locally\n\nPages are simple `.html` files and can be easily previewed/refreshed with\n[`browsersync`](https://browsersync.io/).\n\nFrom the command line\n- `npm install`\n- `gulp`\n\n☝ You'll need [`node`/`npm`](https://nodejs.org/en/) too\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisual-framework%2Fvf-sample-integrations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvisual-framework%2Fvf-sample-integrations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisual-framework%2Fvf-sample-integrations/lists"}