1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

refactor(nomad): sync frontend with EE [EE-3353] (#7758)

This commit is contained in:
Chaim Lev-Ari 2022-11-13 12:29:25 +02:00 committed by GitHub
parent 78dcba614d
commit 881e99df53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
68 changed files with 1799 additions and 17 deletions

View file

@ -1,7 +1,6 @@
import moment from 'moment';
import { NEW_LINE_BREAKER } from '@/constants';
import { concatLogsToString } from '@/docker/helpers/logHelper';
import { concatLogsToString, NEW_LINE_BREAKER } from '@/docker/helpers/logHelper';
angular.module('portainer.docker').controller('LogViewerController', [
'$scope',

View file

@ -1,5 +1,4 @@
import { NEW_LINE_BREAKER } from '@/constants';
import { NEW_LINE_BREAKER } from './constants';
import { FormattedLine } from './types';
type FormatFunc = (line: FormattedLine) => string;

View file

@ -0,0 +1,3 @@
import { BROWSER_OS_PLATFORM } from '@/react/constants';
export const NEW_LINE_BREAKER = BROWSER_OS_PLATFORM === 'win' ? '\r\n' : '\n';

View file

@ -1,2 +1,3 @@
export { formatLogs } from './formatLogs';
export { concatLogsToString } from './concatLogsToString';
export { NEW_LINE_BREAKER } from './constants';