Repository navigation
Commit f64e212
committed
Secure website fetching and preview by adding HTML sanitization and private IP checks
└── apps
└── editor
├── package.json
└── src
├── extension.ts
└── views
└── prompt
├── backend
│ ├── message-handlers
│ │ ├── handle-open-website.ts
│ │ ├── handle-paste-url.ts
│ │ └── index.ts
│ ├── prompt-view-provider.ts
│ └── utils
│ ├── persistent-text-storage.ts
│ ├── symbols
│ │ ├── replace-symbols.ts
│ │ └── website
│ │ └── replace-website-symbol.ts
│ └── website-fetcher.ts
├── frontend
│ ├── Main
│ │ ├── Main.tsx
│ │ └── MainView
│ │ └── MainView.tsx
│ ├── Prompt.tsx
│ └── hooks
│ └── use-prompt
│ └── use-prompt.ts
└── types
└── messages.ts1 parent c0dea3f commit f64e212
2 files changed
Lines changed: 33 additions & 6 deletions
File tree
- apps/editor/src/views/prompt/backend
- message-handlers
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
53 | | - | |
| 58 | + | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
| |||
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
107 | | - | |
| 112 | + | |
108 | 113 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
89 | 104 | | |
90 | 105 | | |
91 | 106 | | |
92 | 107 | | |
93 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
94 | 119 | | |
95 | 120 | | |
96 | 121 | | |
| |||
0 commit comments