├── Things-You-Need-To-Know ├── 09-Adobe-Spectrum │ ├── just-an-icon-button │ │ ├── index.js │ │ ├── watch.sh │ │ ├── icons │ │ │ ├── dark@1x.png │ │ │ ├── dark@2x.png │ │ │ ├── light@1x.png │ │ │ └── light@2x.png │ │ ├── package.json │ │ ├── README.md │ │ ├── manifest.json │ │ ├── index.html │ │ └── LICENSE │ └── T-Shirts-plugin │ │ ├── img │ │ ├── default.jpg │ │ ├── blue-shirt.jpg │ │ ├── green-shirt.jpg │ │ └── teal-shirt.jpg │ │ ├── icons │ │ ├── dark@1x.png │ │ ├── dark@2x.png │ │ ├── light@1x.png │ │ └── light@2x.png │ │ ├── watch.sh │ │ ├── package.json │ │ ├── README.md │ │ ├── settings.json │ │ ├── index.js │ │ ├── manifest.json │ │ ├── index.html │ │ └── LICENSE ├── 10-Dialogs │ ├── react │ │ ├── src │ │ │ ├── styles.css │ │ │ ├── index.jsx │ │ │ ├── controllers │ │ │ │ ├── CommandController.jsx │ │ │ │ └── PanelController.jsx │ │ │ ├── components │ │ │ │ ├── WC.jsx │ │ │ │ └── Preferences.jsx │ │ │ └── panels │ │ │ │ └── Dialogs.jsx │ │ ├── dist │ │ │ ├── icons │ │ │ │ ├── icon_D.png │ │ │ │ ├── icon_N.png │ │ │ │ ├── icon_D@2x.png │ │ │ │ └── icon_N@2x.png │ │ │ ├── index.html │ │ │ ├── main.js │ │ │ └── manifest.json │ │ ├── plugin │ │ │ ├── icons │ │ │ │ ├── icon_D.png │ │ │ │ ├── icon_N.png │ │ │ │ ├── icon_D@2x.png │ │ │ │ └── icon_N@2x.png │ │ │ ├── index.html │ │ │ ├── main.js │ │ │ └── manifest.json │ │ ├── package.json │ │ ├── webpack.config.js │ │ ├── README.md │ │ └── LICENSE │ └── vanilla │ │ ├── img │ │ └── UXP.png │ │ ├── icons │ │ ├── dark@1x.png │ │ ├── dark@2x.png │ │ ├── light@1x.png │ │ └── light@2x.png │ │ ├── watch.sh │ │ ├── package.json │ │ ├── index.js │ │ ├── README.md │ │ ├── manifest.json │ │ ├── index.html │ │ └── LICENSE └── 11-Flyout │ ├── icons │ ├── dark@1x.png │ ├── dark@2x.png │ ├── light@1x.png │ └── light@2x.png │ ├── watch.sh │ ├── package.json │ ├── README.md │ ├── index.html │ ├── manifest.json │ ├── index.js │ └── LICENSE ├── img ├── UXP-TYNTN.png ├── 09-t-shirts.png └── 09-icon-buttons.png ├── README.md ├── LICENSE └── .gitignore /Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /img/UXP-TYNTN.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/img/UXP-TYNTN.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/src/styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding: 0 16px; 3 | } -------------------------------------------------------------------------------- /img/09-t-shirts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/img/09-t-shirts.png -------------------------------------------------------------------------------- /img/09-icon-buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/img/09-icon-buttons.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/11-Flyout/icons/dark@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/11-Flyout/icons/dark@1x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/11-Flyout/icons/dark@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/11-Flyout/icons/dark@2x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/11-Flyout/icons/light@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/11-Flyout/icons/light@1x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/11-Flyout/icons/light@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/11-Flyout/icons/light@2x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/vanilla/img/UXP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/10-Dialogs/vanilla/img/UXP.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/dist/icons/icon_D.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/10-Dialogs/react/dist/icons/icon_D.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/dist/icons/icon_N.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/10-Dialogs/react/dist/icons/icon_N.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/vanilla/icons/dark@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/10-Dialogs/vanilla/icons/dark@1x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/vanilla/icons/dark@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/10-Dialogs/vanilla/icons/dark@2x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/vanilla/icons/light@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/10-Dialogs/vanilla/icons/light@1x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/vanilla/icons/light@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/10-Dialogs/vanilla/icons/light@2x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/plugin/icons/icon_D.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/10-Dialogs/react/plugin/icons/icon_D.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/plugin/icons/icon_N.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/10-Dialogs/react/plugin/icons/icon_N.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/11-Flyout/watch.sh: -------------------------------------------------------------------------------- 1 | echo "Loading plugin..." 2 | uxp plugin load 3 | 4 | echo "Watching plugin..." 5 | nodemon --exec "uxp plugin reload" -e js,jsx,html 6 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/dist/icons/icon_D@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/10-Dialogs/react/dist/icons/icon_D@2x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/dist/icons/icon_N@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/10-Dialogs/react/dist/icons/icon_N@2x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/plugin/icons/icon_D@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/10-Dialogs/react/plugin/icons/icon_D@2x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/plugin/icons/icon_N@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/10-Dialogs/react/plugin/icons/icon_N@2x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/vanilla/watch.sh: -------------------------------------------------------------------------------- 1 | echo "Loading plugin..." 2 | uxp plugin load 3 | 4 | echo "Watching plugin..." 5 | nodemon --exec "uxp plugin reload" -e js,jsx,html 6 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/img/default.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/img/default.jpg -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/icons/dark@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/icons/dark@1x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/icons/dark@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/icons/dark@2x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/icons/light@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/icons/light@1x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/icons/light@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/icons/light@2x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/img/blue-shirt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/img/blue-shirt.jpg -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/img/green-shirt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/img/green-shirt.jpg -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/img/teal-shirt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/img/teal-shirt.jpg -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/watch.sh: -------------------------------------------------------------------------------- 1 | echo "Loading plugin..." 2 | uxp plugin load 3 | 4 | echo "Watching plugin..." 5 | nodemon --exec "uxp plugin reload" -e js,jsx,html 6 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/watch.sh: -------------------------------------------------------------------------------- 1 | echo "Loading plugin..." 2 | uxp plugin load 3 | 4 | echo "Watching plugin..." 5 | nodemon --exec "uxp plugin reload" -e js,jsx,html 6 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/icons/dark@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/icons/dark@1x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/icons/dark@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/icons/dark@2x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/icons/light@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/icons/light@1x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/icons/light@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/undavide/Adobe-UXP/HEAD/Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/icons/light@2x.png -------------------------------------------------------------------------------- /Things-You-Need-To-Know/11-Flyout/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "uxp-template-ps-starter", 3 | "version": "1.0.0", 4 | "description": "Starter template for creating Adobe UXP based photoshop plugin.", 5 | "author": "Adobe Inc", 6 | "license": "Apache-2.0" 7 | } 8 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/vanilla/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "uxp-template-ps-starter", 3 | "version": "1.0.0", 4 | "description": "Starter template for creating Adobe UXP based photoshop plugin.", 5 | "author": "Adobe Inc", 6 | "license": "Apache-2.0" 7 | } 8 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "uxp-template-ps-starter", 3 | "version": "1.0.0", 4 | "description": "Starter template for creating Adobe UXP based photoshop plugin.", 5 | "author": "Adobe Inc", 6 | "license": "Apache-2.0" 7 | } 8 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "uxp-template-ps-starter", 3 | "version": "1.0.0", 4 | "description": "Starter template for creating Adobe UXP based photoshop plugin.", 5 | "author": "Adobe Inc", 6 | "license": "Apache-2.0" 7 | } 8 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/dist/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/plugin/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Adobe-UXP 2 | 3 | ![](img/UXP-TYNTN.png) 4 | 5 | Hey I'm Davide and this is the repository for the "Adobe UXP: Things You Need To Know!" series that is hosted [on my blog](https://www.davidebarranca.com/) (as written articles) and on [YouTube](https://www.youtube.com/playlist?list=PLRR5kmVeh43alNtSKHUlmbBjLqezgwzPJ) in video. 6 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/README.md: -------------------------------------------------------------------------------- 1 | # Just an icon button 2 | 3 | ![](../../../img/09-icon-buttons.png) 4 | 5 | From the UXP Developer Tool `ps-starter` template. It demoes how to (and how not to) use Spectrum Icons in Action Buttons. 6 | 7 | Refer to [this blogpost](https://www.davidebarranca.com/development/Adobe-UXP-things-you-need-to-know-9-Adobe-Spectrum-UXP.html) and [video](https://youtu.be/j58FvGYNPnE). -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/README.md: -------------------------------------------------------------------------------- 1 | # Sample Spectrum T-Shirts plugin 2 | 3 | ![](../../../img/09-t-shirts.png) 4 | 5 | From the UXP Developer Tool `ps-starter` template. It demoes a small selection of Spectrum Widgets, Themed media queries and UI data collection. 6 | 7 | Refer to [this blogpost](https://www.davidebarranca.com/development/Adobe-UXP-things-you-need-to-know-9-Adobe-Spectrum-UXP.html) and [video](https://youtu.be/j58FvGYNPnE). -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/vanilla/index.js: -------------------------------------------------------------------------------- 1 | const uxp = require("uxp"); 2 | document.getElementById("info").innerHTML = 3 | `Photoshop ${uxp.host.version}, ${uxp.versions.uxp}` 4 | 5 | const openDialog = async () => { 6 | const res = await document.querySelector("#dialog").uxpShowModal({ 7 | title: "About", 8 | resize: "both", // "horizontal", "vertical", "none" 9 | size: { 10 | width: 464, 11 | height: 380 12 | } 13 | }) 14 | console.log(`The dialog closed with: ${res}`) 15 | } 16 | 17 | const openSpectrumDialog = () => { 18 | document.querySelector("#sp-dialog").setAttribute("open"); 19 | } 20 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/11-Flyout/README.md: -------------------------------------------------------------------------------- 1 | # Starter Photoshop Plugin (Vanilla) 2 | 3 | This starter plugin is a good place to get started when developing for Photoshop. It does not rely on any frameworks or build steps -- hence the name "Vanilla". 4 | 5 | ## Loading in Photoshop 6 | 7 | You can load this plugin directly in Photoshop by using the UXP Developer Tools application. Once started, click "Add Plugin...", and navigate to the "manifest.json" file in this folder. Then click the ••• button next to the corresponding entry in the developer tools and click "Load". Switch over to Photoshop, and the plugin's panel will be running. 8 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/vanilla/README.md: -------------------------------------------------------------------------------- 1 | # Starter Photoshop Plugin (Vanilla) 2 | 3 | This starter plugin is a good place to get started when developing for Photoshop. It does not rely on any frameworks or build steps -- hence the name "Vanilla". 4 | 5 | ## Loading in Photoshop 6 | 7 | You can load this plugin directly in Photoshop by using the UXP Developer Tools application. Once started, click "Add Plugin...", and navigate to the "manifest.json" file in this folder. Then click the ••• button next to the corresponding entry in the developer tools and click "Load". Switch over to Photoshop, and the plugin's panel will be running. 8 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/11-Flyout/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 24 | 25 | Click the burger menu 26 | 27 | 28 | Nothing to see down here... 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "workbench.colorCustomizations": { 3 | "titleBar.activeForeground": "#000", 4 | "titleBar.inactiveForeground": "#000000CC", 5 | "titleBar.activeBackground": "#FFC600", 6 | "titleBar.inactiveBackground": "#FFC600CC" 7 | }, 8 | // These are all my auto-save configs 9 | "editor.formatOnSave": true, 10 | // turn it off for JS and JSX, we will do this via eslint 11 | "[javascript]": { 12 | "editor.formatOnSave": false 13 | }, 14 | "[javascriptreact]": { 15 | "editor.formatOnSave": false 16 | }, 17 | // tell the ESLint plugin to run on save 18 | "editor.codeActionsOnSave": { 19 | "source.fixAll": true 20 | }, 21 | // Optional BUT IMPORTANT: If you have the prettier extension enabled for other languages like CSS and HTML, turn it off for JS since we are doing it through Eslint already 22 | "prettier.disableLanguages": [ 23 | "javascript", 24 | "javascriptreact" 25 | ], 26 | } 27 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/index.js: -------------------------------------------------------------------------------- 1 | const app = window.require("photoshop").app; 2 | 3 | // T-Shirt Color dropdown 4 | document.querySelector("#color").addEventListener("change", evt => { 5 | document.querySelector("#shirt-img").src = `img/${evt.target.value}-shirt.jpg` 6 | }) 7 | 8 | // Buy button 9 | document.querySelector("#buy").addEventListener("click", evt => { 10 | let color = document.querySelector("#color").value; 11 | if (!color) { 12 | app.showAlert("Please pick a T-Shirt color"); 13 | return; 14 | } 15 | let order = document.querySelector("#order").value; 16 | let message = document.querySelector("#message").value; 17 | var selectedSize = [...document.querySelectorAll('#size sp-radio')].filter(radio => radio.checked)[0].value; 18 | app.showAlert("T-Shirt order" + 19 | "\n--------------" + 20 | "\nNumber: " + order + 21 | "\nSize: " + selectedSize + 22 | "\nColor: " + color + 23 | "\nMessage: " + (message === "" ? "none" : message)) 24 | }) 25 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/src/index.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | 4 | import "./styles.css"; 5 | import { PanelController } from "./controllers/PanelController.jsx"; 6 | import { CommandController } from "./controllers/CommandController.jsx"; 7 | import Dialogs from "./panels/Dialogs.jsx"; 8 | 9 | import { entrypoints } from "uxp"; 10 | 11 | const demosController = new PanelController(() => , { id: "dialogs", menuItems: [ 12 | { id: "reload1", label: "Reload Plugin", enabled: true, checked: false, oninvoke: () => location.reload() }, 13 | { id: "dialog1", label: "About this Plugin", enabled: true, checked: false, oninvoke: () => aboutController.run() }, 14 | ] }); 15 | 16 | entrypoints.setup({ 17 | plugin: { 18 | create(plugin) { 19 | /* optional */ console.log("created", plugin); 20 | }, 21 | destroy() { 22 | /* optional */ console.log("destroyed"); 23 | } 24 | }, 25 | panels: { 26 | dialogs: demosController, 27 | } 28 | }); 29 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/dist/main.js: -------------------------------------------------------------------------------- 1 | 2 | // XD-specific! 3 | global.screen={}; 4 | window.WebSocket.prototype.OPEN = 1; 5 | 6 | let rootNode; 7 | async function show(event) { 8 | console.log("starting"); 9 | if (rootNode) return; 10 | rootNode = event.node; 11 | document.body.classList.add("xd"); 12 | const contents = await (await fetch("./index.html")).text(); 13 | try { 14 | document.body.innerHTML = contents; 15 | } finally { 16 | const nodes = Array.from(document.querySelectorAll("script[src]")); 17 | nodes.forEach(node => { 18 | console.log(`queueing ${node.src}`); 19 | setTimeout(() => require(`./${node.src}`), 100); 20 | }); 21 | } 22 | console.log("done"); 23 | } 24 | 25 | setTimeout(() => { 26 | show({node: document}); 27 | }, 100); 28 | 29 | module.exports = { 30 | commands: { 31 | 32 | }, 33 | panels: { 34 | /* 35 | editUxpPen: { 36 | show(event) { } 37 | }*/ /*, 38 | runPanel: { 39 | show(event) { } 40 | }*/ 41 | } 42 | } -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/plugin/main.js: -------------------------------------------------------------------------------- 1 | 2 | // XD-specific! 3 | global.screen={}; 4 | window.WebSocket.prototype.OPEN = 1; 5 | 6 | let rootNode; 7 | async function show(event) { 8 | console.log("starting"); 9 | if (rootNode) return; 10 | rootNode = event.node; 11 | document.body.classList.add("xd"); 12 | const contents = await (await fetch("./index.html")).text(); 13 | try { 14 | document.body.innerHTML = contents; 15 | } finally { 16 | const nodes = Array.from(document.querySelectorAll("script[src]")); 17 | nodes.forEach(node => { 18 | console.log(`queueing ${node.src}`); 19 | setTimeout(() => require(`./${node.src}`), 100); 20 | }); 21 | } 22 | console.log("done"); 23 | } 24 | 25 | setTimeout(() => { 26 | show({node: document}); 27 | }, 100); 28 | 29 | module.exports = { 30 | commands: { 31 | 32 | }, 33 | panels: { 34 | /* 35 | editUxpPen: { 36 | show(event) { } 37 | }*/ /*, 38 | runPanel: { 39 | show(event) { } 40 | }*/ 41 | } 42 | } -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/src/controllers/CommandController.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | 4 | export class CommandController { 5 | #id = null; 6 | #root = null; 7 | #Component = null; 8 | #dialogOpts = {}; 9 | 10 | constructor(Component, { id, ...dialogOpts } = {}) { 11 | this.#Component = Component; 12 | this.#id = id; 13 | this.#dialogOpts = Object.assign({}, { 14 | title: id, 15 | resize: "none", 16 | size: { 17 | width: 480, 18 | height: 320 19 | } 20 | }, dialogOpts); 21 | [ "run" ].forEach(fn => this[fn] = this[fn].bind(this)); 22 | } 23 | 24 | async run() { 25 | if (!this.#root) { 26 | this.#root = document.createElement("dialog"); 27 | ReactDOM.render(this.#Component({ dialog: this.#root }), this.#root); 28 | } 29 | document.body.appendChild(this.#root); 30 | 31 | await this.#root.showModal(this.#dialogOpts); 32 | this.#root.remove(); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Davide Barranca 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 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/src/components/WC.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | export class WC extends React.Component { 4 | constructor(props) { 5 | super(props); 6 | this.el = React.createRef(); 7 | this.handleEvent = this.handleEvent.bind(this); 8 | } 9 | 10 | handleEvent(evt) { 11 | const propName = `on${evt.type[0].toUpperCase()}${evt.type.substr(1)}`; 12 | if (this.props[propName]) { 13 | this.props[propName].call(evt.target, evt); 14 | } 15 | } 16 | 17 | componentDidMount() { 18 | const el = this.el.current; 19 | const eventProps = Object.entries(this.props).filter(([ k,v ]) => k.startsWith("on")); 20 | eventProps.forEach(([ k,v ]) => el.addEventListener(k.substr(2).toLowerCase(), this.handleEvent)); 21 | } 22 | 23 | componentWillUnmount() { 24 | const el = this.el.current; 25 | const eventProps = Object.entries(this.props).filter(([ k,v ]) => k.startsWith("on")); 26 | eventProps.forEach(([ k,v ]) => el.removeEventListener(k.substr(2).toLowerCase(), this.handleEvent)); 27 | } 28 | 29 | render() { 30 | return
{this.props.children}
; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.adobe.uxp.starter.react", 3 | "version": "1.0.0", 4 | "scripts": { 5 | "preinstall": "npx npm-force-resolutions", 6 | "watch": "nodemon -w src -e js,jsx,json,css,html -w webpack.config.js -x npm run build", 7 | "build": "webpack --mode development", 8 | "uxp:load": "cd dist && uxp plugin load", 9 | "uxp:reload": "cd dist && uxp plugin reload", 10 | "uxp:watch": "cd dist && nodemon --exec \"uxp plugin reload\" -e js,css,html", 11 | "uxp:debug": "cd dist && uxp plugin debug" 12 | }, 13 | "author": "Adobe Inc", 14 | "license": "Apache-2.0", 15 | "devDependencies": { 16 | "@babel/core": "^7.8.7", 17 | "@babel/plugin-proposal-object-rest-spread": "^7.8.3", 18 | "@babel/plugin-syntax-class-properties": "^7.10.4", 19 | "@babel/plugin-transform-react-jsx": "^7.8.3", 20 | "babel-loader": "^8.0.6", 21 | "clean-webpack-plugin": "^2.0.2", 22 | "copy-webpack-plugin": "^5.0.3", 23 | "css-loader": "^2.1.1", 24 | "file-loader": "^5.1.0", 25 | "style-loader": "^1.1.3", 26 | "webpack": "^4.32.2", 27 | "webpack-cli": "^3.3.2" 28 | }, 29 | "dependencies": { 30 | "cross-env": "^7.0.2", 31 | "react": "^16.8.6", 32 | "react-dom": "^16.8.6" 33 | }, 34 | "resolutions": { 35 | "acorn": "npm:acorn-with-stage3" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/vanilla/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "com.davidebarranca.dialogs", 3 | "name": "UXP Dialogs", 4 | "version": "1.0.0", 5 | "main": "index.html", 6 | "host": [ 7 | { 8 | "app": "PS", 9 | "minVersion": "22.0.0" 10 | } 11 | ], 12 | "manifestVersion": 4, 13 | "entrypoints": [ 14 | { 15 | "type": "panel", 16 | "id": "dialogs", 17 | "minimumSize": { 18 | "width": 280, 19 | "height": 250 20 | }, 21 | "maximumSize": { 22 | "width": 2000, 23 | "height": 2000 24 | }, 25 | "preferredDockedSize": { 26 | "width": 280, 27 | "height": 250 28 | }, 29 | "preferredFloatingSize": { 30 | "width": 280, 31 | "height": 250 32 | }, 33 | "label": { 34 | "default": "UXP Dialogs" 35 | } 36 | } 37 | ], 38 | "icons": [ 39 | { 40 | "width": 23, 41 | "height": 23, 42 | "path": "icons/dark.png", 43 | "scale": [ 44 | 1, 45 | 2 46 | ], 47 | "theme": [ 48 | "darkest", 49 | "dark", 50 | "medium" 51 | ] 52 | }, 53 | { 54 | "width": 23, 55 | "height": 23, 56 | "path": "icons/light.png", 57 | "scale": [ 58 | 1, 59 | 2 60 | ], 61 | "theme": [ 62 | "lightest", 63 | "light" 64 | ] 65 | } 66 | ] 67 | } 68 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/11-Flyout/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "com.davidebarranca.flyout", 3 | "name": "UXP Flyout example", 4 | "version": "1.0.0", 5 | "main": "index.html", 6 | "host": [ 7 | { 8 | "app": "PS", 9 | "minVersion": "22.0.0" 10 | } 11 | ], 12 | "manifestVersion": 4, 13 | "entrypoints": [ 14 | { 15 | "type": "panel", 16 | "id": "vanilla", 17 | "minimumSize": { 18 | "width": 230, 19 | "height": 200 20 | }, 21 | "maximumSize": { 22 | "width": 2000, 23 | "height": 2000 24 | }, 25 | "preferredDockedSize": { 26 | "width": 230, 27 | "height": 300 28 | }, 29 | "preferredFloatingSize": { 30 | "width": 230, 31 | "height": 300 32 | }, 33 | "label": { 34 | "default": "UXP Flyout example" 35 | } 36 | } 37 | ], 38 | "icons": [ 39 | { 40 | "width": 23, 41 | "height": 23, 42 | "path": "icons/dark.png", 43 | "scale": [ 44 | 1, 45 | 2 46 | ], 47 | "theme": [ 48 | "darkest", 49 | "dark", 50 | "medium" 51 | ] 52 | }, 53 | { 54 | "width": 23, 55 | "height": 23, 56 | "path": "icons/light.png", 57 | "scale": [ 58 | 1, 59 | 2 60 | ], 61 | "theme": [ 62 | "lightest", 63 | "light" 64 | ] 65 | } 66 | ] 67 | } 68 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "whatever1234", 3 | "name": "Just an icon button", 4 | "version": "1.0.0", 5 | "main": "index.html", 6 | "host": [ 7 | { 8 | "app": "PS", 9 | "minVersion": "22.0.0" 10 | } 11 | ], 12 | "manifestVersion": 4, 13 | "entrypoints": [ 14 | { 15 | "type": "panel", 16 | "id": "vanilla", 17 | "minimumSize": { 18 | "width": 230, 19 | "height": 200 20 | }, 21 | "maximumSize": { 22 | "width": 2000, 23 | "height": 2000 24 | }, 25 | "preferredDockedSize": { 26 | "width": 230, 27 | "height": 300 28 | }, 29 | "preferredFloatingSize": { 30 | "width": 230, 31 | "height": 300 32 | }, 33 | "label": { 34 | "default": "Just an icon button" 35 | } 36 | } 37 | ], 38 | "icons": [ 39 | { 40 | "width": 23, 41 | "height": 23, 42 | "path": "icons/dark.png", 43 | "scale": [ 44 | 1, 45 | 2 46 | ], 47 | "theme": [ 48 | "darkest", 49 | "dark", 50 | "medium" 51 | ] 52 | }, 53 | { 54 | "width": 23, 55 | "height": 23, 56 | "path": "icons/light.png", 57 | "scale": [ 58 | 1, 59 | 2 60 | ], 61 | "theme": [ 62 | "lightest", 63 | "light" 64 | ] 65 | } 66 | ] 67 | } 68 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "com.davidebarranca.uxpspectrumexample", 3 | "name": "UXP Spectrum example", 4 | "version": "1.0.0", 5 | "main": "index.html", 6 | "host": [ 7 | { 8 | "app": "PS", 9 | "minVersion": "22.0.0" 10 | } 11 | ], 12 | "manifestVersion": 4, 13 | "entrypoints": [ 14 | { 15 | "type": "panel", 16 | "id": "vanilla", 17 | "minimumSize": { 18 | "width": 230, 19 | "height": 20 20 | }, 21 | "maximumSize": { 22 | "width": 320, 23 | "height": 690 24 | }, 25 | "preferredDockedSize": { 26 | "width": 320, 27 | "height": 690 28 | }, 29 | "preferredFloatingSize": { 30 | "width": 320, 31 | "height": 690 32 | }, 33 | "label": { 34 | "default": "Starter Panel" 35 | } 36 | } 37 | ], 38 | "icons": [ 39 | { 40 | "width": 23, 41 | "height": 23, 42 | "path": "icons/dark.png", 43 | "scale": [ 44 | 1, 45 | 2 46 | ], 47 | "theme": [ 48 | "darkest", 49 | "dark", 50 | "medium" 51 | ] 52 | }, 53 | { 54 | "width": 23, 55 | "height": 23, 56 | "path": "icons/light.png", 57 | "scale": [ 58 | 1, 59 | 2 60 | ], 61 | "theme": [ 62 | "lightest", 63 | "light" 64 | ] 65 | } 66 | ] 67 | } 68 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/src/components/Preferences.jsx: -------------------------------------------------------------------------------- 1 | import React, { useState } from 'react'; 2 | 3 | const Preferences = ({ dialog }) => { 4 | const [smartObject, setSmartObject] = useState(true); 5 | const [vectorContent, setVectorContent] = useState(false); 6 | return ( 7 |
8 | Set Defaults 9 |
11 | setSmartObject(evt.target.checked) } > 13 | Smart Objects 14 | 15 | setVectorContent(evt.target.checked) }> 17 | Vector Content 18 | 19 |
20 |
21 | dialog.close("reasonCanceled")}> 23 | Cancel 24 | 25 | dialog.close({smartObject,vectorContent })}> 27 | Ok 28 | 29 |
30 |
31 | ); 32 | } 33 | 34 | export default Preferences; -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/dist/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "com.davidebarranca.reactdialogs", 3 | "name": "UXP React Dialogs", 4 | "version": "1.0.0", 5 | "main": "index.html", 6 | "manifestVersion": 4, 7 | "host": [ 8 | { 9 | "app": "PS", 10 | "minVersion": "22.0.0" 11 | } 12 | ], 13 | "entrypoints": [ 14 | 15 | { 16 | "type": "panel", 17 | "id": "dialogs", 18 | "label": { 19 | "default": "UXP React Dialogs" 20 | }, 21 | "minimumSize": { 22 | "width": 320, 23 | "height": 250 24 | }, 25 | "maximumSize": { 26 | "width": 2000, 27 | "height": 2000 28 | }, 29 | "preferredDockedSize": { 30 | "width": 320, 31 | "height": 250 32 | }, 33 | "preferredFloatingSize": { 34 | "width": 420, 35 | "height": 250 36 | } 37 | } 38 | ], 39 | "icons": [ 40 | { 41 | "width": 32, 42 | "height": 32, 43 | "path": "icons/icon_D.png", 44 | "scale": [ 45 | 1, 46 | 2 47 | ], 48 | "theme": [ 49 | "dark", 50 | "darkest" 51 | ], 52 | "species": [ 53 | "generic" 54 | ] 55 | }, 56 | { 57 | "width": 32, 58 | "height": 32, 59 | "path": "icons/icon_N.png", 60 | "scale": [ 61 | 1, 62 | 2 63 | ], 64 | "theme": [ 65 | "lightest", 66 | "light" 67 | ], 68 | "species": [ 69 | "generic" 70 | ] 71 | } 72 | ] 73 | } -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/plugin/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "com.davidebarranca.reactdialogs", 3 | "name": "UXP React Dialogs", 4 | "version": "1.0.0", 5 | "main": "index.html", 6 | "manifestVersion": 4, 7 | "host": [ 8 | { 9 | "app": "PS", 10 | "minVersion": "22.0.0" 11 | } 12 | ], 13 | "entrypoints": [ 14 | 15 | { 16 | "type": "panel", 17 | "id": "dialogs", 18 | "label": { 19 | "default": "UXP React Dialogs" 20 | }, 21 | "minimumSize": { 22 | "width": 320, 23 | "height": 250 24 | }, 25 | "maximumSize": { 26 | "width": 2000, 27 | "height": 2000 28 | }, 29 | "preferredDockedSize": { 30 | "width": 320, 31 | "height": 250 32 | }, 33 | "preferredFloatingSize": { 34 | "width": 420, 35 | "height": 250 36 | } 37 | } 38 | ], 39 | "icons": [ 40 | { 41 | "width": 32, 42 | "height": 32, 43 | "path": "icons/icon_D.png", 44 | "scale": [ 45 | 1, 46 | 2 47 | ], 48 | "theme": [ 49 | "dark", 50 | "darkest" 51 | ], 52 | "species": [ 53 | "generic" 54 | ] 55 | }, 56 | { 57 | "width": 32, 58 | "height": 32, 59 | "path": "icons/icon_N.png", 60 | "scale": [ 61 | 1, 62 | 2 63 | ], 64 | "theme": [ 65 | "lightest", 66 | "light" 67 | ], 68 | "species": [ 69 | "generic" 70 | ] 71 | } 72 | ] 73 | } -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require("path"); 2 | const CleanWebpackPlugin = require("clean-webpack-plugin"); 3 | const CopyPlugin = require("copy-webpack-plugin"); 4 | 5 | module.exports = { 6 | entry: './src/index.jsx', 7 | output: { 8 | path: path.resolve(__dirname, 'dist'), 9 | filename: 'index.js', 10 | //libraryTarget: "commonjs2" 11 | }, 12 | devtool: 'cheap-eval-source-map', // won't work on XD due to lack of eval 13 | externals: { 14 | uxp: 'commonjs2 uxp', 15 | photoshop: 'commonjs2 photoshop', 16 | os: 'commonjs2 os' 17 | }, 18 | resolve: { 19 | extensions: [".js", ".jsx"] 20 | }, 21 | module: { 22 | rules: [ 23 | { 24 | test: /\.jsx?$/, 25 | exclude: /node_modules/, 26 | loader: "babel-loader", 27 | options: { 28 | plugins: [ 29 | "@babel/transform-react-jsx", 30 | "@babel/proposal-object-rest-spread", 31 | "@babel/plugin-syntax-class-properties", 32 | ] 33 | } 34 | }, 35 | { 36 | test: /\.png$/, 37 | exclude: /node_modules/, 38 | loader: 'file-loader' 39 | }, 40 | { 41 | test: /\.css$/, 42 | use: ["style-loader", "css-loader"] 43 | } 44 | ] 45 | }, 46 | plugins: [ 47 | //new CleanWebpackPlugin(), 48 | new CopyPlugin(['plugin'], { 49 | copyUnmodified: true 50 | }) 51 | ] 52 | }; -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | Spectrum Web Components 23 | 24 | 25 |
26 | 27 |
28 | 29 | 30 | Spectrum UXP named icon 31 | 32 | 33 |
34 | 35 |
36 | 37 | 38 | Spectrum UXP custom icon 39 |
40 | 41 | 42 | 43 | 44 |
45 |
46 |
47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/src/controllers/PanelController.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | 4 | export class PanelController { 5 | #id = null; 6 | #root = null; 7 | #attachment = null; 8 | #Component = null; 9 | #menuItems = []; 10 | 11 | constructor(Component, { id, menuItems } = {}) { 12 | this.#Component = Component; 13 | this.#id = id; 14 | this.#menuItems = menuItems || []; 15 | 16 | this.menuItems = this.#menuItems.map(menuItem => ({ 17 | id: menuItem.id, 18 | label: menuItem.label, 19 | enabled: menuItem.enabled || true, 20 | checked: menuItem.checked || false 21 | })); 22 | 23 | [ "create", "show", "hide", "destroy", "invokeMenu" ].forEach(fn => this[fn] = this[fn].bind(this)); 24 | } 25 | 26 | create() { 27 | this.#root = document.createElement("div"); 28 | this.#root.style.height = "100vh"; 29 | this.#root.style.overflow = "auto"; 30 | this.#root.style.padding = "8px"; 31 | 32 | ReactDOM.render(this.#Component({ panel: this }), this.#root); 33 | 34 | return this.#root; 35 | } 36 | 37 | show(event) { 38 | if (!this.#root) { 39 | this.create(); 40 | } 41 | this.#attachment = event.node; 42 | this.#attachment.appendChild(this.#root); 43 | } 44 | 45 | hide() { 46 | if (this.#attachment && this.#root) { 47 | this.#attachment.removeChild(this.#root); 48 | this.#attachment = null; 49 | } 50 | } 51 | 52 | destroy() { } 53 | 54 | invokeMenu(id) { 55 | const menuItem = this.#menuItems.find(c => c.id === id); 56 | if (menuItem) { 57 | const handler = menuItem.oninvoke; 58 | if (handler) { 59 | handler(); 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/README.md: -------------------------------------------------------------------------------- 1 | # React Starter Plugin 2 | 3 | This plugin is a good place to get started when building a Photoshop plugin using React. It comes defined with all the dependencies that you'll need to get started. As this is a React project, you'll need to do some initial configuration before this will be usable in Photoshop. 4 | 5 | ## Install dependencies 6 | 7 | First, make sure that `yarn` is installed on your system. 8 | 9 | ``` 10 | npm install -g yarn 11 | ``` 12 | 13 | Then, after you ensure that your terminal is in the root of this project, use `yarn` to install the various dependencies needed: 14 | 15 | ``` 16 | yarn install 17 | ``` 18 | 19 | ## Build Process 20 | 21 | There are two ways to build the plugin for use in Photoshop: 22 | 23 | * `yarn watch` will build a development version of the plugin, and recompile everytime you make a change to the source files. The result is placed in `dist` folder. 24 | * `yarn build` will build a production version of the plugin and place it in `dist` folder. It will not update every time you make a change to the source files. 25 | 26 | > You **must** run either `watch` or `build` prior to trying to use within Photoshop! 27 | 28 | ## Launching in Photoshop 29 | 30 | You can use the UXP Developer Tools to load the plugin into Photoshop. 31 | 32 | If the plugin hasn't already been added to your workspace in the UXP Developer Tools, you can add it by clicking "Add Plugin...". You can either add the `dist` folder or the `plugin` folder - if you add the plugin folder - then you need to set the relative path to build folder ( 'dist' ) in the Plugin's Load Option. 33 | 34 | Once added, you can load it into Photoshop by clicking the ••• button on the corresponding row, and clicking "Load". Switch to Photoshop and you should see the starter panels. 35 | 36 | ## What this plugin does 37 | 38 | This plugin doesn't do much, but does illustrate how to create two panels in Photoshop with `entrypoints.setup`, and how to create flyout menus. It also demonstrates the use of several Spectrum UXP widgets to create a simple color picker in the primary panel. 39 | 40 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | *.lcov 24 | 25 | # nyc test coverage 26 | .nyc_output 27 | 28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 29 | .grunt 30 | 31 | # Bower dependency directory (https://bower.io/) 32 | bower_components 33 | 34 | # node-waf configuration 35 | .lock-wscript 36 | 37 | # Compiled binary addons (https://nodejs.org/api/addons.html) 38 | build/Release 39 | 40 | # Dependency directories 41 | node_modules/ 42 | jspm_packages/ 43 | 44 | # TypeScript v1 declaration files 45 | typings/ 46 | 47 | # TypeScript cache 48 | *.tsbuildinfo 49 | 50 | # Optional npm cache directory 51 | .npm 52 | 53 | # Optional eslint cache 54 | .eslintcache 55 | 56 | # Microbundle cache 57 | .rpt2_cache/ 58 | .rts2_cache_cjs/ 59 | .rts2_cache_es/ 60 | .rts2_cache_umd/ 61 | 62 | # Optional REPL history 63 | .node_repl_history 64 | 65 | # Output of 'npm pack' 66 | *.tgz 67 | 68 | # Yarn Integrity file 69 | .yarn-integrity 70 | 71 | # dotenv environment variables file 72 | .env 73 | .env.test 74 | 75 | # parcel-bundler cache (https://parceljs.org/) 76 | .cache 77 | 78 | # Next.js build output 79 | .next 80 | 81 | # Nuxt.js build / generate output 82 | .nuxt 83 | # dist 84 | 85 | # Gatsby files 86 | .cache/ 87 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 88 | # https://nextjs.org/blog/next-9-1#public-directory-support 89 | # public 90 | 91 | # vuepress build output 92 | .vuepress/dist 93 | 94 | # Serverless directories 95 | .serverless/ 96 | 97 | # FuseBox cache 98 | .fusebox/ 99 | 100 | # DynamoDB Local files 101 | .dynamodb/ 102 | 103 | # TernJS port file 104 | .tern-port 105 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/vanilla/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | Dialog examples 14 | 15 | 16 | Two different ways to create modal dialogs.
17 | Please note that Spectrum Dialogs API is still a work in progress. 18 |
19 | 20 |
21 | dialog 22 | sp-dialog 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 | 👋🏻 Hello there! 31 | 32 | 33 | This is a rich modal dialog where you can use all the available UI elements in UXP. 34 | 35 | 36 |
37 | 39 | Cancel 40 | 41 | 43 | Ok 44 | 45 | 46 |
47 |
48 | 49 | 50 | Use with caution! 51 | 52 | Spectrum Dialogs are still undocumented, yet available in PS-release.
53 | Be aware that this possibility exists and keep an eye on the Documentation. 54 |
55 | 56 | 58 | Ok 59 | 60 | 61 |
62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/11-Flyout/index.js: -------------------------------------------------------------------------------- 1 | const photoshop = require('photoshop') 2 | const { entrypoints } = require('uxp'); 3 | 4 | // const entrypoints = require('uxp').entrypoints 5 | entrypoints.setup({ 6 | plugin: { 7 | // NOT WORKING YET 8 | create(plugin) { console.log("Plugin created")}, 9 | // NOT WORKING YET 10 | destroy(plugin) { console.log("Plugin destroyed")}, 11 | }, 12 | panels: { 13 | vanilla: { 14 | // NOT WORKING YET 15 | create() { console.log("Panel created") }, 16 | // called when panel is made visible 17 | show(event) { 18 | console.log("Panel shown") 19 | // receives an event of type "uxpshowpanel" 20 | // with a event.node === body 21 | // to which you can .appendChild() stuff from create() 22 | console.log(event.type) 23 | }, 24 | // NOT WORKING YET 25 | hide(event) { console.log("Panel hidden") }, 26 | // NOT WORKING YET 27 | destroy() { console.log("Panel destroyed") }, 28 | 29 | // called when a flyout menu item is selected 30 | invokeMenu(id) { 31 | 32 | console.log("Clicked menu with ID", id); 33 | // Storing the menu items array 34 | const { menuItems } = entrypoints.getPanel("vanilla"); 35 | 36 | switch (id) { 37 | case "enabler": 38 | 39 | menuItems.getItem("dynamite").enabled = !menuItems.getItem("dynamite").enabled; 40 | 41 | menuItems.getItem(id).label = menuItems.getItem(id).label == "Enable 🧨" ? "Disable 🧨" : "Enable 🧨"; 42 | break; 43 | case "toggle": 44 | menuItems.getItem(id).checked = !menuItems.getItem(id).checked 45 | break; 46 | case "reload": 47 | window.location.reload() 48 | break; 49 | case "about": 50 | showAbout() 51 | break; 52 | } 53 | 54 | }, 55 | menuItems: [ 56 | // by default all items are enabled and unchecked 57 | { 58 | label: "Preferences", submenu: 59 | [ 60 | {id: "bell", label: "🔔 Notifications"}, 61 | {id: "dynamite", label: "🧨 Self-destruct", enabled: false }, 62 | {id: "spacer", label: "-" }, // SPACER 63 | {id: "enabler", label: "Enable 🧨" }, 64 | ] 65 | }, 66 | {id: "toggle", label: "Toggle me!", checked: true }, 67 | {id: "about", label: "About" }, 68 | {id: "reload", label: "Reload this panel" }, 69 | ] 70 | } 71 | }, 72 | commands: [] // Array of Objects (see Episode #4) 73 | }) 74 | 75 | const showAbout = () => { 76 | photoshop.core.showAlert("Hello everyone 🧢\n\nThis could also be a dialog...\nSee Episode #10") 77 | } 78 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 33 | 34 | 35 | 36 |
37 | Sample Spectrum plugin 38 | 39 |
40 |
41 | Just an example of the Spectrum widgets that you're allowed to use in your own plugins... 42 |
43 |
44 | MAKE SOME CHOICES 45 | 46 | 47 | How many T-Shirts do you want? 48 | 49 | 50 | 51 | Pick your size: 52 | XL 53 | L 54 | M 55 | S 56 | XS 57 | 58 | 59 | 60 | 61 | Blue 62 | Teal 63 | Green 64 | Purple (out of stock) 65 | 66 | 67 | 68 | 69 | 70 | Shirt personalized text (optional) 71 | 72 | 73 |
74 |
75 | Give back 76 | Complain 77 | 78 |
79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 |
87 | Purchase 88 |
89 |
90 | 91 | 92 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/src/panels/Dialogs.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from 'react-dom' 3 | import Preferences from "../components/Preferences" 4 | import uxp from "uxp" 5 | 6 | const Dialogs = () => { 7 | 8 | let preferencesDialog = null; 9 | 10 | const openPreferences = async () => { 11 | // Make it better, e.g. loading data from localStorage passing it to the 12 | // dialog, and saving it thereafter 13 | if (!preferencesDialog) { 14 | preferencesDialog = document.createElement("dialog"); 15 | ReactDOM.render(, preferencesDialog); 16 | } 17 | document.body.appendChild(preferencesDialog); 18 | let result = await preferencesDialog.uxpShowModal({ 19 | title: "Preferences", 20 | resize: "both", 21 | size: { 22 | width: 300, 23 | height: 250 24 | } 25 | }); 26 | // Do whatever you need with the {smartObject, vectorContent} result 27 | console.log(result) 28 | preferencesDialog.remove(); 29 | } 30 | return ( 31 |
32 | Dialog example in React 33 | 34 | 35 | Some dummy Preferences dialog.
36 | 37 |
38 | 39 |
40 | 41 |
42 | 43 | 44 | 45 | 46 |
47 | Open Preferences
48 |
49 | 50 | Photoshop {uxp.host.version}, {uxp.versions.uxp} 51 |
52 | ); 53 | } 54 | 55 | export default Dialogs; -------------------------------------------------------------------------------- /Things-You-Need-To-Know/11-Flyout/LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/react/LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/10-Dialogs/vanilla/LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/T-Shirts-plugin/LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Things-You-Need-To-Know/09-Adobe-Spectrum/just-an-icon-button/LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | --------------------------------------------------------------------------------