diff --git a/.eslintignore b/.eslintignore index 6a473af268..5b8fa18754 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,5 +1,5 @@ # The build artifacts of the lib-jiti-meet project. -lib-jitsi-meet.* +lib-meet.* dist/ types/ diff --git a/.gitattributes b/.gitattributes index 93fa8ee8d6..4b8f2c6030 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,4 @@ -lib-jitsi-meet.min.js -text -diff -lib-jitsi-meet.js -text -diff -lib-jitsi-meet.js.map -text -diff +lib-meet.min.js -text -diff +lib-meet.js -text -diff +lib-meet.js.map -text -diff text eol=lf diff --git a/.gitignore b/.gitignore index 0f1de825ba..3962cfa393 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ node_modules .*.tmp deploy-local.sh .remote-sync.json -lib-jitsi-meet.* +lib-meet.* npm-*.log .sync-config.cson .jshintignore diff --git a/README.md b/README.md index b1060d6f58..9126c605b3 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,6 @@ -# Jitsi Meet API library +# Meet library -You can use Jitsi Meet API to create Jitsi Meet video conferences with a custom GUI. - -## Installation - -- [Installation guide](https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-ljm-api/#installation) -- [Checkout the example](https://github.com/jitsi/ljm-getting-started) +This is a customized fork of lib-jitsi-meet library for Internext Meet . ## Building the sources @@ -24,7 +19,7 @@ and to run unit tests: ``` npm test ``` -if you need to rebuild lib-jitsi-meet.min.js +if you need to rebuild lib-meet.min.js ``` npm run build ``` @@ -33,13 +28,9 @@ Both linting and units will also be done by a pre-commit hook. ## How to run and test the library locally: -To test this library, you will need . There is a pretty good tutorial in jitsi docs . - -Here is a resume of how you can run your own environment: - 1. Create a folder called meet or whatever you want to call this project. 2. Clone this repository. -3. Run `cd lib-jitsi-meet` to move to the folder. +3. Run `cd lib-meet` to move to the folder. 4. Run the commands below to create a link to your local library and build it. ``` @@ -49,16 +40,16 @@ Here is a resume of how you can run your own environment: ``` 5. Run `cd ..` -6. Go to and clone the repository. -7. Run `cd jitsi-meet` -8. Run `npm link lib-jitsi-meet` +6. Go to and clone the repository. +7. Run `cd meet-web` +8. Run `npm link lib-meet` ``` - npm link lib-jitsi-meet - npm install - make dev + npm link lib-meet + yarn + yarn start ``` -If you want to make changes to only lib-jitsi-meet, you need to run `npm run build` and restart the `make dev` process. Otherwise, the changes you made to the library are not going to be shown in the app. +If you want to make changes to only lib-meet, you need to run `npm run build` and restart the `yarn start` process. Otherwise, the changes you made to the library are not going to be shown in the app. ## Publishing to releases @@ -75,20 +66,20 @@ Update the `package.json "version"` field to the next release number (e.g. from ### Step 2: Generate the npm package ``` npm install # ensure dependencies are up to date -npm pack # creates a .tgz bundle (e.g. lib-jitsi-meet-1.2.4.tgz) +npm pack # creates a .tgz bundle (e.g. lib-meet-1.2.4.tgz) ``` ### Step 3: Generate the npm package -In your draft release on GitHub, upload the generated lib-jitsi-meet-1.2.4.tgz under Attach binaries by dropping them here or selecting them. +In your draft release on GitHub, upload the generated lib-meet-1.2.4.tgz under Attach binaries by dropping them here or selecting them. ### Step 5: Publish the release With the .tgz attached, click Publish release. ### Step 6: Update downstream dependency -In the internxt-meet repo’s package.json, change the lib-jitsi-meet entry to the new tarball URL: +In the internxt-meet repo’s package.json, change the lib-meet entry to the new tarball URL: ```json "dependencies": { - "lib-jitsi-meet": "https://github.com/internxt/lib-jitsi-meet/releases/download/v1.2.4/lib-jitsi-meet-1.2.4.tgz", + "lib-meet": "https://github.com/internxt/lib-meet/releases/download/v1.2.4/lib-meet-1.2.4.tgz", // … other deps … } ``` diff --git a/modules/e2ee-internxt/E2EEContext.ts b/modules/e2ee-internxt/E2EEContext.ts index 2c0807a59a..ac02f44777 100644 --- a/modules/e2ee-internxt/E2EEContext.ts +++ b/modules/e2ee-internxt/E2EEContext.ts @@ -34,7 +34,7 @@ export default class E2EEcontext extends Listenable { private _initializeWorker(): Worker { this.scriptEl = document.querySelector( - 'script[src*="lib-jitsi-meet"]', + 'script[src*="lib-meet"]', ); let baseUrl = ''; @@ -44,7 +44,7 @@ export default class E2EEcontext extends Listenable { baseUrl = `${this.scriptEl.src.substring(0, idx)}/`; } - let workerUrl = `${baseUrl}lib-jitsi-meet.e2ee-worker.js`; + let workerUrl = `${baseUrl}lib-meet.e2ee-worker.js`; if (baseUrl && baseUrl !== '/') { const workerBlob = new Blob([ `importScripts("${workerUrl}");` ], { diff --git a/package-lock.json b/package-lock.json index b0bcfa2009..09013036dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "emoji-regex": "10.4.0", "jwt-decode": "4.0.0", "lodash-es": "4.18.1", - "onnxruntime-web": "^1.23.0", + "onnxruntime-web": "=1.23.0", "sdp-transform": "2.3.0", "strophe.js": "https://github.com/jitsi/strophejs/releases/download/v1.5-jitsi-3/strophe.js-1.5.0.tgz", "uuid": "14.0.0", diff --git a/package.json b/package.json index 3083c7357c..12b2778dc9 100644 --- a/package.json +++ b/package.json @@ -4,14 +4,13 @@ "description": "JS library for accessing Jitsi server side deployments", "repository": { "type": "git", - "url": "git://github.com/jitsi/lib-meet" + "url": "git://github.com/internxt/lib-meet" }, "keywords": [ "jingle", "webrtc", "xmpp", - "browser", - "jitsi" + "browser" ], "author": "", "readmeFilename": "README.md", @@ -31,7 +30,7 @@ "emoji-regex": "10.4.0", "jwt-decode": "4.0.0", "lodash-es": "4.18.1", - "onnxruntime-web": "^1.23.0", + "onnxruntime-web": "=1.23.0", "sdp-transform": "2.3.0", "strophe.js": "https://github.com/jitsi/strophejs/releases/download/v1.5-jitsi-3/strophe.js-1.5.0.tgz", "uuid": "14.0.0", diff --git a/tsconfig.json b/tsconfig.json index 760b63c308..fbe12e19bd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,7 +26,7 @@ "**/*.spec.ts", "*.conf*.js", "index.js", - "lib-jitsi-meet.*.js", + "lib-meet.*.js", "webpack*.js", ], "typedocOptions": { diff --git a/webpack.config.js b/webpack.config.js index a5c53a2fe6..7767ece9a7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -12,7 +12,7 @@ module.exports = (_env, argv) => { return [ { ...config, entry: { - 'lib-jitsi-meet': './index.js' + 'lib-meet': './index.js' }, output: { ...config.output, library: 'JitsiMeetJS', @@ -28,7 +28,7 @@ module.exports = (_env, argv) => { minimize: false }, output: { - filename: 'lib-jitsi-meet.e2ee-worker.js', + filename: 'lib-meet.e2ee-worker.js', path: path.join(process.cwd(), 'dist', 'umd') }, resolve: config.resolve