Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
41fdc7a4
Commit
41fdc7a4
authored
Jul 05, 2025
by
Johnny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: fix frontend linter
parent
a3de61a1
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
134 additions
and
51 deletions
+134
-51
ActivityCalendar.tsx
web/src/components/ActivityCalendar/ActivityCalendar.tsx
+3
-1
DateTimeInput.tsx
web/src/components/DateTimeInput.tsx
+1
-5
Spoiler.tsx
web/src/components/MemoContent/Spoiler.tsx
+1
-4
ReactionSelector.tsx
web/src/components/ReactionSelector.tsx
+1
-6
AccessTokenSection.tsx
web/src/components/Settings/AccessTokenSection.tsx
+1
-3
UserSessionsSection.tsx
web/src/components/Settings/UserSessionsSection.tsx
+3
-1
WebhookSection.tsx
web/src/components/Settings/WebhookSection.tsx
+1
-3
AdminSignIn.tsx
web/src/pages/AdminSignIn.tsx
+1
-3
SignIn.tsx
web/src/pages/SignIn.tsx
+1
-3
SignUp.tsx
web/src/pages/SignUp.tsx
+1
-3
descriptor.ts
web/src/types/proto/google/protobuf/descriptor.ts
+120
-19
No files found.
web/src/components/ActivityCalendar/ActivityCalendar.tsx
View file @
41fdc7a4
...
@@ -52,7 +52,9 @@ const CalendarCell = memo(
...
@@ -52,7 +52,9 @@ const CalendarCell = memo(
if
(
!
dayInfo
.
isCurrentMonth
)
{
if
(
!
dayInfo
.
isCurrentMonth
)
{
return
(
return
(
<
div
className=
{
cn
(
"w-6 h-6 text-xs lg:text-[13px] flex justify-center items-center cursor-default opacity-60 text-muted-foreground"
)
}
>
<
div
className=
{
cn
(
"w-6 h-6 text-xs lg:text-[13px] flex justify-center items-center cursor-default opacity-60 text-muted-foreground"
)
}
>
{
dayInfo
.
day
}
{
dayInfo
.
day
}
</
div
>
</
div
>
);
);
...
...
web/src/components/DateTimeInput.tsx
View file @
41fdc7a4
...
@@ -18,11 +18,7 @@ const DateTimeInput: React.FC<Props> = ({ value, onChange }) => {
...
@@ -18,11 +18,7 @@ const DateTimeInput: React.FC<Props> = ({ value, onChange }) => {
return
(
return
(
<
input
<
input
type=
"text"
type=
"text"
className=
{
cn
(
className=
{
cn
(
"px-1 bg-transparent rounded text-xs transition-all"
,
"border-transparent outline-none focus:border-border"
,
"border"
)
}
"px-1 bg-transparent rounded text-xs transition-all"
,
"border-transparent outline-none focus:border-border"
,
"border"
,
)
}
defaultValue=
{
formatDate
(
value
)
}
defaultValue=
{
formatDate
(
value
)
}
onBlur=
{
(
e
)
=>
{
onBlur=
{
(
e
)
=>
{
const
inputValue
=
e
.
target
.
value
;
const
inputValue
=
e
.
target
.
value
;
...
...
web/src/components/MemoContent/Spoiler.tsx
View file @
41fdc7a4
...
@@ -9,10 +9,7 @@ const Spoiler: React.FC<Props> = ({ content }: Props) => {
...
@@ -9,10 +9,7 @@ const Spoiler: React.FC<Props> = ({ content }: Props) => {
const
[
isRevealed
,
setIsRevealed
]
=
useState
(
false
);
const
[
isRevealed
,
setIsRevealed
]
=
useState
(
false
);
return
(
return
(
<
span
<
span
className=
{
cn
(
"inline cursor-pointer select-none"
,
isRevealed
?
""
:
"bg-muted"
)
}
onClick=
{
()
=>
setIsRevealed
(
!
isRevealed
)
}
>
className=
{
cn
(
"inline cursor-pointer select-none"
,
isRevealed
?
""
:
"bg-muted"
)
}
onClick=
{
()
=>
setIsRevealed
(
!
isRevealed
)
}
>
<
span
className=
{
cn
(
isRevealed
?
"opacity-100"
:
"opacity-0"
)
}
>
{
content
}
</
span
>
<
span
className=
{
cn
(
isRevealed
?
"opacity-100"
:
"opacity-0"
)
}
>
{
content
}
</
span
>
</
span
>
</
span
>
);
);
...
...
web/src/components/ReactionSelector.tsx
View file @
41fdc7a4
...
@@ -57,12 +57,7 @@ const ReactionSelector = observer((props: Props) => {
...
@@ -57,12 +57,7 @@ const ReactionSelector = observer((props: Props) => {
return
(
return
(
<
Popover
open=
{
open
}
onOpenChange=
{
setOpen
}
>
<
Popover
open=
{
open
}
onOpenChange=
{
setOpen
}
>
<
PopoverTrigger
asChild
>
<
PopoverTrigger
asChild
>
<
span
<
span
className=
{
cn
(
"h-7 w-7 flex justify-center items-center rounded-full border hover:opacity-70 cursor-pointer"
,
className
)
}
>
className=
{
cn
(
"h-7 w-7 flex justify-center items-center rounded-full border hover:opacity-70 cursor-pointer"
,
className
,
)
}
>
<
SmilePlusIcon
className=
"w-4 h-4 mx-auto text-muted-foreground"
/>
<
SmilePlusIcon
className=
"w-4 h-4 mx-auto text-muted-foreground"
/>
</
span
>
</
span
>
</
PopoverTrigger
>
</
PopoverTrigger
>
...
...
web/src/components/Settings/AccessTokenSection.tsx
View file @
41fdc7a4
...
@@ -103,9 +103,7 @@ const AccessTokenSection = () => {
...
@@ -103,9 +103,7 @@ const AccessTokenSection = () => {
<
ClipboardIcon
className=
"w-4 h-auto text-muted-foreground"
/>
<
ClipboardIcon
className=
"w-4 h-auto text-muted-foreground"
/>
</
Button
>
</
Button
>
</
td
>
</
td
>
<
td
className=
"whitespace-nowrap py-2 pl-4 pr-3 text-sm text-foreground"
>
<
td
className=
"whitespace-nowrap py-2 pl-4 pr-3 text-sm text-foreground"
>
{
userAccessToken
.
description
}
</
td
>
{
userAccessToken
.
description
}
</
td
>
<
td
className=
"whitespace-nowrap px-3 py-2 text-sm text-muted-foreground"
>
<
td
className=
"whitespace-nowrap px-3 py-2 text-sm text-muted-foreground"
>
{
userAccessToken
.
issuedAt
?.
toLocaleString
()
}
{
userAccessToken
.
issuedAt
?.
toLocaleString
()
}
</
td
>
</
td
>
...
...
web/src/components/Settings/UserSessionsSection.tsx
View file @
41fdc7a4
...
@@ -135,7 +135,9 @@ const UserSessionsSection = () => {
...
@@ -135,7 +135,9 @@ const UserSessionsSection = () => {
:
t
(
"setting.user-sessions-section.revoke-session"
)
:
t
(
"setting.user-sessions-section.revoke-session"
)
}
}
>
>
<
TrashIcon
className=
{
`w-4 h-auto ${isCurrentSession(userSession) ? "text-muted-foreground" : "text-destructive"}`
}
/>
<
TrashIcon
className=
{
`w-4 h-auto ${isCurrentSession(userSession) ? "text-muted-foreground" : "text-destructive"}`
}
/>
</
Button
>
</
Button
>
</
td
>
</
td
>
</
tr
>
</
tr
>
...
...
web/src/components/Settings/WebhookSection.tsx
View file @
41fdc7a4
...
@@ -44,9 +44,7 @@ const WebhookSection = () => {
...
@@ -44,9 +44,7 @@ const WebhookSection = () => {
<
div
className=
"w-full flex flex-col justify-start items-start"
>
<
div
className=
"w-full flex flex-col justify-start items-start"
>
<
div
className=
"w-full flex justify-between items-center"
>
<
div
className=
"w-full flex justify-between items-center"
>
<
div
className=
"flex-auto space-y-1"
>
<
div
className=
"flex-auto space-y-1"
>
<
p
className=
"flex flex-row justify-start items-center font-medium text-muted-foreground"
>
<
p
className=
"flex flex-row justify-start items-center font-medium text-muted-foreground"
>
{
t
(
"setting.webhook-section.title"
)
}
</
p
>
{
t
(
"setting.webhook-section.title"
)
}
</
p
>
</
div
>
</
div
>
<
div
>
<
div
>
<
Button
<
Button
...
...
web/src/pages/AdminSignIn.tsx
View file @
41fdc7a4
...
@@ -11,9 +11,7 @@ const AdminSignIn = observer(() => {
...
@@ -11,9 +11,7 @@ const AdminSignIn = observer(() => {
<
div
className=
"w-full py-4 grow flex flex-col justify-center items-center"
>
<
div
className=
"w-full py-4 grow flex flex-col justify-center items-center"
>
<
div
className=
"w-full flex flex-row justify-center items-center mb-6"
>
<
div
className=
"w-full flex flex-row justify-center items-center mb-6"
>
<
img
className=
"h-14 w-auto rounded-full shadow"
src=
{
workspaceGeneralSetting
.
customProfile
?.
logoUrl
||
"/logo.webp"
}
alt=
""
/>
<
img
className=
"h-14 w-auto rounded-full shadow"
src=
{
workspaceGeneralSetting
.
customProfile
?.
logoUrl
||
"/logo.webp"
}
alt=
""
/>
<
p
className=
"ml-2 text-5xl text-foreground opacity-80"
>
<
p
className=
"ml-2 text-5xl text-foreground opacity-80"
>
{
workspaceGeneralSetting
.
customProfile
?.
title
||
"Memos"
}
</
p
>
{
workspaceGeneralSetting
.
customProfile
?.
title
||
"Memos"
}
</
p
>
</
div
>
</
div
>
<
p
className=
"w-full text-xl font-medium text-muted-foreground"
>
Sign in with admin accounts
</
p
>
<
p
className=
"w-full text-xl font-medium text-muted-foreground"
>
Sign in with admin accounts
</
p
>
<
PasswordSignInForm
/>
<
PasswordSignInForm
/>
...
...
web/src/pages/SignIn.tsx
View file @
41fdc7a4
...
@@ -60,9 +60,7 @@ const SignIn = observer(() => {
...
@@ -60,9 +60,7 @@ const SignIn = observer(() => {
<
div
className=
"w-full py-4 grow flex flex-col justify-center items-center"
>
<
div
className=
"w-full py-4 grow flex flex-col justify-center items-center"
>
<
div
className=
"w-full flex flex-row justify-center items-center mb-6"
>
<
div
className=
"w-full flex flex-row justify-center items-center mb-6"
>
<
img
className=
"h-14 w-auto rounded-full shadow"
src=
{
workspaceGeneralSetting
.
customProfile
?.
logoUrl
||
"/logo.webp"
}
alt=
""
/>
<
img
className=
"h-14 w-auto rounded-full shadow"
src=
{
workspaceGeneralSetting
.
customProfile
?.
logoUrl
||
"/logo.webp"
}
alt=
""
/>
<
p
className=
"ml-2 text-5xl text-foreground opacity-80"
>
<
p
className=
"ml-2 text-5xl text-foreground opacity-80"
>
{
workspaceGeneralSetting
.
customProfile
?.
title
||
"Memos"
}
</
p
>
{
workspaceGeneralSetting
.
customProfile
?.
title
||
"Memos"
}
</
p
>
</
div
>
</
div
>
{
!
workspaceGeneralSetting
.
disallowPasswordAuth
?
(
{
!
workspaceGeneralSetting
.
disallowPasswordAuth
?
(
<
PasswordSignInForm
/>
<
PasswordSignInForm
/>
...
...
web/src/pages/SignUp.tsx
View file @
41fdc7a4
...
@@ -72,9 +72,7 @@ const SignUp = observer(() => {
...
@@ -72,9 +72,7 @@ const SignUp = observer(() => {
<
div
className=
"w-full py-4 grow flex flex-col justify-center items-center"
>
<
div
className=
"w-full py-4 grow flex flex-col justify-center items-center"
>
<
div
className=
"w-full flex flex-row justify-center items-center mb-6"
>
<
div
className=
"w-full flex flex-row justify-center items-center mb-6"
>
<
img
className=
"h-14 w-auto rounded-full shadow"
src=
{
workspaceGeneralSetting
.
customProfile
?.
logoUrl
||
"/logo.webp"
}
alt=
""
/>
<
img
className=
"h-14 w-auto rounded-full shadow"
src=
{
workspaceGeneralSetting
.
customProfile
?.
logoUrl
||
"/logo.webp"
}
alt=
""
/>
<
p
className=
"ml-2 text-5xl text-foreground opacity-80"
>
<
p
className=
"ml-2 text-5xl text-foreground opacity-80"
>
{
workspaceGeneralSetting
.
customProfile
?.
title
||
"Memos"
}
</
p
>
{
workspaceGeneralSetting
.
customProfile
?.
title
||
"Memos"
}
</
p
>
</
div
>
</
div
>
{
!
workspaceGeneralSetting
.
disallowUserRegistration
?
(
{
!
workspaceGeneralSetting
.
disallowUserRegistration
?
(
<>
<>
...
...
web/src/types/proto/google/protobuf/descriptor.ts
View file @
41fdc7a4
...
@@ -35,7 +35,7 @@ export enum Edition {
...
@@ -35,7 +35,7 @@ export enum Edition {
EDITION_2024
=
"EDITION_2024"
,
EDITION_2024
=
"EDITION_2024"
,
/**
/**
* EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
* EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
* used or rel
y
ed on outside of tests.
* used or rel
i
ed on outside of tests.
*/
*/
EDITION_1_TEST_ONLY
=
"EDITION_1_TEST_ONLY"
,
EDITION_1_TEST_ONLY
=
"EDITION_1_TEST_ONLY"
,
EDITION_2_TEST_ONLY
=
"EDITION_2_TEST_ONLY"
,
EDITION_2_TEST_ONLY
=
"EDITION_2_TEST_ONLY"
,
...
@@ -177,11 +177,19 @@ export interface FileDescriptorProto {
...
@@ -177,11 +177,19 @@ export interface FileDescriptorProto {
* The supported values are "proto2", "proto3", and "editions".
* The supported values are "proto2", "proto3", and "editions".
*
*
* If `edition` is present, this value must be "editions".
* If `edition` is present, this value must be "editions".
* WARNING: This field should only be used by protobuf plugins or special
* cases like the proto compiler. Other uses are discouraged and
* developers should rely on the protoreflect APIs for their client language.
*/
*/
syntax
?:
syntax
?:
|
string
|
string
|
undefined
;
|
undefined
;
/** The edition of the proto file. */
/**
* The edition of the proto file.
* WARNING: This field should only be used by protobuf plugins or special
* cases like the proto compiler. Other uses are discouraged and
* developers should rely on the protoreflect APIs for their client language.
*/
edition
?:
Edition
|
undefined
;
edition
?:
Edition
|
undefined
;
}
}
...
@@ -828,7 +836,12 @@ export interface FileOptions {
...
@@ -828,7 +836,12 @@ export interface FileOptions {
rubyPackage
?:
rubyPackage
?:
|
string
|
string
|
undefined
;
|
undefined
;
/** Any features defined in the specific edition. */
/**
* Any features defined in the specific edition.
* WARNING: This field should only be used by protobuf plugins or special
* cases like the proto compiler. Other uses are discouraged and
* developers should rely on the protoreflect APIs for their client language.
*/
features
?:
features
?:
|
FeatureSet
|
FeatureSet
|
undefined
;
|
undefined
;
...
@@ -966,7 +979,12 @@ export interface MessageOptions {
...
@@ -966,7 +979,12 @@ export interface MessageOptions {
deprecatedLegacyJsonFieldConflicts
?:
deprecatedLegacyJsonFieldConflicts
?:
|
boolean
|
boolean
|
undefined
;
|
undefined
;
/** Any features defined in the specific edition. */
/**
* Any features defined in the specific edition.
* WARNING: This field should only be used by protobuf plugins or special
* cases like the proto compiler. Other uses are discouraged and
* developers should rely on the protoreflect APIs for their client language.
*/
features
?:
features
?:
|
FeatureSet
|
FeatureSet
|
undefined
;
|
undefined
;
...
@@ -976,12 +994,13 @@ export interface MessageOptions {
...
@@ -976,12 +994,13 @@ export interface MessageOptions {
export
interface
FieldOptions
{
export
interface
FieldOptions
{
/**
/**
* NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
* The ctype option instructs the C++ code generator to use a different
* The ctype option instructs the C++ code generator to use a different
* representation of the field than it normally would. See the specific
* representation of the field than it normally would. See the specific
* options below. This option is only implemented to support use of
* options below. This option is only implemented to support use of
* [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
* [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
* type "bytes" in the open source release
-- sorry, we'll try to include
* type "bytes" in the open source release
.
*
other types in a future version!
*
TODO: make ctype actually deprecated.
*/
*/
ctype
?:
ctype
?:
|
FieldOptions_CType
|
FieldOptions_CType
...
@@ -1070,7 +1089,12 @@ export interface FieldOptions {
...
@@ -1070,7 +1089,12 @@ export interface FieldOptions {
retention
?:
FieldOptions_OptionRetention
|
undefined
;
retention
?:
FieldOptions_OptionRetention
|
undefined
;
targets
:
FieldOptions_OptionTargetType
[];
targets
:
FieldOptions_OptionTargetType
[];
editionDefaults
:
FieldOptions_EditionDefault
[];
editionDefaults
:
FieldOptions_EditionDefault
[];
/** Any features defined in the specific edition. */
/**
* Any features defined in the specific edition.
* WARNING: This field should only be used by protobuf plugins or special
* cases like the proto compiler. Other uses are discouraged and
* developers should rely on the protoreflect APIs for their client language.
*/
features
?:
FeatureSet
|
undefined
;
features
?:
FeatureSet
|
undefined
;
featureSupport
?:
featureSupport
?:
|
FieldOptions_FeatureSupport
|
FieldOptions_FeatureSupport
...
@@ -1169,11 +1193,7 @@ export function fieldOptions_JSTypeToNumber(object: FieldOptions_JSType): number
...
@@ -1169,11 +1193,7 @@ export function fieldOptions_JSTypeToNumber(object: FieldOptions_JSType): number
}
}
}
}
/**
/** If set to RETENTION_SOURCE, the option will be omitted from the binary. */
* If set to RETENTION_SOURCE, the option will be omitted from the binary.
* Note: as of January 2023, support for this is in progress and does not yet
* have an effect (b/264593489).
*/
export
enum
FieldOptions_OptionRetention
{
export
enum
FieldOptions_OptionRetention
{
RETENTION_UNKNOWN
=
"RETENTION_UNKNOWN"
,
RETENTION_UNKNOWN
=
"RETENTION_UNKNOWN"
,
RETENTION_RUNTIME
=
"RETENTION_RUNTIME"
,
RETENTION_RUNTIME
=
"RETENTION_RUNTIME"
,
...
@@ -1216,8 +1236,7 @@ export function fieldOptions_OptionRetentionToNumber(object: FieldOptions_Option
...
@@ -1216,8 +1236,7 @@ export function fieldOptions_OptionRetentionToNumber(object: FieldOptions_Option
/**
/**
* This indicates the types of entities that the field may apply to when used
* This indicates the types of entities that the field may apply to when used
* as an option. If it is unset, then the field may be freely used as an
* as an option. If it is unset, then the field may be freely used as an
* option on any kind of entity. Note: as of January 2023, support for this is
* option on any kind of entity.
* in progress and does not yet have an effect (b/264593489).
*/
*/
export
enum
FieldOptions_OptionTargetType
{
export
enum
FieldOptions_OptionTargetType
{
TARGET_TYPE_UNKNOWN
=
"TARGET_TYPE_UNKNOWN"
,
TARGET_TYPE_UNKNOWN
=
"TARGET_TYPE_UNKNOWN"
,
...
@@ -1341,7 +1360,12 @@ export interface FieldOptions_FeatureSupport {
...
@@ -1341,7 +1360,12 @@ export interface FieldOptions_FeatureSupport {
}
}
export
interface
OneofOptions
{
export
interface
OneofOptions
{
/** Any features defined in the specific edition. */
/**
* Any features defined in the specific edition.
* WARNING: This field should only be used by protobuf plugins or special
* cases like the proto compiler. Other uses are discouraged and
* developers should rely on the protoreflect APIs for their client language.
*/
features
?:
features
?:
|
FeatureSet
|
FeatureSet
|
undefined
;
|
undefined
;
...
@@ -1379,7 +1403,12 @@ export interface EnumOptions {
...
@@ -1379,7 +1403,12 @@ export interface EnumOptions {
deprecatedLegacyJsonFieldConflicts
?:
deprecatedLegacyJsonFieldConflicts
?:
|
boolean
|
boolean
|
undefined
;
|
undefined
;
/** Any features defined in the specific edition. */
/**
* Any features defined in the specific edition.
* WARNING: This field should only be used by protobuf plugins or special
* cases like the proto compiler. Other uses are discouraged and
* developers should rely on the protoreflect APIs for their client language.
*/
features
?:
features
?:
|
FeatureSet
|
FeatureSet
|
undefined
;
|
undefined
;
...
@@ -1397,7 +1426,12 @@ export interface EnumValueOptions {
...
@@ -1397,7 +1426,12 @@ export interface EnumValueOptions {
deprecated
?:
deprecated
?:
|
boolean
|
boolean
|
undefined
;
|
undefined
;
/** Any features defined in the specific edition. */
/**
* Any features defined in the specific edition.
* WARNING: This field should only be used by protobuf plugins or special
* cases like the proto compiler. Other uses are discouraged and
* developers should rely on the protoreflect APIs for their client language.
*/
features
?:
features
?:
|
FeatureSet
|
FeatureSet
|
undefined
;
|
undefined
;
...
@@ -1418,7 +1452,12 @@ export interface EnumValueOptions {
...
@@ -1418,7 +1452,12 @@ export interface EnumValueOptions {
}
}
export
interface
ServiceOptions
{
export
interface
ServiceOptions
{
/** Any features defined in the specific edition. */
/**
* Any features defined in the specific edition.
* WARNING: This field should only be used by protobuf plugins or special
* cases like the proto compiler. Other uses are discouraged and
* developers should rely on the protoreflect APIs for their client language.
*/
features
?:
features
?:
|
FeatureSet
|
FeatureSet
|
undefined
;
|
undefined
;
...
@@ -1446,7 +1485,12 @@ export interface MethodOptions {
...
@@ -1446,7 +1485,12 @@ export interface MethodOptions {
idempotencyLevel
?:
idempotencyLevel
?:
|
MethodOptions_IdempotencyLevel
|
MethodOptions_IdempotencyLevel
|
undefined
;
|
undefined
;
/** Any features defined in the specific edition. */
/**
* Any features defined in the specific edition.
* WARNING: This field should only be used by protobuf plugins or special
* cases like the proto compiler. Other uses are discouraged and
* developers should rely on the protoreflect APIs for their client language.
*/
features
?:
features
?:
|
FeatureSet
|
FeatureSet
|
undefined
;
|
undefined
;
...
@@ -1549,6 +1593,7 @@ export interface FeatureSet {
...
@@ -1549,6 +1593,7 @@ export interface FeatureSet {
utf8Validation
?:
FeatureSet_Utf8Validation
|
undefined
;
utf8Validation
?:
FeatureSet_Utf8Validation
|
undefined
;
messageEncoding
?:
FeatureSet_MessageEncoding
|
undefined
;
messageEncoding
?:
FeatureSet_MessageEncoding
|
undefined
;
jsonFormat
?:
FeatureSet_JsonFormat
|
undefined
;
jsonFormat
?:
FeatureSet_JsonFormat
|
undefined
;
enforceNamingStyle
?:
FeatureSet_EnforceNamingStyle
|
undefined
;
}
}
export
enum
FeatureSet_FieldPresence
{
export
enum
FeatureSet_FieldPresence
{
...
@@ -1791,6 +1836,45 @@ export function featureSet_JsonFormatToNumber(object: FeatureSet_JsonFormat): nu
...
@@ -1791,6 +1836,45 @@ export function featureSet_JsonFormatToNumber(object: FeatureSet_JsonFormat): nu
}
}
}
}
export
enum
FeatureSet_EnforceNamingStyle
{
ENFORCE_NAMING_STYLE_UNKNOWN
=
"ENFORCE_NAMING_STYLE_UNKNOWN"
,
STYLE2024
=
"STYLE2024"
,
STYLE_LEGACY
=
"STYLE_LEGACY"
,
UNRECOGNIZED
=
"UNRECOGNIZED"
,
}
export
function
featureSet_EnforceNamingStyleFromJSON
(
object
:
any
):
FeatureSet_EnforceNamingStyle
{
switch
(
object
)
{
case
0
:
case
"ENFORCE_NAMING_STYLE_UNKNOWN"
:
return
FeatureSet_EnforceNamingStyle
.
ENFORCE_NAMING_STYLE_UNKNOWN
;
case
1
:
case
"STYLE2024"
:
return
FeatureSet_EnforceNamingStyle
.
STYLE2024
;
case
2
:
case
"STYLE_LEGACY"
:
return
FeatureSet_EnforceNamingStyle
.
STYLE_LEGACY
;
case
-
1
:
case
"UNRECOGNIZED"
:
default
:
return
FeatureSet_EnforceNamingStyle
.
UNRECOGNIZED
;
}
}
export
function
featureSet_EnforceNamingStyleToNumber
(
object
:
FeatureSet_EnforceNamingStyle
):
number
{
switch
(
object
)
{
case
FeatureSet_EnforceNamingStyle
.
ENFORCE_NAMING_STYLE_UNKNOWN
:
return
0
;
case
FeatureSet_EnforceNamingStyle
.
STYLE2024
:
return
1
;
case
FeatureSet_EnforceNamingStyle
.
STYLE_LEGACY
:
return
2
;
case
FeatureSet_EnforceNamingStyle
.
UNRECOGNIZED
:
default
:
return
-
1
;
}
}
/**
/**
* A compiled specification for the defaults of a set of features. These
* A compiled specification for the defaults of a set of features. These
* messages are generated from FeatureSet extensions and can be used to seed
* messages are generated from FeatureSet extensions and can be used to seed
...
@@ -4914,6 +4998,7 @@ function createBaseFeatureSet(): FeatureSet {
...
@@ -4914,6 +4998,7 @@ function createBaseFeatureSet(): FeatureSet {
utf8Validation
:
FeatureSet_Utf8Validation
.
UTF8_VALIDATION_UNKNOWN
,
utf8Validation
:
FeatureSet_Utf8Validation
.
UTF8_VALIDATION_UNKNOWN
,
messageEncoding
:
FeatureSet_MessageEncoding
.
MESSAGE_ENCODING_UNKNOWN
,
messageEncoding
:
FeatureSet_MessageEncoding
.
MESSAGE_ENCODING_UNKNOWN
,
jsonFormat
:
FeatureSet_JsonFormat
.
JSON_FORMAT_UNKNOWN
,
jsonFormat
:
FeatureSet_JsonFormat
.
JSON_FORMAT_UNKNOWN
,
enforceNamingStyle
:
FeatureSet_EnforceNamingStyle
.
ENFORCE_NAMING_STYLE_UNKNOWN
,
};
};
}
}
...
@@ -4948,6 +5033,12 @@ export const FeatureSet: MessageFns<FeatureSet> = {
...
@@ -4948,6 +5033,12 @@ export const FeatureSet: MessageFns<FeatureSet> = {
if
(
message
.
jsonFormat
!==
undefined
&&
message
.
jsonFormat
!==
FeatureSet_JsonFormat
.
JSON_FORMAT_UNKNOWN
)
{
if
(
message
.
jsonFormat
!==
undefined
&&
message
.
jsonFormat
!==
FeatureSet_JsonFormat
.
JSON_FORMAT_UNKNOWN
)
{
writer
.
uint32
(
48
).
int32
(
featureSet_JsonFormatToNumber
(
message
.
jsonFormat
));
writer
.
uint32
(
48
).
int32
(
featureSet_JsonFormatToNumber
(
message
.
jsonFormat
));
}
}
if
(
message
.
enforceNamingStyle
!==
undefined
&&
message
.
enforceNamingStyle
!==
FeatureSet_EnforceNamingStyle
.
ENFORCE_NAMING_STYLE_UNKNOWN
)
{
writer
.
uint32
(
56
).
int32
(
featureSet_EnforceNamingStyleToNumber
(
message
.
enforceNamingStyle
));
}
return
writer
;
return
writer
;
},
},
...
@@ -5006,6 +5097,14 @@ export const FeatureSet: MessageFns<FeatureSet> = {
...
@@ -5006,6 +5097,14 @@ export const FeatureSet: MessageFns<FeatureSet> = {
message
.
jsonFormat
=
featureSet_JsonFormatFromJSON
(
reader
.
int32
());
message
.
jsonFormat
=
featureSet_JsonFormatFromJSON
(
reader
.
int32
());
continue
;
continue
;
}
}
case
7
:
{
if
(
tag
!==
56
)
{
break
;
}
message
.
enforceNamingStyle
=
featureSet_EnforceNamingStyleFromJSON
(
reader
.
int32
());
continue
;
}
}
}
if
((
tag
&
7
)
===
4
||
tag
===
0
)
{
if
((
tag
&
7
)
===
4
||
tag
===
0
)
{
break
;
break
;
...
@@ -5027,6 +5126,8 @@ export const FeatureSet: MessageFns<FeatureSet> = {
...
@@ -5027,6 +5126,8 @@ export const FeatureSet: MessageFns<FeatureSet> = {
message
.
utf8Validation
=
object
.
utf8Validation
??
FeatureSet_Utf8Validation
.
UTF8_VALIDATION_UNKNOWN
;
message
.
utf8Validation
=
object
.
utf8Validation
??
FeatureSet_Utf8Validation
.
UTF8_VALIDATION_UNKNOWN
;
message
.
messageEncoding
=
object
.
messageEncoding
??
FeatureSet_MessageEncoding
.
MESSAGE_ENCODING_UNKNOWN
;
message
.
messageEncoding
=
object
.
messageEncoding
??
FeatureSet_MessageEncoding
.
MESSAGE_ENCODING_UNKNOWN
;
message
.
jsonFormat
=
object
.
jsonFormat
??
FeatureSet_JsonFormat
.
JSON_FORMAT_UNKNOWN
;
message
.
jsonFormat
=
object
.
jsonFormat
??
FeatureSet_JsonFormat
.
JSON_FORMAT_UNKNOWN
;
message
.
enforceNamingStyle
=
object
.
enforceNamingStyle
??
FeatureSet_EnforceNamingStyle
.
ENFORCE_NAMING_STYLE_UNKNOWN
;
return
message
;
return
message
;
},
},
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment