{"id":22903622,"url":"https://github.com/cassproject/cass-viewer","last_synced_at":"2025-04-01T07:24:38.016Z","repository":{"id":73224057,"uuid":"94247743","full_name":"cassproject/cass-viewer","owner":"cassproject","description":"Example application showing the browsing and selection of competencies.","archived":false,"fork":false,"pushed_at":"2021-12-23T22:25:21.000Z","size":11527,"stargazers_count":0,"open_issues_count":15,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-07T04:41:27.062Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cassproject.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-06-13T19:02:48.000Z","updated_at":"2021-12-23T22:25:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"e736a63f-df9c-408b-b93f-df12c10fb122","html_url":"https://github.com/cassproject/cass-viewer","commit_stats":null,"previous_names":[],"tags_count":75,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassproject%2Fcass-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassproject%2Fcass-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassproject%2Fcass-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassproject%2Fcass-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cassproject","download_url":"https://codeload.github.com/cassproject/cass-viewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246599202,"owners_count":20803160,"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-12-14T02:38:02.606Z","updated_at":"2025-04-01T07:24:38.010Z","avatar_url":"https://github.com/cassproject.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/cassproject/cass-viewer.svg?branch=master)](https://travis-ci.org/cassproject/cass-viewer)\n# cass-viewer\nCompetency and Skills Service -- Framework Explorer\n\nView competency frameworks and navigate them with an easy to use, non-technical interface.\n\n# Features\n * View a competency framework and see the nested hierarchy in an interactive graphical \"bubble\" display.\n * Switch to the list view and see more details about the framework.\n * Customizable - Change the default behavior of the cass-viewer via post messages.\n * Unbranded and open source - Carries no branding information, allowing you to use it easily and without concern.\n\n# Try it out\ncass-viewer is available for use in default installations as part of the Framework Explorer.\n\n# Integration\nIntegrate the cass-viewer into your website by nesting it into an iframe on your website.\n\n```html\n\u003ciframe id=\"iframe\" width=\"100%\" height=\"800\" frameborder=\"0\"\u003e\u003c/iframe\u003e\n\u003cscript\u003e\n    document.getElementsByTagName(\"iframe\")[0].setAttribute(\"src\", \"cass-viewer/index.html\");\n\u003c/script\u003e\n```\n\n# URL Parameters\nTo ensure the iframe is passing the correct origin, pass the origin into the iframe using a URL parameter, `origin=window.location.origin`.\n\n# Post Messages\nCASS can operate using credentials and signals provided by the parent site. These credentials are passed into the iframe via a message, in order to avoid transmitting them over HTTP. Wait for a `{message:\"waiting\"}` message to be posted from the iframe.\n```javascript\n$(\"iframe\").ready(function () {\n    $(window).on(\"message\", function (event) {\n        if (event.originalEvent.data.message == \"waiting\") {\n            //Initialize the server and identity\n        }\n    });\n});\n```\n## Setting the server\nYou must set the server and the identity to be used when accessing the server. \n```javascript\n$(\"iframe\")[0].contentWindow.postMessage(JSON.stringify({\n    action: \"initIdentity\",\n    serverParm: selectedServer,\n    nameParm: loggedInIdentityName,\n    pemParm: loggedInPpkPem\n}), window.location.origin);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcassproject%2Fcass-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcassproject%2Fcass-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcassproject%2Fcass-viewer/lists"}