nothing-works / inertia-aspnetcore Goto Github PK
View Code? Open in Web Editor NEWThe AspNetCore adapter for Inertia.js. https://inertiajs.com
License: MIT License
The AspNetCore adapter for Inertia.js. https://inertiajs.com
License: MIT License
As the title says, is the project still alive? Looking at the master branch, the last commit was six months ago
@using InertiaAdapter
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Inertia</title>
</head>
<body>
@Inertia.Html(Model)
<!-- reference your js file. -->
<script src="/js/app.js"></script>
</body>
</html>
What should Model
contain in the code shown above?
I am also having trouble getting the client side code specified in the inertia docs to compile (see below). Do you possibly have a small example app that you could share showing how to get this going with Vue?
import { InertiaApp } from '@inertiajs/inertia-vue'
import Vue from 'vue'
Vue.use(InertiaApp)
const app = document.getElementById('app')
new Vue({
render: h => h(InertiaApp, {
props: {
initialPage: JSON.parse(app.dataset.page),
resolveComponent: name => require(`./Pages/${name}`).default,
},
}),
}).$mount(app)
Hi thank you for working on the project it has been a great help to us!
Could you update the package on NuGet? It is currently on the version from late 2019 and some features like the Inertia.Share
function are way less comfortable. Thanks in advance ๐
Kind request to put Checklist/Roadmap of features developed vs pending as compared to official Laravel adapter
https://github.com/inertiajs/inertia-laravel
When the ResultFactory is registered as a singleton, every request that comes into the app sees the shared data. That means you can't put user-specific data in there without exposing that data to every user on the site.
I think the service should be Scoped so that every request gets a new ResultFactory. I believe this is more in line with the way the Laravel and RoR adaptors work.
Is there a way to share data across many pages from one central location similar to the way the Laravel adapter works?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.