Commit Graph

78 Commits

Author SHA1 Message Date
Levi Yan
7a08bebddb refactor: optimize error output in verifyToken 2025-03-24 10:51:56 +08:00
Levi Yan
fcb8aab391 feat: add notification for login and logout 2025-03-24 10:28:55 +08:00
Levi Yan
eeb4e6d850 refactor: distinguish between cleanup and storage in output 2025-03-24 10:21:17 +08:00
Levi Yan
72e94ceea8 temp: provide a handler to logout 2025-03-24 10:12:33 +08:00
Levi Yan
000749f7d9 revert islogged function check token validation and clean expired tokens 2025-03-23 22:16:49 +08:00
Levi Yan
c47739a718 fix: not process error (code: 401) 2025-03-23 21:59:57 +08:00
Levi Yan
a858f80164 refactor: extract code related to logging into login function 2025-03-23 20:31:31 +08:00
Levi Yan
a55ee0cf90 security: verify token and username before storing 2025-03-23 17:17:32 +08:00
Levi Yan
fe52e2bf8f feat: verify token and user 2025-03-23 17:16:35 +08:00
Levi Yan
4188072065 refactor: set showErrorNotification as a function for reuse 2025-03-23 17:15:33 +08:00
Levi Yan
5813fe2c20 refactor(devstar-api): not need user as member 2025-03-23 16:35:07 +08:00
Levi Yan
280231a016 refactor: change the return value of uploadPublicKey as promise<string> 2025-03-12 10:23:31 +08:00
Levi Yan
cf1efabc77 add output for storing token and username 2025-03-11 21:44:36 +08:00
Levi Yan
fcf93fe3de feat: upload user's ssh public key when user login through 'open with vscode' link 2025-03-03 13:22:01 +08:00
Levi Yan
e7bac7991f feat: upload user's ssh public key 2025-03-03 13:20:44 +08:00
Levi Yan
ef3629c5c4 refactor: 从用户配置中读取域名由getDevstarDomain函数负责 2025-03-03 13:15:34 +08:00
Levi Yan
04e34d5129 refactor: centralize the code that first opens the project into a single function 2025-03-02 23:33:18 +08:00
Levi Yan
b96e318355 style: formatting 2025-03-02 23:28:29 +08:00
Levi Yan
79309f8a56 fix(open with vscode with access token): don't open project after logging 2025-02-26 11:04:36 +08:00
Levi Yan
be6520d2cb feat: support link that open with code to carry access token 2025-02-26 00:47:00 +08:00
Levi Yan
38d1b98685 refactor: revert openRemoteFolder function to member function (not static) 2025-02-26 00:43:16 +08:00
Levi Yan
3f791332b3 refactor: convert isLogged function to public function 2025-02-26 00:37:13 +08:00
Levi Yan
7d21c0df5a feat: open project without logging 2025-02-25 11:43:06 +08:00
Levi Yan
04b2d6bcaf refactor: distinguish how to obtain GetCommitId on different operating systems 2025-02-21 21:19:34 +08:00
Levi Yan
da5e253763 clean: remove unused code 2025-02-21 21:17:18 +08:00
Levi Yan
8772074ab2 feat: support open with vscode url in devstar web 2025-02-19 10:16:46 +08:00
Levi Yan
858e77a19a refactor: convert openRemoteFolder to a static method, and adjust the sort of parameters 2025-02-19 09:58:31 +08:00
Levi Yan
a0aee79aba clean: remove useless code 2025-01-22 10:27:07 +08:00
Levi Yan
d49ac4cfb6 fix: even if the connection is not successful, the host information is stored 2025-01-16 02:54:45 +08:00
Levi Yan
04add2b8f1 perf: prioritize loading of communication function that require return values 2025-01-15 18:22:01 +08:00
Levi Yan
96f28a7424 feat: show notification for devstar-home 2025-01-15 15:14:34 +08:00
Levi Yan
4f831a0d5b feat: add communication method without return value that communicate with devstar-home 2025-01-15 15:13:26 +08:00
Levi Yan
bdf708597d fix: cannot execute code --version in windows and linux 2025-01-08 18:36:59 +08:00
Levi Yan
7e470461eb feat: extract the hostname of devstar domain for local SSH key naming 2025-01-07 23:22:06 +08:00
Levi Yan
185fc8d56e refactor: user can set devstar domain instead of devstar home 2024-12-27 13:02:56 +08:00
Levi Yan
f731eba7bf fix(home): add sandbox setting for iframe and retain context when hidden for webview 2024-12-27 10:11:22 +08:00
Levi Yan
27a09a49ab style: tab -> 2 spaces in all typescript files 2024-11-12 19:07:30 +08:00
Levi Yan
97a22b4deb refactor(home): merge content of index.html into webview and enable configuring devstar home url in package.json 2024-11-12 19:01:40 +08:00
Levi Yan
cb62793537 fix: check if received host exists in config file 2024-10-30 14:44:10 +08:00
Levi Yan
99e1693573 refactor: open remote folder also need username, port now and change the naming format of host in config 2024-10-28 19:46:26 +08:00
Levi Yan
76d713b4f1 refactor: set encoding type as pkcs1 for node-ssh connect function 2024-10-28 19:10:09 +08:00
Levi Yan
365795fe17 refactor: create private key without passphrase 2024-10-28 19:03:46 +08:00
Levi Yan
d79a4a8243 fix: now ssh connection use use private key instead of the default 2024-10-28 19:02:56 +08:00
Levi Yan
b279860ebe fix: solve the problem that the private key not works when connecting because permission of private key is too open 2024-10-28 18:24:03 +08:00
Levi Yan
5554ff4fb1 perf: adjust the order of command cases in switch by calling frequence 2024-10-28 17:02:42 +08:00
Levi Yan
6c771121da feat: give machine name to devstar home 2024-10-28 15:52:55 +08:00
Levi Yan
126f800346 feat: create user's ssh key 2024-10-28 14:58:10 +08:00
Levi Yan
4b3868ced2 [WIP] Feat: create/get user public/private key 2024-10-23 18:37:27 +08:00
Levi Yan
1e856694af refactor(User): set user name and user token as member variable 2024-10-23 17:03:11 +08:00
Levi Yan
1cf46c0597 feat(home): get user name from vscode and set user name into vscode 2024-10-23 16:22:50 +08:00