Commit Graph

495 Commits

Author SHA1 Message Date
Amarsh Anand
a1329bfd45 ready for mike to have a look 2023-10-03 14:27:51 -07:00
anandamarsh
6e3b82f41b
Pe 125 128 tabs (#28)
* ready to redo tabs

* mov to tabs now

* we can do the tabs now

* tabs are done
2023-10-03 14:26:13 -07:00
anandamarsh
5a0effb691
Pe 96 left navbar (#27)
* nice. bottom done

* work on adding workspaces

* starting on Tabs
2023-09-30 12:13:40 -07:00
anandamarsh
b1820224d5
Pe 107 global changes (#26)
* chaged background etc. now making font changes

* need to go component by component now
2023-09-27 15:03:08 -07:00
anandamarsh
a25c7b4286
Pe 179 refactoring UI code (#25)
* refactored main JS files

* modals have been refactored

* lines and renderer refactored

* all refactoring done. ready for reskinning
2023-09-23 21:05:06 -07:00
anandamarsh
faeab0790a
refactored code editor (#24) 2023-09-19 17:08:35 -07:00
Amarsh Anand
f251718d62 Merge branches 'PE_153-Close_without_saving' and 'main' of github.com:commandlinedev/prompt-client 2023-09-19 16:42:59 -07:00
sawka
e30128d182
Mustache Template Renderer (#23)
* experimental version of the mustache renderer

* mustache error message / loading cleanup, add refresh button
2023-09-17 21:00:54 -07:00
sawka
4953550425 bump version to v0.3.1 2023-09-17 20:31:55 -07:00
anandamarsh
7e4401a625
Ready for PR (#22)
* redy for PR

* marked readonly
2023-09-17 20:14:36 -07:00
Amarsh Anand
ac3765c16d marked readonly 2023-09-17 19:45:03 -07:00
Amarsh Anand
83f1ec5c8b redy for PR 2023-09-17 19:07:15 -07:00
sawka
6864f2b5a7 bump xterm.js version to v5.3.0 (perf improvements) 2023-09-17 14:14:51 -07:00
anandamarsh
9a578c04d3
PE-44 md viewer (#21)
* md does render. need cleanups

* simul scrolling works

* preview button works

* md previewer works

* use Markdown component from elements, fix null ptr with unset ref

* add scroller div back in

* scrollers should overscroll contain

---------

Co-authored-by: sawka
2023-09-17 13:58:12 -07:00
sawka
ca13c28a3f minor bugs in markdown renderer, up max size to 200k 2023-09-17 01:35:41 -07:00
sawka
968cd462f5 mostly fix physical focus indicator for code editor 2023-09-16 23:20:47 -07:00
sawka
26eec11526 add notfound error handler (and fontsize override) to markdown viewer (to match image viewer) 2023-09-16 23:07:30 -07:00
sawka
8a4ff84e95 open all iframe (name=webview) links in new window. deny any other iframe navigation. 2023-09-16 22:58:28 -07:00
sawka
6e8dcad1f1 fix PE-152 and PE-146, font size for new state, and force connection terminal to scroll if too big (when font size doesnt match) 2023-09-16 14:27:17 -07:00
sawka
8b8f7cda7b PE-151, need to use setWindowOpenHandler (in new version of electron) instead of new-window event. 2023-09-16 13:08:30 -07:00
sawka
caa11748e5 PE-150, error when image not found 2023-09-16 13:01:38 -07:00
sawka
975512d4eb Merge branch 'codeedit-focus' 2023-09-15 17:25:01 -07:00
sawka
b9ff6bd20f codeedit: on close, if we're focused, give focus back to the input box 2023-09-15 17:24:38 -07:00
sawka
f6b9b6df3e
CodeEdit Focus and Remove WebSharing (#20)
* implement codeedit focus with the help of a shouldFocus prop from the Line component.  also update line status, and remove websharing in left nav

* remove webshare from screen settings
2023-09-15 17:19:24 -07:00
sawka
17fef0341d remove webshare from screen settings 2023-09-15 15:46:17 -07:00
sawka
13fe90cdb5 implement codeedit focus with the help of a shouldFocus prop from the Line component. also update line status, and remove websharing in left nav 2023-09-15 13:01:04 -07:00
sawka
5f04f14df6 link new website 2023-09-08 14:26:30 -07:00
sawka
2fa0239c13 resolve typescript errors created from merging PRs 2023-09-07 13:05:02 -07:00
sawka
aaaf7af8a1
PE-74 and PE-54
pass isSelected (to prevent multiple scrolling).  also fix initial editorheight to prevent jitter (#19)
2023-09-07 13:02:45 -07:00
sawka
660795ea8f
codeview / codeedit commands working (#17)
* server is setting 'mode' linestate to 'view' or 'edit'.  this change sets the editor in readonly mode based on this flag.  (requires the new build of prompt-server)

* apply prettier
2023-09-07 13:01:07 -07:00
sawka
e78ea62932
bump mshell to v0.3, add readonly/notfound props. fix one mobx warning (#16) 2023-09-07 12:59:07 -07:00
sawka
7376ed2824
fix all typescript errors (#18) 2023-09-07 12:57:02 -07:00
sawka
baeafdce78 bump version to 0.3.0 2023-09-06 19:54:06 -07:00
anandamarsh
dee0ae4473
serving moncao from node_modules (#15)
* serving moncao from node_modules

* add monaco-editor to package.json

* allow node_modules/monaco-editor into the build

---------

Co-authored-by: sawka
2023-09-06 19:51:32 -07:00
anandamarsh
52a7e14df8
PE-71 close (#13)
* fixed expand issues

* removed expand

* can close the file, and min 5 lines are

* removed older file

* lag selection took some time :(

* ready for PR

* changed prompt:lang to lang
2023-09-06 16:36:49 -07:00
anandamarsh
dff146db66
PE-71 close (#12)
* fixed expand issues

* removed expand

* can close the file, and min 5 lines are

* removed older file
2023-09-06 13:28:05 -07:00
anandamarsh
fa04cd9e5c
PE-71 (#11)
* fixed expand issues

* removed expand
2023-09-05 15:05:18 -07:00
sawka
c81a01aa9c
File/Code Editor Working (#9)
* save works

* ready for Fri night PR - Code editor working

---------

Authored-by: Amarsh Anand
2023-09-01 21:44:35 -07:00
sawka
238c8fb250 fix return type of writeRemoteFile, small formatting/fixes 2023-09-01 20:15:48 -07:00
anandamarsh
b5e9e34c52
Pe 10 (#8)
* code window is always visible

* gotten resizing done. need more work

* starting on save now

* got save to display message. now need to intergrate with save() handler
2023-09-01 15:57:01 -07:00
sawka
2e18c56471
PE-41 Remote File API (#7)
* added API for read-file

* implement writeRemoteFile -- multipart upload, params/data

* format file, implement readOnly flag on file return from readRemoteFile

* fix model.ts typescript errors

* add usetemp to write-file api

* add GlobalCommandRunner.setLineState()

* implment PE-13, PE-60
2023-09-01 15:20:13 -07:00
anandamarsh
af25dc65c2
Pe 11 12 18 (#5)
* ready to tackle the height issue

* height adjusts, but requires some more testing

* removed fullscreen

* height now works

* set font family to  "JetBrains Mono"
2023-08-28 17:00:02 -07:00
anandamarsh
49e0b7212d
test (#4)
* test

* language can now be changed

* ready for PR

* ready for PR again
2023-08-23 20:46:47 -07:00
sawka
c8cae274bc prettier all the files 2023-08-21 21:37:04 -07:00
sawka
8b473607c7 add prettier to package.json 2023-08-21 21:33:47 -07:00
anandamarsh
e7dfa77245
Merge pull request #3 from commandlinedev/CLI-9-Create-a-new-Plugin-called-CodeRenderer
Cli 9 create a new plugin called code renderer
2023-08-21 21:31:31 -07:00
Amarsh Anand
c5861fd26f new prettier config 2023-08-21 20:06:17 -07:00
Amarsh Anand
d3d31a0121 added monaco 2023-08-21 19:56:53 -07:00
Amarsh Anand
81be0d4b38 first cut ready ... requires discussion with Mike 2023-08-20 17:08:05 -07:00
Amarsh Anand
2ab0f4af4c created CodeRenderer with hardcoded js as lang 2023-08-20 11:27:52 -07:00