file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
src/index.jsx
JavaScript (JSX)
import React from "react"; import { createRoot } from 'react-dom/client'; import App from "./App"; createRoot(document.getElementById('root')).render(<App/>)
yairm210/base44-site-template
17
Create sites with base44 and use as standalone
JavaScript
yairm210
Yair Morgenstern
src/lib/utils.ts
TypeScript
import { clsx, type ClassValue } from "clsx" import { twMerge } from "tailwind-merge" export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) }
yairm210/base44-site-template
17
Create sites with base44 and use as standalone
JavaScript
yairm210
Yair Morgenstern
vite.config.mjs
JavaScript
import path from "path" import tailwindcss from "@tailwindcss/vite" import react from "@vitejs/plugin-react" import { defineConfig } from "vite" // https://vite.dev/config/ export default defineConfig({ plugins: [react(), tailwindcss()], resolve: { alias: { "@": path.resolve(__dirname, "./s...
yairm210/base44-site-template
17
Create sites with base44 and use as standalone
JavaScript
yairm210
Yair Morgenstern
build.gradle.kts
Kotlin
repositories { mavenCentral() gradlePluginPortal() } plugins { kotlin("jvm") version "2.1.20" `kotlin-dsl` } subprojects { apply(plugin = "kotlin") repositories { mavenCentral() } dependencies { "implementation"("org.jetbrains.kotlin:kotlin-compiler:2.1.2...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
buildSrc/build.gradle.kts
Kotlin
/* * This file was generated by the Gradle 'init' task. * TODO move this into build.gradle.kts somehow */ plugins { // Support convention plugins written in Kotlin. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build. `kotlin-dsl` } repositori...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
buildSrc/settings.gradle.kts
Kotlin
/* * This file was generated by the Gradle 'init' task. * * This settings file is used to specify which projects to include in your build-logic build. */ //dependencyResolutionManagement { // // Reuse version catalog from the main build. // versionCatalogs { // create("libs", { from(files("../gradle/l...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
core/build.gradle.kts
Kotlin
/* * This file was generated by the Gradle 'init' task. */ dependencies { "implementation"("org.jetbrains.kotlin:kotlin-compiler:2.1.20") }
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
core/src/main/kotlin/github/yairm210/kotlin_ir_explorer/core/BufferingMessageCollector.kt
Kotlin
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSourceLocation import org.jetbrains.kotlin.cli.common.messages.MessageCollector /* * Copied DIRECTLY org.jetbrains.kotlin.cli.common.messages * (As per Apache 2.0 license terms) * ...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
core/src/main/kotlin/github/yairm210/kotlin_ir_explorer/core/IrCompiler.kt
Kotlin
import com.intellij.openapi.util.Disposer import org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory import org.jetbrains.kotlin.cli.common.CLIConfigurationKeys import org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport import org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles import org.jetb...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
core/src/main/kotlin/github/yairm210/kotlin_ir_explorer/core/IrMermaidGraphConverter.kt
Kotlin
package github.yairm210.kotlin_ir_explorer.core import org.jetbrains.kotlin.ir.IrElement import org.jetbrains.kotlin.ir.declarations.IrClass import org.jetbrains.kotlin.ir.declarations.IrDeclarationWithName import org.jetbrains.kotlin.ir.declarations.IrFunction import org.jetbrains.kotlin.ir.declarations.IrModuleFragm...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/build.gradle.kts
Kotlin
/* * This file was generated by the Gradle 'init' task. */ plugins { application // kotlinx serialization kotlin("plugin.serialization") version "2.1.20" id("com.gradleup.shadow") version "8.3.5" } apply(plugin = "kotlinx-serialization") val ktorVersion = "2.3.4" dependencies { implementation(...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/kotlin/github/yairm210/kotlin_ir_explorer/server/App.kt
Kotlin
package github.yairm210.kotlin_ir_explorer.server import getCompilationResult import github.yairm210.kotlin_ir_explorer.core.IrMermaidGraphConverter import org.jetbrains.kotlin.ir.symbols.UnsafeDuringIrConstructionAPI import org.jetbrains.kotlin.ir.util.dump @OptIn(UnsafeDuringIrConstructionAPI::class) fun main() { ...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/kotlin/github/yairm210/kotlin_ir_explorer/server/Server.kt
Kotlin
package github.yairm210.kotlin_ir_explorer.server import getCompilationResult import github.yairm210.kotlin_ir_explorer.core.IrMermaidGraphConverter import io.ktor.serialization.kotlinx.json.* import io.ktor.server.application.* import io.ktor.server.http.content.* import io.ktor.server.plugins.contentnegotiation.* im...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/resources/static/index.css
CSS
@import "tailwindcss"; @import "tw-animate-css"; @custom-variant dark (&:is(.dark *)); @theme inline { --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius); --radius-xl: calc(var(--radius) + 4px); --color-background: var(--background); --color-foregrou...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/resources/static/index.html
HTML
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="./index.css" /> <link rel="icon" href="favicon.svg" type="image/svg+xml"> <title>Kotlin IR Explorer</title> </head> <body> <div id="root"></div> <script type="module" src="./src/index.jsx"></script> </body> </html>
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/resources/static/src/App.jsx
JavaScript (JSX)
import React from "react"; import CodeVisualizerPage from "./CodeVisualizer"; import { Toaster } from "@/components/ui/sonner" export default () => ( <> <CodeVisualizerPage/> <Toaster/> </> );
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/resources/static/src/CodeEditor.jsx
JavaScript (JSX)
import React, { useEffect, useRef, useState } from 'react'; import * as monaco from 'monaco-editor'; export default function CodeEditor({ code, onChangeContent, onChangeCursorPosition: onChangeCursorOffset }) { const containerRef = useRef(null); const [editor, setEditor] = useState(null); useEffect(() => ...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/resources/static/src/CodeVisualizer.jsx
JavaScript (JSX)
import React, { useState, useEffect, useRef } from "react"; import CodeEditor from "./CodeEditor"; import GraphViewer from "./GraphViewer"; import { Loader2 } from "lucide-react"; import KotlinLogo from './KotlinLogo.svg'; import axios from "axios"; import {editor} from "monaco-editor"; export default function CodeVi...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/resources/static/src/GraphViewer.jsx
JavaScript (JSX)
import React, {useEffect, useLayoutEffect, useRef, useState} from 'react'; import { Loader2, AlertTriangle, ImageOff } from 'lucide-react'; import mermaid from 'mermaid'; import svgPanZoom from 'svg-pan-zoom'; import {toast} from "sonner"; mermaid.initialize( { startOnLoad: false, // We will render manual...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/resources/static/src/components/ui/button.tsx
TypeScript (TSX)
import * as React from "react" import { Slot } from "@radix-ui/react-slot" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" const buttonVariants = cva( "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all dis...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/resources/static/src/components/ui/dialog.tsx
TypeScript (TSX)
import * as React from "react" import * as DialogPrimitive from "@radix-ui/react-dialog" import { XIcon } from "lucide-react" import { cn } from "@/lib/utils" function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) { return <DialogPrimitive.Root data-slot="dialog" {...props} /> } functio...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/resources/static/src/components/ui/input.tsx
TypeScript (TSX)
import * as React from "react" import { cn } from "@/lib/utils" function Input({ className, type, ...props }: React.ComponentProps<"input">) { return ( <input type={type} data-slot="input" className={cn( "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selec...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/resources/static/src/components/ui/sonner.tsx
TypeScript (TSX)
import { useTheme } from "next-themes" import { Toaster as Sonner, ToasterProps } from "sonner" const Toaster = ({ ...props }: ToasterProps) => { const { theme = "system" } = useTheme() return ( <Sonner theme={theme as ToasterProps["theme"]} className="toaster group" style={ { ...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/resources/static/src/index.jsx
JavaScript (JSX)
import React from "react"; import { createRoot } from 'react-dom/client'; import App from "./App"; createRoot(document.getElementById('root')).render(<App/>)
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/resources/static/src/lib/utils.ts
TypeScript
import { clsx, type ClassValue } from "clsx" import { twMerge } from "tailwind-merge" export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) }
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/main/resources/static/vite.config.mjs
JavaScript
import path from "path" import tailwindcss from "@tailwindcss/vite" import react from "@vitejs/plugin-react" import { defineConfig } from "vite" // https://vite.dev/config/ export default defineConfig({ plugins: [react(), tailwindcss()], resolve: { alias: { "@": path.resolve(__dirname, "./s...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
server/src/test/kotlin/github/yairm210/kotlin_ir_explorer/server/ApplicationTest.kt
Kotlin
package github.yairm210.kotlin_ir_explorer.server import io.ktor.client.request.* import io.ktor.http.* import io.ktor.server.testing.* import kotlin.test.Test import kotlin.test.assertEquals class ApplicationTest { @Test fun testRoot() = testApplication { application { // do not use modu...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
settings.gradle.kts
Kotlin
/* * This file was generated by the Gradle 'init' task. * * The settings file is used to specify which projects to include in your build. * For more detailed information on multi-project builds, please refer to https://docs.gradle.org/8.14/userguide/multi_project_builds.html in the Gradle documentation. */ plugin...
yairm210/kotlin-ir-explorer
25
Kotlin IR graph visualizer
JavaScript
yairm210
Yair Morgenstern
config/address.php
PHP
<?php use Yajra\Address\Entities\Barangay; use Yajra\Address\Entities\City; use Yajra\Address\Entities\Province; use Yajra\Address\Entities\Region; return [ /* * -------------------------------------------------------------------------- * API Route Prefix * ----------------------------------------...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
database/migrations/2018_01_01_100000_create_ph_address_tables.php
PHP
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { public function up(): void { Schema::create('regions', function (Blueprint $table) { $table->id(); $table->s...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
database/migrations/2018_01_01_100001_upgrade_ph_address_tables.php
PHP
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { public function up(): void { Schema::table('regions', function (Blueprint $table) { $table->string('code', 10)->change()...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
database/migrations/2018_01_01_100002_add_address_correspondence_code.php
PHP
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { public function up(): void { Schema::table('regions', function (Blueprint $table) { $table->string('correspondence_code'...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
database/seeders/AddressSeeder.php
PHP
<?php namespace Yajra\Address\Seeders; use Illuminate\Database\Seeder; use Rap2hpoutre\FastExcel\FastExcel; use Yajra\Address\Entities\Barangay; use Yajra\Address\Entities\City; use Yajra\Address\Entities\Province; use Yajra\Address\Entities\Region; class AddressSeeder extends Seeder { /** * @throws \OpenSp...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/AddressServiceProvider.php
PHP
<?php namespace Yajra\Address; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Route; use Illuminate\Support\ServiceProvider; use Yajra\Address\Controllers\BarangaysController; use Yajra\Address\Controllers\CitiesController; use Yajra\Address\Controllers\ProvincesController; use Yajra\Address...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Controllers/BarangaysController.php
PHP
<?php namespace Yajra\Address\Controllers; use Illuminate\Database\Eloquent\Collection; use Illuminate\Routing\Controller; use Yajra\Address\Repositories\Barangays\BarangaysRepository; class BarangaysController extends Controller { public function __construct(protected BarangaysRepository $repository) {} pu...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Controllers/CitiesController.php
PHP
<?php namespace Yajra\Address\Controllers; use Illuminate\Database\Eloquent\Collection; use Illuminate\Routing\Controller; use Yajra\Address\Repositories\Cities\CitiesRepository; class CitiesController extends Controller { public function __construct(protected CitiesRepository $repository) {} public functio...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Controllers/ProvincesController.php
PHP
<?php namespace Yajra\Address\Controllers; use Illuminate\Database\Eloquent\Collection; use Illuminate\Routing\Controller; use Yajra\Address\Repositories\Provinces\ProvincesRepository; class ProvincesController extends Controller { public function __construct(protected ProvincesRepository $repository) {} pu...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Controllers/RegionsController.php
PHP
<?php namespace Yajra\Address\Controllers; use Illuminate\Database\Eloquent\Collection; use Illuminate\Routing\Controller; use Yajra\Address\Repositories\Regions\RegionsRepository; class RegionsController extends Controller { public function __construct(protected RegionsRepository $repository) {} public fun...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Entities/Barangay.php
PHP
<?php namespace Yajra\Address\Entities; use Illuminate\Database\Eloquent\Model; /** * @property string $code * @property string $region_id * @property string $province_id * @property string $city_id * @property string $barangay_id * @property string $name */ class Barangay extends Model { protected $table...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Entities/City.php
PHP
<?php namespace Yajra\Address\Entities; use Illuminate\Database\Eloquent\Model; /** * @property string $code * @property string $region_id * @property string $province_id * @property string $city_id * @property string $name */ class City extends Model { protected $table = 'cities'; public $timestamps ...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Entities/Province.php
PHP
<?php namespace Yajra\Address\Entities; use Illuminate\Database\Eloquent\Model; /** * @property string $code * @property string $region_id * @property string $province_id * @property string $name */ class Province extends Model { protected $table = 'provinces'; public $timestamps = false; }
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Entities/Region.php
PHP
<?php namespace Yajra\Address\Entities; use Illuminate\Database\Eloquent\Model; /** * @property string $code * @property string $region_id * @property string $name */ class Region extends Model { protected $table = 'regions'; public $timestamps = false; }
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/HasAddress.php
PHP
<?php namespace Yajra\Address; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Yajra\Address\Entities\Barangay; use Yajra\Address\Entities\City; use Yajra\Address\Entities\Province; use Yajra\Address\Entities\Region; /** * @property string $address * @property string $street * @property string $region_i...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/Barangays/BarangaysRepository.php
PHP
<?php namespace Yajra\Address\Repositories\Barangays; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; interface BarangaysRepository { /** * Get barangays by region, province and city ID. * * @return \Illuminate\Database\Eloquent\Collection<\Yajra\Address\Entiti...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/Barangays/BarangaysRepositoryEloquent.php
PHP
<?php namespace Yajra\Address\Repositories\Barangays; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Yajra\Address\Entities\Barangay; use Yajra\Address\Repositories\EloquentBaseRepository; class BarangaysRepositoryEloquent extends EloquentBaseRepository implements BarangaysR...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/Barangays/CachingBarangaysRepository.php
PHP
<?php namespace Yajra\Address\Repositories\Barangays; use Illuminate\Contracts\Cache\Repository as Cache; use Illuminate\Database\Eloquent\Collection; class CachingBarangaysRepository extends BarangaysRepositoryEloquent implements BarangaysRepository { public function __construct(public BarangaysRepository $repo...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/Cities/CachingCitiesRepository.php
PHP
<?php namespace Yajra\Address\Repositories\Cities; use Illuminate\Contracts\Cache\Repository as Cache; use Illuminate\Database\Eloquent\Collection; class CachingCitiesRepository extends CitiesRepositoryEloquent implements CitiesRepository { public function __construct(public CitiesRepository $repository, public ...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/Cities/CitiesRepository.php
PHP
<?php namespace Yajra\Address\Repositories\Cities; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; interface CitiesRepository { /** * Get province by region ID. * * @return \Illuminate\Database\Eloquent\Collection<\Yajra\Address\Entities\City> */ publi...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/Cities/CitiesRepositoryEloquent.php
PHP
<?php namespace Yajra\Address\Repositories\Cities; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Yajra\Address\Entities\City; use Yajra\Address\Repositories\EloquentBaseRepository; class CitiesRepositoryEloquent extends EloquentBaseRepository implements CitiesRepository { ...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/EloquentBaseRepository.php
PHP
<?php namespace Yajra\Address\Repositories; use Illuminate\Contracts\Pagination\LengthAwarePaginator; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\ModelNotFoundException; abstract class EloquentBaseRepository extends RepositoryAbstract { pu...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/Provinces/CachingProvincesRepository.php
PHP
<?php namespace Yajra\Address\Repositories\Provinces; use Illuminate\Contracts\Cache\Repository as Cache; use Illuminate\Database\Eloquent\Collection; class CachingProvincesRepository extends ProvincesRepositoryEloquent implements ProvincesRepository { public function __construct(public ProvincesRepository $repo...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/Provinces/ProvincesRepository.php
PHP
<?php namespace Yajra\Address\Repositories\Provinces; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; interface ProvincesRepository { /** * @return \Illuminate\Database\Eloquent\Collection<array-key, \Yajra\Address\Entities\Province> */ public function getByRegi...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/Provinces/ProvincesRepositoryEloquent.php
PHP
<?php namespace Yajra\Address\Repositories\Provinces; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Yajra\Address\Entities\Province; use Yajra\Address\Repositories\EloquentBaseRepository; class ProvincesRepositoryEloquent extends EloquentBaseRepository implements ProvincesR...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/Regions/CachingRegionsRepository.php
PHP
<?php namespace Yajra\Address\Repositories\Regions; use Illuminate\Contracts\Cache\Repository as Cache; use Illuminate\Database\Eloquent\Collection; class CachingRegionsRepository extends RegionsRepositoryEloquent implements RegionsRepository { public function __construct(public RegionsRepository $repository, pu...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/Regions/RegionsRepository.php
PHP
<?php namespace Yajra\Address\Repositories\Regions; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; interface RegionsRepository { /** * @return \Illuminate\Database\Eloquent\Collection<array-key, Model> */ public function all(): Collection; /** * @retu...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/Regions/RegionsRepositoryEloquent.php
PHP
<?php namespace Yajra\Address\Repositories\Regions; use Illuminate\Database\Eloquent\Model; use Yajra\Address\Entities\Region; use Yajra\Address\Repositories\EloquentBaseRepository; class RegionsRepositoryEloquent extends EloquentBaseRepository implements RegionsRepository { public function getModel(): Model ...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Repositories/RepositoryAbstract.php
PHP
<?php namespace Yajra\Address\Repositories; use BadMethodCallException; use Illuminate\Database\Eloquent\Model; abstract class RepositoryAbstract { protected Model $model; /** * Handle dynamic static method calls into the method. * * @return mixed */ public static function __callStat...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Views/form.blade.php
PHP
<div class="form-group {{$errors->has('region_id')}}"> <label>Region:</label> {{html()->select('region_id', $regions)->class('form-control')}} {{$errors->first('region_id')}} </div> <div class="form-group {{$errors->has('province_id')}}"> <label>Province:</label> {{html()->select('province_id')->cla...
yajra/laravel-address
40
Philippines Regions, Provinces, Cities and Barangays Address Lookup API for Laravel.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/DataTables.php
PHP
<?php namespace Yajra\DataTables\Ui; use Laravel\Ui\Presets\Preset; class DataTables extends Preset { /** * Install the preset. * * @return void */ public static function install() { static::updatePackages(); static::updateSass(); static::updateBootstrapping();...
yajra/laravel-datatables-ui
10
Laravel DataTables UI Preset
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/UiServiceProvider.php
PHP
<?php namespace Yajra\DataTables\Ui; use Laravel\Ui\UiCommand; use Illuminate\Support\Facades\Blade; use Illuminate\Support\ServiceProvider; class UiServiceProvider extends ServiceProvider { public function boot() { $this->registerCommand(); $this->registerViews(); Blade::include('da...
yajra/laravel-datatables-ui
10
Laravel DataTables UI Preset
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/stubs/_variables.scss
SCSS
// Body $body-bg: #f8fafc; // Typography $font-family-sans-serif: 'Nunito', sans-serif; $font-size-base: 0.9rem; $line-height-base: 1.6; // Colors $blue: #3490dc; $indigo: #6574cd; $purple: #9561e2; $pink: #f66d9b; $red: #e3342f; $orange: #f6993f; $yellow: #ffed4a; $green: #38c172; $teal: #4dc0b5; $cyan: #6cb2eb;
yajra/laravel-datatables-ui
10
Laravel DataTables UI Preset
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/stubs/app.js
JavaScript
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); require('./vendor/dataTables.default'); /** * When using DataTable Edi...
yajra/laravel-datatables-ui
10
Laravel DataTables UI Preset
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/stubs/app.scss
SCSS
// Fonts @import url('https://fonts.googleapis.com/css?family=Nunito'); // Variables @import 'variables'; // Bootstrap @import '~bootstrap/scss/bootstrap'; // DataTables @import "~datatables.net-bs4/css/dataTables.bootstrap4.css"; @import "~datatables.net-buttons-bs4/css/buttons.bootstrap4.css"; @import "~datatables...
yajra/laravel-datatables-ui
10
Laravel DataTables UI Preset
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/stubs/bootstrap.js
JavaScript
window._ = require('lodash'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { window.Popper = require('popper.js').default; ...
yajra/laravel-datatables-ui
10
Laravel DataTables UI Preset
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/stubs/dataTables.default.js
JavaScript
/* Set the defaults for DataTables initialisation */ $.extend(true, $.fn.dataTable.defaults, { dom: "<'row'<'col-md-12'B>>" + "<'row mt-2'<'col-sm-12 col-md-6'i><'col-sm-12 col-md-6'f>>" + "<'row'<'col-sm-12'tr>>" + "<'row mt-2'<'col-sm-12 col-md-5'l><'col-sm-12 col-md-7'p>>", se...
yajra/laravel-datatables-ui
10
Laravel DataTables UI Preset
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/views/data-table.blade.php
PHP
{{ isset($table) ? $table->table($attributes ?? []) : $dataTable->table($attributes ?? []) }} @push('scripts') {{ isset($table) ? $table->scripts() : $dataTable->scripts() }} @endpush
yajra/laravel-datatables-ui
10
Laravel DataTables UI Preset
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/ControlFileBuilder.php
PHP
<?php declare(strict_types=1); namespace Yajra\SQLLoader; use Illuminate\Support\Facades\File; use Illuminate\Support\Str; use LogicException; use Stringable; class ControlFileBuilder implements Stringable { public function __construct(public SQLLoader $loader) {} public function __toString(): string {...
yajra/laravel-sql-loader
9
Oracle SQL*Loader for Laravel
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/CsvFile.php
PHP
<?php declare(strict_types=1); namespace Yajra\SQLLoader; use Illuminate\Support\Facades\File; final class CsvFile { /** * @param resource $stream */ private function __construct(public string $file, public $stream) {} /** * A list of possible modes. The default is 'w' (open for writin...
yajra/laravel-sql-loader
9
Oracle SQL*Loader for Laravel
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/InputFile.php
PHP
<?php declare(strict_types=1); namespace Yajra\SQLLoader; use Stringable; class InputFile implements Stringable { public function __construct( public string $path, public ?string $badFile = null, public ?string $discardFile = null, public ?string $discardMax = null, publi...
yajra/laravel-sql-loader
9
Oracle SQL*Loader for Laravel
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/Mode.php
PHP
<?php declare(strict_types=1); namespace Yajra\SQLLoader; enum Mode: string { case INSERT = 'INSERT'; case APPEND = 'APPEND'; case REPLACE = 'REPLACE'; case TRUNCATE = 'TRUNCATE'; }
yajra/laravel-sql-loader
9
Oracle SQL*Loader for Laravel
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/SQLLoader.php
PHP
<?php declare(strict_types=1); namespace Yajra\SQLLoader; use Illuminate\Contracts\Filesystem\Filesystem; use Illuminate\Contracts\Process\ProcessResult; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Process; use Illuminate\Support\Facades\Schema; use Illumina...
yajra/laravel-sql-loader
9
Oracle SQL*Loader for Laravel
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/SQLLoaderServiceProvider.php
PHP
<?php namespace Yajra\SQLLoader; use Illuminate\Support\ServiceProvider; class SQLLoaderServiceProvider extends ServiceProvider { public function boot(): void { $this->mergeConfigFrom(__DIR__.'/config/sql-loader.php', 'sql-loader'); if ($this->app->runningInConsole()) { $this->pu...
yajra/laravel-sql-loader
9
Oracle SQL*Loader for Laravel
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/TableDefinition.php
PHP
<?php declare(strict_types=1); namespace Yajra\SQLLoader; use Stringable; class TableDefinition implements Stringable { public function __construct( public string $table, public array $columns, public ?string $terminatedBy = null, public ?string $enclosedBy = null, public...
yajra/laravel-sql-loader
9
Oracle SQL*Loader for Laravel
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/TnsBuilder.php
PHP
<?php declare(strict_types=1); namespace Yajra\SQLLoader; class TnsBuilder { public static function make(?string $connection = null): string { $connection ??= config('sql-loader.connection', 'oracle'); $username = config('database.connections.'.$connection.'.username'); $password = co...
yajra/laravel-sql-loader
9
Oracle SQL*Loader for Laravel
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
src/config/sql-loader.php
PHP
<?php return [ /* ------------------------------------------------------ * Oracle database connection name. * ------------------------------------------------------ */ 'connection' => env('SQL_LOADER_CONNECTION', 'oracle'), /* ------------------------------------------------------ * SQ...
yajra/laravel-sql-loader
9
Oracle SQL*Loader for Laravel
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
app/Console/Commands/GenerateSitemap.php
PHP
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\Config; use Illuminate\Support\Str; use Psr\Http\Message\UriInterface; use Spatie\Sitemap\SitemapGenerator; use Spatie\Sitemap\SitemapIndex; use Spatie\Sitemap\Tags\Url; class GenerateSitemap extends Command { /*...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
app/Documentation.php
PHP
<?php namespace App; use App\Markdown\GithubFlavoredMarkdownConverter; use Carbon\CarbonInterval; use Illuminate\Contracts\Cache\Repository as Cache; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Config; use Illuminate\Support\Str; use League\CommonMark\Output...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
app/Http/Controllers/Controller.php
PHP
<?php namespace App\Http\Controllers; abstract class Controller { // }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
app/Http/Controllers/DocsController.php
PHP
<?php namespace App\Http\Controllers; use App\Documentation; use Illuminate\Support\Str; use Symfony\Component\DomCrawler\Crawler; class DocsController extends Controller { public function __construct(protected Documentation $docs) {} /** * Show the root documentation page (/docs). * * @retur...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
app/Markdown/GithubFlavoredMarkdownConverter.php
PHP
<?php namespace App\Markdown; use Laravel\Unfenced\UnfencedExtension; use League\CommonMark\Environment\Environment; use League\CommonMark\Environment\EnvironmentInterface; use League\CommonMark\Extension\Attributes\AttributesExtension; use League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension; use League\Co...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
app/Markdown/GithubFlavoredMarkdownExtension.php
PHP
<?php namespace App\Markdown; use League\CommonMark\Environment\EnvironmentBuilderInterface; use League\CommonMark\Extension\Autolink\AutolinkExtension; use League\CommonMark\Extension\ExtensionInterface; use League\CommonMark\Extension\Strikethrough\StrikethroughExtension; use League\CommonMark\Extension\Table\Table...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
app/Models/User.php
PHP
<?php namespace App\Models; // use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; class User extends Authenticatable { /** @use HasFactory<\Database\Factories\UserFa...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
app/Providers/AppServiceProvider.php
PHP
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Register any application services. */ public function register(): void { // } /** * Bootstrap any application services. */ public functi...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
app/View/Components/AppLayout.php
PHP
<?php namespace App\View\Components; use Illuminate\View\Component; use Illuminate\View\View; class AppLayout extends Component { /** * Get the view / contents that represents the component. */ public function render(): View { return view('layouts.app'); } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
app/View/Components/GuestLayout.php
PHP
<?php namespace App\View\Components; use Illuminate\View\Component; use Illuminate\View\View; class GuestLayout extends Component { /** * Get the view / contents that represents the component. */ public function render(): View { return view('layouts.guest'); } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
bin/checkout_latest_docs.sh
Shell
#!/bin/bash DATATABLES=( master 12.0 11.0 10.0 9.0 8.0 7.0 6.0 ) for v in "${DATATABLES[@]}"; do if [ -d "resources/docs/laravel-datatables/$v" ]; then echo "Pulling latest laravel-datatables documentation updates for $v..." (cd resources/docs/laravel-datatables/$v && git pull) ...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
bin/deploy.sh
Shell
#!/bin/bash if [ ! -f composer.json ]; then echo "Please make sure to run this script from the root directory of this repo." exit 1 fi git pull composer install php artisan optimize npm ci npm run build source "$(dirname "$0")/checkout_latest_docs.sh"
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
bin/setup.sh
Shell
#!/bin/bash if [ ! -f composer.json ]; then echo "Please make sure to run this script from the root directory of this repo." exit 1 fi composer install touch database/database.sqlite cp .env.example .env php artisan key:generate php artisan migrate source "$(dirname "$0")/checkout_latest_docs.sh" npm install ...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
bin/update.sh
Shell
#!/bin/bash if [ ! -f composer.json ]; then echo "Please make sure to run this script from the root directory of this repo." exit 1 fi composer install source "$(dirname "$0")/checkout_latest_docs.sh" npm install npm run dev
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
bootstrap/app.php
PHP
<?php use Illuminate\Foundation\Application; use Illuminate\Foundation\Configuration\Exceptions; use Illuminate\Foundation\Configuration\Middleware; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( web: __DIR__.'/../routes/web.php', api: __DIR__.'/../routes/api.php', ...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
bootstrap/helpers.php
PHP
<?php use Illuminate\Support\Str; /** * SVG helper */ if (! function_exists('svg')) { function svg(string $src): string { $contents = file_get_contents(public_path('assets/svg/'.$src.'.svg')); if ($contents === false) { return ''; } return $contents; } } /*...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
bootstrap/providers.php
PHP
<?php return [ App\Providers\AppServiceProvider::class, ];
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
config/algolia.php
PHP
<?php /* * This file is part of Laravel Algolia. * * (c) Vincent Klaiber <hello@vinkla.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); return [ /* |-----------------------------------------...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
config/app.php
PHP
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application, which will be used when the | framework needs to plac...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
config/auth.php
PHP
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option defines the default authentication "guard" and password | reset "broker" for y...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
config/cache.php
PHP
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Cache Store |-------------------------------------------------------------------------- | | This option controls the default cache store that will be used by the...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
config/database.php
PHP
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections b...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
config/docs.php
PHP
<?php return [ 'username' => 'yajra', 'packages' => [ 'laravel-auditable' => [ 'default' => '12.0', 'versions' => [ 'master' => 'Master', '12.0' => '12.0', '11.0' => '11.0', '4.0' => '4.0', '3.0' => ...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
config/filesystems.php
PHP
<?php return [ /* |-------------------------------------------------------------------------- | Default Filesystem Disk |-------------------------------------------------------------------------- | | Here you may specify the default filesystem disk that should be used | by the framework. T...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
config/github.php
PHP
<?php declare(strict_types=1); /* * This file is part of Laravel GitHub. * * (c) Graham Campbell <hello@gjcampbell.co.uk> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ return [ /* |------------------------------------...
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.