├── extension.zip
├── assets
└── csv-export.png
├── src
├── index.js
├── helpers.js
└── App.js
├── extension.json
├── .gitignore
├── package.json
├── README.md
├── LICENSE
└── public
└── index.html
/extension.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cosmicjs/export-to-csv/master/extension.zip
--------------------------------------------------------------------------------
/assets/csv-export.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cosmicjs/export-to-csv/master/assets/csv-export.png
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import 'isomorphic-fetch';
4 |
5 | import App from './App';
6 |
7 | ReactDOM.render(, document.getElementById('root'));
--------------------------------------------------------------------------------
/extension.json:
--------------------------------------------------------------------------------
1 | {
2 | "title": "Export to CSV",
3 | "font_awesome_class": "fa-file-excel-o",
4 | "image_url": "https://s3-us-west-2.amazonaws.com/cosmicjs/e3dfe870-732f-11e9-a54a-7f96bf56c48e-5b056dc79c.png",
5 | "repo_url": "https://github.com/cosmicjs/export-to-csv"
6 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 | build.zip
14 |
15 | # misc
16 | .DS_Store
17 | .env.local
18 | .env.development.local
19 | .env.test.local
20 | .env.production.local
21 |
22 | npm-debug.log*
23 | yarn-debug.log*
24 | yarn-error.log*
25 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "cosmicjs-to-csv-extension",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "evergreen-ui": "^4.15.0",
7 | "isomorphic-fetch": "^2.2.1",
8 | "qs": "^6.7.0",
9 | "react": "^16.8.6",
10 | "react-dom": "^16.8.6",
11 | "react-scripts": "3.0.1"
12 | },
13 | "scripts": {
14 | "start": "react-scripts start",
15 | "build": "react-scripts build",
16 | "export": "npm run build && cp extension.json build/extension.json && zip -r extension.zip build",
17 | "test": "react-scripts test"
18 | },
19 | "eslintConfig": {
20 | "extends": "react-app"
21 | },
22 | "browserslist": {
23 | "production": [
24 | ">0.2%",
25 | "not dead",
26 | "not op_mini all"
27 | ],
28 | "development": [
29 | "last 1 chrome version",
30 | "last 1 firefox version",
31 | "last 1 safari version"
32 | ]
33 | },
34 | "devDependencies": {
35 | "bestzip": "^2.1.2"
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Cosmic JS To CSV Extension
2 |
3 | 
4 |
5 | The CosmicJS to CSV extension is a JAM-stack application that allows you to export your Buckets in a CSV format.
6 | The plugin also will automatically parse metadata fields as specified by the Object Type settings.
7 |
8 | ## Installing
9 |
10 | ### Cosmic App Store
11 | [Install Extension](https://cosmicjs.com/extensions/export-to-csv)
12 |
13 | ### Manually build
14 |
15 | After cloning this repository, dependencies can be installed with `npm install` or `yarn install`.
16 | After the required dependencies are installed, the extension can be built with `npm run build`.
17 |
18 | This will create a `build.zip` file in the root project directory, which can be dragged into the Cosmic
19 | JS extensions area to be automatically installed.
20 |
21 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
22 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Flynn Buckingham
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |