{"id":17609923,"url":"https://github.com/vixalien/rui","last_synced_at":"2025-03-29T23:42:03.737Z","repository":{"id":113513782,"uuid":"228107444","full_name":"vixalien/rui","owner":"vixalien","description":"A user interface for rwarrims","archived":false,"fork":false,"pushed_at":"2019-12-15T00:20:41.000Z","size":2026,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T01:29:45.749Z","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/vixalien.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-12-15T00:18:18.000Z","updated_at":"2020-11-01T00:52:16.000Z","dependencies_parsed_at":"2023-07-07T21:15:32.997Z","dependency_job_id":null,"html_url":"https://github.com/vixalien/rui","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/vixalien%2Frui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixalien%2Frui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixalien%2Frui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixalien%2Frui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vixalien","download_url":"https://codeload.github.com/vixalien/rui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246258862,"owners_count":20748573,"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-10-22T17:24:08.124Z","updated_at":"2025-03-29T23:42:03.702Z","avatar_url":"https://github.com/vixalien.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Privileged empty app\n\nThis is a privileged empty app template that provides you with a barebones structure for you to build your app.\n\nThis is part of the [mortar](https://github.com/mozilla/mortar/) template collection for building [Open Web Apps](https://developer.mozilla.org/Apps).\n\n## Obtaining\n\nThere are a few ways to get this template:\n\nIf you use [Git](http://www.git-scm.com/):\n\n````bash\ngit clone https://github.com/mozilla/mortar-privileged-empty-app.git\n````\n\nOr download the latest version in this [ZIP file](https://github.com/mozilla/mortar-privileged-empty-app/archive/master.zip).\n\n\n## Usage\n\nImport the app into the [App Manager](https://developer.mozilla.org/Firefox_OS/Using_the_App_Manager). Then you can run it in the simulator, or in a Firefox OS device.\n\n## Code walkthrough\n\nThe `manifest.webapp` file contains metadata about the app, such as its name, description, icon and required permissions for running under Firefox OS.\n\nMoving over to `index.html`, this is the starting point for the app when it's launched, and also where the layout is defined and the JavaScript files with the functionality and logic are loaded.\n\nThe appearance is defined in `css/app.css`. There are just some very basic rules.\n\nWe define the app's behaviour in `js/app.js`. Right now we're just basically displaying a \"Hello world\" message.\n\nFinally we are also including `js/libs/l10n.js`, which contains [L10n](https://developer.mozilla.org/en-US/docs/Web/API/L10n_API), a library for translating the strings in the app. Using this library, users can run the app in their own language, as long as you provide the translations for those languages. We're currently including a translation to Spanish as an example, but feel free to contribute with more translations in `data/locales.ini`, looking at `data/es.properties` and `data/en-US.properties` to see the syntax in action. The way it works, it will automatically translate the HTML elements that contain a `data-l10n-id` attribute with the translation identifier.\n\nFor any dynamically shown content, you need to use the `navigator.webL10n.get` function, but since that is slightly tedious to write each time, we're aliasing it to just `translate`:\n\n```javascript\nvar translate = navigator.mozL10n.get;\n```\n\n## Getting help\n\nIf you find something that doesn't quite work as you'd expect, we'd appreciate if you [filed a bug](https://github.com/mozilla/mortar-privileged-empty-app/issues)!\n\nWe need your help in order to help you. Therefore:\n\n1. Tell us which version of the template are you using. Where did you get the code from?\n* Specify the environment where the bug occurs i.e. which version of the Simulator or Firefox OS device. An example would be `1.2 simulator` or `Boot2Gecko 1.4.0.0`. \n* Describe the problem in detail. What were you doing? What happened? What did you expect to happen?\n* Probably also provide a test case so we can see what is happening and try to reproduce the error.\n\nUltimately it all boils down to the fact that if we can't reproduce it, we can't help you or fix it either.\n\n## Contributing\n\nContributions are always welcome! If you want to collaborate, whether that is with a new feature or fixing a bug, we recommend you...\n\n1. Have a look at the [issue tracker](https://github.com/mozilla/mortar-privileged-empty-app/issues) first--to make sure there isn't anyone working on that already.\n* If it's a new issue/feature, or no one is working on it already, fork the project in GitHub (you'll need an account if you don't have it yet).\n* Create the bug to let us know you want to work on this. That way we are aware of and can keep an eye on it, or maybe tell you that it is not a bug but an intended feature, and save you the hassle of working on something that is not needed.\n* Clone your fork to your computer (i.e. get the code onto your computer)\n* Make a new branch, and switch to that new branch\n* Do the changes you deem necessary\n* Push the branch to GitHub\n* Send a pull request\n\nTo make your changes as easy to merge back onto the project as possible, you should only work on one feature per branch. That makes code review simpler and faster!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvixalien%2Frui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvixalien%2Frui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvixalien%2Frui/lists"}