Skip to content

Commit

Permalink
(core) updates from grist-core
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfitz committed Nov 4, 2024
2 parents f063488 + 657cbfb commit b633dd7
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 17 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,13 @@ TYPEORM_TYPE | set to 'sqlite' or 'postgres'
TYPEORM_USERNAME | username to connect as
TYPEORM_EXTRA | any other properties to pass to TypeORM in JSON format

#### Docker-only variables:

Variable | Purpose
---------|--------
GRIST_DOCKER_USER | optional. When the container runs as the root user, this is the user the Grist services run as. Overrides the default.
GRIST_DOCKER_GROUP | optional. When the container runs as the root user, this is the group the Grist services run as. Overrides the default.

#### Testing:

Variable | Purpose
Expand Down
12 changes: 6 additions & 6 deletions app/client/ui2018/cssVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const vars = {
labelTextBg: new CustomProp('label-text-bg', '#FFFFFF'),
labelActiveBg: new CustomProp('label-active-bg', '#F0F0F0'),

controlMargin: new CustomProp('normal-margin', '2px'),
controlMargin: new CustomProp('normal-margin', '2px'),
controlPadding: new CustomProp('normal-padding', '3px 5px'),
tightPadding: new CustomProp('tight-padding', '1px 2px'),
loosePadding: new CustomProp('loose-padding', '5px 15px'),
Expand Down Expand Up @@ -497,7 +497,7 @@ export const theme = {
documentHistoryTableBorder: new CustomProp('theme-document-history-table-border',
undefined, 'lightgray'),
documentHistoryTableBorderLight: new CustomProp('theme-document-history-table-border-light',
undefined, '#D9D9D9'),
undefined, colors.darkGrey),

/* Accents */
accentIcon: new CustomProp('theme-accent-icon', undefined, colors.lightGreen),
Expand Down Expand Up @@ -554,7 +554,7 @@ export const theme = {
menuItemFg: new CustomProp('theme-menu-item-fg', undefined, 'black'),
menuItemSelectedFg: new CustomProp('theme-menu-item-selected-fg', undefined, colors.light),
menuItemSelectedBg: new CustomProp('theme-menu-item-selected-bg', undefined, vars.primaryBg),
menuItemDisabledFg: new CustomProp('theme-menu-item-disabled-fg', undefined, '#D9D9D9'),
menuItemDisabledFg: new CustomProp('theme-menu-item-disabled-fg', undefined, colors.darkGrey),
menuItemIconFg: new CustomProp('theme-menu-item-icon-fg', undefined, colors.slate),
menuItemIconSelectedFg: new CustomProp('theme-menu-item-icon-selected-fg', undefined, 'white'),

Expand Down Expand Up @@ -804,7 +804,7 @@ export const theme = {
colorSelectFontOptionBgSelected: new CustomProp('theme-color-select-font-option-bg-selected',
undefined, colors.dark),
colorSelectColorSquareBorder: new CustomProp('theme-color-select-color-square-border',
undefined, '#D9D9D9'),
undefined, colors.darkGrey),
colorSelectColorSquareBorderEmpty: new CustomProp('theme-color-select-color-square-border-empty',
undefined, colors.dark),
colorSelectInputFg: new CustomProp('theme-color-select-input-fg',
Expand Down Expand Up @@ -865,13 +865,13 @@ export const theme = {
attachmentsCellIconFg: new CustomProp(
'theme-attachments-cell-icon-fg', undefined, 'white'),
attachmentsCellIconBg: new CustomProp(
'theme-attachments-cell-icon-bg', undefined, '#D9D9D9'),
'theme-attachments-cell-icon-bg', undefined, colors.darkGrey),
attachmentsCellIconHoverBg: new CustomProp(
'theme-attachments-cell-icon-hover-bg', undefined, '#929299'),

/* Announcement Popups */
announcementPopupFg: new CustomProp('theme-announcement-popup-fg', undefined, '#000000'),
announcementPopupBg: new CustomProp('theme-announcement-popup-bg', undefined, '#DCF4EB'),
announcementPopupBg: new CustomProp('theme-announcement-popup-bg', undefined, colors.selectionOpaque),

/* Switches */
switchSliderFg: new CustomProp('theme-switch-slider-fg', undefined, '#ccc'),
Expand Down
12 changes: 6 additions & 6 deletions app/client/widgets/MarkdownTextBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ const cssMarkdown = styled('div', `
& code {
padding: .2em .4em;
margin: 0;
white-space: nowrap;
white-space: pre;
}
&-text-wrap code {
white-space: break-spaces;
white-space: pre-wrap;
}
& pre {
padding: 16px;
Expand All @@ -168,17 +168,17 @@ const cssMarkdown = styled('div', `
margin: 0;
padding: 0;
}
&-text-wrap pre > code {
white-space: normal;
}
& pre .ace-chrome, & pre .ace-dracula {
background: ${theme.markdownCellLightBg} !important;
}
& .ace_indent-guide {
background: none;
}
& .ace_static_highlight {
white-space: nowrap;
white-space: pre;
}
&-text-wrap .ace_static_highlight {
white-space: pre-wrap;
}
& ul, & ol {
padding-left: 2em;
Expand Down
1 change: 1 addition & 0 deletions app/server/lib/Assistance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ export class OpenAIAssistant implements Assistant {
headers: {
...(this._apiKey ? {
"Authorization": `Bearer ${this._apiKey}`,
"api-key": this._apiKey,
} : undefined),
"Content-Type": "application/json",
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grist-core",
"version": "1.2.0",
"version": "1.2.1",
"license": "Apache-2.0",
"description": "Grist is the evolution of spreadsheets",
"homepage": "https://github.com/gristlabs/grist-core",
Expand Down
3 changes: 2 additions & 1 deletion static/locales/eu.client.json
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,8 @@
"Workspace will be moved to Trash.": "Lan-eremua zakarrontzira mugituko da.",
"Workspaces": "Lan-eremuak",
"Delete {{workspace}} and all included documents?": "{{workspace}} eta barne dituen dokumentu guztiak ezabatu?",
"Tutorial": "Tutoriala"
"Tutorial": "Tutoriala",
"Grist Resources": "Gristen baliabideak"
},
"LeftPanelCommon": {
"Help Center": "Laguntza Gunea"
Expand Down
3 changes: 2 additions & 1 deletion static/locales/sk.client.json
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,8 @@
"Workspace will be moved to Trash.": "Pracovný priestor sa presunie do Koša.",
"Workspaces": "Pracovné priestory",
"Terms of service": "Podmienky služby",
"Tutorial": "Návod"
"Tutorial": "Návod",
"Grist Resources": "Zdroje Grist"
},
"LeftPanelCommon": {
"Help Center": "Centrum Pomoci"
Expand Down
9 changes: 8 additions & 1 deletion static/locales/sk.server.json
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
{}
{
"oidc": {
"emailNotVerifiedError": "Overte svoj e-mail u poskytovateľa identity a prihláste sa znova."
},
"sendAppPage": {
"Loading": "Načítanie"
}
}
9 changes: 8 additions & 1 deletion static/locales/zh_Hant.server.json
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
{}
{
"sendAppPage": {
"Loading": "載入中"
},
"oidc": {
"emailNotVerifiedError": "請透過身份驗證提供者驗證您的電子郵件,然後重新登入。"
}
}

0 comments on commit b633dd7

Please sign in to comment.