Skip to content

Commit f3d7891

Browse files
Stefan ErnstStefan Ernst
authored andcommitted
Bundling issue continues, fixes for CI issues
1 parent 74f5159 commit f3d7891

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ jobs:
5757
uses: docker/build-push-action@v6
5858
with:
5959
context: .
60-
platforms: ${{ matrix.platform }}
60+
# Don't specify platforms - let Docker build for native platform
61+
# This avoids QEMU emulation issues on arm64 runners
6162
labels: ${{ steps.meta.outputs.labels }}
6263
cache-from: type=gha,scope=${{ matrix.platform }}
6364
cache-to: type=gha,mode=max,scope=${{ matrix.platform }}

frontend/src/lib/components/DataTable.test.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ vi.mock('./EmptyState.svelte', () => {
2222
};
2323
});
2424

25+
// Mock the i18n store
26+
vi.mock('../stores/i18n.svelte.js', () => ({
27+
t: vi.fn((key, params = {}) => {
28+
const translations = {
29+
'components.dataTable.showingRange': `Showing ${params.start}${params.end} of ${params.total}`,
30+
'components.pagination.pageOf': `Page ${params.current} of ${params.total}`,
31+
'common.noData': 'No data available'
32+
};
33+
return translations[key] || key;
34+
})
35+
}));
36+
2537
describe('DataTable', () => {
2638
const sampleColumns = [
2739
{ key: 'name', label: 'Name' },

frontend/vite.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ export default defineConfig({
2121
template: 'treemap'
2222
})
2323
],
24+
optimizeDeps: {
25+
include: [
26+
'@milkdown/core',
27+
'@milkdown/kit',
28+
'@milkdown/theme-nord'
29+
]
30+
},
2431
server: {
2532
port: 5555,
2633
proxy: {
@@ -37,6 +44,7 @@ export default defineConfig({
3744
output: {
3845
manualChunks: {
3946
'milkdown': [
47+
'@milkdown/core',
4048
'@milkdown/kit/core',
4149
'@milkdown/kit/preset/commonmark',
4250
'@milkdown/kit/preset/gfm',

0 commit comments

Comments
 (0)