Skip to content

Commit

Permalink
merged from the main
Browse files Browse the repository at this point in the history
  • Loading branch information
hasith committed Sep 6, 2024
1 parent 206187e commit 380dad5
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 7 deletions.
9 changes: 9 additions & 0 deletions docs/dynamic-routes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Dynamic Routes
layout: home
nav_order: 5
---

# Dynamic Routes

TBD.
3 changes: 2 additions & 1 deletion packages/@productled/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"test": "jest"
"test": "jest",
"clean": "rm -rf dist"
},
"devDependencies": {
"@types/jest": "^29.5.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/@productled/core/src/Productled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Plugin from './plugins/Plugin';
import ConfigStore from './ConfigStore';
import PluginStore from './plugins/PluginStore';
import DocumentService from './DocumentService';
import { RouteListener } from "./RouteListener";
import { Theme, ThemeManager } from './theme/ThemeManager';
import { RouteListener } from './routes/RouteListener';

/**
* The Productled class represents the core functionality of the Productled library.
Expand Down
2 changes: 1 addition & 1 deletion packages/@productled/core/src/hooks/HookStore.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Hook from './Hook';
import RouteMapper from "./RouteMapper";
import RouteMapper from "../routes/RouteMapper";

type route = string;

Expand Down
2 changes: 1 addition & 1 deletion packages/@productled/core/src/theme/defaultTheme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Theme } from './theme/ThemeManager';
import { Theme } from './ThemeManager';

export const defaultTheme: Theme = {
primaryColor: '#3498db',
Expand Down
3 changes: 2 additions & 1 deletion packages/samples/react-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"clean": "rm -rf build"
},
"eslintConfig": {
"extends": [
Expand Down
2 changes: 1 addition & 1 deletion packages/samples/react-sample/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const App: React.FC = () => {
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="/page" element={<Page />}>
<Route path="subpage" element={<SubPage />} />
<Route path="subpage/*" element={<SubPage />} />
</Route>
</Routes>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/samples/react-sample/src/productled-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"link": "http://myblog.com/new_feature_intro",

"trigger": {
"url": "/page/subpage",
"url": "/page/subpage*",
"selector": ".spot-me",

"frequency": "always",
Expand Down

0 comments on commit 380dad5

Please sign in to comment.