{"id":17823070,"url":"https://github.com/artofcode-/jquery-vjs-rails","last_synced_at":"2025-04-02T10:29:49.539Z","repository":{"id":69665679,"uuid":"169497727","full_name":"ArtOfCode-/jquery-vjs-rails","owner":"ArtOfCode-","description":"Unobtrusive scripting adapter for jQuery, adapted for Rails with Vue.","archived":false,"fork":false,"pushed_at":"2019-02-07T00:23:28.000Z","size":667,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T01:35:10.250Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArtOfCode-.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"MIT-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-02-07T00:22:30.000Z","updated_at":"2019-02-07T00:23:33.000Z","dependencies_parsed_at":"2023-09-16T11:25:26.646Z","dependency_job_id":null,"html_url":"https://github.com/ArtOfCode-/jquery-vjs-rails","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/ArtOfCode-%2Fjquery-vjs-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtOfCode-%2Fjquery-vjs-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtOfCode-%2Fjquery-vjs-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtOfCode-%2Fjquery-vjs-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArtOfCode-","download_url":"https://codeload.github.com/ArtOfCode-/jquery-vjs-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246796527,"owners_count":20835398,"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-27T17:50:43.925Z","updated_at":"2025-04-02T10:29:49.511Z","avatar_url":"https://github.com/ArtOfCode-.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Unobtrusive scripting adapter for jQuery\n========================================\n\nThis unobtrusive scripting support file is developed for the Ruby on Rails framework, but is not strictly tied to any specific backend. You can drop this into any application to:\n\n- force confirmation dialogs for various actions;\n- make non-GET requests from hyperlinks;\n- make forms or hyperlinks submit data asynchronously with Ajax;\n- have submit buttons become automatically disabled on form submit to prevent double-clicking.\n\nThese features are achieved by adding certain [\"data\" attributes][data] to your HTML markup. In Rails, they are added by the framework's template helpers.\n\nFull [documentation is on the wiki][wiki], including the [list of published Ajax events][events].\n\nRequirements\n------------\n\n- [jQuery 1.8.x or higher][jquery];\n- HTML5 doctype (optional).\n\nIf you don't use HTML5, adding \"data\" attributes to your HTML4 or XHTML pages might make them fail [W3C markup validation][validator]. However, this shouldn't create any issues for web browsers or other user agents.\n\nInstallation using the jquery-rails gem\n------------\n\nFor automated installation in Rails, use the \"jquery-rails\" gem. Place this in your Gemfile:\n\n```ruby\ngem 'jquery-rails'\n```\n\nAnd run:\n\n```shell\n$ bundle install\n```\n\nRequire both `jquery` and `jquery_ujs` into your application.js manifest.\n\n```javascript\n//= require jquery\n//= require jquery_ujs\n```\n\nInstallation using npm.\n------------\n\nRun `npm install --save jquery-ujs` to install the jquery-ujs package.\n\nInstallation using Rails and Webpacker\n------------\n\nIf you're using [webpacker](https://github.com/rails/webpacker) (introduced in [Rails 5.1](http://edgeguides.rubyonrails.org/5_1_release_notes.html#optional-webpack-support)) to manage JavaScript assets, then you can add the jquery-ujs npm package to your project using the [yarn](https://yarnpkg.com/en/) CLI.\n\n```\n$ yarn add jquery-ujs\n```\n\nThen, from any of your included files (e.g. `app/javascript/packs/application.js`, or from a JavaScript file imported by such a pack), you need only import the package for jquery-ujs to be initialized:\n\n```js\nimport {} from 'jquery-ujs'\n```\n\nInstallation using Bower\n------------\n\nRun `bower install jquery-ujs --save` to install the jquery-ujs package.\n\nUsage\n------------\n\nRequire both `jquery` and `jquery-ujs` into your application.js manifest.\n\n```javascript\n//= require jquery\n//= require jquery-ujs\n```\n\nHow to run tests\n------------\n\nFollow [this wiki](https://github.com/rails/jquery-ujs/wiki/Running-Tests-and-Contributing) to run tests.\n\n## Contributing to jquery-ujs\n\njquery-ujs is work of many contributors. You're encouraged to submit pull requests, propose\nfeatures and discuss issues.\n\nSee [CONTRIBUTING](CONTRIBUTING.md).\n\n## License\njquery-ujs is released under the [MIT License](MIT-LICENSE).\n\n[data]: http://www.w3.org/TR/html5/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes \"Embedding custom non-visible data with the data-* attributes\"\n[wiki]: https://github.com/rails/jquery-ujs/wiki\n[events]: https://github.com/rails/jquery-ujs/wiki/ajax\n[jquery]: http://docs.jquery.com/Downloading_jQuery\n[validator]: http://validator.w3.org/\n[csrf]: http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection.html\n[adapter]: https://github.com/rails/jquery-ujs/raw/master/src/rails.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartofcode-%2Fjquery-vjs-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartofcode-%2Fjquery-vjs-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartofcode-%2Fjquery-vjs-rails/lists"}