• TypeScript 98.8%
  • JavaScript 1.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David Langley 3ed08525da
Merge pull request #13 from element-hq/langleyd/update_org_in_codeowners
Update org to element-hq in CODEOWNERS
2023-12-12 11:33:46 +00:00
.github update org to element-hq 2023-12-11 20:26:43 +00:00
src Use a separate template for the displayname (#11) 2023-05-19 17:24:52 +02:00
test Use a separate template for the displayname (#11) 2023-05-19 17:24:52 +02:00
.babelrc Add a dialog which asks for the user's name 2022-04-06 14:16:23 -06:00
.eslintrc.js Appease linter 2022-05-25 16:28:38 -06:00
.gitignore Initial project structure 2022-04-05 14:39:52 -06:00
CONTRIBUTING.md Initial project structure 2022-04-05 14:39:52 -06:00
jest.config.js Initial project structure 2022-04-05 14:39:52 -06:00
LICENSE Initial commit 2022-04-05 14:34:44 -06:00
package.json Update package.json 2023-11-24 08:59:48 +00:00
README.md Make the module "production ready" 2022-06-27 17:12:22 -06:00
tsconfig.build.json Add a dialog which asks for the user's name 2022-04-06 14:16:23 -06:00
tsconfig.json Add a dialog which asks for the user's name 2022-04-06 14:16:23 -06:00
yarn.lock Update module api 2023-07-07 14:24:32 +01:00

element-web-ilag-module

A simple Improved Landing As Guest (ILAG) module to demonstrate some functionality of Element Web's Module API.

To install, visit https://github.com/vector-im/element-web/blob/develop/docs/modules.md and install the module according to the examples.

As part of your config.json for element-web, add the following section:

{
  "io.element.module.ilag": {
    "localpartTemplate": "{firstName}{lastName}",
    "passwordTemplate": "{randomString}"
  }
}

For both templates, the following variables are supported:

  • {{randomString}} - A random string of arbitrary length and complexity, lowercase.
  • {{firstName}} - The first name the user supplied, lowercase.
  • {{lastName}} - The last name the user supplied, lowercase.

For localparts, non-alphanumeric characters will be removed.

The templates shown above are treated as the defaults, if not provided.

To trigger the module once installed, visit a room where you have peek access and while not logged in. The app should prompt you to try and "join" the chat - click that and follow the prompts.