{"id":15764693,"url":"https://github.com/ctf0/overseer","last_synced_at":"2025-06-25T19:40:13.486Z","repository":{"id":56959937,"uuid":"113492757","full_name":"ctf0/OverSeer","owner":"ctf0","description":"preview your form data before submitting","archived":false,"fork":false,"pushed_at":"2023-01-03T23:15:58.000Z","size":26,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-11T20:46:28.306Z","etag":null,"topics":["javascript","laravel","overseas","php","preview","vuejs"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/ctf0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"ctf0"}},"created_at":"2017-12-07T19:57:17.000Z","updated_at":"2023-09-01T11:30:04.000Z","dependencies_parsed_at":"2023-02-01T12:50:11.136Z","dependency_job_id":null,"html_url":"https://github.com/ctf0/OverSeer","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2FOverSeer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2FOverSeer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2FOverSeer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2FOverSeer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctf0","download_url":"https://codeload.github.com/ctf0/OverSeer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253817870,"owners_count":21969058,"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":["javascript","laravel","overseas","php","preview","vuejs"],"created_at":"2024-10-04T12:04:26.885Z","updated_at":"2025-05-12T20:41:32.930Z","avatar_url":"https://github.com/ctf0.png","language":"Vue","funding_links":["https://github.com/sponsors/ctf0"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    OverSeer\n    \u003cbr\u003e\n    \u003ca href=\"https://packagist.org/packages/ctf0/over-seer\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/ctf0/over-seer.svg\" alt=\"Latest Stable Version\" /\u003e\u003c/a\u003e \u003ca href=\"https://packagist.org/packages/ctf0/over-seer\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/ctf0/over-seer.svg\" alt=\"Total Downloads\" /\u003e\u003c/a\u003e\n\u003c/h1\u003e\n\nA tiny package to help preview any form data before submitting to the db.\n\u003e If you are looking to have a control over the saved content as well, you may want to give [Odin](https://github.com/ctf0/Odin) a try too.\n\n\u003cbr\u003e\n\n## Installation\n\n- `composer require ctf0/over-seer`\n\n- (Laravel \u003c 5.5) add the service provider.\n\n    ```php\n    'providers' =\u003e [\n        ctf0\\OverSeer\\OverSeerServiceProvider::class,\n    ];\n    ```\n\n- publish the package assets with\n\n    `php artisan vendor:publish --provider=\"ctf0\\OverSeer\\OverSeerServiceProvider\"`\n\n- install dependencies\n\n    ```bash\n    yarn add vue form-serialize\n    # or\n    npm install vue form-serialize --save\n    ```\n\n- add this one liner to your main js file and run `npm run watch` to compile your `js/css` files.\n    - if you are having issues [Check](https://ctf0.wordpress.com/2017/09/12/laravel-mix-es6/).\n\n    ```js\n    window.Vue = require('vue')\n\n    require('../vendor/OverSeer/manager')\n\n    new Vue({\n        el: '#app'\n    })\n    ```\n\n\u003cbr\u003e\n\n## Usage\n\n- add an id to the form you want to collect its content, ex.\n\n    ```html\n    \u003cform action=\"...\" method=\"...\" id=\"my-form\"\u003e\n        ...\n    \u003c/form\u003e\n    ```\n\n- then add the vue component anywhere near that form\n    + `form-id` is the id you gave to your form, in that case `my-form`\n    + `template` is where you want to display the data, ex `views/posts/overseer`\n    + `title` optional url title, so instead of just `my.app/overseer` it would be `my.app/overseer/my-awesome-title`\n\n    ```blade\n    \u003cover-seer form-id=\"my-form\"\n        template=\"posts.overseer\"\n        title=\"my-awesome-title\"\n        csrf=\"{{ csrf_token() }}\"\u003e\n\n        \u003cbutton\u003ePreview\u003c/button\u003e\n    \u003c/over-seer\u003e\n    ```\n\n- now in the view where we will display our data, we can access it like\n\n    ```blade\n    // for single values\n    {{ $data-\u003etitle }}\n\n    // for nested values\n    {{ $data-\u003ebody-\u003een }}\n    ```\n\n    just like you would usually do with any model.\n\n\u003cbr\u003e\n\n## Notes for `WYSIWYG Editors`\n\n- we currently support `tinyMCE` but if you are using any other editor, PRs are welcome :trophy:\n\n\u003cbr\u003e\n\n### Security\n\nIf you discover any security-related issues, please email [ctf0-dev@protonmail.com](mailto:ctf0-dev@protonmail.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctf0%2Foverseer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctf0%2Foverseer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctf0%2Foverseer/lists"}