Skip to content
Permalink
Browse files

update new API

  • Loading branch information
canisminor1990 committed Mar 6, 2018
1 parent a04678e commit f7053abc6692e0c78c376401a4e62a2b7620e4f1
Showing with 3,228 additions and 22,521 deletions.
  1. +9 βˆ’0 .babelrc
  2. +4 βˆ’0 .eslintignore
  3. +49 βˆ’0 .eslintrc.js
  4. +5 βˆ’4 .gitignore
  5. +0 βˆ’24 .roadhogrc
  6. +29 βˆ’0 .webpackrc.js
  7. +0 βˆ’4,690 SketchSelect.sketchplugin/Contents/Resources/panel/index.css
  8. +0 βˆ’1 SketchSelect.sketchplugin/Contents/Resources/panel/index.js
  9. +0 βˆ’17,721 SketchSelect.sketchplugin/Contents/Sketch/index.js
  10. BIN {src/Img β†’ img}/rm-banner.png
  11. BIN {src/Img β†’ img}/rm-dialog.png
  12. BIN {src/Img β†’ img}/rm-option.png
  13. BIN {src/Img β†’ img}/rm-run.png
  14. BIN {src/Img β†’ img}/rm-shortkey.png
  15. +87 βˆ’30 package.json
  16. +12 βˆ’0 panel/index.ejs
  17. +20 βˆ’0 panel/index.js
  18. 0 {src/Resources β†’ }/panel/index.less
  19. +102 βˆ’0 panel/panel.js
  20. +11 βˆ’0 panel/router.js
  21. +3 βˆ’0 panel/routes/Panel/index.js
  22. 0 panel/routes/Panel/index.scss
  23. BIN ...elect.sketchplugin/Contents/Resources/assets β†’ plugin.sketchplugin/Contents/Resources}/banner.png
  24. BIN ...hSelect.sketchplugin/Contents/Resources/assets β†’ plugin.sketchplugin/Contents/Resources}/icon.png
  25. +1 βˆ’0 plugin.sketchplugin/Contents/Resources/index.css
  26. +12 βˆ’0 plugin.sketchplugin/Contents/Resources/index.html
  27. +1 βˆ’0 plugin.sketchplugin/Contents/Resources/index.js
  28. +2,720 βˆ’0 plugin.sketchplugin/Contents/Sketch/index.js
  29. +5 βˆ’4 {SketchSelect.sketchplugin β†’ plugin.sketchplugin}/Contents/Sketch/manifest.json
  30. BIN {src/Resources/assets β†’ public}/banner.png
  31. BIN {src/Resources/assets β†’ public}/icon.png
  32. +0 βˆ’13 src/Resources/panel/index.html
  33. +0 βˆ’32 src/Sketch/index.js
  34. +47 βˆ’0 src/index.js
  35. +2 βˆ’2 src/{Sketch β†’ }/manifest.json
  36. +2 βˆ’0 src/utils/index.js
  37. +43 βˆ’0 src/utils/mapLayers.js
  38. +9 βˆ’0 src/utils/selectLayers.js
  39. 0 {SketchSelect.sketchplugin/Contents β†’ test}/Resources/panel/index.html
  40. 0 {src β†’ test}/Resources/panel/index.js
  41. +55 βˆ’0 test/Resources/panel/index.less
  42. 0 {src β†’ test}/Resources/panel/panel.js
  43. 0 {src/Sketch β†’ test}/handleSelection.js
  44. 0 {src/Sketch β†’ test}/select.js
@@ -0,0 +1,9 @@
{
"presets": [
"env",
"stage-0"
],
"plugins": [
"lodash"
]
}
@@ -0,0 +1,4 @@
**/node_modules/**
**/plugin.sketchplugin/**
**/dist/**
**/test/**
@@ -0,0 +1,49 @@
module.exports = {
parser: 'babel-eslint',
extends: [
'standard',
'plugin:flowtype/recommended',
'plugin:react/recommended',
'prettier',
'prettier/flowtype',
'prettier/react',
'prettier/standard'
],
plugins: [
'flowtype',
'react',
'prettier',
'standard'
],
parserOptions: {
'ecmaFeatures': {
'experimentalObjectRestSpread': true,
'jsx': true
}
},
globals: {
'window': true,
'document': true,
'navigator': true
},
env: {
'es6': true,
'node': true
},
rules: {
'prettier/prettier': [
2, {
'printWidth': 100,
'singleQuote': true,
'trailingComma': 'es5',
'parser': 'flow',
}
],
'react/react-in-jsx-scope': [0],
'react/prop-types': [0],
'react/display-name': [0],
'react/no-children-prop': [0],
'no-unused-vars': [1],
}
};

@@ -1,11 +1,12 @@
# build artefacts
src/Resources/_webpack_images

# npm
node_modules
.npm
npm-debug.log

# mac
.DS_Store
yarn.lock
yarn.lock

# other
test
dist

This file was deleted.

@@ -0,0 +1,29 @@
export default {
entry : './panel/index.js',
disableCSSModules : false,
hash : false,
ignoreMomentLocale: true,
sass : {
includePaths: ['node_modules', 'panel/style']
},
theme : {
'@primary-color': '#32d1ff'
},
html : {
'template': './panel/index.ejs'
},
define : {
'$dirname': __dirname,
'$isDev' : process.env.NODE_ENV === 'development'
},
extraBabelPlugins : [
'lodash',
['import', {libraryName: 'antd', libraryDirectory: 'es', style: true}]
],
env : {
development: {
extraBabelPlugins: ['dva-hmr']
}
}
};

0 comments on commit f7053ab

Please sign in to comment.
You can’t perform that action at this time.