All Projects → Teradata → Covalent Code Editor Nightly

Teradata / Covalent Code Editor Nightly

Nightly builds of https://github.com/teradata/covalent code-editor module

Labels

Projects that are alternatives of or similar to Covalent Code Editor Nightly

Snack Helper
🗃 A universal CSS helper library.
Stars: ✭ 50 (-12.28%)
Mutual labels:  scss
Twitter Blog Vue
vue+golang模仿twitter风格写一个自己的博客💪
Stars: ✭ 53 (-7.02%)
Mutual labels:  scss
Jekyll Assets
🎨 Asset pipelines for Jekyll.
Stars: ✭ 1,083 (+1800%)
Mutual labels:  scss
Minimal Mistakes
📐 Jekyll theme for building a personal site, blog, project documentation, or portfolio.
Stars: ✭ 8,967 (+15631.58%)
Mutual labels:  scss
Xp.css
A CSS framework for building faithful recreations of operating system GUIs.
Stars: ✭ 1,061 (+1761.4%)
Mutual labels:  scss
Root Bootstrap 4 Admin Template With Angularjs Angular 2 Support
Root is Boostrap 4 Admin Template with Angular 2 and AngularJS support
Stars: ✭ 54 (-5.26%)
Mutual labels:  scss
Svelte Typescript Parcel
Svelte + Typescript + Parcel
Stars: ✭ 48 (-15.79%)
Mutual labels:  scss
Rebirth
A Beautiful And Powerful Ghost Theme
Stars: ✭ 56 (-1.75%)
Mutual labels:  scss
Ibm Security
A Carbon-powered React component library built by IBM Security
Stars: ✭ 52 (-8.77%)
Mutual labels:  scss
React Frontend Dev Portfolio
Easy to adapt and deploy React portfolio inspired with solutions found at GitHub.
Stars: ✭ 55 (-3.51%)
Mutual labels:  scss
Generator Baukasten
Awesome!
Stars: ✭ 50 (-12.28%)
Mutual labels:  scss
Hyde
Port of https://github.com/poole/hyde to Zola
Stars: ✭ 51 (-10.53%)
Mutual labels:  scss
Generator Dhboilerplate
Boilerplate made by David Hellmann
Stars: ✭ 54 (-5.26%)
Mutual labels:  scss
Guide 3ds
A complete guide to 3DS custom firmware, from stock to boot9strap.
Stars: ✭ 1,055 (+1750.88%)
Mutual labels:  scss
Bootstrap Dark
The Definitive Guide to Dark Mode and Bootstrap 4 - A proof of concept
Stars: ✭ 54 (-5.26%)
Mutual labels:  scss
Atlas Ui Framework
The shortest path to a stunning User Interface for all Mendix applications.
Stars: ✭ 49 (-14.04%)
Mutual labels:  scss
Jekyll Uno Timeline
A Jekyll Theme, based on the Uno-Theme with some adjustments.
Stars: ✭ 51 (-10.53%)
Mutual labels:  scss
Zeva
a modern and minimalist ui framework for building responsive and modern frontends
Stars: ✭ 57 (+0%)
Mutual labels:  scss
Jekyll Yamt
YAMT is a minimal Jekyll theme focused on simplicity and ease-of-use.
Stars: ✭ 55 (-3.51%)
Mutual labels:  scss
Grav Theme Antimatter
Grav Antimatter Theme
Stars: ✭ 54 (-5.26%)
Mutual labels:  scss

TdCodeEditorComponent: td-code-editor

<td-code-editor> is component for code editing based on Covalent and Monaco Editor. The component can run in both Electron and Web Browsers.

API Summary

Inputs

  • value?: string
    • value of the code editor instance
  • language?: string
    • language used for syntax in the editor instance
  • registerLanguage?: function()
    • registers a custom Language within the editor
  • editorStyle?: string
    • Additional Styling applied to Editor Container
  • theme?: string
    • Theme used to style the Editor
  • editorOptions?: object
  • layout?: function()
    • Instructs the editor to remeasure its container

Properties

Events

  • editorInitialized?: function($event)
    • Emitted when Editor is finished initializing. Event passes a reference to the actual editor instance that can be used to call additional operations outside of the Angular component.
  • editorConfigurationChanged?: function($event)
    • Emitted when configuration of the Editor changes
  • editorLanguageChanged?: function($event)
    • Emitted when the language of the Editor changes

Installation

This component can be installed as npm package.

npm install @covalent/code-editor

Setup

Due to an known issue in Monaco Editor version 0.20.0 https://github.com/microsoft/monaco-editor/issues/1842 regarding errors arising when quickly disposing editor instances, utilize the 0.17.1 version of monaco-editor.

We utilize the ESM build of the Monaco Editor. To include this build, you must utilize custom webpack. See https://github.com/Microsoft/monaco-editor/blob/master/docs/integrate-esm.md for more information.

Install the webpack custom builder.

npm install --save-dev @angular-builders/custom-webpack

Install the Monaco Editor webpack extension plugin.

npm install --save-dev monaco-editor-webpack-plugin

Create a webpack config file utilizing the Monaco Editor webpack plugin. Languages and features can be included/excluded to control the resulting image size.

const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');

module.exports = {
  // target should only be specified when including component in Electron app
  target: 'electron-renderer',
  module: {
    rules: [
      {
        test: /\.css$/,
        use: ['style-loader'],
      },
      {
        test: /\.ttf$/,
        use: ['file-loader'],
      },
    ],
  },
  plugins: [
    new MonacoWebpackPlugin({
      languages: ['css','html','javascript','sql','typescript'],
      features: ['contextmenu','clipboard','find'],
    }),
  ],
};

Note: If you are including this component in an Electron application, define the electron-renderer target. See Electron example here: https://github.com/Teradata/covalent-electron/blob/develop/monaco-webpack.config.js

Reference the webpack file in your angular.json build config.

...
"build": {
  "builder": "@angular-builders/custom-webpack:browser",
  "options": {
    "customWebpackConfig": {
      "path": "./monaco-webpack.config.js",
        "mergeStrategies": {
        "module.rules": "prepend"
      }
    },
...

Import the CovalentCodeEditorModule in your NgModule:

import { CovalentCodeEditorModule } from '@covalent/code-editor';
@NgModule({
  imports: [
    CovalentCodeEditorModule,
    ...
  ],
  ...
})
export class MyModule {}

Example

<td-code-editor
        [style.height.px]="200"
        editorStyle="border:0;"
        flex
        theme="vs"
        language="sql"
        [editorOptions]="{readOnly:true, fontSize:20}"
        [(ngModel)]="model"
        (ngModelChange)="callBackFunc()">
</td-code-editor>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].