-
-
-
- -
+
+
+

{{AppName}} diff --git a/templates/install.tmpl b/templates/install.tmpl index 2e10b006b256..2cb5ecd15d27 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -221,73 +221,73 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -346,5 +346,5 @@

- + {{template "base/footer" .}} diff --git a/templates/mail/auth/activate.tmpl b/templates/mail/auth/activate.tmpl index 75a0b8564abc..a15afe3d49b7 100644 --- a/templates/mail/auth/activate.tmpl +++ b/templates/mail/auth/activate.tmpl @@ -1,8 +1,8 @@ - - + + {{.locale.Tr "mail.activate_account.title" (.DisplayName|DotEscape)}} diff --git a/templates/mail/auth/activate_email.tmpl b/templates/mail/auth/activate_email.tmpl index 0a24dc19c812..b15cc2a68a7e 100644 --- a/templates/mail/auth/activate_email.tmpl +++ b/templates/mail/auth/activate_email.tmpl @@ -1,8 +1,8 @@ - - + + {{.locale.Tr "mail.activate_email.title" (.DisplayName|DotEscape)}} diff --git a/templates/mail/auth/register_notify.tmpl b/templates/mail/auth/register_notify.tmpl index 673e84c5c78e..3cdb456fb38c 100644 --- a/templates/mail/auth/register_notify.tmpl +++ b/templates/mail/auth/register_notify.tmpl @@ -1,8 +1,8 @@ - - + + {{.locale.Tr "mail.register_notify.title" (.DisplayName|DotEscape) AppName}} diff --git a/templates/mail/auth/reset_passwd.tmpl b/templates/mail/auth/reset_passwd.tmpl index 6a3625ab7826..172844c954f4 100644 --- a/templates/mail/auth/reset_passwd.tmpl +++ b/templates/mail/auth/reset_passwd.tmpl @@ -1,8 +1,8 @@ - - + + {{.locale.Tr "mail.reset_password.title" (.DisplayName|DotEscape)}} diff --git a/templates/mail/issue/assigned.tmpl b/templates/mail/issue/assigned.tmpl index 05bed6902221..d02ea399189f 100644 --- a/templates/mail/issue/assigned.tmpl +++ b/templates/mail/issue/assigned.tmpl @@ -4,7 +4,7 @@ - + {{.Subject}} diff --git a/templates/mail/issue/default.tmpl b/templates/mail/issue/default.tmpl index 64dbb3df681e..422a4f046110 100644 --- a/templates/mail/issue/default.tmpl +++ b/templates/mail/issue/default.tmpl @@ -1,7 +1,7 @@ - + {{.Subject}} - + {{.Subject}} diff --git a/templates/mail/notify/repo_transfer.tmpl b/templates/mail/notify/repo_transfer.tmpl index 85ed96f3f734..586f83e65258 100644 --- a/templates/mail/notify/repo_transfer.tmpl +++ b/templates/mail/notify/repo_transfer.tmpl @@ -1,7 +1,7 @@ - + {{.Subject}} diff --git a/templates/mail/release.tmpl b/templates/mail/release.tmpl index b2acdce8b2b4..f588d8224f3a 100644 --- a/templates/mail/release.tmpl +++ b/templates/mail/release.tmpl @@ -1,7 +1,7 @@ - + {{.Subject}} diff --git a/web_src/js/components/RepoActionView.test.js b/web_src/js/components/RepoActionView.test.js new file mode 100644 index 000000000000..011c20d8d193 --- /dev/null +++ b/web_src/js/components/RepoActionView.test.js @@ -0,0 +1,30 @@ +import {expect, test} from 'vitest'; + +import {ansiLogToHTML} from './RepoActionView.vue'; +import AnsiToHTML from 'ansi-to-html'; + +test('processConsoleLine', () => { + expect(ansiLogToHTML('abc')).toEqual('abc'); + expect(ansiLogToHTML('abc\n')).toEqual('abc'); + expect(ansiLogToHTML('abc\r\n')).toEqual('abc'); + expect(ansiLogToHTML('\r')).toEqual(''); + expect(ansiLogToHTML('\rx\rabc')).toEqual('x\nabc'); + expect(ansiLogToHTML('\rabc\rx\r')).toEqual('abc\nx'); + + expect(ansiLogToHTML('\x1b[30mblack\x1b[37mwhite')).toEqual('blackwhite'); + expect(ansiLogToHTML('