FranzKafkaYu / x-ui

Lightweight Xray panel with multi-protocol and multi-user on the same port,supports English language and Telegram bot. Easy to use and easy to manage.
GNU General Public License v3.0
8.05k stars 1.64k forks source link

Modal Dialogs Not Opening After Update #558

Open hamidamadani opened 7 months ago

hamidamadani commented 7 months ago

I recently updated to the latest version of the x-ui project through the project menu in the console. Since then, I've encountered an issue where none of the modal dialogs open on the inbounds page. Specifically, when I click on edit or QR, the expected modal dialogs do not appear. I noticed this in the browser's console:

19:03:18.500 ReferenceError: inModal is not defined
    openEditInbound xui/inbounds:412
    clickAction xui/inbounds:388
    click VueJS
    onClick /assets/ant-design-vue@1.7.2/antd.min.js:2
    VueJS 4
    handleClick /assets/ant-design-vue@1.7.2/antd.min.js:2
    VueJS 2
vue.min.js:6:11752

I also noticed that the HTML source of the page is broken at the end. This is the latest line of the HTML source and since here translation of 密码 should be displayed, the problem might be related to the translation file. I also noticed that in the source code of the project, the width is 165px while in my running version, the width is 265px which is strange:

<a-form layout="inline">
    <a-form-item label="method">
        <a-select v-model="inbound.settings.method" style="width: 265px;">
            <a-select-option v-for="method in SSMethods" :value="method">[[ method ]]</a-select-option>
        </a-select>
    </a-form-item>
    <a-form-item label='

Could you please look into this problem? Any guidance on resolving it would be greatly appreciated.

Thank you for your support and for the great work on this project!

Version of x-ui

```console $ x-ui version x-ui control menu usages: ------------------------------------------ x-ui - Enter control menu x-ui start - Start x-ui x-ui stop - Stop x-ui x-ui restart - Restart x-ui x-ui status - Show x-ui status x-ui enable - Enable x-ui on system startup x-ui disable - Disable x-ui on system startup x-ui log - Check x-ui logs x-ui update - Update x-ui x-ui install - Install x-ui x-ui uninstall - Uninstall x-ui x-ui geo - Update x-ui geo x-ui cron - Cron x-ui jobs ------------------------------------------ v0.3.4.4:20230717 ```

x-ui log or xray log

```console Apr 27 16:53:32 sys systemd[1]: Started x-ui Service. Apr 27 16:53:32 sys x-ui[4005719]: 2024/04/27 16:53:32 x-ui 0.3.4.4:20230717 Apr 27 16:53:32 sys x-ui[4005719]: 2024/04/27 16:53:32 INFO - web server run https on [::]:{port} Apr 27 16:53:32 sys x-ui[4005719]: 2024/04/27 16:53:32 INFO - We got 3 members in client Apr 27 16:53:32 sys x-ui[4005719]: 2024/04/27 16:53:32 INFO - We got 2 members in client Apr 27 16:53:32 sys x-ui[4005719]: 2024/04/27 16:53:32 INFO - We got 2 members in client Apr 27 16:53:32 sys x-ui[4005719]: 2024/04/27 16:53:32 INFO - We got 1 members in client Apr 27 16:53:32 sys x-ui[4005719]: 2024/04/27 16:53:32 INFO - We got 1 members in client Apr 27 16:53:32 sys x-ui[4005719]: 2024/04/27 16:53:32 INFO - We got 2 members in client Apr 27 16:53:32 sys x-ui[4005719]: 2024/04/27 16:53:32 INFO - We got 1 members in client Apr 27 16:53:32 sys x-ui[4005719]: 2024/04/27 16:53:32 INFO - We got 1 members in client Apr 27 16:53:32 sys x-ui[4005719]: 2024/04/27 16:53:32 INFO - We got 2 members in client Apr 27 16:53:32 sys x-ui[4005719]: 2024/04/27 16:53:32 INFO - Wait 2 seconds for telegram bot ready Apr 27 16:53:34 sys x-ui[4005719]: SSHLogin[2024-04-27 16:53:00] early than XUI start[2024-04-27 16:53:32],don't notify Apr 27 16:53:34 sys x-ui[4005719]: 2024/04/27 16:53:34 INFO - get xray version from database: v1.8.11 Apr 27 16:53:34 sys x-ui[4005719]: 2024/04/27 16:53:34 INFO - need to switch xray version from v1.7.5 to:v1.8.11 Apr 27 16:53:36 sys x-ui[4005719]: 2024/04/27 16:53:36 INFO - RecordXrayVersion: v1.8.11 Apr 27 16:53:36 sys x-ui[4005719]: 2024/04/27 16:53:36 INFO - We got 3 members in client Apr 27 16:53:36 sys x-ui[4005719]: 2024/04/27 16:53:36 INFO - We got 2 members in client Apr 27 16:53:36 sys x-ui[4005719]: 2024/04/27 16:53:36 INFO - We got 2 members in client Apr 27 16:53:36 sys x-ui[4005719]: 2024/04/27 16:53:36 INFO - We got 1 members in client Apr 27 16:53:36 sys x-ui[4005719]: 2024/04/27 16:53:36 INFO - We got 1 members in client Apr 27 16:53:36 sys x-ui[4005719]: 2024/04/27 16:53:36 INFO - We got 2 members in client Apr 27 16:53:36 sys x-ui[4005719]: 2024/04/27 16:53:36 INFO - We got 1 members in client Apr 27 16:53:36 sys x-ui[4005719]: 2024/04/27 16:53:36 INFO - We got 1 members in client Apr 27 16:53:36 sys x-ui[4005719]: 2024/04/27 16:53:36 INFO - We got 2 members in client ```
jiangying000 commented 4 months ago

561