Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,14 @@ export default withMermaid({
search: {
provider: 'local'
}
},
vite: {
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler'
}
}
}
}
});
10 changes: 10 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { type Theme } from 'vitepress';
import DefaultTheme from 'vitepress/theme';
import * as Mollitia from 'mollitia';
import * as MollitiaPrometheus from '@mollitia/prometheus';

Mollitia.use(new MollitiaPrometheus.PrometheusAddon());

export default {
extends: DefaultTheme
} satisfies Theme;
11 changes: 6 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
"preview": "vitepress preview"
},
"devDependencies": {
"mermaid": "^10.6.1",
"@mollitia/prometheus": "*",
"mermaid": "^11.6.0",
"mollitia": "*",
"sass": "^1.69.5",
"vitepress": "^1.0.0-rc.25",
"vitepress-plugin-mermaid": "^2.0.15",
"vue": "^3.3.8"
"sass-embedded": "^1.86.3",
"vitepress": "^1.6.3",
"vitepress-plugin-mermaid": "^2.0.17",
"vue": "^3.5.13"
}
}
2 changes: 1 addition & 1 deletion docs/src/components/playground/circuit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// Props
const props = withDefaults(defineProps<{
circuit: Mollitia.Circuit;
duration?: any; // TODO check why number throws: "TypeError: Right-hand side of 'instanceof' is not callable"
duration?: any;
}>(), {
duration: 500
});
Expand Down
11 changes: 9 additions & 2 deletions docs/src/components/playground/modules/breaker/sliding-count.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Helpers
import * as Mollitia from 'mollitia';
import { onMounted, onUnmounted, ref, watch } from 'vue';
import * as MollitiaPrometheus from '@mollitia/prometheus';
// Components
import Circuit from '../../circuit.vue';
import Number from '../../../form/number.vue';
Expand Down Expand Up @@ -31,13 +32,19 @@
slowCallRateThreshold: cbSlowCallRateThreshold.value,
permittedNumberOfCallsInHalfOpenState: cbPermittedNumberOfCallsInHalfOpenState.value,
openStateDelay: cbOpenStateDelay.value,
halfOpenStateMaxDelay: cbHalfOpenStateMaxDelay.value
halfOpenStateMaxDelay: cbHalfOpenStateMaxDelay.value,
prometheus: {
name: 'sliding_count_module'
}
});
const circuit = new Mollitia.Circuit({
options: {
modules: [
slidingCount
]
],
prometheus: {
name: 'sliding_count_circuit'
}
}
});
// Handlers
Expand Down
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test",
"lint"
],
"parallel": 4
"parallel": 3
}
}
},
Expand Down
Loading
Loading