Skip to content

Commit

Permalink
initialize with cookiecutter template
Browse files Browse the repository at this point in the history
  • Loading branch information
konodyuk committed Dec 27, 2020
0 parents commit f475eaa
Show file tree
Hide file tree
Showing 9 changed files with 648 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
MANIFEST
build
dist
lib
static
themes
jupyterlab/static
jupyterlab/schemas
jupyterlab/themes
jupyterlab/geckodriver
dev_mode/schemas
dev_mode/static
dev_mode/themes
dev_mode/workspaces
dev_mode/stats.json

packages/theme-*/static
node_modules
.cache
.vscode
*.py[co]
.pytest_cache
__pycache__
*.egg-info
*~
*.bak
.ipynb_checkpoints
.DS_Store
\#*#
.#*

*.swp
*.map
.idea/
*.iml

coverage/
tests/**/coverage
tests/**/.cache-loader
docs/_build
docs/api
docs/source/_build
packages/services/examples/node/config.json
examples/app/build
examples/app/themes
examples/app/schemas

lerna-debug.log
yarn-error.log

junit.xml
27 changes: 27 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright (c) 2020, theme-ayu-mirage
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of theme-ayu-mirage nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# konodyuk/theme-ayu-mirage

Ayu Mirage for JupyterLab.

## Prerequisites

* JupyterLab

## Installation

```bash
jupyter labextension install konodyuk/theme-ayu-mirage
```

## Development

For a development install (requires npm version 4 or later), do the following in the repository directory:

```bash
npm install
jupyter labextension link .
```

To rebuild the package and the JupyterLab app:

```bash
npm run build
jupyter lab build
```
65 changes: 65 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"name": "@konodyuk/theme-ayu-mirage",
"version": "0.1.0",
"description": "Ayu Mirage for JupyterLab.",
"author": "Nikita Konodyuk <[email protected]>",
"keywords": [
"jupyter",
"jupyterlab",
"jupyterlab-extension",
"jupyterlab-theme"
],
"license": "BSD-3-Clause",
"files": [
"lib/*.d.ts",
"lib/*.js.map",
"lib/*.js",
"style/*"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
"directories": {
"lib": "lib/"
},
"scripts": {
"build": "tsc",
"build:webpack": "webpack",
"clean": "rimraf lib && rimraf static && rimraf tsconfig.tsbuildinfo",
"prepare": "npm run clean && npm run build",
"watch": "tsc -w",
"watch:webpack": "webpack --watch"
},
"dependencies": {
"@jupyterlab/application": "^2.0.0",
"@jupyterlab/apputils": "^2.0.0"
},
"devDependencies": {
"rimraf": "~2.6.2",
"typedoc": "~0.12.0",
"typescript": "~3.7.1",
"css-loader": "~0.28.7",
"mini-css-extract-plugin": "~0.4.4",
"svgo": "~1.0.4",
"svg-url-loader": "~2.3.1",
"svgo-loader": "~2.1.0",
"url-loader": "~1.0.1",
"watch": "~1.0.2",
"webpack": "~4.12.0",
"webpack-cli": "^3.0.3"
},
"publishConfig": {
"access": "public"
},
"jupyterlab": {
"extension": true,
"themePath": "style/index.css"
},
"homepage": "https://github.com/konodyuk/theme-ayu-mirage",
"bugs": {
"url": "https://github.com/konodyuk/theme-ayu-mirage/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/konodyuk/theme-ayu-mirage.git"
}
}
27 changes: 27 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import {
JupyterFrontEnd,
JupyterFrontEndPlugin
} from '@jupyterlab/application';

import { IThemeManager } from '@jupyterlab/apputils';

/**
* A plugin for konodyuk/theme-ayu-mirage
*/
const plugin: JupyterFrontEndPlugin<void> = {
id: '@konodyuk/theme-ayu-mirage:plugin',
requires: [IThemeManager],
activate: function(app: JupyterFrontEnd, manager: IThemeManager) {
const style = '@konodyuk/theme-ayu-mirage/index.css';

manager.register({
name: 'theme-ayu-mirage',
isLight: true,
load: () => manager.loadCSS(style),
unload: () => Promise.resolve(undefined)
});
},
autoStart: true
};

export default plugin;
17 changes: 17 additions & 0 deletions style/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*-----------------------------------------------------------------------------
| Copyright (c) Jupyter Development Team.
| Distributed under the terms of the Modified BSD License.
|----------------------------------------------------------------------------*/

@import './variables.css';

/* Set the default typography for monospace elements */
tt,
code,
kbd,
samp,
pre {
font-family: var(--jp-code-font-family);
font-size: var(--jp-code-font-size);
line-height: var(--jp-code-line-height);
}
Loading

0 comments on commit f475eaa

Please sign in to comment.