MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / constructor

Method constructor

src/lib/settings.js:114–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 uiSettings = {};
113
114 constructor() {
115 this.#defaultSettings = {
116 animation: "system",
117 appTheme: "dark",
118 autosave: 0,
119 fileBrowser: this.#fileBrowserSettings,
120 formatter: {},
121 prettier: {},
122 maxFileSize: 12,
123 serverPort: config.SERVER_PORT,
124 previewPort: config.PREVIEW_PORT,
125 showConsoleToggler: true,
126 previewMode: this.PREVIEW_MODE_INAPP,
127 disableCache: false,
128 useCurrentFileForPreview: false,
129 host: "localhost",
130 search: this.#searchSettings,
131 lang: "en-us",
132 uiZoom: 100,
133 fontSize: "12px",
134 cursorWidth: 2,
135 editorTheme: "one_dark",
136 textWrap: true,
137 softTab: true,
138 tabSize: 2,
139 retryRemoteFsAfterFail: true,
140 linenumbers: true,
141 formatOnSave: false,
142 fadeFoldWidgets: false,
143 autoCorrect: true,
144 openFileListPos: this.OPEN_FILE_LIST_POS_HEADER,
145 quickTools: 2,
146 quickToolsTriggerMode: this.QUICKTOOLS_TRIGGER_MODE_TOUCH,
147 appFont: "",
148 editorFont: "Roboto Mono",
149 vibrateOnTap: true,
150 fullscreen: false,
151 floatingButton: false,
152 liveAutoCompletion: true,
153 localWordCompletion: true,
154 languageCompletion: true,
155 recommendExtensions: true,
156 useEmmet: true,
157 autoIndent: true,
158 codeFolding: true,
159 autoCloseBrackets: true,
160 bracketMatching: true,
161 highlightActiveLine: true,
162 highlightSelectionMatches: false,
163 autoCloseTags: true,
164 autoRenameTags: true,
165 showPrintMargin: false,
166 printMargin: 80,
167 scrollbarSize: 20,
168 scrollbarHeight: 50,
169 showSpaces: false,
170 confirmOnExit: true,
171 lineHeight: 2,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected