mirror of
https://github.com/portainer/portainer.git
synced 2025-08-01 20:05:23 +02:00
feat(stacks): add support for stack deploy (#1280)
This commit is contained in:
parent
80827935da
commit
587e2fa673
77 changed files with 3219 additions and 702 deletions
21
app/services/codeMirror.js
Normal file
21
app/services/codeMirror.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
angular.module('portainer.services')
|
||||
.factory('CodeMirrorService', function CodeMirrorService() {
|
||||
'use strict';
|
||||
|
||||
var codeMirrorOptions = {
|
||||
lineNumbers: true,
|
||||
mode: 'text/x-yaml',
|
||||
gutters: ['CodeMirror-lint-markers'],
|
||||
lint: true
|
||||
};
|
||||
|
||||
var service = {};
|
||||
|
||||
service.applyCodeMirrorOnElement = function(element) {
|
||||
var cm = CodeMirror.fromTextArea(element, codeMirrorOptions);
|
||||
cm.setSize('100%', 500);
|
||||
return cm;
|
||||
};
|
||||
|
||||
return service;
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue