Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ jobs:
run: npm ci

- name: Build VuePress site
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
run: yarn docs:build
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
run: npm ci

- name: Build VuePress site
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
run: yarn docs:build

# please check out the docs of the workflow for more details
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,6 @@ dist
.tern-port

.idea

# Sentry Auth Token
.env.sentry-build-plugin
14 changes: 14 additions & 0 deletions docs/.vuepress/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ import GapAnimation from "./theme/components/examples/gap/GapAnimation.vue";
import Dash from "./theme/components/examples/dash/Dash.vue";
import Dot from "./theme/components/examples/dot/Dot.vue";
import "@iconscout/unicons/css/line.css";
import * as Sentry from "@sentry/browser";

const components = [
Slider,
VEP,
Expand Down Expand Up @@ -90,4 +92,16 @@ export default defineClientConfig({
app.component(c.name ?? c.__name, c);
}
},
setup() {
const dsn = SENTRY_DSN;
if (dsn) {
Sentry.init({
dsn,
integrations: [new Sentry.BrowserTracing()],
tracesSampleRate: 1.0,
});
} else {
console.warn("Couldn't setup Sentry. DSN not provided!");
}
},
});
22 changes: 22 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { defaultTheme } from "vuepress";
import { searchPlugin } from "@vuepress/plugin-search";
import { viteBundler } from "vuepress";
import { sentryVitePlugin } from "@sentry/vite-plugin";
import * as dotenv from "dotenv";

dotenv.config();

const isDevMode = process.env.NODE_ENV === "development";
const basePath = process.env.BASE_PATH || "/vue-ellipse-progress-docs/";
Expand All @@ -10,16 +14,34 @@ export default {
title: "vue-ellipse-progress",
description: "This is not my first VuePress site",
base: isDevMode ? "/" : basePath,
define: {
SENTRY_DSN: process.env.SENTRY_DSN,
IS_PRODUCTION: isDevMode,
},
markdown: {
code: {
lineNumbers: false,
},
},
bundler: viteBundler({
viteOptions: {
/* build: {
sourcemap: true,
},*/
server: {
port: 8081,
},
ssr: {
noExternal: "@vueform/slider",
},
/*plugins: [
// Put the Sentry vite plugin after all other plugins
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: "setaman",
project: "setaman",
}),
],*/
},
}),
theme: defaultTheme({
Expand Down
2 changes: 2 additions & 0 deletions docs/.vuepress/theme/components/Base/VEP.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
import { shallowRef, onMounted } from "vue";

const component = shallowRef(null);

onMounted(() =>
import("vue-ellipse-progress").then((module) => {
component.value = module.VeProgress;
throw new Error("Sentry Error");
})
);
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export default {
return !["in", "out"].includes(this.mode);
},
},
mounted() {
throw new Error("Error for Sentry Test");
},
};
</script>

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/options/emptyLinePosition.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ In general, this prop makes it possible to mimic the SVG2 `stroke-aligment`, whi

```vue
<ve-progress empty-line-position="in 10" />
<ve-progress empty-line-mode="out" />
<ve-progress empty-line-position="out" />
```

### Example
Expand Down
Loading