{"id":22468094,"url":"https://github.com/patternslib/pat-doclock","last_synced_at":"2025-10-16T19:59:22.831Z","repository":{"id":37867944,"uuid":"92035321","full_name":"Patternslib/pat-doclock","owner":"Patternslib","description":"A pattern that allows document locking and unlocking for quaive","archived":false,"fork":false,"pushed_at":"2023-03-03T00:48:58.000Z","size":2331,"stargazers_count":0,"open_issues_count":18,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-08T21:56:40.591Z","etag":null,"topics":["hacktoberfest","javascript","patternslib","ui-components"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Patternslib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":null,"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-05-22T09:22:42.000Z","updated_at":"2022-10-16T15:29:35.000Z","dependencies_parsed_at":"2025-03-27T15:44:59.197Z","dependency_job_id":"36b365c2-7e2d-4be3-99d0-f58ed1534acd","html_url":"https://github.com/Patternslib/pat-doclock","commit_stats":null,"previous_names":["ploneintranet/pat-doclock"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Patternslib/pat-doclock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Patternslib%2Fpat-doclock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Patternslib%2Fpat-doclock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Patternslib%2Fpat-doclock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Patternslib%2Fpat-doclock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Patternslib","download_url":"https://codeload.github.com/Patternslib/pat-doclock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Patternslib%2Fpat-doclock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279232419,"owners_count":26130697,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hacktoberfest","javascript","patternslib","ui-components"],"created_at":"2024-12-06T11:15:04.570Z","updated_at":"2025-10-16T19:59:22.783Z","avatar_url":"https://github.com/Patternslib.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pat-doclock\n\nA [Patternslib](http://patternslib.com) pattern.\n\n\nFor example:\n```html\n\u003cform class=\"pat-doclock\"\n      data-pat-doclock=\"url: mock/toggle-lock.html\"\n\u003e\n    ...\n\u003c/form\u003e\n```\n\n## Development\n\nFor standalone development run (installation and starting a server):\n```shell\n    \u003e make all\n```\n\nTo clean up local directory (after running make all) run:\n```shell\n    \u003e make clean\n```\n\n\n## Purpose\n\nThis pattern is Quaive specific and is meant to lock\na document in order to prevent concurrent edits.\n\nEvery time a user starts typing or pastes content in a form that\nhas the class `pat-doclock`, an ajax call to the `url` specified\nusing the `data-pat-doclock` option is performed.\nWhen the form is replaced or the user leaves the page, the same `url`\nis called to unlock the document.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatternslib%2Fpat-doclock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatternslib%2Fpat-doclock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatternslib%2Fpat-doclock/lists"}