{"id":16597160,"url":"https://github.com/piotr-cz/cockpit-import","last_synced_at":"2025-03-21T13:32:28.111Z","repository":{"id":57041783,"uuid":"45644177","full_name":"piotr-cz/cockpit-import","owner":"piotr-cz","description":"Spreadsheet import module for Cockpit CMS","archived":false,"fork":false,"pushed_at":"2020-09-04T22:50:25.000Z","size":210,"stargazers_count":23,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T01:51:26.922Z","etag":null,"topics":["angularjs","cockpit-cms","csv","import","javascript","php"],"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/piotr-cz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-05T22:43:38.000Z","updated_at":"2024-06-27T14:17:59.000Z","dependencies_parsed_at":"2022-08-24T01:10:54.963Z","dependency_job_id":null,"html_url":"https://github.com/piotr-cz/cockpit-import","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotr-cz%2Fcockpit-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotr-cz%2Fcockpit-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotr-cz%2Fcockpit-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotr-cz%2Fcockpit-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piotr-cz","download_url":"https://codeload.github.com/piotr-cz/cockpit-import/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244806173,"owners_count":20513395,"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":["angularjs","cockpit-cms","csv","import","javascript","php"],"created_at":"2024-10-11T23:55:07.711Z","updated_at":"2025-03-21T13:32:27.776Z","avatar_url":"https://github.com/piotr-cz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spreadsheet import module ![icon](./artwork/icon.png)\n\nModule for importing spreadsheet as collection entries in [Cockpit CMS](http://getcockpit.com/)\n\n\n## Features\n\n- Import from CSV files or JSON files\n  _(generated by Cockpit collection export functionality)_\n- Localization\n- Auto-assign fields based on header\n  _(Column names must match collection field names)_\n- Filters\n  - Text\n  - Select\n  - Boolean\n  - Lookup entry matching Name _(for field type `link-collection`, useful for setting up categories)_\n    _For multiple collection links, use Vertical bar `|` as a separator._\n    _Collection must have field named `name`_\n  - Location\n    _(Geolocate addresses)_\n\n## Requirements\n\n- Cockpit v0.13\n- for CSV files IE10+/ Safari 6+ (see [Papaparse browser compatibility](http://papaparse.com/faq#browsers))\n\n\n## Installation\n\n### Manual\n\n1. Download [latest release](https://github.com/piotr-cz/cockpit-import/releases/latest) and place in `[cockpit-path]/modules/addons/Import` or\n   ```sh\n   cd [cockpit-path]/modules/addons\n   git clone https://github.com/piotr-cz/cockpit-import Import\n   ```\n\n2. Open cockpit backend.\n\n3. In top-right corner you'll see _Import_ button.\n\n### Using composer\n\n1. In composer.json add path where cockpit modules are located:\n   ```json\n   \"extra\": {\n       \"installer-paths\": {\n           \"cockpit/modules/addons/{$name}\": [\"type:cockpit-module\"]\n       }\n   },\n   ```\n\n2. Install module using command\n   ```sh\n   composer require piotr-cz/cockpit-import\n   ```\n\n## Usage\n\n1. Select collection and file\n\n   ![Parsing](./artwork/screenshots/1-parsing.png)\n\n2. Map collection fields to spreadsheet columns\n\n   ![Data mapping](./artwork/screenshots/2-data-mapping.png)\n\n3. Tune up processing options and click Import\n\n   ![Processing](./artwork/screenshots/3-processing.png)\n\n\n## Authors\n\n* [piotr_cz](https://github.com/piotr-cz)\n\n\n### 3p libraries\n\n* [Papaparse](http://papaparse.com/) (MIT)\n\n\n## Issues/ Feature requirements\n\nSubmit issue or feature requirement [here](https://github.com/piotr-cz/cockpit-import/issues)\n\n[Latest](https://github.com/piotr-cz/import/archive/master.zip) development version\n\n\n## Licensed under MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotr-cz%2Fcockpit-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiotr-cz%2Fcockpit-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotr-cz%2Fcockpit-import/lists"}