Last active
June 15, 2020 08:16
-
-
Save DerZyklop/c176542e506b80c15cf982dfd370cc76 to your computer and use it in GitHub Desktop.
Atom Settings Backup by https://atom.io/packages/sync-settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> | |
# console.log "Saved! #{editor.getPath()}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your keymap | |
# | |
# Atom keymaps work similarly to style sheets. Just as style sheets use | |
# selectors to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. Unlike style sheets however, | |
# each selector can only be declared once. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# | |
# Here's an example taken from Atom's built-in keymap: | |
# | |
# 'atom-text-editor': | |
# 'enter': 'editor:newline' | |
# | |
# 'atom-workspace': | |
# 'ctrl-shift-p': 'core:move-up' | |
# 'ctrl-p': 'core:move-down' | |
# | |
# You can find more information about keymaps in these guides: | |
# * http://flight-manual.atom.io/using-atom/sections/basic-customization/#_customizing_keybindings | |
# * http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/ | |
# | |
# If you're having trouble with your keybindings not working, try the | |
# Keybinding Resolver: `Cmd+.` on macOS and `Ctrl+.` on other platforms. See the | |
# Debugging Guide for more information: | |
# * http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-the-keybindings | |
# | |
# This file uses CoffeeScript Object Notation (CSON). | |
# If you are unfamiliar with CSON, you can read more about it in the | |
# Atom Flight Manual: | |
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson | |
'body': | |
'ctrl-tab': 'pane:show-next-item' | |
'ctrl-tab ^ctrl': 'unset!' | |
'ctrl-shift-tab': 'pane:show-previous-item' | |
'ctrl-shift-tab ^ctrl': 'unset!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"about": { | |
"version": "1.9.1" | |
}, | |
"angular-2-typeScript-snippets": { | |
"version": "0.7.0" | |
}, | |
"angular2-component-generator": { | |
"version": "0.0.1" | |
}, | |
"archive-view": { | |
"version": "0.65.2" | |
}, | |
"ariake-dark-syntax": { | |
"version": "0.2.1", | |
"theme": "syntax" | |
}, | |
"atom-dark-syntax": { | |
"version": "0.29.1", | |
"theme": "syntax" | |
}, | |
"atom-dark-ui": { | |
"version": "0.53.3", | |
"theme": "ui" | |
}, | |
"atom-ide-debugger-node": { | |
"version": "0.7.3" | |
}, | |
"atom-ide-ui": { | |
"version": "0.13.0" | |
}, | |
"atom-ignore": { | |
"version": "0.2.0" | |
}, | |
"atom-light-syntax": { | |
"version": "0.29.1", | |
"theme": "syntax" | |
}, | |
"atom-light-ui": { | |
"version": "0.46.3", | |
"theme": "ui" | |
}, | |
"atom-monokai": { | |
"version": "0.10.9", | |
"theme": "syntax" | |
}, | |
"atom-typescript": { | |
"version": "13.6.1" | |
}, | |
"auto-update-packages": { | |
"version": "1.0.1" | |
}, | |
"autocomplete-atom-api": { | |
"version": "0.10.7" | |
}, | |
"autocomplete-css": { | |
"version": "0.17.5" | |
}, | |
"autocomplete-html": { | |
"version": "0.8.8" | |
}, | |
"autocomplete-paths": { | |
"version": "2.12.2" | |
}, | |
"autocomplete-plus": { | |
"version": "2.42.3" | |
}, | |
"autocomplete-snippets": { | |
"version": "1.12.1" | |
}, | |
"autocomplete-xml": { | |
"version": "0.11.0" | |
}, | |
"autoflow": { | |
"version": "0.29.4" | |
}, | |
"autosave": { | |
"version": "0.24.6" | |
}, | |
"background-tips": { | |
"version": "0.28.0" | |
}, | |
"base16-tomorrow-dark-theme": { | |
"version": "1.6.0", | |
"theme": "syntax" | |
}, | |
"base16-tomorrow-light-theme": { | |
"version": "1.6.0", | |
"theme": "syntax" | |
}, | |
"bookmarks": { | |
"version": "0.46.0" | |
}, | |
"bracket-matcher": { | |
"version": "0.91.2" | |
}, | |
"busy-signal": { | |
"version": "2.0.1" | |
}, | |
"cake-syntax": { | |
"version": "1.0.2", | |
"theme": "syntax" | |
}, | |
"command-palette": { | |
"version": "0.43.5" | |
}, | |
"custom-title": { | |
"version": "1.0.1" | |
}, | |
"dalek": { | |
"version": "0.2.2" | |
}, | |
"deprecation-cop": { | |
"version": "0.56.9" | |
}, | |
"dev-live-reload": { | |
"version": "0.48.1" | |
}, | |
"docblockr": { | |
"version": "0.13.7" | |
}, | |
"editorconfig": { | |
"version": "2.6.1" | |
}, | |
"emmet": { | |
"version": "2.4.3" | |
}, | |
"encoding-selector": { | |
"version": "0.23.9" | |
}, | |
"exception-reporting": { | |
"version": "0.43.1" | |
}, | |
"file-icons": { | |
"version": "2.1.41" | |
}, | |
"find-and-replace": { | |
"version": "0.219.3" | |
}, | |
"firewatch-dark-syntax": { | |
"version": "1.1.7", | |
"theme": "syntax" | |
}, | |
"firewatch-green-syntax": { | |
"version": "1.1.0", | |
"theme": "syntax" | |
}, | |
"firewatch-hot-syntax": { | |
"version": "1.4.1", | |
"theme": "syntax" | |
}, | |
"firewatch-syntax": { | |
"version": "1.1.1", | |
"theme": "syntax" | |
}, | |
"fold-imports": { | |
"version": "0.9.0" | |
}, | |
"fuzzy-finder": { | |
"version": "1.14.2" | |
}, | |
"git-diff": { | |
"version": "1.3.9" | |
}, | |
"github": { | |
"version": "0.34.2" | |
}, | |
"go-to-line": { | |
"version": "0.33.0" | |
}, | |
"grammar-selector": { | |
"version": "0.50.1" | |
}, | |
"ide-css": { | |
"version": "0.3.4" | |
}, | |
"ide-html": { | |
"version": "0.6.0" | |
}, | |
"ide-json": { | |
"version": "0.2.1" | |
}, | |
"ide-typescript": { | |
"version": "0.9.1" | |
}, | |
"image-view": { | |
"version": "0.64.0" | |
}, | |
"incompatible-packages": { | |
"version": "0.27.3" | |
}, | |
"intentions": { | |
"version": "1.1.5" | |
}, | |
"keybinding-resolver": { | |
"version": "0.39.0" | |
}, | |
"language-c": { | |
"version": "0.60.19" | |
}, | |
"language-clojure": { | |
"version": "0.22.8" | |
}, | |
"language-coffee-script": { | |
"version": "0.50.0" | |
}, | |
"language-csharp": { | |
"version": "1.1.0" | |
}, | |
"language-css": { | |
"version": "0.44.4" | |
}, | |
"language-freemarker": { | |
"version": "0.2.0" | |
}, | |
"language-gfm": { | |
"version": "0.90.7" | |
}, | |
"language-git": { | |
"version": "0.19.1" | |
}, | |
"language-go": { | |
"version": "0.47.2" | |
}, | |
"language-html": { | |
"version": "0.53.1" | |
}, | |
"language-html-angular": { | |
"version": "1.0.16" | |
}, | |
"language-hyperlink": { | |
"version": "0.17.1" | |
}, | |
"language-java": { | |
"version": "0.31.5" | |
}, | |
"language-javascript": { | |
"version": "0.134.1" | |
}, | |
"language-json": { | |
"version": "1.0.5" | |
}, | |
"language-less": { | |
"version": "0.34.3" | |
}, | |
"language-make": { | |
"version": "0.23.0" | |
}, | |
"language-mustache": { | |
"version": "0.14.5" | |
}, | |
"language-objective-c": { | |
"version": "0.16.0" | |
}, | |
"language-perl": { | |
"version": "0.38.1" | |
}, | |
"language-php": { | |
"version": "0.44.4" | |
}, | |
"language-property-list": { | |
"version": "0.9.1" | |
}, | |
"language-python": { | |
"version": "0.53.4" | |
}, | |
"language-ruby": { | |
"version": "0.72.23" | |
}, | |
"language-ruby-on-rails": { | |
"version": "0.25.3" | |
}, | |
"language-rust-bundled": { | |
"version": "0.1.0" | |
}, | |
"language-sass": { | |
"version": "0.62.1" | |
}, | |
"language-shellscript": { | |
"version": "0.28.2" | |
}, | |
"language-source": { | |
"version": "0.9.0" | |
}, | |
"language-sql": { | |
"version": "0.25.10" | |
}, | |
"language-text": { | |
"version": "0.7.4" | |
}, | |
"language-todo": { | |
"version": "0.29.4" | |
}, | |
"language-toml": { | |
"version": "0.20.0" | |
}, | |
"language-typescript": { | |
"version": "0.6.2" | |
}, | |
"language-typescript-react": { | |
"version": "0.1.1" | |
}, | |
"language-xml": { | |
"version": "0.35.3" | |
}, | |
"language-yaml": { | |
"version": "0.32.0" | |
}, | |
"line-ending-selector": { | |
"version": "0.7.7" | |
}, | |
"link": { | |
"version": "0.31.6" | |
}, | |
"linter": { | |
"version": "2.3.1" | |
}, | |
"linter-eslint": { | |
"version": "8.5.5" | |
}, | |
"linter-htmllint": { | |
"version": "1.1.7" | |
}, | |
"linter-json-lint": { | |
"version": "0.1.3" | |
}, | |
"linter-scss-lint": { | |
"version": "3.2.1" | |
}, | |
"linter-stylelint": { | |
"version": "4.5.1" | |
}, | |
"linter-tslint": { | |
"version": "1.10.43" | |
}, | |
"linter-ui-default": { | |
"version": "1.8.1" | |
}, | |
"markdown-preview": { | |
"version": "0.160.2" | |
}, | |
"markdown-preview-plus": { | |
"version": "3.11.5" | |
}, | |
"metrics": { | |
"version": "1.8.1" | |
}, | |
"monokai": { | |
"version": "0.24.0", | |
"theme": "syntax" | |
}, | |
"notifications": { | |
"version": "0.71.0" | |
}, | |
"one-dark-syntax": { | |
"version": "1.8.4", | |
"theme": "syntax" | |
}, | |
"one-dark-ui": { | |
"version": "1.12.5", | |
"theme": "ui" | |
}, | |
"one-light-syntax": { | |
"version": "1.8.4", | |
"theme": "syntax" | |
}, | |
"one-light-ui": { | |
"version": "1.12.5", | |
"theme": "ui" | |
}, | |
"open-on-github": { | |
"version": "1.3.2" | |
}, | |
"package-generator": { | |
"version": "1.3.0" | |
}, | |
"php-integrator-autocomplete-plus": { | |
"version": "1.6.2" | |
}, | |
"plano-syntax": { | |
"version": "1.1.1", | |
"theme": "syntax", | |
"apmInstallSource": { | |
"type": "git", | |
"source": "DerZyklop/plano-syntax", | |
"sha": "7c51b3755fb10a4a0b92329699c0bdea03de5d4c" | |
} | |
}, | |
"prettier-atom": { | |
"version": "0.60.0" | |
}, | |
"save-workspace": { | |
"version": "0.5.0" | |
}, | |
"settings-view": { | |
"version": "0.261.4" | |
}, | |
"snippets": { | |
"version": "1.5.1" | |
}, | |
"solarized-dark-syntax": { | |
"version": "1.3.0", | |
"theme": "syntax" | |
}, | |
"solarized-light-syntax": { | |
"version": "1.3.0", | |
"theme": "syntax" | |
}, | |
"spell-check": { | |
"version": "0.76.1" | |
}, | |
"status-bar": { | |
"version": "1.8.17" | |
}, | |
"styleguide": { | |
"version": "0.49.12" | |
}, | |
"symbols-tree-view": { | |
"version": "0.14.0" | |
}, | |
"symbols-view": { | |
"version": "0.118.4" | |
}, | |
"sync-settings": { | |
"version": "4.3.3" | |
}, | |
"tabs": { | |
"version": "0.110.0" | |
}, | |
"timecop": { | |
"version": "0.36.2" | |
}, | |
"todo": { | |
"version": "0.6.0" | |
}, | |
"todo-show": { | |
"version": "2.3.2" | |
}, | |
"tree-view": { | |
"version": "0.228.0" | |
}, | |
"update-package-dependencies": { | |
"version": "0.13.1" | |
}, | |
"welcome": { | |
"version": "0.36.9" | |
}, | |
"whitespace": { | |
"version": "0.37.7" | |
}, | |
"wrap-guide": { | |
"version": "0.41.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"*": { | |
"atom-ide-ui": { | |
"atom-ide-diagnostics-ui": { | |
"autoVisibility": true, | |
"showDirectoryColumn": true, | |
"statusBarPosition": "right" | |
}, | |
"use": {} | |
}, | |
"atom-ignore": { | |
"enabled": false | |
}, | |
"atom-perforce": { | |
"autoAdd": true, | |
"autoEdit": true, | |
"autoRevert": true | |
}, | |
"atom-typescript": { | |
"tooltipDelay": 700 | |
}, | |
"auto-update-packages": { | |
"intervalMinutes": 60 | |
}, | |
"autocomplete-paths": { | |
"maxFileCount": 3000 | |
}, | |
"core": { | |
"customFileTypes": { | |
"source.tsx": [ | |
"ts" | |
] | |
}, | |
"disabledPackages": [ | |
"markdown-preview", | |
"linter", | |
"docblockr", | |
"prettier-atom", | |
"language-typescript-react", | |
"editorconfig", | |
"ide-typescript", | |
"linter-eslint" | |
], | |
"ignoredNames": [ | |
".git", | |
"node_modules", | |
"documentation", | |
"dist", | |
"build" | |
], | |
"telemetryConsent": "no", | |
"themes": [ | |
"one-dark-ui", | |
"plano-syntax" | |
], | |
"useTreeSitterParsers": false | |
}, | |
"custom-title": { | |
"template": "<% if (fileInProject) { %><%= relativeFilePath %> | <%= projectName %><% } else { %><%= filePath %><% } %>" | |
}, | |
"docblockr": { | |
"align_tags": "shallow", | |
"auto_add_method_tag": true | |
}, | |
"editor": { | |
"fontFamily": "Fira Code, Operator Mono, Fira Code", | |
"fontSize": 15, | |
"invisibles": { | |
"eol": " " | |
}, | |
"preferredLineLength": 120, | |
"scrollPastEnd": true, | |
"showIndentGuide": true, | |
"showInvisibles": true, | |
"softWrap": true, | |
"softWrapAtPreferredLineLength": true | |
}, | |
"emmet": { | |
"extensionsPath": "~/.atom/emmet" | |
}, | |
"exception-reporting": { | |
"userId": "169d9ee9-5a7f-47f0-88f0-40bf8276f381" | |
}, | |
"ide-css": { | |
"lessSupport": false | |
}, | |
"ide-typescript": {}, | |
"linter-eslint": { | |
"scopes": [ | |
"source.js", | |
"source.jsx", | |
"source.ts", | |
"source.tsx", | |
"source.js.jsx", | |
"source.flow", | |
"source.babel", | |
"source.js-semantic" | |
] | |
}, | |
"linter-htmllint": { | |
"enabledScopes": [ | |
"text.html.angular", | |
"text.html.basic", | |
"text.html.gohtml", | |
"text.html.jsp", | |
"text.html.mustache", | |
"text.html.ng" | |
] | |
}, | |
"linter-json-lint": { | |
"allowComments": true | |
}, | |
"linter-scss-lint": { | |
"disableWhenNoConfigFileInPath": true | |
}, | |
"linter-tslint": { | |
"fixOnSave": true, | |
"ignoreTypings": true, | |
"useGlobalTslint": true | |
}, | |
"linter-ui-default": { | |
"panelHeight": 270 | |
}, | |
"minimap": { | |
"displayCodeHighlights": false | |
}, | |
"prettier-atom": { | |
"formatOnSaveOptions": { | |
"enabled": true, | |
"isDisabledIfNoConfigFile": true, | |
"isDisabledIfNotInPackageJson": true | |
}, | |
"prettierEslintOptions": { | |
"prettierLast": true | |
}, | |
"useStylelint": true | |
}, | |
"save-workspace-Workspaces": { | |
"Plano": { | |
"panes": [ | |
{ | |
"tabs": [ | |
"/Users/plano/S/plano/projects/scheduler.frontend.ng2/src/client/time-stamp/time-stamp-api.service.spec.ts", | |
"/Users/plano/S/plano/projects/scheduler.frontend.ng2/src/client/time-stamp/time-stamp-api.service.ts", | |
"atom://config", | |
"atom://find-and-replace/project-results", | |
"/Users/plano/S/plano/projects/scheduler.frontend.ng2/src/client/time-stamp/stopwatch/stopwatch.component.html" | |
] | |
} | |
], | |
"projectPaths": [ | |
"/Users/plano/S/plano/projects/scheduler.frontend.ng2", | |
"/Users/plano/S/plano/projects/scheduler.frontend.ng2/node_modules/bootstrap/scss", | |
"/Users/plano/S/plano/projects/scheduler.access/api/implementation_meta" | |
] | |
} | |
}, | |
"spell-check": {}, | |
"sync-settings": { | |
"hiddenSettings": {}, | |
"quietUpdateCheck": true, | |
"removeObsoletePackages": true | |
}, | |
"todo": { | |
"a_pattern": "TODO\\:.+|FIXME\\:.+|CHANGED\\:.+|XXX\\:.+|IDEA\\:.+|HACK\\:.+|REVIEW\\:.+|NB\\:.+|BUG\\:.+|QUESTION\\:.+|COMBAK\\:.+|TEMP\\:.+|DEBUG\\:.+|OPTIMIZE\\:.+|WARNING\\:.+" | |
}, | |
"todo-show": { | |
"findTheseTodos": [ | |
"TODO", | |
"FIXME", | |
"CHANGED", | |
"XXX", | |
"IDEA", | |
"HACK", | |
"REVIEW", | |
"NB", | |
"BUG", | |
"QUESTION", | |
"COMBAK", | |
"TEMP" | |
], | |
"showInTable": [ | |
"Line", | |
"Type", | |
"Text", | |
"Path" | |
], | |
"sortBy": "File", | |
"statusBarIndicator": true | |
}, | |
"tree-view": { | |
"hideIgnoredNames": true, | |
"hideVcsIgnoredFiles": true | |
}, | |
"typewriter": { | |
"scopes": "text.md,source.gfm,text.html.mediawiki,text.tex.latex,source.ts", | |
"showGutter": true | |
}, | |
"welcome": { | |
"showOnStartup": false | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# | |
# '.source.coffee': | |
# 'Console log': | |
# 'prefix': 'log' | |
# 'body': 'console.log $1' | |
# | |
# Each scope (e.g. '.source.coffee' above) can only be declared once. | |
# | |
# This file uses CoffeeScript Object Notation (CSON). | |
# If you are unfamiliar with CSON, you can read more about it in the | |
# Atom Flight Manual: | |
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson | |
'.source.sass, .source.scss': | |
'scss-lint disable': | |
'prefix': 'scss-disable' | |
'body': """// scss-lint:disable ${1:Comment}""" | |
'@media': | |
'prefix': 'media' | |
'body': """@media (max-width: 375px) { | |
$1 | |
}""" | |
'// scss-lint:disable ImportantRule': | |
'prefix': 'important' | |
'body': """// scss-lint:disable ImportantRule""" | |
'.text.html': | |
'<ng-container i18n>': | |
'prefix': 'i18n' | |
'body': '<ng-container i18n>$1</ng-container>' | |
'popover': | |
'prefix': 'popover' | |
'body': """ | |
[popover]="'$1'" | |
triggers="${2:mouseenter:mouseleave}" | |
container="body" | |
placement="top" | |
""" | |
'TODO': | |
'prefix': 'todo' | |
'body': """<!-- TODO: $1 -->""" | |
'p-alert': | |
'prefix': 'p-alert' | |
'body': """ | |
<p-alert${1: | |
alertType="danger" | |
[dismissable]="false" | |
(onClick)="doSomething()" | |
i18n | |
}>${2:Lorem Ipsum}</p-alert> | |
""" | |
'[style]': | |
'prefix': 'style' | |
'body': """[style.${1:opacity}]=\"$2\"""" | |
'p-dropdown': | |
'prefix': 'p-dropdown' | |
'body': """ | |
<p-dropdown | |
icon="${1:plus}" | |
label="${2}" i18n-label | |
[(ngModel)]="${10}" | |
[disabled]="${20:!api.isLoaded()}" | |
[size]="${30:config.IS_MOBILE ? 'lg' : 'sm'}" | |
${40:[isMultiSelect]="true"} | |
> | |
p-dropdown-item${50} | |
</p-dropdown> | |
""" | |
'p-dropdown-item': | |
'prefix': 'p-dropdown-item' | |
'body': """ | |
<p-dropdown-item | |
label="${10:Kursdatum}" i18n-label | |
[value]="${20:fooEnum.BAR}" | |
[active]="${30:false}" | |
></p-dropdown-item> | |
""" | |
'p-radios': | |
'prefix': 'p-radios' | |
'body': """ | |
<p-radios | |
${1:[pEditable]="${2:true}" | |
[api]="api" | |
(onDismiss)="${4:initFormGroup()}" | |
[active]="${5:!formItem.isNewItem()}"} | |
${6:[(ngModel)]="${7}"} | |
${8:[formControl]="${9}"} | |
> | |
<p-radios-radio | |
${10:label="Ja" i18n-label} | |
${11:[value]="true"} | |
></p-radios-radio> | |
</p-radios> | |
""" | |
'p-modal-content': | |
'prefix': 'p-modal-content' | |
'body': """<p-modal-content | |
modalTitle="Sicher?" i18n-modalTitle | |
theme="danger" | |
closeBtnLabel="Ja, löschen" i18n-closeBtnLabel | |
(onDismiss)="d('Cross click')" | |
(onClose)="c('Started');" | |
> | |
<p-modal-content-body> | |
<p class="m-0" i18n>Bist du sicher?</p> | |
</p-modal-content-body> | |
</p-modal-content>""" | |
'p-form-section': | |
'prefix': 'p-form-section' | |
'body': """<p-form-section${1: label=\"$2\" i18n-label}> | |
$3 | |
</p-form-section>""" | |
'p-spinner': | |
'prefix': 'p-spinner' | |
'body': """<p-spinner class="p-3"></p-spinner>""" | |
'log': | |
'prefix': 'log' | |
'body': """ | |
<p-todo>{{${1:${2:foo} ? 'true' : 'false'}}}</p-todo> | |
""" | |
'p-todo': | |
'prefix': 'p-todo' | |
'body': """ | |
<p-todo>$1</p-todo> | |
""" | |
'validation-hint': | |
'prefix': 'validation-hint' | |
'body': """ | |
<p-validation-hint | |
${1:[control]="formGroup.controls['${2:firstName}']"} | |
text="${4:Der angegebene Start muss vor dem angegebenen Ende liegen}" i18n-text | |
validationName="${6:...}" | |
[checkTouched]="${8:false}" | |
${9:[isInvalid]="${10:true}"} | |
></p-validation-hint> | |
""" | |
'(click)="..."': | |
'prefix': 'click' | |
'body': '(click)="${1:...}"' | |
'p-editable-box': | |
'prefix': 'p-editable-box' | |
'body': """ | |
<p-editable-box | |
${1:[pEditable]="${2:true}" | |
[api]="api" | |
[valid]="${3:!formGroup.invalid}" | |
(onDismiss)="${4:initFormGroup()}" | |
[active]="${5:!formItem.isNewItem()}"} | |
(onRemoveItemClick)="${6:initFormGroup()}" | |
[disabled]="${7:foo}" | |
> | |
<p-editable-box-header${9: label="${10:Label}" i18n-label} i18n>${11:Label}</p-editable-box-header> | |
<p-editable-box-showroom> | |
${12:Showroom} | |
</p-editable-box-showroom> | |
<p-editable-box-form> | |
${13:Form} | |
</p-editable-box-form> | |
</p-editable-box> | |
""" | |
'p-editable-modal-box': | |
'prefix': 'p-editable-modal-box' | |
'body': """ | |
<p-editable-modal-box | |
${1:[pEditable]="${2:true}" | |
[api]="api" | |
[valid]="${3:!formGroup.invalid}" | |
(onDismiss)="${4:initFormGroup()}" | |
[active]="${5:!formItem.isNewItem()}"} | |
${6:(onRemoveItemClick)="initFormGroup()"} | |
${7:[saveButtonPopover]="popover"} | |
[disabled]="${70:foo}" | |
${90:label="${100:Label}" i18n-label} | |
> | |
<p-editable-modal-box-header></p-editable-modal-box-header> | |
<p-editable-modal-box-showroom> | |
${12:Showroom} | |
</p-editable-modal-box-showroom> | |
<p-editable-modal-box-form> | |
${13:Form} | |
</p-editable-modal-box-form> | |
</p-editable-modal-box> | |
""" | |
'p-list': | |
'prefix': 'p-list' | |
'body': """ | |
<p-list> | |
<p-list-item ${1:size="frameless"}> | |
<div class="d-flex align-items-center flex-grow-1"> | |
$2 | |
</div> | |
</p-list-item> | |
</p-list> | |
""" | |
'p-list-item': | |
'prefix': 'p-list-item' | |
'body': """ | |
<p-list-item ${1:size="frameless"}> | |
<div class="d-flex align-items-center flex-grow-1"> | |
$2 | |
</div> | |
</p-list-item> | |
""" | |
'placeholder': | |
'prefix': 'placeholder' | |
'body': 'placeholder="${1:...}"' | |
'fa-icon': | |
'prefix': 'fa-icon' | |
'body': """ | |
<fa-icon | |
[isLoading]="isLoading" | |
[fixedWidth]="true" | |
icon="${1:pen}" | |
></fa-icon> | |
""" | |
'[ngif]="..."': | |
'prefix': 'ngif[]' | |
'body': '[ngIf]="${1:expression}"' | |
'[ngIfElse]="..."': | |
'prefix': 'ngIfElse[]' | |
'body': '[ngIfElse]="${1:expression}"' | |
'[ngForOf]="..."': | |
'prefix': 'ngFor[]' | |
'body': """ | |
ngFor let-${1:item} | |
[ngForOf]="${2:items}.iterable()" | |
""" | |
'*ngif="..."': | |
'prefix': 'ngif*' | |
'body': '*ngIf="${1:expression}"' | |
'*ngif="..." ': | |
'prefix': 'if' | |
'body': '*ngIf="${1:expression}"' | |
'<ng-template [ngif]="...">': | |
'prefix': 'ifTemplate' | |
'body': """ | |
<ng-template [ngIf]="${1:expression}"> | |
${2} | |
</ng-template> | |
""" | |
'<ng-template [ngif]="..." [ngIfElse]="...">': | |
'prefix': 'ifElse' | |
'body': """ | |
<ng-template [ngIf]="${2:expression}" [ngIfElse]="${3:templateId}"> | |
${4} | |
</ng-template> | |
<ng-template #${3:templateId}> | |
${5} | |
</ng-template> | |
""" | |
'<ng-template>': | |
'prefix': 'ng-template' | |
'body': """ | |
<ng-template $1> | |
$2 | |
</ng-template> | |
""" | |
'<ng-container *ngTemplateOutlet="idOfOutlet" [ngTemplateOutletContext]="...': | |
'prefix': 'ng-outlet extended' | |
'body': """<ng-template | |
[ngTemplateOutlet]="${1:nameOfTemplate}" | |
${2:[ngTemplateOutletContext]="${3:object mit '$implicit'}"} | |
></ng-template>""" | |
'<ng-container *ngTemplateOutlet="idOfOutlet">...': | |
'prefix': 'ng-outlet short' | |
'body': """<ng-template [ngTemplateOutlet]="${1:nameOfTemplate}"></ng-template>""" | |
'button': | |
'prefix': 'button' | |
'body': """ | |
<button class="btn btn-${1:secondary}" | |
${2:${3:foo}="${4:foo}"} | |
i18n | |
>${5:Hallo Welt}</button>""" | |
'p-checkbox': | |
'prefix': 'p-checkbox' | |
'body': """ | |
<p-checkbox | |
${1:[pEditable]="${2:true}" | |
[api]="api" | |
[valid]="${3:!formGroup.invalid}" | |
(onDismiss)="${4:initFormGroup()}" | |
[active]="${5:!formItem.isNewItem()}"} | |
[(ngModel)]="${6:foo}" | |
[(formControl)]="formGroup.controls['${6:foo}']" | |
[disabled]="${8:formGroup.invalid}" | |
valueText="${5:Hallo Welt}" i18n-valueText | |
></p-checkbox> | |
""" | |
'p-radio': | |
'prefix': 'p-radio' | |
'body': """ | |
<p-radio | |
${1:[pEditable]="${2:true}" | |
[api]="api" | |
[valid]="${3:!formGroup.invalid}" | |
(onDismiss)="${4:initFormGroup()}" | |
[active]="${5:!formItem.isNewItem()}"} | |
(checkedChange)="${6:foo}=$event" | |
[checked]="${6:foo}===true" | |
[card]="${7:true}" | |
[disabled]="${8:formGroup.invalid}" | |
i18n | |
>${5:Hallo Welt}</p-radio> | |
""" | |
'p-textarea': | |
'prefix': 'p-textarea' | |
'body': """ | |
<p-textarea | |
${1:[pEditable]="${2:true}" | |
[api]="api" | |
(onDismiss)="${4:initFormGroup()}" | |
[active]="${5:!formItem.isNewItem()}"} | |
${6:[(ngModel)]="${7}"} | |
${8:[(formControl)]="${9}"} | |
></p-textarea> | |
""" | |
'p-input': | |
'prefix': 'p-input' | |
'body': """ | |
<p-input | |
${1:[pEditable]="${2:true}" | |
[api]="api" | |
(onDismiss)="${4:initFormGroup()}" | |
[active]="${5:!formItem.isNewItem()}"} | |
${6:[(ngModel)]="${7}"} | |
${8:[(formControl)]="${9}"} | |
></p-input> | |
""" | |
'p-button': | |
'prefix': 'p-button' | |
'body': """ | |
<p-button | |
${1:[pEditable]="${2:true}" | |
[api]="api" | |
(onDismiss)="${4:initFormGroup()}" | |
[active]="${5:!formItem.isNewItem()}"} | |
${6:(triggerClick)="${7}"} | |
>${8:...}</p-button> | |
""" | |
'label': | |
'prefix': 'label' | |
'body': "<label>$1</label>" | |
'p-form-group': | |
'prefix': 'p-form-group' | |
'body': """ | |
<p-form-group | |
label="$1" i18n-label | |
[control]="$2" | |
>$3</p-form-group> | |
""" | |
'p-tabs': | |
'prefix': 'p-tabs' | |
'body': """ | |
<p-tabs> | |
<p-tab | |
label="$10" i18n-label | |
${15:[hasDanger]=""} | |
${16:[active]=""} | |
> | |
$20 | |
</p-tab> | |
</p-tabs> | |
""" | |
'p-tab': | |
'prefix': 'p-tab' | |
'body': """ | |
<p-tab | |
label="$10" i18n-label | |
${15:[hasDanger]=""} | |
${16:[active]=""} | |
> | |
$20 | |
</p-tab> | |
""" | |
'.source.js': | |
'log': | |
'prefix': 'log' | |
'body': 'console.warn($1);' | |
'.source.tsx, .source.ts': | |
'if () {}': | |
'prefix': 'if' | |
'body': 'if ($1) {$2}' | |
'constructor() {}': | |
'prefix': 'constructor' | |
'body': 'constructor($1) {$2}' | |
'foo.component.stories.ts content': | |
'prefix': 'stories', | |
'body': """ | |
import { storiesOf, moduleMetadata } from '@storybook/angular'; | |
import { StorybookModule } from '@plano/storybook.module'; | |
const myStory = storiesOf('${10:Client}/${25:Shared}/${30:p-led}', module); | |
myStory | |
.addDecorator( | |
moduleMetadata({ | |
imports: [ | |
StorybookModule, | |
${25:Client}Module, | |
], | |
}), | |
) | |
.add('default', () => ({ | |
template: ` | |
<${30:p-led}></${30:p-led}> | |
`, | |
})); | |
""" | |
'dictinary entry': | |
'prefix': 'dict', | |
'body': """'$1': '$1', // TODO: review translation""" | |
'// TODO:': | |
'prefix': 'TODO' | |
'body': """// TODO: $1""" | |
'// FIXME:': | |
'prefix': 'fixme' | |
'body': """// FIXME: $1""" | |
'// CHANGED:': | |
'prefix': 'changed' | |
'body': """// CHANGED: $1""" | |
'// XXX:': | |
'prefix': 'xxx' | |
'body': """// XXX: $1""" | |
'// IDEA:': | |
'prefix': 'idea' | |
'body': """// IDEA: $1""" | |
'// HACK:': | |
'prefix': 'hack' | |
'body': """// HACK: $1""" | |
'// NOTE:': | |
'prefix': 'note' | |
'body': """// NOTE: $1""" | |
'// REVIEW:': | |
'prefix': 'review' | |
'body': """// REVIEW: $1""" | |
'// NB:': | |
'prefix': 'nb' | |
'body': """// NB: $1""" | |
'// BUG:': | |
'prefix': 'bug' | |
'body': """// BUG: $1""" | |
'// QUESTION:': | |
'prefix': 'question' | |
'body': """// QUESTION: $1""" | |
'// COMBAK:': | |
'prefix': 'combak' | |
'body': """// COMBAK: $1""" | |
'// TEMP:': | |
'prefix': 'temp' | |
'body': """// TEMP: $1""" | |
'// DEBUG:': | |
'prefix': 'debug' | |
'body': """// DEBUG: $1""" | |
'// OPTIMIZE:': | |
'prefix': 'optimize' | |
'body': """// OPTIMIZE: $1""" | |
'// WARNING:': | |
'prefix': 'warning' | |
'body': """// WARNING: $1""" | |
'// TODO: Obsolete?': | |
'prefix': 'obsolete' | |
'body': """// TODO: Obsolete?""" | |
'PFooBar.component.spec.ts content': | |
'prefix': 'test' | |
'body': """ | |
import { TestingUtils } from '@plano/shared/testing/testing-utils'; | |
import { ShiftExchangeDetailFormComponent } from './shift-exchange-detail-form.component'; | |
describe('${1:PFooBar}Component', () => { | |
let component : ${1:PFooBar}Component; | |
const testingUtils = new TestingUtils(); | |
testingUtils.init({ imports : [${1:PFooBar}Module] }); | |
beforeAll(() => { | |
component = testingUtils.createComponent(${1:PFooBar}Component); | |
}); | |
it('should create', () => { | |
expect(component).toBeTruthy(); | |
}); | |
}); | |
""" | |
'this.now = new Date().valueOf();': | |
'prefix': 'now' | |
'body': """this.now = new Date().valueOf();""" | |
'public CONFIG : typeof Config = Config': | |
'prefix': 'config' | |
'body': """public CONFIG : typeof Config = Config;""" | |
'ngOnDestroy': | |
'prefix': 'ngOnDestroy' | |
'body': """ | |
/** ngOnDestroy */ | |
public ngOnDestroy() : void { | |
$1 | |
} | |
""" | |
'ngOnInit': | |
'prefix': 'ngOnInit' | |
'body': """ | |
/** ngOnInit */ | |
public ngOnInit() : void { | |
$1 | |
} | |
""" | |
'ngAfterContentInit': | |
'prefix': 'ngAfterContentInit' | |
'body': """ | |
/** ngAfterContentInit */ | |
public ngAfterContentInit() : void { | |
$1 | |
} | |
""" | |
'ngAfterContentChecked': | |
'prefix': 'ngAfterContentChecked' | |
'body': """ | |
/** ngAfterContentChecked */ | |
public ngAfterContentChecked() : void { | |
$1 | |
} | |
""" | |
'initFormGroup': | |
'prefix': 'initFormGroup' | |
'body': """ | |
/** | |
* Initialice the formGroup for this component | |
*/ | |
public initFormGroup() : void { | |
if (this.formGroup) { this.formGroup = undefined; } | |
const newFormGroup = this.fb.group({}); | |
this.pForms.addControl(newFormGroup, '$1', | |
{ | |
value: $2, | |
disabled: false | |
} | |
); | |
this.formGroup = newFormGroup; | |
} | |
""" | |
'bind outer class to component tag': | |
'prefix': 'class-binding' | |
'body': """ | |
@HostBinding('class') private classList : string = ''; | |
@Input() private class : string; | |
public ngOnInit() : void { // tslint:disable-line:completed-docs | |
if (this.class) this.classList += ` ${this.class}`; | |
} | |
""" | |
'unload()': | |
'prefix': 'unload' | |
'body': """ | |
public unload() : void { | |
this.${1:someProperty} = undefined; | |
} | |
""" | |
'initValues()': | |
'prefix': 'initValues' | |
'body': """ | |
/** | |
* Set some default values for properties that are not defined yet | |
*/ | |
public initValues() : void { | |
if (this.${1:someProperty} === undefined) this.${1:someProperty} = ${2:true}; | |
} | |
""" | |
'readCookies()': | |
'prefix': 'readCookies' | |
'body': """ | |
public readCookies() : void { | |
if (this.pCookieService.has('${1:someProperty}')) { | |
this.${1:someProperty} = this.pCookieService.get('${1:someProperty}')${2: === 'true'}; | |
} | |
} | |
""" | |
'service': | |
'prefix': 'service' | |
'body': """ | |
import { Injectable } from '@angular/core'; | |
import { PServiceInterface } from '@plano/shared/core/p-service.interface'; | |
@Injectable() | |
export class P${1:Foo}Service implements PServiceInterface { | |
private ${2:foo} : boolean; | |
constructor() { | |
this.initValues(); | |
} | |
/** | |
* Set some default values for properties that are not defined yet | |
*/ | |
public initValues() : void { | |
if (this.${2:foo} === undefined) this.${2:foo} = true; | |
} | |
public get${1:Foo}(input : any) : any { | |
return this.${2:foo}; | |
} | |
public unload() : void { | |
this.${2:foo} = false; | |
} | |
} | |
""" | |
'public CONFIG ...;': | |
'prefix': 'config' | |
'body': """${1:public }CONFIG : typeof Config = Config;""" | |
'@Input()': | |
'prefix': 'input' | |
'body': """@Input() ${1:public }${2:isLoading} : ${3:boolean}${4: = false};""" | |
'@Output()': | |
'prefix': 'output' | |
'body': """@Output() ${1:public }${2:showFoo} : EventEmitter<${3:boolean}>${4: = new EventEmitter<${3:boolean}>()};""" | |
'if (...) return;': | |
'prefix': 'if-return' | |
'body': """if (${1:!this.api.isLoaded()}) return${2: false};""" | |
'todo for milad: remove line above': | |
'prefix': 'todo-milad' | |
'body': """// TODO: Milad: Remove line above and fix lint errors""" | |
'tslint disable': | |
'prefix': 'tslint-disable' | |
'body': """/* tslint:disable:${1:no-any}${2: typedef} */""" | |
'tslint disable-line': | |
'prefix': 'tslint-disable-line' | |
'body': """// tslint:disable-line:${1:no-any}${2: typedef}""" | |
'tslint disable-next-line': | |
'prefix': 'tslint-disable-next-line' | |
'body': """// tslint:disable-next-line:${1:no-any}${2: typedef}""" | |
'if(!foo) return;': | |
'prefix': 'early-exit' | |
'body': """if(!${1:foo}) return;""" | |
'HostBinding': | |
'prefix': 'HostBinding' | |
'body': """ | |
@HostBinding('$1') | |
""" | |
'@HostBinding() get foo() {}': | |
'prefix': 'HostBinding()' | |
'body': """ | |
@HostBinding('$1') private get ${3:hasFoo}() : boolean { | |
return true; | |
} | |
""" | |
'validators : ValidatorsService': | |
'prefix': 'validators' | |
'body': 'private validators : ValidatorsService,' | |
'changeDetectorRef : ChangeDetectorRef': | |
'prefix': 'changeDetectorRef' | |
'body': 'private changeDetectorRef : ChangeDetectorRef,' | |
'api : SchedulingApiService': | |
'prefix': 'api' | |
'body': 'private api : SchedulingApiService,' | |
'schedulingService : SchedulingService': | |
'prefix': 'schedulingService' | |
'body': 'private schedulingService : SchedulingService,' | |
'meService : MeService': | |
'prefix': 'meService' | |
'body': 'private meService : MeService,' | |
'modalService : ModalService': | |
'prefix': 'modalService' | |
'body': 'private modalService : ModalService,' | |
'console : LogService': | |
'prefix': 'console' | |
'body': 'private console : LogService,' | |
'pForms : PFormsService': | |
'prefix': 'pForms' | |
'body': 'private pForms : PFormsService,' | |
'fb : FormBuilder': | |
'prefix': 'fb' | |
'body': 'private fb : FormBuilder,' | |
'console : LocalizePipe': | |
'prefix': 'localize' | |
'body': 'private localize : LocalizePipe,' | |
# '.pb-5': | |
# 'prefix': 'pb-5' | |
# 'body': """@HostBinding('class.pb-5') private _classPB5 = true;""" | |
# | |
# '.align-items-stretch': | |
# 'prefix': 'align-items-stretch' | |
# 'body': """@HostBinding('class.align-items-stretch') private _classAlignItemsStretch = true;""" | |
# '.align-items-center': | |
# 'prefix': 'align-items-center' | |
# 'body': """// tslint:disable-next-line:typedef | |
# @HostBinding('class.align-items-center') private _classAlignItemsCenter = true;""" | |
# '.justify-content-between': | |
# 'prefix': 'justify-content-between' | |
# 'body': """// tslint:disable-next-line:typedef | |
# @HostBinding('class.justify-content-between') private _classJustifyContentBetween = true;""" | |
# '.justify-content-center': | |
# 'prefix': 'justify-content-center' | |
# 'body': """// tslint:disable-next-line:typedef | |
# @HostBinding('class.justify-content-center') private _classJustifyContentCenter = true;""" | |
# '.justify-content-stretch': | |
# 'prefix': 'justify-content-stretch' | |
# 'body': """// tslint:disable-next-line:typedef | |
# @HostBinding('class.justify-content-stretch') private _classJustifyContentStretch = true;""" | |
# '.input-group-prepend': | |
# 'prefix': 'input-group-prepend' | |
# 'body': """// tslint:disable-next-line:typedef | |
# @HostBinding('class.input-group-prepend') private _classInputGroupPrepend = true;""" | |
# '.input-group-append': | |
# 'prefix': 'input-group-append' | |
# 'body': """// tslint:disable-next-line:typedef | |
# @HostBinding('class.input-group-append') private _classInputGroupAppend = true;""" | |
'.flex-grow-1': | |
'prefix': 'flex-grow-1' | |
'body': """@HostBinding('class.flex-grow-1') private _alwaysTrue = true;""" | |
'.flex-row': | |
'prefix': 'flex-row' | |
'body': """@HostBinding('class.flex-row') private _alwaysTrue = true;""" | |
'.title': | |
'prefix': 'title' | |
'body': """@HostBinding('class.title') private _alwaysTrue = true;""" | |
'.o-hidden': | |
'prefix': 'o-hidden' | |
'body': """@HostBinding('class.o-hidden') private _alwaysTrue = true;""" | |
'.d-flex': | |
'prefix': 'd-flex' | |
'body': """@HostBinding('class.d-flex') private _alwaysTrue = true;""" | |
'.d-none': | |
'prefix': 'd-none' | |
'body': """@HostBinding('class.d-none') private _alwaysTrue = true;""" | |
'.d-block': | |
'prefix': 'd-block' | |
'body': """@HostBinding('class.d-block') private _alwaysTrue = true;""" | |
'.d-lg-block': | |
'prefix': 'd-lg-block' | |
'body': """@HostBinding('class.d-lg-block') private _alwaysTrue = true;""" | |
'.d-inline': | |
'prefix': 'd-inline' | |
'body': """@HostBinding('class.d-inline') private _alwaysTrue = true;""" | |
'.card-body': | |
'prefix': 'card-body' | |
'body': """@HostBinding('class.card-body') private _alwaysTrue = true;""" | |
'.position-relative': | |
'prefix': 'position-relative' | |
'body': """@HostBinding('class.position-relative') private _alwaysTrue = true;""" | |
'.flex-column': | |
'prefix': 'flex-column' | |
'body': """@HostBinding('class.flex-column') private _alwaysTrue = true;""" | |
'.h-100': | |
'prefix': 'h-100' | |
'body': """@HostBinding('class.h-100') private _alwaysTrue = true;""" | |
'.w-100': | |
'prefix': 'w-100' | |
'body': """@HostBinding('class.w-100') private _alwaysTrue = true;""" | |
'.bg-dark': | |
'prefix': 'bg-dark' | |
'body': """@HostBinding('class.bg-dark') private _alwaysTrue = true;""" | |
'.border-left': | |
'prefix': 'border-left' | |
'body': """@HostBinding('class.border-left') private _alwaysTrue = true;""" | |
'.border-right': | |
'prefix': 'border-right' | |
'body': """@HostBinding('class.border-right') private _alwaysTrue = true;""" | |
'.border-bottom': | |
'prefix': 'border-bottom' | |
'body': """@HostBinding('class.border-bottom') private _alwaysTrue = true;""" | |
'.p-0': | |
'prefix': 'p-0' | |
'body': """@HostBinding('class.p-0') private _alwaysTrue = true;""" | |
'.p-1': | |
'prefix': 'p-1' | |
'body': """@HostBinding('class.p-1') private _alwaysTrue = true;""" | |
'.p-2': | |
'prefix': 'p-2' | |
'body': """@HostBinding('class.p-2') private _alwaysTrue = true;""" | |
'.p-3': | |
'prefix': 'p-3' | |
'body': """@HostBinding('class.p-3') private _alwaysTrue = true;""" | |
'.p-4': | |
'prefix': 'p-4' | |
'body': """@HostBinding('class.p-4') private _alwaysTrue = true;""" | |
'.p-5': | |
'prefix': 'p-5' | |
'body': """@HostBinding('class.p-5') private _alwaysTrue = true;""" | |
'.pt-1': | |
'prefix': 'pt-1' | |
'body': """@HostBinding('class.pt-1') private _alwaysTrue = true;""" | |
'.pt-2': | |
'prefix': 'pt-2' | |
'body': """@HostBinding('class.pt-2') private _alwaysTrue = true;""" | |
'.pt-3': | |
'prefix': 'pt-3' | |
'body': """@HostBinding('class.pt-3') private _alwaysTrue = true;""" | |
'.pt-4': | |
'prefix': 'pt-4' | |
'body': """@HostBinding('class.pt-4') private _alwaysTrue = true;""" | |
'.pt-5': | |
'prefix': 'pt-5' | |
'body': """@HostBinding('class.pt-5') private _alwaysTrue = true;""" | |
'.pb-1': | |
'prefix': 'pb-1' | |
'body': """@HostBinding('class.pb-1') private _alwaysTrue = true;""" | |
'.pb-2': | |
'prefix': 'pb-2' | |
'body': """@HostBinding('class.pb-2') private _alwaysTrue = true;""" | |
'.pb-3': | |
'prefix': 'pb-3' | |
'body': """@HostBinding('class.pb-3') private _alwaysTrue = true;""" | |
'.pb-4': | |
'prefix': 'pb-4' | |
'body': """@HostBinding('class.pb-4') private _alwaysTrue = true;""" | |
'.pb-5': | |
'prefix': 'pb-5' | |
'body': """@HostBinding('class.pb-5') private _alwaysTrue = true;""" | |
'.align-items-stretch': | |
'prefix': 'align-items-stretch' | |
'body': """@HostBinding('class.align-items-stretch') private _alwaysTrue = true;""" | |
'.align-items-center': | |
'prefix': 'align-items-center' | |
'body': """// tslint:disable-next-line:typedef | |
@HostBinding('class.align-items-center') private _alwaysTrue = true;""" | |
'.justify-content-between': | |
'prefix': 'justify-content-between' | |
'body': """@HostBinding('class.justify-content-between') private _alwaysTrue = true;""" | |
'.justify-content-center': | |
'prefix': 'justify-content-center' | |
'body': """// tslint:disable-next-line:typedef | |
@HostBinding('class.justify-content-center') private _alwaysTrue = true;""" | |
'.justify-content-stretch': | |
'prefix': 'justify-content-stretch' | |
'body': """// tslint:disable-next-line:typedef | |
@HostBinding('class.justify-content-stretch') private _alwaysTrue = true;""" | |
'.input-group-prepend': | |
'prefix': 'input-group-prepend' | |
'body': """// tslint:disable-next-line:typedef | |
@HostBinding('class.input-group-prepend') private _alwaysTrue = true;""" | |
'.input-group-append': | |
'prefix': 'input-group-append' | |
'body': """// tslint:disable-next-line:typedef | |
@HostBinding('class.input-group-append') private _alwaysTrue = true;""" | |
'onFocus': | |
'prefix': 'onFocus' | |
'body': """ | |
@HostListener('focus', ['$event']) private onFocus(event : Event) : void { | |
$1 | |
} | |
""" | |
'onClick': | |
'prefix': 'onClick' | |
'body': """ | |
@HostListener('click', ['$event']) private onClick(event : Event) : void { | |
$1 | |
} | |
""" | |
'onEnter': | |
'prefix': 'onEnter' | |
'body': """ | |
@HostListener('keyup.enter', ['$event']) private onEnter(event : Event) : void { | |
$1 | |
} | |
""" | |
'forof': | |
'prefix': 'forof' | |
'body': """ | |
for (${30:const} ${20:item} of ${2:${1:this.api.data.shifts}.iterable()}) { | |
${40:doSomething(item)} | |
} | |
""" | |
'///': | |
'prefix': '///' | |
'body': """ | |
/**${1: <- use this for dockblockr\n// <- use this for a little note } | |
""" | |
'jsdoc': | |
'prefix': '/**' | |
'body': """/**\n * $1\n */""" | |
'log': | |
'prefix': 'log' | |
'body': 'console.log(\'$1\');' | |
'console.warn("TODO: ...")': | |
'prefix': 'todo' | |
'body': 'if (Config.DEBUG) console.warn(\'TODO: ${1:Not implemented yet}\');' | |
'console.warn("IMPROVE: ...")': | |
'prefix': 'improve' | |
'body': 'if (Config.DEBUG) console.debug(\'IMPROVE: ${1:Add [${2:hasFoo}]="${3:boolean}" to make this a dump component.}\');' | |
'console.warn("OPTIMIZE: ..")': | |
'prefix': 'optimize' | |
'body': 'if (Config.DEBUG) console.debug(\'IMPROVE: $1\');' | |
'warn': | |
'prefix': 'warn' | |
'body': 'console.warn(\'$1\');' | |
'debug': | |
'prefix': 'debug' | |
'body': 'if (Config.DEBUG) console.debug(\'$1\');' | |
'beforeEach(() => {})': | |
'prefix': 'beforeEach' | |
'body': """ | |
beforeEach(() => { | |
$3 | |
}); | |
""" | |
'describe(\'name\', () => {})': | |
'prefix': 'describe' | |
'body': """ | |
describe('${1:doSomething()}', () => { | |
it('${2:should do ...}', () => { | |
$3 | |
}); | |
}); | |
""" | |
'it(\'should ...\', () => {})': | |
'prefix': 'it' | |
'body': """ | |
it('${1:should do ...}', () => { | |
$2 | |
}); | |
""" | |
'switch': | |
'prefix': 'switch' | |
'body': """ | |
switch (${10:this.foo}) { | |
case ${20} : | |
${30:doSomething();} | |
default : | |
const RESULT : never = ${10:this.foo}; | |
if (RESULT === undefined) return undefined; | |
throw new Error(RESULT); | |
} | |
""" | |
'switch case': | |
'prefix': 'case' | |
'body': """ | |
case ${2} : | |
${3:doSomething();} | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Your Stylesheet | |
* | |
* This stylesheet is loaded when Atom starts up and is reloaded automatically | |
* when it is changed and saved. | |
* | |
* Add your own CSS or Less to fully customize Atom. | |
* If you are unfamiliar with Less, you can read more about it here: | |
* http://lesscss.org | |
*/ | |
/* | |
* Examples | |
* (To see them, uncomment and save) | |
*/ | |
// style the background color of the tree view | |
.tree-view { | |
// background-color: whitesmoke; | |
} | |
// style the background and foreground colors on the atom-text-editor-element itself | |
atom-text-editor { | |
// color: white; | |
// background-color: hsl(180, 24%, 12%); | |
} | |
// style UI elements inside atom-text-editor | |
atom-text-editor .cursor { | |
// border-color: red; | |
} | |
atom-workspace { | |
text-rendering: optimizeLegibility; | |
} | |
atom-text-editor.editor .syntax--string.syntax--quoted, | |
atom-text-editor.editor .syntax--string.syntax--regexp { | |
//-webkit-font-feature-settings: "liga" off, "calt" off; | |
text-rendering: optimizeLegibility; | |
} | |
atom-text-editor { | |
text-rendering: optimizeLegibility; | |
} | |
atom-text-editor.editor .syntax--string.syntax--quoted, | |
atom-text-editor.editor .syntax--string.syntax--regexp { | |
-webkit-font-feature-settings: "liga" off, "calt" off; | |
} | |
// NOTE: Operator Mono specific styles [START] | |
atom-text-editor.editor { | |
.syntax--storage.syntax--type.syntax--function.syntax--arrow, | |
.syntax--keyword.syntax--operator:not(.accessor), | |
.syntax--punctuation.syntax--definition { | |
font-family: "Fira Code"; | |
} | |
.syntax--string.syntax--quoted, | |
.syntax--string.syntax--regexp { | |
-webkit-font-feature-settings: "liga" off, "calt" off; | |
} | |
} | |
atom-text-editor { | |
text-rendering: optimizeLegibility; | |
// -webkit-font-smoothing: antialiased; | |
font-family: "Fira Code"; | |
//font-family: "Operator Mono"; | |
// font-weight: 500; | |
// line-height: 1.7; | |
} | |
atom-text-editor.editor .syntax--comment { | |
font-family: "Fira Code"; | |
// font-family: "Operator Mono"; | |
// font-family: "fantasque sans mono"; | |
} | |
// NOTE: Operator Mono specific styles [END] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment