Selaa lähdekoodia

Initial commit.

Maciej Gołaszewski 6 vuotta sitten
sitoutus
6aa7bf3cf7

+ 12 - 0
packages/ckeditor5-indent/.editorconfig

@@ -0,0 +1,12 @@
+# Configurations to normalize the IDE behavior.
+# http://editorconfig.org/
+
+root = true
+
+[*]
+indent_style = tab
+tab_width = 4
+charset = utf-8
+end_of_line = lf
+trim_trailing_whitespace = true
+insert_final_newline = true

+ 12 - 0
packages/ckeditor5-indent/.eslintrc.js

@@ -0,0 +1,12 @@
+/**
+ * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
+ */
+
+/* eslint-env node */
+
+'use strict';
+
+module.exports = {
+	extends: 'ckeditor5'
+};

+ 18 - 0
packages/ckeditor5-indent/.gitattributes

@@ -0,0 +1,18 @@
+*			text=auto
+
+*.htaccess	eol=lf
+*.cgi		eol=lf
+*.sh		eol=lf
+
+*.css		text
+*.htm		text
+*.html		text
+*.js		text
+*.json		text
+*.php		text
+*.txt		text
+*.md		text
+
+*.png		-text
+*.gif		-text
+*.jpg		-text

+ 9 - 0
packages/ckeditor5-indent/.github/PULL_REQUEST_TEMPLATE.md

@@ -0,0 +1,9 @@
+### Suggested merge commit message ([convention](https://github.com/ckeditor/ckeditor5-design/wiki/Git-commit-message-convention))
+
+Type: Message. Closes #000.
+
+---
+
+### Additional information
+
+*For example – encountered issues, assumptions you had to make, other affected tickets, etc.*

+ 1 - 0
packages/ckeditor5-indent/.gitignore

@@ -0,0 +1 @@
+node_modules/

+ 28 - 0
packages/ckeditor5-indent/.travis.yml

@@ -0,0 +1,28 @@
+sudo: required
+dist: trusty
+addons:
+  chrome: stable
+  firefox: latest
+language: node_js
+node_js:
+- '8'
+cache:
+  yarn: true
+branches:
+  except:
+  - stable
+before_install:
+- export START_TIME=$( date +%s )
+- export DISPLAY=:99.0
+- sh -e /etc/init.d/xvfb start
+- npm i -g yarn
+install:
+- yarn add @ckeditor/ckeditor5-dev-tests
+- ckeditor5-dev-tests-install-dependencies
+script:
+- ckeditor5-dev-tests-travis
+after_success:
+- ckeditor5-dev-tests-save-revision
+after_script:
+- export END_TIME=$( date +%s )
+- ckeditor5-dev-tests-notify-travis-status

+ 4 - 0
packages/ckeditor5-indent/CONTRIBUTING.md

