Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
jwugit committed Apr 2, 2020
0 parents commit 4a2ac8f
Show file tree
Hide file tree
Showing 20 changed files with 17,799 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": false
}
],
[
"@babel/preset-react",
{
"useBuiltIns": true
}
]
],
"plugins": [
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
],
[
"@babel/plugin-transform-runtime",
{
"corejs": false,
"helpers": false,
"regenerator": true
}
]
]
}
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
.coverage/
dist/
build/
.cache/
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
extends: [
require.resolve('@contentful/eslint-config-extension'),
require.resolve('@contentful/eslint-config-extension/jest'),
require.resolve('@contentful/eslint-config-extension/jsx-a11y'),
require.resolve('@contentful/eslint-config-extension/react')
]
};
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# dotenv environment variables file
.env
.contentfulrc.json

# Parcel-bundler cache
.cache

# Dependency directories
node_modules/

# Coverage
.coverage

# IDE
.idea
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
.coverage/
dist/
build/
.cache/
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
printWidth: 100,
tabWidth: 2,
useTabs: false,
singleQuote: true,
jsxBracketSameLine: true
};
1 change: 1 addition & 0 deletions build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><link rel="stylesheet" href="src.e31bb0bc.css"></head><body> <div id="root"></div> <div id="popupElement"></div> <script src="https://widget.cloudinary.com/v2.0/global/all.js" type="text/javascript"></script> <script type="text/javascript" src="src.e31bb0bc.js"></script> </body></html>
1 change: 1 addition & 0 deletions build/src.e31bb0bc.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/src.e31bb0bc.css.map

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions build/src.e31bb0bc.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/src.e31bb0bc.js.map

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions contentful-extension-scripts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac

if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/node_modules/@contentful/contentful-extension-scripts/lib/index.js" "$@"
ret=$?
else
node "$basedir/node_modules/@contentful/contentful-extension-scripts/lib/index.js" "$@"
ret=$?
fi
exit $ret
7 changes: 7 additions & 0 deletions contentful-extension-scripts.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\node_modules\@contentful\contentful-extension-scripts\lib\index.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\node_modules\@contentful\contentful-extension-scripts\lib\index.js" %*
)
43 changes: 43 additions & 0 deletions extension.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"id": "cloudinary-video",
"name": "cloudinary-video",
"srcdoc": "./build/index.html",
"fieldTypes": [
"Symbol",
"Text"
],
"parameters": {
"instance": [
{
"id": "api_key",
"name": "api key name for cloudinary",
"type": "Symbol",
"required": false
},
{
"id": "api_secret",
"name": "api secret name for cloudinary",
"type": "Symbol",
"required": false
},
{
"id": "cloud_name",
"name": "cloud name for cloudinary",
"type": "Symbol",
"required": true
},
{
"id": "preset",
"name": "upload preset name for cloudinary",
"type": "Symbol",
"required": true
},
{
"id": "tag",
"name": "tag name to find files the preset generates",
"type": "Symbol",
"required": true
}
]
}
}
Loading

0 comments on commit 4a2ac8f

Please sign in to comment.