Skip to content

Commit 793648b

Browse files
ThanhDodeurOdooalexkuhn
authored andcommitted
[REF] rename discuss-sfu into odoo-sfu
1 parent 81ee431 commit 793648b

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Odoo: Discuss SFU
1+
# Odoo SFU
22

33
## Overview
44

@@ -132,7 +132,7 @@ The bundle built with the `build` script in [package.json](./package.json) can b
132132
in the client(js) code that implements the call feature like this:
133133

134134
```js
135-
import { SfuClient, SFU_CLIENT_STATE } from "/bundle/discuss_sfu.js";
135+
import { SfuClient, SFU_CLIENT_STATE } from "/bundle/odoo_sfu.js";
136136
const sfu = new SfuClient();
137137
```
138138
`SfuClient` exposes the following API:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "discuss-sfu",
3-
"description": "SFU server for discuss",
2+
"name": "odoo-sfu",
3+
"description": "Odoo's SFU server",
44
"version": "1.0.0",
55
"author": "Odoo",
66
"license": "LGPL-3.0",

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default {
1616
output: [
1717
{
1818
banner: "/* @odoo-module */",
19-
file: "./bundle/discuss_sfu.js",
19+
file: "./bundle/odoo_sfu.js",
2020
format: "es",
2121
outro,
2222
},
@@ -29,7 +29,7 @@ export default {
2929
}),
3030
license({
3131
thirdParty: {
32-
output: "./bundle/discuss_sfu.licenses.txt",
32+
output: "./bundle/odoo_sfu.licenses.txt",
3333
},
3434
}),
3535
],

src/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const processHandlers = {
6464
};
6565

6666
// ==================== PROCESS ====================
67-
process.name = "discuss_sfu";
67+
process.name = "odoo_sfu";
6868
for (const [signal, handler] of Object.entries(processHandlers)) {
6969
process.on(signal, handler);
7070
}

src/utils/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class Logger {
5959
*/
6060
_log(logFn, level, text, color) {
6161
logFn(
62-
`${this._getTimeStamp()}discuss-sfu ${this._colorize(
62+
`${this._getTimeStamp()}odoo-sfu ${this._colorize(
6363
`${level} [${this._name}] - ${text}`,
6464
color
6565
)}`

tests/logger.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ describe("Logger", () => {
2828
useColors: false,
2929
});
3030
logger.warn("test");
31-
expect(messages.pop()).toBe("2023-09-15T08:29:00.000Z discuss-sfu :WARN: [test1] - test");
31+
expect(messages.pop()).toBe("2023-09-15T08:29:00.000Z odoo-sfu :WARN: [test1] - test");
3232
const logger2 = new Logger("test2", {
3333
logLevel: "debug",
3434
timestamp: false,
3535
useColors: false,
3636
});
3737
logger2.debug("test");
38-
expect(messages.pop()).toBe("discuss-sfu :DEBUG: [test2] - test");
38+
expect(messages.pop()).toBe("odoo-sfu :DEBUG: [test2] - test");
3939
});
4040
test("logger respects log level", () => {
4141
const logEach = (logger) => {

0 commit comments

Comments
 (0)