@@ -0,0 +1,4 @@
+Contributing
+========================================
+
+See the [official contributors' guide to CKEditor 5](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html) to learn more.

+ 17 - 0
packages/ckeditor5-indent/LICENSE.md

@@ -0,0 +1,17 @@
+Software License Agreement
+==========================
+
+**CKEditor 5 Indent Block Feature** – https://github.com/ckeditor/ckeditor5-indent-block <br>
+Copyright (c) 2003-2019, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
+
+Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
+
+Sources of Intellectual Property Included in CKEditor
+-----------------------------------------------------
+
+Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission.
+
+Trademarks
+----------
+
+**CKEditor** is a trademark of [CKSource](http://cksource.com) Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.

+ 21 - 0
packages/ckeditor5-indent/README.md

@@ -0,0 +1,21 @@
+CKEditor 5 indent block feature
+===========================
+
+[![Join the chat at https://gitter.im/ckeditor/ckeditor5](https://badges.gitter.im/ckeditor/ckeditor5.svg)](https://gitter.im/ckeditor/ckeditor5?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-indent-block.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-indent-block)
+[![Build Status](https://travis-ci.org/ckeditor/ckeditor5-indent-block.svg?branch=master)](https://travis-ci.org/ckeditor/ckeditor5-indent-block)
+[![BrowserStack Status](https://automate.browserstack.com/automate/badge.svg?badge_key=d3hvenZqQVZERFQ5d09FWXdyT0ozVXhLaVltRFRjTTUyZGpvQWNmWVhUUT0tLUZqNlJ1YWRUd0RvdEVOaEptM1B2Q0E9PQ==--c9d3dee40b9b4471ff3fb516d9ecf8d09292c7e0)](https://automate.browserstack.com/public-build/d3hvenZqQVZERFQ5d09FWXdyT0ozVXhLaVltRFRjTTUyZGpvQWNmWVhUUT0tLUZqNlJ1YWRUd0RvdEVOaEptM1B2Q0E9PQ==--c9d3dee40b9b4471ff3fb516d9ecf8d09292c7e0)
+[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5-indent-block/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5-indent-block?branch=master)
+<br>
+[![Dependency Status](https://david-dm.org/ckeditor/ckeditor5-indent-block/status.svg)](https://david-dm.org/ckeditor/ckeditor5-indent-block)
+[![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-indent-block/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-indent-block?type=dev)
+
+This package implements block indentation support for CKEditor 5.
+
+## Documentation
+
+See the [`@ckeditor/ckeditor5-indent-block` package](https://ckeditor.com/docs/ckeditor5/latest/api/indent-block.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/).
+
+## License
+
+Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license).

+ 34 - 0
packages/ckeditor5-indent/docs/api/indent-block.md

@@ -0,0 +1,34 @@
+---
+category: api-reference
+---
+
+# CKEditor 5 indent block feature
+
+[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-indent-block.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-indent-block)
+
+This package implements the indent block feature for CKEditor 5.
+
+## Demo
+
+Check out the {@link features/indent-block#demo demo in the indent block feature} guide.
+
+## Documentation
+
+See the {@link module:indent-block/indentblock~IndentBlock} plugin documentation.
+
+## Installation
+
+```bash
+npm install --save @ckeditor/ckeditor5-indent-block
+```
+
+## Contribute
+
+The source code of this package is available on GitHub in https://github.com/ckeditor/ckeditor5-indent-block.
+
+## External links
+
+* [`@ckeditor/ckeditor5-indent-block` on npm](https://www.npmjs.com/package/@ckeditor/ckeditor5-indent-block)
+* [`ckeditor/ckeditor5-indent-block` on GitHub](https://github.com/ckeditor/ckeditor5-indent-block)
+* [Issue tracker](https://github.com/ckeditor/ckeditor5-indent-block/issues)
+* [Changelog](https://github.com/ckeditor/ckeditor5-indent-block/blob/master/CHANGELOG.md)

+ 54 - 0
packages/ckeditor5-indent/package.json

@@ -0,0 +1,54 @@
+{
+  "name": "@ckeditor/ckeditor5-indent-block",
+  "version": "0.0.1",
+  "description": "Block indent feature for CKEditor 5.",
+  "keywords": [
+    "ckeditor",
+    "ckeditor5",
+    "ckeditor 5",
+    "ckeditor5-feature",
+    "ckeditor5-plugin"
+  ],
+  "dependencies": {
+  },
+  "devDependencies": {
+    "eslint": "^5.15.3",
+    "eslint-config-ckeditor5": "^1.0.11",
+    "husky": "^1.3.1",
+    "lint-staged": "^7.0.0"
+  },
+  "engines": {
+    "node": ">=8.0.0",
+    "npm": ">=5.7.1"
+  },
+  "author": "CKSource (http://cksource.com/)",
+  "license": "GPL-2.0-or-later",
+  "homepage": "https://ckeditor.com/ckeditor-5",
+  "bugs": "https://github.com/ckeditor/ckeditor5-indent-block/issues",
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/ckeditor/ckeditor5-indent-block.git"
+  },
+  "files": [
+    "lang",
+    "src",
+    "theme"
+  ],
+  "scripts": {
+    "lint": "eslint --quiet '**/*.js'"
+  },
+  "lint-staged": {
+    "**/*.js": [
+      "eslint --quiet"
+    ]
+  },
+  "eslintIgnore": [
+    "src/lib/**",
+    "packages/**"
+  ],
+  "husky": {
+    "hooks": {
+      "pre-commit": "lint-staged"
+    }
+  }
+}