Skip to content

Commit

Permalink
Merge pull request #2011 from h3poteto/remove/proxy-support
Browse files Browse the repository at this point in the history
Remove proxy feature
  • Loading branch information
h3poteto authored Oct 29, 2023
2 parents 8b69f6a + aa6e10f commit 7db0c70
Show file tree
Hide file tree
Showing 32 changed files with 55 additions and 818 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ The Rust version is [megalodon-rs](https://github.com/h3poteto/megalodon-rs).
- [ ] Admin API
- [x] WebSocket for streaming
- [x] Promisified methods
- [x] Proxy support
- [x] NodeJS and browser support
- [x] Written in TypeScript

Expand All @@ -43,9 +42,6 @@ yarn add megalodon
```

### Build for browsers

**Important**: In browsers, you cannot use the proxy.

If you want to build for browser, please use Webpack and set empty value for some libraries which are not supported in NodeJS.
[Here](https://github.com/h3poteto/megalodon/tree/master/example/browser/webpack.config.js) is example Webpack configuration.

Expand Down
13 changes: 0 additions & 13 deletions example/typescript/src/firefish/proxy_detector.ts

This file was deleted.

18 changes: 0 additions & 18 deletions example/typescript/src/firefish/proxy_instance.ts

This file was deleted.

21 changes: 0 additions & 21 deletions example/typescript/src/mastodon/proxy_detector.ts

This file was deleted.

23 changes: 0 additions & 23 deletions example/typescript/src/mastodon/proxy_instance.ts

This file was deleted.

59 changes: 0 additions & 59 deletions example/typescript/src/mastodon/proxy_streaming.ts

This file was deleted.

26 changes: 0 additions & 26 deletions example/typescript/src/mastodon/proxy_timeline.ts

This file was deleted.

46 changes: 0 additions & 46 deletions example/typescript/src/mastodon/proxy_toot.ts

This file was deleted.

23 changes: 0 additions & 23 deletions example/typescript/src/pleroma/proxy_instance.ts

This file was deleted.

26 changes: 0 additions & 26 deletions example/typescript/src/pleroma/proxy_timeline.ts

This file was deleted.

63 changes: 0 additions & 63 deletions example/typescript/src/pleroma/proxy_web_socket.ts

This file was deleted.

14 changes: 1 addition & 13 deletions example/vite/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
import { defineConfig } from 'vite'
import nodePolyfills from 'vite-plugin-node-stdlib-browser'

// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
process: 'process/browser'
}
},
define: {
'process.browser': true,
'process.env.NODE_DEBUG': false
},
plugins: [
nodePolyfills({
include: ['buffer']
})
]
}
})
9 changes: 0 additions & 9 deletions example/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,9 @@
"megalodon": "*"
},
"devDependencies": {
"assert": "^2.1.0",
"buffer": "^6.0.3",
"events": "^3.3.0",
"http-server": "^14.1.1",
"https-browserify": "^1.0.0",
"os-browserify": "^0.3.0",
"process": "^0.11.10",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"ts-loader": "^9.4.4",
"typescript": "5.2.2",
"url": "^0.11.3",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
}
Expand Down
Loading

0 comments on commit 7db0c70

Please sign in to comment.