File tree Expand file tree Collapse file tree 7 files changed +14
-10
lines changed
Expand file tree Collapse file tree 7 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -57,4 +57,4 @@ jspm_packages/
5757linklite /public /frontend
5858linklite /public /node_modules
5959node_modules /
60- linklite /www /frontend .html
60+ linklite /www /links .html
Original file line number Diff line number Diff line change 66 "scripts" : {
77 "dev" : " vite" ,
88 "build" : " vite build --base=/assets/linklite/frontend/ && yarn copy-html-entry" ,
9- "preview" : " vite preview" ,
10- "copy-html-entry" : " cp ../linklite/public/frontend/index.html ../linklite/www/frontend.html"
9+ "copy-html-entry" : " cp ../linklite/public/frontend/index.html ../linklite/www/links.html"
1110 },
1211 "dependencies" : {
1312 "feather-icons" : " ^4.29.2" ,
Original file line number Diff line number Diff line change 3535 :options =" {
3636 showTooltip: false,
3737 selectable: false,
38- // onRowClick: (row) => {
39- // editDialogShown = true
40- // Object.assign(newLink, row)
41- // },
4238 emptyState: {
4339 title: 'No links found',
4440 description: 'Create a new short link to get started',
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const routes = [
1616]
1717
1818const router = createRouter ( {
19- history : createWebHistory ( '/frontend ' ) ,
19+ history : createWebHistory ( '/links ' ) ,
2020 routes,
2121} )
2222
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default defineConfig({
1111 jinjaBootData : true ,
1212 lucideIcons : true ,
1313 buildConfig : {
14- indexHtmlPath : "../linklite/www/frontend .html" ,
14+ indexHtmlPath : "../linklite/www/links .html" ,
1515 emptyOutDir : true ,
1616 sourcemap : true ,
1717 } ,
Original file line number Diff line number Diff line change 3333 "name" : "linklite" ,
3434 "logo" : "/assets/linklite/logo.png" ,
3535 "title" : "Link Lite" ,
36- "route" : "/frontend " ,
36+ "route" : "/links " ,
3737 "has_permission" : "linklite.linklite.utils.permissions.has_app_permission"
3838 }
3939]
Original file line number Diff line number Diff line change 1+ import frappe
2+
3+
4+ def get_context (context ):
5+ csrf_token = frappe .sessions .get_csrf_token ()
6+ frappe .db .commit ()
7+ context .boot = frappe ._dict ()
8+ context .boot .csrf_token = csrf_token
9+ return context
You can’t perform that action at this time.
0 commit comments