Skip to content

Commit

Permalink
Make Alert and Compiler-Picker widgets (#4366)
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenRBS committed Nov 30, 2022
1 parent 8daa6eb commit 9247999
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion static/formatter-registry.ts
Expand Up @@ -24,7 +24,7 @@

import * as monaco from 'monaco-editor';

import {Alert} from './alert';
import {Alert} from './widgets/alert';
import {Settings} from './settings';
import {FormattingRequest} from './api/formatting.interfaces';
import {getFormattedCode} from './api/api';
Expand Down
2 changes: 1 addition & 1 deletion static/main.js
Expand Up @@ -43,7 +43,7 @@ var Hub = require('./hub').Hub;
var Sentry = require('@sentry/browser');
var Settings = require('./settings').Settings;
var local = require('./local');
var Alert = require('./alert').Alert;
var Alert = require('./widgets/alert').Alert;
var themer = require('./themes');
var motd = require('./motd');
var jsCookie = require('js-cookie');
Expand Down
4 changes: 2 additions & 2 deletions static/panes/compiler.ts
Expand Up @@ -31,13 +31,13 @@ import * as Components from '../components';
import LruCache from 'lru-cache';
import {options} from '../options';
import * as monaco from 'monaco-editor';
import {Alert} from '../alert';
import {Alert} from '../widgets/alert';
import bigInt from 'big-integer';
import {LibsWidget} from '../widgets/libs-widget';
import * as codeLensHandler from '../codelens-handler';
import * as monacoConfig from '../monaco-config';
import * as TimingWidget from '../widgets/timing-info-widget';
import {CompilerPicker} from '../compiler-picker';
import {CompilerPicker} from '../widgets/compiler-picker';
import {CompilerService} from '../compiler-service';
import {SiteSettings} from '../settings';
import * as LibUtils from '../lib-utils';
Expand Down
2 changes: 1 addition & 1 deletion static/panes/conformance-view.ts
Expand Up @@ -28,7 +28,7 @@ import $ from 'jquery';
import {ga} from '../analytics';
import * as Components from '../components';
import {CompilerLibs, LibsWidget} from '../widgets/libs-widget';
import {CompilerPicker} from '../compiler-picker';
import {CompilerPicker} from '../widgets/compiler-picker';
import * as utils from '../utils';
import * as LibUtils from '../lib-utils';
import {PaneRenaming} from '../widgets/pane-renaming';
Expand Down
2 changes: 1 addition & 1 deletion static/panes/editor.ts
Expand Up @@ -30,7 +30,7 @@ import * as Components from '../components';
import * as monaco from 'monaco-editor';
import {Buffer} from 'buffer';
import {options} from '../options';
import {Alert} from '../alert';
import {Alert} from '../widgets/alert';
import {ga} from '../analytics';
import * as monacoVim from 'monaco-vim';
import * as monacoConfig from '../monaco-config';
Expand Down
4 changes: 2 additions & 2 deletions static/panes/executor.js
Expand Up @@ -30,11 +30,11 @@ var ga = require('../analytics').ga;
var Toggles = require('../widgets/toggles').Toggles;
var FontScale = require('../widgets/fontscale').FontScale;
var options = require('../options').options;
var Alert = require('../alert').Alert;
var Alert = require('../widgets/alert').Alert;
var LibsWidget = require('../widgets/libs-widget').LibsWidget;
var AnsiToHtml = require('../ansi-to-html').Filter;
var TimingWidget = require('../widgets/timing-info-widget');
var CompilerPicker = require('../compiler-picker').CompilerPicker;
var CompilerPicker = require('../widgets/compiler-picker').CompilerPicker;
var Settings = require('../settings').Settings;
var utils = require('../utils');
var LibUtils = require('../lib-utils');
Expand Down
2 changes: 1 addition & 1 deletion static/panes/tree.ts
Expand Up @@ -30,7 +30,7 @@ import {Settings, SiteSettings} from '../settings';
import {PaneRenaming} from '../widgets/pane-renaming';
import {Hub} from '../hub';
import {EventHub} from '../event-hub';
import {Alert} from '../alert';
import {Alert} from '../widgets/alert';
import * as Components from '../components';
import {ga} from '../analytics';
import TomSelect from 'tom-select';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion static/alert.ts → static/widgets/alert.ts
Expand Up @@ -25,7 +25,7 @@
import $ from 'jquery';

import {AlertAskOptions, AlertEnterTextOptions, AlertNotifyOptions} from './alert.interfaces';
import {toggleEventListener} from './utils';
import {toggleEventListener} from '../utils';

export class Alert {
yesHandler: ((answer?: string | string[] | number) => void) | null = null;
Expand Down
10 changes: 5 additions & 5 deletions static/compiler-picker.ts → static/widgets/compiler-picker.ts
Expand Up @@ -25,11 +25,11 @@
import $ from 'jquery';
import TomSelect from 'tom-select';

import {ga} from './analytics';
import * as local from './local';
import {EventHub} from './event-hub';
import {Hub} from './hub';
import {CompilerService} from './compiler-service';
import {ga} from '../analytics';
import * as local from '../local';
import {EventHub} from '../event-hub';
import {Hub} from '../hub';
import {CompilerService} from '../compiler-service';

type Favourites = {
[compilerId: string]: boolean;
Expand Down
2 changes: 1 addition & 1 deletion static/widgets/load-save.ts
Expand Up @@ -25,7 +25,7 @@
import $ from 'jquery';
import _ from 'underscore';
import {saveAs} from 'file-saver';
import {Alert} from '../alert';
import {Alert} from './alert';
import {ga} from '../analytics';
import * as local from '../local';
import {Language} from '../../types/languages.interfaces';
Expand Down
2 changes: 1 addition & 1 deletion static/widgets/pane-renaming.ts
Expand Up @@ -25,7 +25,7 @@
import $ from 'jquery';
import {Tab} from 'golden-layout';
import {EventEmitter} from 'events';
import {Alert} from '../alert';
import {Alert} from './alert';

export class PaneRenaming extends EventEmitter.EventEmitter {
private pane: any;
Expand Down

0 comments on commit 9247999

Please sign in to comment.