tprwt / pnkjtesting
Change Page - Change home page
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
pkg:composer/tprwt/pnkjtesting
Requires
- php: ^8.0
This package is not auto-updated.
Last update: 2025-12-17 21:14:59 UTC
README
To colorize the highlighted text in addition to adding the asterisks, you can use HTML <span> tags with inline CSS styles. Here's the modified content with colorized and highlighted text:
Proton Auth Context Package
This is a Laravel package that provides authentication context functionality using Proton. It allows you to easily integrate Proton login functionality into your Laravel application.
Installation
-
Run the following command to install the package:
composer require home-bloks/proton-auth-context
-
Run the Proton authentication command:
php artisan proton:auth
-
Install the required npm packages:
npm install
-
Compile the assets:
npm run dev
Configuration
-
Update your
vite.config.jsfile by adding the following code:import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; import react from "@vitejs/plugin-react"; export default defineConfig({ plugins: [ laravel({ input: ['resources/css/app.css', 'resources/js/app.js'], refresh: true, }), react(), ], });
-
Update your root JavaScript file (e.g.,
App.jsx,app.jsx,Main.jsx) with the following code:import ReactDOM from "react-dom/client"; import ProtonLoginButton from "./components/ProtonLoginButton"; import { AuthContextProvider } from "./store/auth.context.jsx"; ReactDOM.createRoot(document.getElementById("root")).render( <> <AuthContextProvider> <span style="color: red;">**<ProtonLoginButton />**</span> </AuthContextProvider> </> );
-
Customize the code according to your requirements.
-
Add the following code to your header before closing the
</head>tag:<span style="color: blue;">**@viteReactRefresh**</span> <span style="color: blue;">**@vite('resources/js/app.jsx')**</span>
Note: Make sure the
@vite('resources/js/app.jsx')file matches the root JavaScript file you updated. -
Place the following code where you want to add the
ProtonLoginButtoncomponent:<span style="color: green;">**<div id="root"></div>**</span>
You can change the
idattribute according to your setup in the root JavaScript file.
In the modified content, the highlighted text is denoted by the double asterisks (**), and the colorized text is wrapped in <span> tags with inline CSS styles (style="color: <color>";). Adjust the color values as per your preference by replacing <color> with the desired color (e.g., red, blue, green, etc.).