├── .gitignore ├── examples ├── sansan │ ├── img │ │ └── icon.png │ ├── css │ │ ├── config.css │ │ └── desktop.css │ ├── README.md │ └── manifest.json ├── vote │ ├── image │ │ └── icon.png │ ├── html │ │ └── config.html │ ├── README.md │ ├── css │ │ ├── config.css │ │ ├── mobile-vote.css │ │ └── vote.css │ └── manifest.json ├── autonum │ ├── img │ │ └── icon.png │ ├── README.md │ ├── manifest.json │ ├── css │ │ ├── desktop.css │ │ └── config.css │ └── html │ │ └── config.html ├── appIndex │ ├── image │ │ └── icon.png │ ├── css │ │ ├── config.css │ │ └── customize.css │ ├── README.md │ ├── manifest.json │ ├── js │ │ └── config.js │ └── html │ │ └── config.html ├── colorcell │ ├── image │ │ └── icon.png │ ├── README.md │ ├── css │ │ ├── desktop.css │ │ └── config.css │ ├── manifest.json │ ├── js │ │ ├── desktop.js │ │ └── config.js │ └── html │ │ └── config.html ├── ganttchart │ ├── img │ │ └── icon.png │ ├── js │ │ └── jquery.ui.datepicker-ja.min.js │ ├── README.md │ ├── css │ │ ├── addin-style.css │ │ └── config.css │ └── manifest.json ├── js-edit │ ├── image │ │ └── image.png │ ├── html │ │ └── config.html │ ├── js │ │ ├── desktop.js │ │ └── config │ │ │ ├── service.js │ │ │ └── ui.js │ ├── README.md │ ├── css │ │ └── config.css │ └── manifest.json ├── mandrill │ ├── image │ │ └── image.png │ ├── css │ │ └── mandrill-design.css │ ├── README.md │ ├── manifest.json │ ├── js │ │ └── mandrillMail.js │ └── html │ │ └── mandrillConfig.html ├── checkvalue │ ├── image │ │ └── check.png │ ├── css │ │ └── check_config.css │ ├── README.md │ ├── manifest.json │ ├── html │ │ └── check_config.html │ └── js │ │ ├── check_sample.js │ │ └── config.js ├── eventCalendar │ ├── image │ │ └── icon.png │ ├── css │ │ ├── config.css │ │ └── customize.css │ ├── README.md │ ├── manifest.json │ └── html │ │ └── config.html ├── textConnect │ ├── contents │ │ └── icon.png │ ├── README.md │ ├── manifest.json │ ├── package.sh │ ├── mobiles │ │ └── mobile.js │ └── desktops │ │ └── desktop.js ├── conditionformat │ ├── image │ │ └── icon.png │ ├── README.md │ ├── css │ │ └── config.css │ ├── manifest.json │ └── js │ │ └── desktop.js ├── conditionformat2 │ ├── image │ │ └── icon.png │ ├── README.md │ ├── manifest.json │ └── css │ │ └── config.css ├── colorful-report │ ├── img │ │ └── colorful-weekly.png │ ├── css │ │ └── colorful-weekly-config.css │ ├── README.md │ ├── manifest.json │ ├── html │ │ └── config.html │ └── js │ │ ├── colorful-weekly-lib.js │ │ ├── colorful-weekly-desktop.js │ │ └── colorful-weekly-config.js └── kyotenn │ ├── img │ └── communication(green)_green.jpg │ ├── css │ └── config.css │ ├── README.md │ ├── manifest.json │ ├── js │ ├── ma-zenrin_getLatLon.js │ └── map-zenrin_index-show.js │ └── html │ └── config.html ├── .eslintrc.js ├── .eslintignore ├── package.json ├── README.md └── package.sh /.gitignore: -------------------------------------------------------------------------------- 1 | plugin.zip 2 | *.ppk 3 | *.zip 4 | 5 | node_modules/ 6 | -------------------------------------------------------------------------------- /examples/sansan/img/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/sansan/img/icon.png -------------------------------------------------------------------------------- /examples/vote/image/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/vote/image/icon.png -------------------------------------------------------------------------------- /examples/autonum/img/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/autonum/img/icon.png -------------------------------------------------------------------------------- /examples/appIndex/image/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/appIndex/image/icon.png -------------------------------------------------------------------------------- /examples/colorcell/image/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/colorcell/image/icon.png -------------------------------------------------------------------------------- /examples/ganttchart/img/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/ganttchart/img/icon.png -------------------------------------------------------------------------------- /examples/js-edit/image/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/js-edit/image/image.png -------------------------------------------------------------------------------- /examples/mandrill/image/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/mandrill/image/image.png -------------------------------------------------------------------------------- /examples/checkvalue/image/check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/checkvalue/image/check.png -------------------------------------------------------------------------------- /examples/eventCalendar/image/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/eventCalendar/image/icon.png -------------------------------------------------------------------------------- /examples/textConnect/contents/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/textConnect/contents/icon.png -------------------------------------------------------------------------------- /examples/conditionformat/image/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/conditionformat/image/icon.png -------------------------------------------------------------------------------- /examples/conditionformat2/image/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/conditionformat2/image/icon.png -------------------------------------------------------------------------------- /examples/colorful-report/img/colorful-weekly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/colorful-report/img/colorful-weekly.png -------------------------------------------------------------------------------- /examples/kyotenn/img/communication(green)_green.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kintone-samples/plugin-samples/HEAD/examples/kyotenn/img/communication(green)_green.jpg -------------------------------------------------------------------------------- /examples/js-edit/html/config.html: -------------------------------------------------------------------------------- 1 | 7 |
8 | -------------------------------------------------------------------------------- /examples/vote/html/config.html: -------------------------------------------------------------------------------- 1 | 7 |
8 | -------------------------------------------------------------------------------- /examples/appIndex/css/config.css: -------------------------------------------------------------------------------- 1 | /* 2 | * appIndex Plug-in 3 | * Copyright (c) 2017 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | .block { 8 | padding: 0 0 20px 0; 9 | } 10 | -------------------------------------------------------------------------------- /examples/kyotenn/css/config.css: -------------------------------------------------------------------------------- 1 | /* 2 | * kyotenn Plug-in 3 | * Copyright (c) 2015 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | 8 | .kintone-box { 9 | display: inline; 10 | } -------------------------------------------------------------------------------- /examples/checkvalue/css/check_config.css: -------------------------------------------------------------------------------- 1 | /* 2 | * checkvalue Plug-in 3 | * Copyright (c) 2017 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | .block { 8 | padding: 0 0 20px 0; 9 | } 10 | -------------------------------------------------------------------------------- /examples/colorful-report/css/colorful-weekly-config.css: -------------------------------------------------------------------------------- 1 | /* 2 | * colorful-report Plug-in 3 | * Copyright (c) 2015 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | .kintone-box { 8 | display: inline; 9 | } -------------------------------------------------------------------------------- /examples/kyotenn/README.md: -------------------------------------------------------------------------------- 1 | # Map Plug-in 2 | 3 | ## OSS License 4 | 5 | * jQuery - https://jquery.com/ 6 | * Author: jQuery Foundation, Inc. 7 | * License: [MIT License](https://github.com/jquery/jquery/blob/2.1.3/MIT-LICENSE.txt) 8 | -------------------------------------------------------------------------------- /examples/colorcell/README.md: -------------------------------------------------------------------------------- 1 | # Color Cell Plug-in 2 | 3 | ## OSS License 4 | 5 | * jQuery - https://jquery.com/ 6 | * Author: jQuery Foundation, Inc. 7 | * License: [MIT License](https://github.com/jquery/jquery/blob/2.1.1/MIT-LICENSE.txt) 8 | -------------------------------------------------------------------------------- /examples/js-edit/js/desktop.js: -------------------------------------------------------------------------------- 1 | /* 2 | * js-edit Plug-in 3 | * Copyright (c) 2016 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | jQuery.noConflict(); 8 | 9 | (($, PLUGIN_ID) => { 10 | 'use strict'; 11 | 12 | })(); 13 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: [ 3 | '@cybozu', 4 | '@cybozu/eslint-config/globals/kintone', 5 | ], 6 | parserOptions: { 7 | sourceType: 'script', 8 | }, 9 | globals: { 10 | garoon: false 11 | } 12 | }; 13 | -------------------------------------------------------------------------------- /examples/appIndex/css/customize.css: -------------------------------------------------------------------------------- 1 | /* 2 | * appIndex Plug-in 3 | * Copyright (c) 2017 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | .ocean-ui-dialog-buttons.gaia-argoui-dialog-buttons.gaia-argoui-dialog-buttons-confirm { 8 | height: initial; 9 | } 10 | -------------------------------------------------------------------------------- /examples/mandrill/css/mandrill-design.css: -------------------------------------------------------------------------------- 1 | /* 2 | * mandrill Plug-in 3 | * Copyright (c) 2015 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | .block { 8 | padding: 0 0 20px 0; 9 | } 10 | 11 | .childBlock{ 12 | padding: 0 0 20px 0; 13 | } 14 | 15 | .leftblock{ 16 | margin:0px 150px 0px 0px; 17 | } -------------------------------------------------------------------------------- /examples/eventCalendar/css/config.css: -------------------------------------------------------------------------------- 1 | /* 2 | * eventCalendar Plug-in 3 | * Copyright (c) 2016 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | .block { 8 | padding: 0 0 20px 0; 9 | } 10 | 11 | th { 12 | text-align: center; 13 | } 14 | 15 | table { 16 | border-collapse: separate; 17 | border-spacing: 5px; 18 | } -------------------------------------------------------------------------------- /examples/sansan/css/config.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Sansan plug-in 3 | * Copyright (c) 2016 Cybozu 4 | * 5 | * create by masaya chikamoto 6 | * 7 | * Licensed under the MIT License 8 | */ 9 | .sansan-plugin-block { 10 | margin: 10px 0px 10px 0px; 11 | border: solid 1px #eee; 12 | padding: 20px; 13 | } 14 | #sansan_api_code { 15 | width: 300px; 16 | } -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | # thirdparties 2 | examples/**/thirdparties/*.js 3 | kintone-config-helper.js 4 | jquery.ui.datepicker-ja.min.js 5 | 6 | # plugins 7 | examples/appIndex/**/*.js 8 | examples/colorcell/**/*.js 9 | examples/conditionformat/**/*.js 10 | examples/kyotenn/**/*.js 11 | examples/mandrill/**/*.js 12 | examples/sansan/**/*.js 13 | examples/vote/**/*.js 14 | -------------------------------------------------------------------------------- /examples/conditionformat/README.md: -------------------------------------------------------------------------------- 1 | # Conditional Format Plug-in 2 | 3 | ## OSS License 4 | 5 | * jQuery - https://jquery.com/ 6 | * Author: jQuery Foundation, Inc. 7 | * License: [MIT License](https://github.com/jquery/jquery/blob/1.11.1/MIT-LICENSE.txt) 8 | * cpick.js 9 | * Author: futomi 10 | * License: [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0) 11 | -------------------------------------------------------------------------------- /examples/colorcell/css/desktop.css: -------------------------------------------------------------------------------- 1 | /* 2 | * colorcell Plug-in 3 | * Copyright (c) 2014 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | .colorcell-plugin-red { 8 | color: #ff0000; 9 | background-color: #ffcccc; 10 | } 11 | 12 | .colorcell-plugin-blue { 13 | color: #0000ff; 14 | background-color: #ccccff; 15 | } 16 | 17 | .colorcell-plugin-green { 18 | color: #009900; 19 | background-color: #ccffcc; 20 | } 21 | 22 | -------------------------------------------------------------------------------- /examples/vote/README.md: -------------------------------------------------------------------------------- 1 | # Like Plug-in 2 | 3 | ## OSS License 4 | 5 | * jQuery - https://jquery.com/ 6 | * Author: jQuery Foundation, Inc. 7 | * License: [MIT License](https://github.com/jquery/jquery/blob/1.11.1/MIT-LICENSE.txt) 8 | * 51-modern-default - https://cybozu.dev/ja/kintone/sdk/library/plugin-stylesheet-guide/ 9 | * Author: Cybozu, Inc. 10 | * License: [MIT License](https://github.com/kintone-samples/plugin-samples#licence) 11 | -------------------------------------------------------------------------------- /examples/conditionformat/css/config.css: -------------------------------------------------------------------------------- 1 | /* 2 | * conditionformat Plug-in 3 | * Copyright (c) 2014 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | .conditionalformat-plugin-fLine { 8 | border-collapse: collapse; 9 | border-spacing: 0; 10 | border-top: 1px solid #f2f2f2; 11 | border-left: 1px solid #f2f2f2; 12 | } 13 | 14 | conditionalformat-plugin-fLine td { 15 | border-right: 1px solid #f2f2f2; 16 | border-bottom: 1px solid #f2f2f2; 17 | letter-spacing: 0.1em; 18 | } -------------------------------------------------------------------------------- /examples/eventCalendar/css/customize.css: -------------------------------------------------------------------------------- 1 | /* 2 | * eventCalendar Plug-in 3 | * Copyright (c) 2016 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | /* 日曜日 */ 8 | .fc-head .fc-sun { 9 | background: rgb(250, 220, 233); 10 | } 11 | 12 | /* 土曜日 */ 13 | .fc-head .fc-sat { 14 | background: rgb(211, 237, 251); 15 | } 16 | 17 | /* 今日 */ 18 | .fc-today { 19 | background: rgb(255, 255, 204); 20 | } 21 | 22 | .fc-center { 23 | margin-right: 1.75em; 24 | } 25 | 26 | .fc-clear { 27 | clear: none; 28 | } 29 | -------------------------------------------------------------------------------- /examples/js-edit/README.md: -------------------------------------------------------------------------------- 1 | # JSEdit for kintone Plug-in 2 | 3 | ## OSS License 4 | 5 | * Ace - http://ace.c9.io/ 6 | * Author: Fabian Jakobs 7 | * License: [The 3-Clause BSD License](https://github.com/ajaxorg/ace/blob/v1.4.1/LICENSE) 8 | * jQuery - https://jquery.com/ 9 | * Author: jQuery Foundation, Inc. 10 | * License: [MIT License](https://github.com/jquery/jquery/blob/2.1.3/MIT-LICENSE.txt) 11 | * kintone UI Component - https://kintone-labs.github.io/kintone-ui-component/ 12 | * Author: Cybozu, Inc. 13 | * License: [MIT License](https://github.com/kintone-labs/kintone-ui-component/blob/v0.4.2/LICENSE) 14 | -------------------------------------------------------------------------------- /examples/colorful-report/README.md: -------------------------------------------------------------------------------- 1 | # Colorful Weekly Report Plug-in 2 | 3 | ## OSS License 4 | 5 | * jQuery - https://jquery.com/ 6 | * Author: jQuery Foundation, Inc. 7 | * License: [MIT License](https://github.com/jquery/jquery/blob/1.12.3/LICENSE.txt) 8 | * JsRender - https://www.jsviews.com/ 9 | * Author: Boris Moore 10 | * License: [MIT License](https://github.com/BorisMoore/jsrender/blob/v1.0.5/MIT-LICENSE.txt) 11 | * 51-modern-default - https://cybozu.dev/ja/kintone/sdk/library/plugin-stylesheet-guide/ 12 | * Author: Cybozu, Inc. 13 | * License: [MIT License](https://github.com/kintone-samples/plugin-samples#licence) 14 | -------------------------------------------------------------------------------- /examples/colorcell/css/config.css: -------------------------------------------------------------------------------- 1 | /* 2 | * colorcell Plug-in 3 | * Copyright (c) 2014 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | .colorcell-plugin-red, 8 | .colorcell-plugin-blue, 9 | .colorcell-plugin-green { 10 | width: 110px; 11 | display: inline-block; 12 | margin-right: 10px; 13 | padding: 4px; 14 | font-size: 110%; 15 | } 16 | 17 | 18 | .colorcell-plugin-red { 19 | color: #ff0000; 20 | background-color: #ffcccc; 21 | } 22 | 23 | .colorcell-plugin-blue { 24 | color: #0000ff; 25 | background-color: #ccccff; 26 | } 27 | 28 | .colorcell-plugin-green { 29 | color: #009900; 30 | background-color: #ccffcc; 31 | } 32 | 33 | -------------------------------------------------------------------------------- /examples/ganttchart/js/jquery.ui.datepicker-ja.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.10.4 - 2014-01-17 2 | * http://jqueryui.com 3 | * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ 4 | 5 | jQuery(function(t){t.datepicker.regional.ja={closeText:"閉じる",prevText:"<前",nextText:"次>",currentText:"今日",monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthNamesShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayNames:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],dayNamesShort:["日","月","火","水","木","金","土"],dayNamesMin:["日","月","火","水","木","金","土"],weekHeader:"週",dateFormat:"yy/mm/dd",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"},t.datepicker.setDefaults(t.datepicker.regional.ja)}); -------------------------------------------------------------------------------- /examples/textConnect/README.md: -------------------------------------------------------------------------------- 1 | # Text Connect Plug-in 2 | 3 | ## OSS License 4 | 5 | * jQuery - https://jquery.com/ 6 | * Author: jQuery Foundation, Inc. 7 | * License: [MIT License](https://github.com/jquery/jquery/blob/3.3.1/LICENSE.txt) 8 | * JsRender - https://www.jsviews.com/ 9 | * Author: Boris Moore 10 | * License: [MIT License](https://github.com/BorisMoore/jsrender/blob/v0.9.86/MIT-LICENSE.txt) 11 | * SweetAlert - https://t4t5.github.io/sweetalert/ 12 | * Author: Tristan Edwards 13 | * License: [MIT License](https://github.com/t4t5/sweetalert/blob/v1.1.3/LICENSE) 14 | * 51-modern-default - https://cybozu.dev/ja/kintone/sdk/library/plugin-stylesheet-guide/ 15 | * Author: Cybozu, Inc. 16 | * License: [MIT License](https://github.com/kintone-samples/plugin-samples#licence) 17 | -------------------------------------------------------------------------------- /examples/vote/css/config.css: -------------------------------------------------------------------------------- 1 | /* 2 | * vote Plug-in 3 | * Copyright (c) 2015 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | #vote-plugin-container .kintoneplugin-dropdown-outer { 8 | user-select: none; 9 | } 10 | #vote-plugin-container .kintoneplugin-dropdown-list { 11 | user-select: none; 12 | position: absolute; 13 | display: none; 14 | z-index: 2000; 15 | margin-top: -6px; 16 | } 17 | #vote-plugin-container .kintoneplugin-dropdown-list-item:hover { 18 | background-color: #E2F2FE; 19 | } 20 | #vote-plugin-container .kintoneplugin-dropdown-list-item-selected { 21 | color: #3498db; 22 | } 23 | #vote-plugin-container .kintoneplugin-dropdown-container { 24 | display: inline-block; 25 | } 26 | #vote-plugin-container .kintoneplugin-dropdown { 27 | margin: 0px; 28 | } 29 | -------------------------------------------------------------------------------- /examples/checkvalue/README.md: -------------------------------------------------------------------------------- 1 | # Input Value Check Plug-in 2 | 3 | ## OSS License 4 | 5 | * kintone-config-helper - https://github.com/kintone-labs/config-helper 6 | * Author: Cybozu, Inc. 7 | * License: [MIT License](https://github.com/kintone-labs/config-helper/blob/master/LICENSE) 8 | * jQuery - https://jquery.com/ 9 | * Author: jQuery Foundation, Inc. 10 | * License: [MIT License](https://github.com/jquery/jquery/blob/1.11.1/MIT-LICENSE.txt) 11 | * JsRender - https://www.jsviews.com/ 12 | * Author: Boris Moore 13 | * License: [MIT License](https://github.com/BorisMoore/jsrender/blob/v1.0.6/MIT-LICENSE.txt) 14 | * 51-modern-default - https://cybozu.dev/ja/kintone/sdk/library/plugin-stylesheet-guide/ 15 | * Author: Cybozu, Inc. 16 | * License: [MIT License](https://github.com/kintone-samples/plugin-samples#licence) 17 | -------------------------------------------------------------------------------- /examples/conditionformat/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": 1, 4 | "type": "APP", 5 | "name": { 6 | "ja": "条件書式プラグイン", 7 | "en": "conditional format plug-in", 8 | "zh": "条件格式插件" 9 | }, 10 | "description": { 11 | "ja": "条件により表示するアイテムの色等を変更するプラグインです。", 12 | "en": "It is plug-in which changes the color etc. of the item displayed according to conditions. ", 13 | "zh": "是變更根據條件表示的條款的顏色等的插件。" 14 | }, 15 | "icon": "image/icon.png", 16 | "desktop": { 17 | "js": [ 18 | "https://js.cybozu.com/jquery/1.11.1/jquery.min.js", 19 | "js/desktop.js" 20 | ], 21 | "css": [ 22 | ] 23 | }, 24 | "config": { 25 | "html": "html/config.html", 26 | "js": [ 27 | "https://js.cybozu.com/jquery/1.11.1/jquery.min.js", 28 | "js/config.js", 29 | "js/cpick.js" 30 | ], 31 | "css": [ 32 | "css/51-jp-default.css", 33 | "css/config.css" 34 | ] 35 | } 36 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "plugin-samples", 3 | "private": true, 4 | "version": "1.0.0", 5 | "description": "kintone Plug-in Examples ==========================", 6 | "main": "index.js", 7 | "directories": { 8 | "example": "examples" 9 | }, 10 | "scripts": { 11 | "test": "echo \"Error: no test specified\" && exit 1", 12 | "lint": "eslint examples/", 13 | "fix": "npm run lint -- --fix" 14 | }, 15 | "repository": { 16 | "type": "git", 17 | "url": "git+ssh://git@github.com/kintone-samples/plugin-samples.git" 18 | }, 19 | "keywords": [], 20 | "author": "Cybozu, Inc.", 21 | "license": "MIT", 22 | "bugs": { 23 | "url": "https://github.com/kintone-samples/plugin-samples/issues" 24 | }, 25 | "homepage": "https://github.com/kintone-samples/plugin-samples#readme", 26 | "devDependencies": { 27 | "@cybozu/eslint-config": "^17.0.1", 28 | "eslint": "^8.18.0" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /examples/appIndex/README.md: -------------------------------------------------------------------------------- 1 | # App index Plug-in 2 | 3 | ## OSS License 4 | 5 | * jQuery - https://jquery.com/ 6 | * Author: jQuery Foundation, Inc. 7 | * License: [MIT License](https://github.com/jquery/jquery/blob/1.11.1/MIT-LICENSE.txt) 8 | * JSTree - http://www.jstree.com/ 9 | * Author: Ivan Bozhanov 10 | * License: [MIT License](https://github.com/vakata/jstree/blob/3.3.1/LICENSE-MIT) 11 | * SweetAlert - https://t4t5.github.io/sweetalert/ 12 | * Author: Tristan Edwards 13 | * License: [MIT License](https://github.com/t4t5/sweetalert/blob/v1.1.3/LICENSE) 14 | * Bootstrap - https://getbootstrap.com/ 15 | * Author: Twitter, Inc. 16 | * License: [MIT License](https://github.com/twbs/bootstrap/blob/v3.3.7/LICENSE) 17 | * 51-modern-default - https://cybozu.dev/ja/kintone/sdk/library/plugin-stylesheet-guide/ 18 | * Author: Cybozu, Inc. 19 | * License: [MIT License](https://github.com/kintone-samples/plugin-samples#licence) 20 | -------------------------------------------------------------------------------- /examples/autonum/README.md: -------------------------------------------------------------------------------- 1 | # Auto-numbering Plug-in 2 | 3 | ## OSS License 4 | 5 | * Moment.js - https://momentjs.com/ 6 | * Author: Tim Wood, Iskren Chernev, Moment.js contributors 7 | * License: [MIT License](https://github.com/moment/moment/blob/2.14.1/LICENSE) 8 | * jQuery - https://jquery.com/ 9 | * Author: jQuery Foundation, Inc. 10 | * License: [MIT License](https://github.com/jquery/jquery/blob/2.1.3/MIT-LICENSE.txt) 11 | * JsRender - https://www.jsviews.com/ 12 | * Author: Boris Moore 13 | * License: [MIT License](https://github.com/BorisMoore/jsrender/blob/v0.9.80/MIT-LICENSE.txt) 14 | * SweetAlert - https://t4t5.github.io/sweetalert/ 15 | * Author: Tristan Edwards 16 | * License: [MIT License](https://github.com/t4t5/sweetalert/blob/v1.1.3/LICENSE) 17 | * 51-modern-default - https://cybozu.dev/ja/kintone/sdk/library/plugin-stylesheet-guide/ 18 | * Author: Cybozu, Inc. 19 | * License: [MIT License](https://github.com/kintone-samples/plugin-samples#licence) 20 | -------------------------------------------------------------------------------- /examples/eventCalendar/README.md: -------------------------------------------------------------------------------- 1 | # kintone Event Calendar Plug-in 2 | 3 | ## OSS License 4 | 5 | * Moment.js - https://momentjs.com/ 6 | * Author: Tim Wood, Iskren Chernev, Moment.js contributors 7 | * License: [MIT License](https://github.com/moment/moment/blob/2.13.0/LICENSE) 8 | * FullCalendar - https://fullcalendar.io/ 9 | * Author: Adam Shaw 10 | * License: [MIT License](https://github.com/fullcalendar/fullcalendar/blob/v2.7.3/LICENSE.txt) 11 | * jQuery - https://jquery.com/ 12 | * Author: jQuery Foundation, Inc. 13 | * License: [MIT License](https://github.com/jquery/jquery/blob/2.2.4/LICENSE.txt) 14 | * JsRender - https://www.jsviews.com/ 15 | * Author: Boris Moore 16 | * License: [MIT License](https://github.com/BorisMoore/jsrender/blob/v1.0.5/MIT-LICENSE.txt) 17 | * 51-modern-default - https://cybozu.dev/ja/kintone/sdk/library/plugin-stylesheet-guide/ 18 | * Author: Cybozu, Inc. 19 | * License: [MIT License](https://github.com/kintone-samples/plugin-samples#licence) 20 | -------------------------------------------------------------------------------- /examples/colorcell/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": 1, 4 | "type": "APP", 5 | "name": { 6 | "ja": "色付きセル", 7 | "en": "Color Cell", 8 | "zh": "Color Cell" 9 | }, 10 | "description": { 11 | "ja": "プラグインのサンプル", 12 | "en": "Sample plug-in", 13 | "zh": "Sample plug-in" 14 | }, 15 | "icon": "image/icon.png", 16 | "homepage_url": { 17 | "ja": "https://www.cybozu.com/", 18 | "en": "https://www.kintone.com/", 19 | "zh": "https://www.cybozu.cn/" 20 | }, 21 | "desktop": { 22 | "js": [ 23 | "https://js.cybozu.com/jquery/2.1.1/jquery.min.js", 24 | "js/desktop.js" 25 | ], 26 | "css": [ 27 | "css/desktop.css" 28 | ] 29 | }, 30 | "config": { 31 | "html": "html/config.html", 32 | "js": [ 33 | "https://js.cybozu.com/jquery/2.1.1/jquery.min.js", 34 | "js/config.js" 35 | ], 36 | "css": [ 37 | "css/51-jp-default.css", 38 | "css/config.css" 39 | ], 40 | "required_params": ["target_field"] 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /examples/conditionformat2/README.md: -------------------------------------------------------------------------------- 1 | # Conditional Format Plug-in 2 | 3 | ## OSS License 4 | 5 | * Luxon - https://moment.github.io/luxon/ 6 | * Author: JS Foundation and other contributors 7 | * Lisense: [MIT License](https://github.com/moment/luxon/blob/3.4.4/LICENSE.md) 8 | * jQuery - https://jquery.com/ 9 | * Author: jQuery Foundation, Inc. 10 | * License: [MIT License](https://github.com/jquery/jquery/blob/2.1.4/MIT-LICENSE.txt) 11 | * JsRender - https://www.jsviews.com/ 12 | * Author: Boris Moore 13 | * License: [MIT License](https://github.com/BorisMoore/jsrender/blob/v0.9.83/MIT-LICENSE.txt) 14 | * tinyColorPicker and colors - https://github.com/PitPik/tinyColorPicker 15 | * Author: Peter Dematté 16 | * License: [MIT License](https://github.com/PitPik/tinyColorPicker/blob/1.1.1/LICENSE.md) 17 | * color-paint-brush in config.html 18 | @fontawesome - https://fontawesome.com 19 | * Author: Dave Gandy 20 | * Lisense: [CC BY 4.0 License](https://github.com/FortAwesome/Font-Awesome/blob/v4.7.0/README.md#license) 21 | * 51-modern-default - https://cybozu.dev/ja/kintone/sdk/library/plugin-stylesheet-guide/ 22 | * Author: Cybozu, Inc. 23 | * License: [MIT License](https://github.com/kintone-samples/plugin-samples#licence) 24 | -------------------------------------------------------------------------------- /examples/ganttchart/README.md: -------------------------------------------------------------------------------- 1 | # GanttChart Plug-in 2 | 3 | ## OSS License 4 | 5 | * jQuery UI - https://jqueryui.com/ 6 | * Author: jQuery Foundation and other contributors 7 | * License: [See License](https://github.com/jquery/jquery-ui/blob/1.12.1/LICENSE.txt) 8 | * jQuery.Gantt - http://taitems.github.io/jQuery.Gantt/ 9 | * Author: Marek Bielańczuk, Tait Brown, Leo Pfeifenberger, Grzegorz Russek and Contributors 10 | * License: [MIT License](https://github.com/taitems/jQuery.Gantt/blob/master/LICENSE) 11 | * Moment.js - https://momentjs.com/ 12 | * Author: Tim Wood, Iskren Chernev, Moment.js contributors 13 | * License: [MIT License](https://github.com/moment/moment/blob/2.14.1/LICENSE) 14 | * jQuery - https://jquery.com/ 15 | * Author: jQuery Foundation, Inc. 16 | * License: [MIT License](https://github.com/jquery/jquery/blob/2.1.3/MIT-LICENSE.txt) 17 | * JsRender - https://www.jsviews.com/ 18 | * Author: Boris Moore 19 | * License: [MIT License](https://github.com/BorisMoore/jsrender/blob/v0.9.80/MIT-LICENSE.txt) 20 | * 51-modern-default - https://cybozu.dev/ja/kintone/sdk/library/plugin-stylesheet-guide/ 21 | * Author: Cybozu, Inc. 22 | * License: [MIT License](https://github.com/kintone-samples/plugin-samples#licence) 23 | -------------------------------------------------------------------------------- /examples/kyotenn/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": 1, 4 | "type": "APP", 5 | "name": { 6 | "ja": "拠点案内サービス プラグイン", 7 | "en": "MAP Plugin", 8 | "zh": "MAP Plugin" 9 | }, 10 | "description": { 11 | "ja": "拠点サービス案内 APIを使ってkintoneに地図を表示します。", 12 | "en": "This is an Extension to display japanese map on kintone.", 13 | "zh": "This is an Extension to display japanese map on kintone." 14 | }, 15 | "icon": "img/communication(green)_green.jpg", 16 | "homepage_url": { 17 | "ja": "http://www.zenrin.co.jp/product/gis/foothold/index.html", 18 | "en": "http://www.zenrin.co.jp/product/gis/foothold/index.html", 19 | "zh": "http://www.zenrin.co.jp/product/gis/foothold/index.html" 20 | }, 21 | "desktop": { 22 | "js": [ 23 | "js/jquery.min.js", 24 | "js/map-zenrin_index-show.js", 25 | "js/map-zenrin_detail-show.js", 26 | "js/ma-zenrin_getLatLon.js" 27 | ] 28 | }, 29 | "mobile": { 30 | "js": [ 31 | "js/jquery.min.js", 32 | "js/map-zenrin_mobile.js" 33 | ] 34 | }, 35 | "config": { 36 | "html": "html/config.html", 37 | "js": [ 38 | "js/jquery.min.js", 39 | "js/config.js" 40 | ], 41 | "css": [ 42 | "css/51-modern-default.css", 43 | "css/config.css" 44 | ], 45 | "required_params": [] 46 | } 47 | } -------------------------------------------------------------------------------- /examples/js-edit/css/config.css: -------------------------------------------------------------------------------- 1 | /* 2 | * js-edit Plug-in 3 | * Copyright (c) 2016 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | 8 | #jsedit-config .kuc-btn, 9 | #jsedit-config .kuc-dropdown-container { 10 | display: inline-block; 11 | vertical-align: top; 12 | margin-right: 10px; 13 | } 14 | 15 | #jsedit-config .kuc-dropdown-selected { 16 | width: 182px; 17 | height: 46px; 18 | } 19 | 20 | #jsedit-config .kuc-dropdown-selected-name { 21 | line-height: 46px; 22 | } 23 | 24 | #jsedit-config .kuc-dropdown-selected-label { 25 | width: 158px; 26 | } 27 | 28 | #jsedit-config .jsedit-back-link { 29 | vertical-align: middle; 30 | line-height: 48px; 31 | } 32 | 33 | #jsedit-config .jsedit-container-flex, 34 | #jsedit-config .jsedit-item-flex { 35 | display: flex; 36 | } 37 | 38 | #jsedit-config .jsedit-item-flex { 39 | flex-grow: 1; 40 | flex-direction: column; 41 | } 42 | 43 | #jsedit-config .jsedit-editor-wrapper { 44 | margin-top: 16px; 45 | } 46 | 47 | #jsedit-config .jsedit-editor { 48 | height: 500px; 49 | margin-bottom: 24px; 50 | width: 100%; 51 | } 52 | 53 | #jsedit-config .jsedit-editor.disabled .ace_content:hover { 54 | cursor: not-allowed; 55 | } 56 | 57 | #jsedit-config .jsedit-editor.disabled .ace_cursor { 58 | display: none; 59 | } 60 | 61 | #jsedit-config .ace_gutter { 62 | z-index :auto; 63 | } -------------------------------------------------------------------------------- /examples/mandrill/README.md: -------------------------------------------------------------------------------- 1 | Mandrill plug-in 2 | ==== 3 | 4 | This plug-in enables kintone to send Emails through Mandrill. 5 | 6 | ## Usage 7 | 1. Make Email templates in Mandrill. At the same time, you can set variables in the following format \*|variables|\* e.g. \*|NAME|\* . 8 | 2. Install this plug-in into your environment. 9 | 3. Install this plug-in into kintone apps that you want to use Email. 10 | 4. Set general settings in the Mandrill plug-in settings. 11 | 5. Match up variables in the Mandrill template to kintone fields. 12 | 13 | ## Requirement 14 | * Mandrill account. 15 | 16 | ## Licence 17 | 18 | [MIT](https://github.com/tcnksm/tool/blob/master/LICENCE) 19 | 20 | ## Author 21 | 22 | Kyohei Kitagawa 23 | 24 | ## Copyright 25 | 26 | Copyright(c) Cybozu, Inc. 27 | 28 | ## OSS License 29 | 30 | * jQuery - https://jquery.com/ 31 | * Author: jQuery Foundation, Inc. 32 | * License: [MIT License](https://github.com/jquery/jquery/blob/1.11.1/MIT-LICENSE.txt) 33 | * SweetAlert - https://t4t5.github.io/sweetalert/ 34 | * Author: Tristan Edwards 35 | * License: [MIT License](https://github.com/t4t5/sweetalert/blob/v0.5.0/LICENSE) 36 | * 51-modern-default - https://cybozu.dev/ja/kintone/sdk/library/plugin-stylesheet-guide/ 37 | * Author: Cybozu, Inc. 38 | * License: [MIT License](https://github.com/kintone-samples/plugin-samples#licence) 39 | -------------------------------------------------------------------------------- /examples/sansan/README.md: -------------------------------------------------------------------------------- 1 | # Sansan for kintone Plug-in 2 | 3 | ## OSS License 4 | 5 | * jQuery - https://jquery.com/ 6 | * Author: jQuery Foundation, Inc. 7 | * License: [MIT License](https://github.com/jquery/jquery/blob/2.2.4/LICENSE.txt) 8 | * jQuery UI - https://jqueryui.com/ 9 | * Author: jQuery Foundation and other contributors 10 | * License: [See License](https://github.com/jquery/jquery-ui/blob/1.12.1/LICENSE.txt) 11 | * Moment.js - https://momentjs.com/ 12 | * Author: Tim Wood, Iskren Chernev, Moment.js contributors 13 | * License: [MIT License](https://github.com/moment/moment/blob/2.17.1/LICENSE) 14 | * SweetAlert - https://t4t5.github.io/sweetalert/ 15 | * Author: Tristan Edwards 16 | * License: [MIT License](https://github.com/t4t5/sweetalert/blob/v1.1.3/LICENSE) 17 | * 51-modern-default - https://cybozu.dev/ja/kintone/sdk/library/plugin-stylesheet-guide/ 18 | * Author: Cybozu, Inc. 19 | * License: [MIT License](https://github.com/kintone-samples/plugin-samples#licence) 20 | * Spin.js - http://spin.js.org/ 21 | * Author: Felix Gnass 22 | * License: [MIT License](https://github.com/fgnass/spin.js/blob/2.3.2/LICENSE.md) 23 | * kintone Utility for JavaScript - https://github.com/kintone-labs/kintoneUtility 24 | * Author: Cybozu, Inc. 25 | * License: [MIT License](https://github.com/kintone-labs/kintoneUtility/blob/master/LICENSE) 26 | -------------------------------------------------------------------------------- /examples/colorful-report/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": "1.5.2", 4 | "type": "APP", 5 | "name": { 6 | "ja": "MTG効率化プラグイン", 7 | "en": "Colorful Weekly Report Plugin", 8 | "zh": "高效率会议插件" 9 | }, 10 | "description": { 11 | "ja": "週報をカラフルに使いやすくするプラグインです", 12 | "en": "This plugin can change your weekly report app colorful.", 13 | "zh": "此插件可使您的周报变得更加绚丽多彩。" 14 | }, 15 | "icon": "img/colorful-weekly.png", 16 | "homepage_url": { 17 | "ja": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/colorful-report-plugin/", 18 | "en": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/colorful-report-plugin/", 19 | "zh": "https://cybozudev.kf5.com/hc/kb/article/1013120/" 20 | }, 21 | "desktop": { 22 | "js": [ 23 | "https://js.cybozu.com/jquery/1.12.3/jquery.min.js", 24 | "js/colorful-weekly-lib.js", 25 | "js/colorful-weekly-desktop.js" 26 | ] 27 | }, 28 | "mobile": { 29 | "js": [] 30 | }, 31 | "config": { 32 | "html": "html/config.html", 33 | "js": [ 34 | "https://js.cybozu.com/jquery/1.12.3/jquery.min.js", 35 | "https://js.cybozu.com/jsrender/1.0.5/jsrender.min.js", 36 | "js/colorful-weekly-config.js" 37 | ], 38 | "css": [ 39 | "css/51-modern-default.css", 40 | "css/colorful-weekly-config.css" 41 | ], 42 | "required_params": [] 43 | } 44 | } -------------------------------------------------------------------------------- /examples/ganttchart/css/addin-style.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | /* 3 | * Copyright (c) 2017 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | 8 | .fn-gantt .ganttGray { 9 | background-color: #d3d3d3; 10 | } 11 | .fn-gantt .ganttGray .fn-label { 12 | color: #444 !important; 13 | } 14 | .fn-gantt .ganttYellow { 15 | background-color: #ffff99; 16 | } 17 | .fn-gantt .ganttYellow .fn-label { 18 | color: #444 !important; 19 | } 20 | .fn-gantt .leftPanel, .fn-gantt .bar{ 21 | z-index: 0; 22 | } 23 | .row.day.sa { 24 | background-color: #bddbf1; 25 | } 26 | .row.day.sn { 27 | background-color: #f5b9be; 28 | } 29 | 30 | div#modal{ 31 | position: fixed; 32 | top:0; 33 | z-index:11; 34 | width: 100%; 35 | height: 100%; 36 | background-color: transparent;} 37 | div#modal div#box-min{ 38 | position: relative; 39 | background-color:#ffffff; 40 | width:500px;height:400px; 41 | border:2px solid #666666; 42 | padding:0 5px 0 5px; 43 | } 44 | div#box-min div.content{ 45 | overflow: visible; 46 | } 47 | 48 | .modal-close { 49 | position: absolute; 50 | top: 10px; 51 | right: 20px; 52 | cursor: pointer; 53 | background: none; 54 | border: 0; 55 | font-size: 24px; 56 | color: #666666; 57 | } 58 | 59 | h3 { 60 | text-align:center; 61 | font-size:xx-large; 62 | overflow: hidden; 63 | white-space: nowrap; 64 | text-overflow: ellipsis; 65 | } 66 | 67 | .content { 68 | text-align:center; 69 | } 70 | -------------------------------------------------------------------------------- /examples/colorcell/js/desktop.js: -------------------------------------------------------------------------------- 1 | /* 2 | * colorcell Plug-in 3 | * Copyright (c) 2014 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | jQuery.noConflict(); 8 | 9 | (function($, PLUGIN_ID) { 10 | "use strict"; 11 | 12 | kintone.events.on('app.record.index.show', function(event) { 13 | var config = kintone.plugin.app.getConfig(PLUGIN_ID); 14 | 15 | var code = config['target_field']; 16 | var red = config['red_value']; 17 | var blue = config['blue_value']; 18 | var green = config['green_value']; 19 | 20 | var fields = kintone.app.getFieldElements(code); 21 | 22 | for (var i = 0; i < event.records.length; i++) { 23 | var record = event.records[i]; 24 | var $field = $(fields[i]); 25 | 26 | $field.removeClass('colorcell-plugin-red'); 27 | $field.removeClass('colorcell-plugin-blue'); 28 | $field.removeClass('colorcell-plugin-green'); 29 | 30 | if (record[code]['value'] === red) { 31 | $field.addClass('colorcell-plugin-red'); 32 | } else if (record[code]['value'] === blue) { 33 | $field.addClass('colorcell-plugin-blue'); 34 | } else if (record[code]['value'] === green) { 35 | $field.addClass('colorcell-plugin-green'); 36 | } 37 | } 38 | }); 39 | 40 | })(jQuery, kintone.$PLUGIN_ID); 41 | -------------------------------------------------------------------------------- /examples/conditionformat2/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": "3.2.7", 4 | "type": "APP", 5 | "name": { 6 | "ja": "条件書式プラグイン", 7 | "en": "Conditional Format", 8 | "zh": "条件格式插件" 9 | }, 10 | "description": { 11 | "ja": "条件により表示するアイテムの色、背景色等を変更するプラグインです。", 12 | "en": "This plug-in changes colors and styles of fields", 13 | "zh": "根据条件,更改字段颜色、背景色的插件。" 14 | }, 15 | "icon": "image/icon.png", 16 | "homepage_url": { 17 | "ja": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/conditionformat-v2-plugin/", 18 | "en": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/conditionformat-v2-plugin/", 19 | "zh": "https://cybozudev.kf5.com/hc/kb/article/1011206/" 20 | }, 21 | "desktop": { 22 | "js": [ 23 | "https://js.cybozu.com/luxon/3.3.0/luxon.min.js", 24 | "thirdparties/jquery.min.js", 25 | "js/desktop.js" 26 | ], 27 | "css": [ 28 | ] 29 | }, 30 | "config": { 31 | "html": "html/config.html", 32 | "js": [ 33 | "thirdparties/jquery.min.js", 34 | "thirdparties/jsrender.min.js", 35 | "thirdparties/jqColorPicker.min.js", 36 | "js/config.js" 37 | ], 38 | "css": [ 39 | "css/51-modern-default.css", 40 | "css/config.css" 41 | ] 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /examples/js-edit/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": "4.5.3", 4 | "type": "APP", 5 | "name": { 6 | "ja": "JSEdit for kintone", 7 | "en": "JSEdit for kintone", 8 | "zh": "JSEdit for kintone" 9 | }, 10 | "description": { 11 | "ja": "kintoneのJavaScriptカスタマイズをブラウザから行うことができるプラグインです。", 12 | "en": "This plugin enables a code editor for kintone.", 13 | "zh": "This plugin enables a code editor for kintone." 14 | }, 15 | "icon": "image/image.png", 16 | "homepage_url": { 17 | "ja":"https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/jsedit-for-kintone-plugin/", 18 | "en":"https://kintone.dev/en/plugins/advanced-samples/js-edit-plug-in/", 19 | "zh":"https://cybozudev.kf5.com/hc/kb/article/1010754/" 20 | }, 21 | "desktop": { 22 | }, 23 | "config": { 24 | "html": "html/config.html", 25 | "js": [ 26 | "https://js.cybozu.com/ace/v1.4.1/ace.js", 27 | "https://js.cybozu.com/ace/v1.4.1/ext-language_tools.js", 28 | "https://js.cybozu.com/jquery/1.11.3/jquery.min.js", 29 | "https://unpkg.com/@kintone/kintone-ui-component@0.4.2/dist/kintone-ui-component.min.js", 30 | "js/config/common.js", 31 | "js/config/ui.js", 32 | "js/config/service.js", 33 | "js/config/main.js" 34 | ], 35 | "css": [ 36 | "https://unpkg.com/@kintone/kintone-ui-component@0.4.2/dist/kintone-ui-component.min.css", 37 | "css/config.css" 38 | ], 39 | "required_params": [] 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /examples/textConnect/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": "1.3.7", 4 | "type": "APP", 5 | "name": { 6 | "ja": "文字結合プラグイン", 7 | "en": "Text Connect", 8 | "zh": "字符结合插件" 9 | }, 10 | "description": { 11 | "ja": "複数のフィールドの文字を連結して、特定のフィールドに代入するプラグインです。", 12 | "en": "This plug-in can combine the text of multiple fields and place the result in a specified field.", 13 | "zh": "此插件可将多个字段的字符结合在一起显示到其他指定的字段中。" 14 | }, 15 | "icon": "contents/icon.png", 16 | "homepage_url": { 17 | "ja":"https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/textconnect-plugin/", 18 | "en":"https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/textconnect-plugin/", 19 | "zh":"https://cybozudev.kf5.com/hc/kb/article/1399262/" 20 | }, 21 | "desktop": { 22 | "js": [ 23 | "desktops/desktop.js" 24 | ] 25 | }, 26 | "mobile": { 27 | "js": [ 28 | "mobiles/mobile.js" 29 | ] 30 | }, 31 | "config":{ 32 | "html": "contents/setting.html", 33 | "js": [ 34 | "https://js.cybozu.com/sweetalert2/v11.23.0/sweetalert2.min.js", 35 | "https://js.cybozu.com/jsrender/0.9.86/jsrender.min.js", 36 | "config_js/config.js" 37 | ], 38 | "css": [ 39 | "config_css/51-modern-default.css", 40 | "https://js.cybozu.com/sweetalert2/v11.23.0/sweetalert2.min.css" 41 | ], 42 | "required_params": [] 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /examples/autonum/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": "2.4.4", 4 | "type": "APP", 5 | "name": { 6 | "ja": "自動採番プラグイン", 7 | "en": "Auto-numbering plug-in", 8 | "zh": "自动编号插件" 9 | }, 10 | "description": { 11 | "ja": "保存時に自動採番するプラグインです。", 12 | "en": "Auto-numbering plug-in", 13 | "zh": "此插件可在保存记录时自动生成编号。" 14 | }, 15 | "icon": "img/icon.png", 16 | "homepage_url": { 17 | "ja": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/autonum-plugin/", 18 | "en": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/autonum-plugin/", 19 | "zh": "https://cybozudev.kf5.com/hc/kb/article/1011207/" 20 | }, 21 | "desktop": { 22 | "js": [ 23 | "thirdparties/jquery.min.js", 24 | "thirdparties/moment-with-locales.min.js", 25 | "js/desktop.js" 26 | ], 27 | "css": [ 28 | "css/51-modern-default.css", 29 | "css/desktop.css" 30 | ] 31 | }, 32 | "config": { 33 | "html": "html/config.html", 34 | "js": [ 35 | "thirdparties/jquery.min.js", 36 | "thirdparties/moment-with-locales.min.js", 37 | "thirdparties/jsrender.min.js", 38 | "js/config.js" 39 | ], 40 | "css": [ 41 | "thirdparties/sweetalert.css", 42 | "css/51-modern-default.css", 43 | "css/config.css" 44 | ], 45 | "required_params": ["autoNumberingFieldcode", "format", "connective"] 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /examples/mandrill/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": 1, 4 | "type": "APP", 5 | "name": { 6 | "ja": "Mandrill plug-in", 7 | "en": "Mandrill plug-in", 8 | "zh": "Mandrill plug-in" 9 | }, 10 | "description": { 11 | "ja": "Mandrill can send Email.", 12 | "en": "Mandrill can send Email.", 13 | "zh": "Mandrill can send Email." 14 | }, 15 | "icon": "image/image.png", 16 | "homepage_url": { 17 | "ja": "https://mandrill.com/", 18 | "en": "https://mandrill.com/", 19 | "zh": "https://mandrill.com/" 20 | }, 21 | "desktop": { 22 | "js": [ 23 | "https://js.kintone.com/jquery/1.11.1/jquery.min.js", 24 | "https://js.kintone.com/sweetalert/v0.5.0/sweet-alert.min.js", 25 | "js/mandrillMail.js" 26 | ], 27 | "css": [ 28 | "css/51-us-default.css", 29 | "https://js.kintone.com/sweetalert/v0.5.0/sweet-alert.css" 30 | ] 31 | }, 32 | "config": { 33 | "html": "html/mandrillConfig.html", 34 | "js": [ 35 | "https://js.kintone.com/jquery/1.11.1/jquery.min.js", 36 | "https://js.kintone.com/sweetalert/v0.5.0/sweet-alert.min.js", 37 | "js/mandrillConfig.js" 38 | ], 39 | "css": [ 40 | "css/51-us-default.css", 41 | "https://js.kintone.com/sweetalert/v0.5.0/sweet-alert.css", 42 | "css/mandrill-design.css" 43 | 44 | ], 45 | "required_params": ["mandrillApiKey","templateName","emailFieldCode"] 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /examples/vote/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": "1.7.2", 4 | "type": "APP", 5 | "name": { 6 | "ja": "いいねプラグイン", 7 | "en": "Like Plug-in", 8 | "zh": "Like Plug-in" 9 | }, 10 | "description": { 11 | "ja": "アプリにいいね機能を追加します。", 12 | "en": "Adds a Like feature to each record of the App.", 13 | "zh": "Adds a Like feature to each record of the App." 14 | }, 15 | "icon": "image/icon.png", 16 | "homepage_url": { 17 | "ja":"https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/like-plugin/", 18 | "en":"https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/like-plugin/", 19 | "zh":"https://cybozudev.kf5.com/hc/kb/article/1007993/" 20 | }, 21 | "desktop": { 22 | "js": [ 23 | "https://js.cybozu.com/jquery/jquery-1.11.0.min.js", 24 | "js/vote.js" 25 | ], 26 | "css": [ 27 | "css/vote.css" 28 | ] 29 | }, 30 | "mobile": { 31 | "js": [ 32 | "https://js.cybozu.com/jquery/jquery-1.11.0.min.js", 33 | "js/mobile-vote.js" 34 | ], 35 | "css": [ 36 | "css/mobile-vote.css" 37 | ] 38 | }, 39 | "config": { 40 | "html": "html/config.html", 41 | "js": [ 42 | "https://js.cybozu.com/jquery/jquery-1.11.0.min.js", 43 | "js/config.js" 44 | ], 45 | "css": [ 46 | "css/51-modern-default.css", 47 | "css/config.css" 48 | ], 49 | "required_params": ["vote_field", "vote_count_field"] 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /examples/checkvalue/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": "2.3.4", 4 | "type": "APP", 5 | "name": { 6 | "ja": "入力値チェックプラグイン", 7 | "en": "Input value check plug-in", 8 | "zh": "输入值校验插件" 9 | }, 10 | "description": { 11 | "ja": "郵便番号、電話番号、FAX番号、メールアドレスの入力値をチェックするプラグインです。", 12 | "en": "This plugin checks zip code, telephone number, FAX number, e-mail address", 13 | "zh": "此插件可对邮政编码、电话号码、传真号码、E-mail地址的输入值进行校验" 14 | }, 15 | "icon": "image/check.png", 16 | "homepage_url": { 17 | "ja": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/checkvalue-plugin/", 18 | "en": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/checkvalue-plugin/", 19 | "zh": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/checkvalue-plugin/" 20 | }, 21 | "desktop": { 22 | "js": [ 23 | "js/check_sample.js" 24 | ] 25 | }, 26 | "config": { 27 | "html": "html/check_config.html", 28 | "js": [ 29 | "https://js.cybozu.com/jquery/1.11.1/jquery.min.js", 30 | "https://js.cybozu.com/kintone-rest-api-client/5.7.1/KintoneRestAPIClient.min.js", 31 | "https://js.cybozu.com/jsrender/1.0.6/jsrender.min.js", 32 | "js/config.js" 33 | ], 34 | "css": [ 35 | "css/check_config.css", 36 | "css/51-modern-default.css" 37 | ], 38 | "required_params": [ 39 | "zip", 40 | "tel", 41 | "fax", 42 | "mail", 43 | "mode" 44 | ] 45 | } 46 | } -------------------------------------------------------------------------------- /examples/colorcell/html/config.html: -------------------------------------------------------------------------------- 1 | 7 |
8 |
9 |
Dropdown Field
10 |
11 |
12 | 15 |
16 |
17 |
18 |
19 | 20 |
21 |
22 | 24 |
25 |
26 |
27 |
28 | 29 |
30 |
31 | 33 |
34 |
35 |
36 |
37 | 38 |
39 |
40 | 42 |
43 |
44 |
45 |
46 | 47 | 48 |
49 |
50 | -------------------------------------------------------------------------------- /examples/eventCalendar/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": "1.4.3", 4 | "type": "APP", 5 | "name": { 6 | "ja": "kintone イベントカレンダープラグイン", 7 | "en": "kintone Event Calendar plug-in", 8 | "zh": "kintone 活动日历插件" 9 | }, 10 | "description": { 11 | "ja": "kintoneとFullCalendarを連携するプラグインです。", 12 | "en": "This plugin cooperate with FullCalendar", 13 | "zh": "这个插件整合了kintone和FullCalendar" 14 | }, 15 | "icon": "image/icon.png", 16 | "homepage_url": { 17 | "ja": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/eventcalendar-plugin/", 18 | "en": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/eventcalendar-plugin/", 19 | "zh": "https://cybozudev.kf5.com/hc/kb/article/1013114/" 20 | }, 21 | "desktop": { 22 | "js": [ 23 | "https://js.cybozu.com/jquery/2.2.4/jquery.min.js", 24 | "https://js.cybozu.com/momentjs/2.13.0/moment-with-locales.min.js", 25 | "https://js.cybozu.com/fullcalendar/v2.7.3/fullcalendar.min.js", 26 | "js/customize.js" 27 | ], 28 | "css": [ 29 | "https://js.cybozu.com/fullcalendar/v2.7.3/fullcalendar.min.css", 30 | "css/customize.css" 31 | ] 32 | }, 33 | "config": { 34 | "html": "html/config.html", 35 | "js": [ 36 | "https://js.cybozu.com/jquery/1.11.1/jquery.min.js", 37 | "https://js.cybozu.com/jsrender/1.0.5/jsrender.min.js", 38 | "js/config.js" 39 | ], 40 | "css": [ 41 | "css/config.css", 42 | "css/51-modern-default.css" 43 | ], 44 | "required_params": ["name", "start_datetime", "end_datetime"] 45 | } 46 | } -------------------------------------------------------------------------------- /examples/appIndex/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": "1.3.2", 4 | "type": "APP", 5 | "name": { 6 | "ja": "kintone アプリ一覧プラグイン", 7 | "en": "app index plugin", 8 | "zh": "软件一览插件" 9 | }, 10 | "description": { 11 | "ja": "jsTreeライブラリを使用した、アプリのフォルダ分け管理ができるプラグインです。", 12 | "en": "This plugin makes app index", 13 | "zh": "软件一览的插件" 14 | }, 15 | "icon": "image/icon.png", 16 | "homepage_url": { 17 | "ja": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/appindex-plugin/", 18 | "en": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/appindex-plugin/", 19 | "zh": "https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/appindex-plugin/" 20 | }, 21 | "desktop": { 22 | "js": [ 23 | "https://js.cybozu.com/jquery/1.11.1/jquery.min.js", 24 | "https://js.cybozu.com/jstree/3.3.1/jstree.min.js", 25 | "https://js.cybozu.com/sweetalert/v1.1.3/sweetalert.min.js", 26 | "js/customize.js" 27 | ], 28 | "css": [ 29 | "https://js.cybozu.com/jstree/3.3.1/themes/default/style.min.css", 30 | "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css", 31 | "https://js.cybozu.com/sweetalert/v1.1.3/sweetalert.css", 32 | "css/customize.css" 33 | ] 34 | }, 35 | "config": { 36 | "html": "html/config.html", 37 | "js": [ 38 | "https://js.cybozu.com/jquery/1.11.1/jquery.min.js", 39 | "js/config.js" 40 | ], 41 | "css": [ 42 | "css/config.css", 43 | "css/51-modern-default.css", 44 | "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" 45 | ], 46 | "required_params": ["folderIcon", "appIcon"] 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /examples/sansan/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 1, 3 | "version": 3, 4 | "type": "APP", 5 | "name": { 6 | "ja": "Sansan for kintone", 7 | "en": "Sansan for kintone", 8 | "zh": "Sansan for kintone" 9 | }, 10 | "description": { 11 | "ja": "kintoneの顧客管理アプリから、Sansanの顧客データを参照するサンプルプラグインです。", 12 | "en": "This sample plug-in looks up Sansan's contact data.", 13 | "zh": "This sample plug-in looks up Sansan's contact data." 14 | }, 15 | "icon": "img/icon.png", 16 | "homepage_url": { 17 | "ja": "https://developer.cybozu.io/hc/ja/articles/207420183", 18 | "en": "https://developer.cybozu.io/hc/ja/articles/207420183", 19 | "zh": "https://developer.cybozu.io/hc/ja/articles/207420183" 20 | }, 21 | "desktop": { 22 | "js": [ 23 | "https://js.cybozu.com/jquery/2.2.4/jquery.min.js", 24 | "https://js.cybozu.com/jqueryui/1.12.1/jquery-ui.min.js", 25 | "https://js.cybozu.com/momentjs/2.17.1/moment-with-locales.min.js", 26 | "https://js.cybozu.com/sweetalert/v1.1.3/sweetalert.min.js", 27 | "https://js.cybozu.com/spinjs/2.3.2/spin.min.js", 28 | "js/kintoneUtility.min.js", 29 | "js/common.js", 30 | "js/desktop_lookup.js", 31 | "js/desktop_postRecords.js" 32 | ], 33 | "css": [ 34 | "https://js.cybozu.com/jqueryui/1.12.1/themes/smoothness/jquery-ui.css", 35 | "https://js.cybozu.com/font-awesome/v4.7.0/css/font-awesome.min.css", 36 | "https://js.cybozu.com/sweetalert/v1.1.3/sweetalert.css", 37 | "css/desktop.css" 38 | ] 39 | }, 40 | "config": { 41 | "html": "html/config.html", 42 | "js": [ 43 | "https://js.cybozu.com/jquery/2.2.4/jquery.min.js", 44 | "https://js.cybozu.com/jsrender/0.9.78/jsrender.min.js", 45 | "https://js.cybozu.com/sweetalert/v1.1.3/sweetalert.min.js", 46 | "js/config.js" 47 | ], 48 | "css": [ 49 | "https://js.cybozu.com/sweetalert/v1.1.3/sweetalert.css", 50 | "css/51-modern-default.css", 51 | "css/config.css" 52 | ], 53 | "required_params": ["sansanapikey"] 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /examples/ganttchart/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version":1, 3 | "version":"2.2.4", 4 | "type":"APP", 5 | "name":{ 6 | "ja":"ガントチャートプラグイン", 7 | "en":"GanttChart plugin", 8 | "zh":"甘特图插件" 9 | }, 10 | "description":{ 11 | "ja":"これはガントチャートを表示するサンプルのプラグインです。", 12 | "en":"This is sample Gantt chart plugin.", 13 | "zh":"此插件是以甘特图为例示范插件的开发方法" 14 | }, 15 | "icon":"img/icon.png", 16 | "homepage_url":{ 17 | "ja":"https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/ganttchart-plugin/", 18 | "en":"https://cybozu.dev/ja/kintone/tips/development/plugins/sample-plugin/ganttchart-plugin/", 19 | "zh":"https://cybozudev.kf5.com/hc/kb/article/1007997/" 20 | }, 21 | "desktop":{ 22 | "js":[ 23 | "https://js.cybozu.com/jquery/2.1.3/jquery.min.js", 24 | "https://js.cybozu.com/jquerygantt/20210106/jquery.fn.gantt.min.js", 25 | "https://js.kintone.com/momentjs/2.14.1/moment.min.js", 26 | "https://momentjs.com/downloads/moment-timezone-with-data.min.js", 27 | "https://js.cybozu.com/jqueryui/1.12.1/jquery-ui.min.js", 28 | "js/jquery.ui.datepicker-ja.min.js", 29 | "js/desktop-ganttchart.js" 30 | ], 31 | "css":[ 32 | "https://js.cybozu.com/jquerygantt/20210106/css/style.css", 33 | "https://js.cybozu.com/jqueryui/1.12.1/themes/smoothness/jquery-ui.css", 34 | "css/addin-style.css" 35 | ] 36 | }, 37 | "mobile":{ 38 | "js":[ 39 | "https://js.cybozu.com/jquery/2.1.3/jquery.min.js" 40 | ] 41 | }, 42 | "config":{ 43 | "html":"html/config.html", 44 | "js":[ 45 | "https://js.cybozu.com/jquery/2.1.3/jquery.min.js", 46 | "https://js.kintone.com/jsrender/0.9.80/jsrender.min.js", 47 | "thirdparties/jqColorPicker.min.js", 48 | "js/config.js" 49 | ], 50 | "css":[ 51 | "css/51-modern-default.css", 52 | "css/config.css" 53 | ], 54 | "required_params":[ 55 | "ganttchartTitle", 56 | "ganttchartFrom", 57 | "ganttchartTo", 58 | "ganttchartColor", 59 | "ganttchartScall" 60 | ] 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /examples/js-edit/js/config/service.js: -------------------------------------------------------------------------------- 1 | /* 2 | * js-edit Plug-in 3 | * Copyright (c) 2016 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | jQuery.noConflict(); 8 | (($, PLUGIN_ID) => { 9 | 'use strict'; 10 | const i18n = window.jsEditKintonePlugin.i18n; 11 | const service = { 12 | uploadFile: (fileName, fileValue) => { 13 | return new kintone.Promise((resolve, reject) => { 14 | const blob = new Blob([fileValue], {type: 'text/javascript'}); 15 | const formData = new FormData(); 16 | formData.append('__REQUEST_TOKEN__', kintone.getRequestToken()); 17 | formData.append('file', blob, fileName); 18 | $.ajax(kintone.api.url('/k/v1/file', true), { 19 | type: 'POST', 20 | data: formData, 21 | processData: false, 22 | contentType: false 23 | }).done((data) => { 24 | resolve(data); 25 | }).fail((err) => { 26 | reject(err); 27 | }); 28 | }); 29 | }, 30 | getFile: (fileKey) => { 31 | return new kintone.Promise((resolve, reject) => { 32 | $.ajax(kintone.api.url('/k/v1/file', true), { 33 | type: 'GET', 34 | dataType: 'text', 35 | data: {'fileKey': fileKey} 36 | }).done((data, status, xhr) => { 37 | resolve(data); 38 | }).fail((xhr, status, error) => { 39 | alert(i18n.msg_failed_to_get_file); 40 | reject(); 41 | }); 42 | }); 43 | }, 44 | getCustomization: () => { 45 | const params = {app: kintone.app.getId()}; 46 | return kintone.api(kintone.api.url('/k/v1/preview/app/customize', true), 'GET', params); 47 | }, 48 | updateCustomization: (data) => { 49 | data.app = kintone.app.getId(); 50 | return kintone.api(kintone.api.url('/k/v1/preview/app/customize', true), 'PUT', data); 51 | }, 52 | deployApp: () => { 53 | const params = {apps: [{app: kintone.app.getId()}]}; 54 | return kintone.api(kintone.api.url('/k/v1/preview/app/deploy', true), 'POST', params); 55 | }, 56 | deployStatus: () => { 57 | const params = {apps: [kintone.app.getId()]}; 58 | return kintone.api(kintone.api.url('/k/v1/preview/app/deploy', true), 'GET', params); 59 | } 60 | }; 61 | 62 | window.jsEditKintonePlugin.service = service; 63 | })(jQuery, kintone.$PLUGIN_ID); 64 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | kintone Plug-in Examples 2 | ========================== 3 | 4 | This is a repository for kintone plugin-in examples. 5 | 6 | ## package.sh is now deprecated! 7 | 8 | `package.sh` has been deprecated. 9 | 10 | Please use [@kintone/plugin-packer](https://www.npmjs.com/package/@kintone/plugin-packer) instead. 11 | It requires [Node.js](https://nodejs.org/). 12 | 13 | ## Requirement 14 | 15 | * Node.js v12 or later 16 | 17 | ## How to Use 18 | 19 | ```bash 20 | $ npm install -g @kintone/plugin-packer 21 | $ kintone-plugin-packer [--ppk ] 22 | ``` 23 | 24 | For more information, please check the following pages. 25 | 26 | * https://github.com/kintone/plugin-packer 27 | * https://developer.cybozu.io/hc/ja/articles/360000910783 (in Japanese) 28 | 29 | ## Output Files 30 | 31 | ### Plug-in Package 32 | 33 | ```bash 34 | plugin.zip 35 | ``` 36 | 37 | ### Private Key 38 | 39 | ```bash 40 | .ppk 41 | ``` 42 | **Do not lose the private key!** Keep the .ppk file secret and in a safe place. You'll need it later if you want to update the plug-in. 43 | 44 | ## Example 45 | 46 | ```bash 47 | $ cd /tmp 48 | $ git clone https://github.com/kintone/plugin-examples 49 | $ cd plugin-examples 50 | $ npm install -g @kintone/plugin-packer 51 | $ kintone-plugin-packer examples/colorcell 52 | Succeeded: /tmp/plugin-examples/examples/plugin.zip 53 | $ ls examples/*.ppk 54 | examples/dhcpcmonencgafiddfaofdfednmjnbem.ppk 55 | ``` 56 | 57 | ## Install Plug-in 58 | 59 | See the following document. 60 | 61 | en 62 | 63 | https://help.cybozu.com/en/k/admin/plugin.html 64 | 65 | ja 66 | 67 | https://help.cybozu.com/ja/k/admin/plugin.html 68 | 69 | ## How to Lint 70 | 71 | The source code of some plugins applies ESLint. 72 | Please run ESLint manually as below after making changes. 73 | The Ignored files are see `.eslintignore`. 74 | 75 | Run ESLint: 76 | 77 | ```shell 78 | npm install 79 | npm run lint -- examples/ 80 | 81 | # Example 82 | # npm run eslint -- examples/autonum 83 | ``` 84 | 85 | Run ESLint with `--fix` option to fix some wrong styles automatically: 86 | 87 | ```shell 88 | npm install 89 | npm run fix -- examples/ 90 | 91 | # Example 92 | # npm run fix -- examples/autonum 93 | ``` 94 | 95 | ## Licence 96 | 97 | MIT License 98 | 99 | ## Copyright 100 | 101 | Copyright(c) Cybozu, Inc. 102 | -------------------------------------------------------------------------------- /examples/kyotenn/js/ma-zenrin_getLatLon.js: -------------------------------------------------------------------------------- 1 | /* 2 | * kyotenn Plug-in 3 | * Copyright (c) 2015 Cybozu 4 | * 5 | * Licensed under the MIT License 6 | */ 7 | jQuery.noConflict(); 8 | (function($, PLUGIN_ID) { 9 | 'use strict'; 10 | var CONF = kintone.plugin.app.getConfig(PLUGIN_ID); 11 | if (!CONF.options) {return; } 12 | var config = JSON.parse(CONF.options); 13 | var addressField = config.addressField; 14 | var latField = config.latField; 15 | var lonField = config.lonField; 16 | var apikey = config.apikey; 17 | var domain = config.domain; 18 | // -------関数------------------------------// 19 | // 外部JSをロードする関数 20 | function loadJS(src) { 21 | $('