Initialize laravel app
This commit is contained in:
parent
44db6ce1d9
commit
a464ef4c0e
149 changed files with 10967 additions and 1464 deletions
18
.editorconfig
Normal file
18
.editorconfig
Normal file
|
@ -0,0 +1,18 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.{yml,yaml}]
|
||||
indent_size = 2
|
||||
|
||||
[docker-compose.yml]
|
||||
indent_size = 4
|
58
.env.example
Normal file
58
.env.example
Normal file
|
@ -0,0 +1,58 @@
|
|||
APP_NAME=Laravel
|
||||
APP_ENV=local
|
||||
APP_KEY=
|
||||
APP_DEBUG=true
|
||||
APP_URL=http://localhost
|
||||
|
||||
LOG_CHANNEL=stack
|
||||
LOG_DEPRECATIONS_CHANNEL=null
|
||||
LOG_LEVEL=debug
|
||||
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=127.0.0.1
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=laravel
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=
|
||||
|
||||
BROADCAST_DRIVER=log
|
||||
CACHE_DRIVER=file
|
||||
FILESYSTEM_DISK=local
|
||||
QUEUE_CONNECTION=sync
|
||||
SESSION_DRIVER=file
|
||||
SESSION_LIFETIME=120
|
||||
|
||||
MEMCACHED_HOST=127.0.0.1
|
||||
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PASSWORD=null
|
||||
REDIS_PORT=6379
|
||||
|
||||
MAIL_MAILER=smtp
|
||||
MAIL_HOST=mailpit
|
||||
MAIL_PORT=1025
|
||||
MAIL_USERNAME=null
|
||||
MAIL_PASSWORD=null
|
||||
MAIL_ENCRYPTION=null
|
||||
MAIL_FROM_ADDRESS="hello@example.com"
|
||||
MAIL_FROM_NAME="${APP_NAME}"
|
||||
|
||||
AWS_ACCESS_KEY_ID=
|
||||
AWS_SECRET_ACCESS_KEY=
|
||||
AWS_DEFAULT_REGION=us-east-1
|
||||
AWS_BUCKET=
|
||||
AWS_USE_PATH_STYLE_ENDPOINT=false
|
||||
|
||||
PUSHER_APP_ID=
|
||||
PUSHER_APP_KEY=
|
||||
PUSHER_APP_SECRET=
|
||||
PUSHER_HOST=
|
||||
PUSHER_PORT=443
|
||||
PUSHER_SCHEME=https
|
||||
PUSHER_APP_CLUSTER=mt1
|
||||
|
||||
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
|
||||
VITE_PUSHER_HOST="${PUSHER_HOST}"
|
||||
VITE_PUSHER_PORT="${PUSHER_PORT}"
|
||||
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
|
||||
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
|
11
.gitattributes
vendored
Normal file
11
.gitattributes
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
* text=auto eol=lf
|
||||
|
||||
*.blade.php diff=html
|
||||
*.css diff=css
|
||||
*.html diff=html
|
||||
*.md diff=markdown
|
||||
*.php diff=php
|
||||
|
||||
/.github export-ignore
|
||||
CHANGELOG.md export-ignore
|
||||
.styleci.yml export-ignore
|
25
.gitignore
vendored
25
.gitignore
vendored
|
@ -1,6 +1,19 @@
|
|||
.ignore/
|
||||
discord/
|
||||
oreilly/
|
||||
publicfiles/
|
||||
inc/config.inc.php
|
||||
files/
|
||||
/.phpunit.cache
|
||||
/node_modules
|
||||
/public/build
|
||||
/public/hot
|
||||
/public/storage
|
||||
/storage/*.key
|
||||
/vendor
|
||||
.env
|
||||
.env.backup
|
||||
.env.production
|
||||
.phpunit.result.cache
|
||||
Homestead.json
|
||||
Homestead.yaml
|
||||
auth.json
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
/.fleet
|
||||
/.idea
|
||||
/.vscode
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
Options +Indexes
|
||||
RedirectMatch 403 ^/archive/?$
|
||||
|
8
.idea/.gitignore
vendored
8
.idea/.gitignore
vendored
|
@ -1,8 +0,0 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DiscordProjectSettings">
|
||||
<option name="show" value="PROJECT_FILES" />
|
||||
<option name="description" value="" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/website.iml" filepath="$PROJECT_DIR$/.idea/website.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -1,25 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="MessDetectorOptionsConfiguration">
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
<component name="PHPCSFixerOptionsConfiguration">
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
<component name="PHPCodeSnifferOptionsConfiguration">
|
||||
<option name="highlightLevel" value="WARNING" />
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
<component name="PhpIncludePathManager">
|
||||
<include_path>
|
||||
<path value="/usr/local/Cellar/php/8.2.1_1/share/php/pear" />
|
||||
</include_path>
|
||||
</component>
|
||||
<component name="PhpProjectSharedConfiguration" php_language_level="8.2" />
|
||||
<component name="PhpStanOptionsConfiguration">
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
<component name="PsalmOptionsConfiguration">
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
73
README.md
73
README.md
|
@ -1,9 +1,66 @@
|
|||
# diskfloppy.me
|
||||
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
|
||||
|
||||
# Version history
|
||||
| Version | Screenshot |
|
||||
| ------- | -----------|
|
||||
| v1 | ![v1](https://github.com/floppydisk05/diskfloppy.me/assets/32990087/b8035b8c-f6c6-42f0-9729-c96cb8e235d3) |
|
||||
| v2 | ![v2](https://github.com/floppydisk05/diskfloppy.me/assets/32990087/dc99ab8c-db54-46b7-9025-0d777c69a3f8) |
|
||||
| v3 | ![v3](https://github.com/floppydisk05/diskfloppy.me/assets/32990087/0f6759f0-e2e8-43d2-ac46-3412976da374) |
|
||||
| v4 | ![v4](https://github.com/floppydisk05/diskfloppy.me/assets/32990087/1be7cbf7-086e-4490-b6fa-abcc25c8c497) |
|
||||
<p align="center">
|
||||
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
|
||||
</p>
|
||||
|
||||
## About Laravel
|
||||
|
||||
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
|
||||
|
||||
- [Simple, fast routing engine](https://laravel.com/docs/routing).
|
||||
- [Powerful dependency injection container](https://laravel.com/docs/container).
|
||||
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
|
||||
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
|
||||
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
|
||||
- [Robust background job processing](https://laravel.com/docs/queues).
|
||||
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
|
||||
|
||||
Laravel is accessible, powerful, and provides tools required for large, robust applications.
|
||||
|
||||
## Learning Laravel
|
||||
|
||||
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
|
||||
|
||||
You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch.
|
||||
|
||||
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
|
||||
|
||||
## Laravel Sponsors
|
||||
|
||||
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell).
|
||||
|
||||
### Premium Partners
|
||||
|
||||
- **[Vehikl](https://vehikl.com/)**
|
||||
- **[Tighten Co.](https://tighten.co)**
|
||||
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
|
||||
- **[64 Robots](https://64robots.com)**
|
||||
- **[Cubet Techno Labs](https://cubettech.com)**
|
||||
- **[Cyber-Duck](https://cyber-duck.co.uk)**
|
||||
- **[Many](https://www.many.co.uk)**
|
||||
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
|
||||
- **[DevSquad](https://devsquad.com)**
|
||||
- **[Curotec](https://www.curotec.com/services/technologies/laravel/)**
|
||||
- **[OP.GG](https://op.gg)**
|
||||
- **[WebReinvent](https://webreinvent.com/?utm_source=laravel&utm_medium=github&utm_campaign=patreon-sponsors)**
|
||||
- **[Lendio](https://lendio.com)**
|
||||
|
||||
## Contributing
|
||||
|
||||
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
|
||||
|
||||
## Security Vulnerabilities
|
||||
|
||||
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
|
||||
|
||||
## License
|
||||
|
||||
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
||||
|
|
27
app/Console/Kernel.php
Normal file
27
app/Console/Kernel.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
namespace App\Console;
|
||||
|
||||
use Illuminate\Console\Scheduling\Schedule;
|
||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||
|
||||
class Kernel extends ConsoleKernel
|
||||
{
|
||||
/**
|
||||
* Define the application's command schedule.
|
||||
*/
|
||||
protected function schedule(Schedule $schedule): void
|
||||
{
|
||||
// $schedule->command('inspire')->hourly();
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the commands for the application.
|
||||
*/
|
||||
protected function commands(): void
|
||||
{
|
||||
$this->load(__DIR__.'/Commands');
|
||||
|
||||
require base_path('routes/console.php');
|
||||
}
|
||||
}
|
30
app/Exceptions/Handler.php
Normal file
30
app/Exceptions/Handler.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Throwable;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
/**
|
||||
* The list of the inputs that are never flashed to the session on validation exceptions.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $dontFlash = [
|
||||
'current_password',
|
||||
'password',
|
||||
'password_confirmation',
|
||||
];
|
||||
|
||||
/**
|
||||
* Register the exception handling callbacks for the application.
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
$this->reportable(function (Throwable $e) {
|
||||
//
|
||||
});
|
||||
}
|
||||
}
|
12
app/Http/Controllers/Controller.php
Normal file
12
app/Http/Controllers/Controller.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
||||
use Illuminate\Foundation\Validation\ValidatesRequests;
|
||||
use Illuminate\Routing\Controller as BaseController;
|
||||
|
||||
class Controller extends BaseController
|
||||
{
|
||||
use AuthorizesRequests, ValidatesRequests;
|
||||
}
|
67
app/Http/Kernel.php
Normal file
67
app/Http/Kernel.php
Normal file
|
@ -0,0 +1,67 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http;
|
||||
|
||||
use Illuminate\Foundation\Http\Kernel as HttpKernel;
|
||||
|
||||
class Kernel extends HttpKernel
|
||||
{
|
||||
/**
|
||||
* The application's global HTTP middleware stack.
|
||||
*
|
||||
* These middleware are run during every request to your application.
|
||||
*
|
||||
* @var array<int, class-string|string>
|
||||
*/
|
||||
protected $middleware = [
|
||||
// \App\Http\Middleware\TrustHosts::class,
|
||||
\App\Http\Middleware\TrustProxies::class,
|
||||
\Illuminate\Http\Middleware\HandleCors::class,
|
||||
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
|
||||
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
|
||||
\App\Http\Middleware\TrimStrings::class,
|
||||
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* The application's route middleware groups.
|
||||
*
|
||||
* @var array<string, array<int, class-string|string>>
|
||||
*/
|
||||
protected $middlewareGroups = [
|
||||
'web' => [
|
||||
\App\Http\Middleware\EncryptCookies::class,
|
||||
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
||||
\Illuminate\Session\Middleware\StartSession::class,
|
||||
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
||||
\App\Http\Middleware\VerifyCsrfToken::class,
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
],
|
||||
|
||||
'api' => [
|
||||
// \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
|
||||
\Illuminate\Routing\Middleware\ThrottleRequests::class.':api',
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* The application's middleware aliases.
|
||||
*
|
||||
* Aliases may be used instead of class names to conveniently assign middleware to routes and groups.
|
||||
*
|
||||
* @var array<string, class-string|string>
|
||||
*/
|
||||
protected $middlewareAliases = [
|
||||
'auth' => \App\Http\Middleware\Authenticate::class,
|
||||
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
|
||||
'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class,
|
||||
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
|
||||
'can' => \Illuminate\Auth\Middleware\Authorize::class,
|
||||
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
||||
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
|
||||
'signed' => \App\Http\Middleware\ValidateSignature::class,
|
||||
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
||||
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
|
||||
];
|
||||
}
|
17
app/Http/Middleware/Authenticate.php
Normal file
17
app/Http/Middleware/Authenticate.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Auth\Middleware\Authenticate as Middleware;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class Authenticate extends Middleware
|
||||
{
|
||||
/**
|
||||
* Get the path the user should be redirected to when they are not authenticated.
|
||||
*/
|
||||
protected function redirectTo(Request $request): ?string
|
||||
{
|
||||
return $request->expectsJson() ? null : route('login');
|
||||
}
|
||||
}
|
17
app/Http/Middleware/EncryptCookies.php
Normal file
17
app/Http/Middleware/EncryptCookies.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
|
||||
|
||||
class EncryptCookies extends Middleware
|
||||
{
|
||||
/**
|
||||
* The names of the cookies that should not be encrypted.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $except = [
|
||||
//
|
||||
];
|
||||
}
|
17
app/Http/Middleware/PreventRequestsDuringMaintenance.php
Normal file
17
app/Http/Middleware/PreventRequestsDuringMaintenance.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance as Middleware;
|
||||
|
||||
class PreventRequestsDuringMaintenance extends Middleware
|
||||
{
|
||||
/**
|
||||
* The URIs that should be reachable while maintenance mode is enabled.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $except = [
|
||||
//
|
||||
];
|
||||
}
|
30
app/Http/Middleware/RedirectIfAuthenticated.php
Normal file
30
app/Http/Middleware/RedirectIfAuthenticated.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use App\Providers\RouteServiceProvider;
|
||||
use Closure;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class RedirectIfAuthenticated
|
||||
{
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
|
||||
*/
|
||||
public function handle(Request $request, Closure $next, string ...$guards): Response
|
||||
{
|
||||
$guards = empty($guards) ? [null] : $guards;
|
||||
|
||||
foreach ($guards as $guard) {
|
||||
if (Auth::guard($guard)->check()) {
|
||||
return redirect(RouteServiceProvider::HOME);
|
||||
}
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
19
app/Http/Middleware/TrimStrings.php
Normal file
19
app/Http/Middleware/TrimStrings.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
|
||||
|
||||
class TrimStrings extends Middleware
|
||||
{
|
||||
/**
|
||||
* The names of the attributes that should not be trimmed.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $except = [
|
||||
'current_password',
|
||||
'password',
|
||||
'password_confirmation',
|
||||
];
|
||||
}
|
20
app/Http/Middleware/TrustHosts.php
Normal file
20
app/Http/Middleware/TrustHosts.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Http\Middleware\TrustHosts as Middleware;
|
||||
|
||||
class TrustHosts extends Middleware
|
||||
{
|
||||
/**
|
||||
* Get the host patterns that should be trusted.
|
||||
*
|
||||
* @return array<int, string|null>
|
||||
*/
|
||||
public function hosts(): array
|
||||
{
|
||||
return [
|
||||
$this->allSubdomainsOfApplicationUrl(),
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Middleware/TrustProxies.php
Normal file
28
app/Http/Middleware/TrustProxies.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Http\Middleware\TrustProxies as Middleware;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class TrustProxies extends Middleware
|
||||
{
|
||||
/**
|
||||
* The trusted proxies for this application.
|
||||
*
|
||||
* @var array<int, string>|string|null
|
||||
*/
|
||||
protected $proxies;
|
||||
|
||||
/**
|
||||
* The headers that should be used to detect proxies.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $headers =
|
||||
Request::HEADER_X_FORWARDED_FOR |
|
||||
Request::HEADER_X_FORWARDED_HOST |
|
||||
Request::HEADER_X_FORWARDED_PORT |
|
||||
Request::HEADER_X_FORWARDED_PROTO |
|
||||
Request::HEADER_X_FORWARDED_AWS_ELB;
|
||||
}
|
22
app/Http/Middleware/ValidateSignature.php
Normal file
22
app/Http/Middleware/ValidateSignature.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Routing\Middleware\ValidateSignature as Middleware;
|
||||
|
||||
class ValidateSignature extends Middleware
|
||||
{
|
||||
/**
|
||||
* The names of the query string parameters that should be ignored.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $except = [
|
||||
// 'fbclid',
|
||||
// 'utm_campaign',
|
||||
// 'utm_content',
|
||||
// 'utm_medium',
|
||||
// 'utm_source',
|
||||
// 'utm_term',
|
||||
];
|
||||
}
|
17
app/Http/Middleware/VerifyCsrfToken.php
Normal file
17
app/Http/Middleware/VerifyCsrfToken.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
|
||||
|
||||
class VerifyCsrfToken extends Middleware
|
||||
{
|
||||
/**
|
||||
* The URIs that should be excluded from CSRF verification.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $except = [
|
||||
//
|
||||
];
|
||||
}
|
45
app/Models/User.php
Normal file
45
app/Models/User.php
Normal file
|
@ -0,0 +1,45 @@
|
|||
<?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;
|
||||
use Laravel\Sanctum\HasApiTokens;
|
||||
|
||||
class User extends Authenticatable
|
||||
{
|
||||
use HasApiTokens, HasFactory, Notifiable;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'email',
|
||||
'password',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be hidden for serialization.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $hidden = [
|
||||
'password',
|
||||
'remember_token',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast.
|
||||
*
|
||||
* @var array<string, string>
|
||||
*/
|
||||
protected $casts = [
|
||||
'email_verified_at' => 'datetime',
|
||||
'password' => 'hashed',
|
||||
];
|
||||
}
|
24
app/Providers/AppServiceProvider.php
Normal file
24
app/Providers/AppServiceProvider.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?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 function boot(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
26
app/Providers/AuthServiceProvider.php
Normal file
26
app/Providers/AuthServiceProvider.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
// use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
||||
|
||||
class AuthServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* The model to policy mappings for the application.
|
||||
*
|
||||
* @var array<class-string, class-string>
|
||||
*/
|
||||
protected $policies = [
|
||||
//
|
||||
];
|
||||
|
||||
/**
|
||||
* Register any authentication / authorization services.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
19
app/Providers/BroadcastServiceProvider.php
Normal file
19
app/Providers/BroadcastServiceProvider.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Broadcast;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class BroadcastServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
Broadcast::routes();
|
||||
|
||||
require base_path('routes/channels.php');
|
||||
}
|
||||
}
|
38
app/Providers/EventServiceProvider.php
Normal file
38
app/Providers/EventServiceProvider.php
Normal file
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Auth\Events\Registered;
|
||||
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
|
||||
class EventServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* The event to listener mappings for the application.
|
||||
*
|
||||
* @var array<class-string, array<int, class-string>>
|
||||
*/
|
||||
protected $listen = [
|
||||
Registered::class => [
|
||||
SendEmailVerificationNotification::class,
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* Register any events for your application.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if events and listeners should be automatically discovered.
|
||||
*/
|
||||
public function shouldDiscoverEvents(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
40
app/Providers/RouteServiceProvider.php
Normal file
40
app/Providers/RouteServiceProvider.php
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Cache\RateLimiting\Limit;
|
||||
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\RateLimiter;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
class RouteServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* The path to your application's "home" route.
|
||||
*
|
||||
* Typically, users are redirected here after authentication.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const HOME = '/home';
|
||||
|
||||
/**
|
||||
* Define your route model bindings, pattern filters, and other route configuration.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
RateLimiter::for('api', function (Request $request) {
|
||||
return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
|
||||
});
|
||||
|
||||
$this->routes(function () {
|
||||
Route::middleware('api')
|
||||
->prefix('api')
|
||||
->group(base_path('routes/api.php'));
|
||||
|
||||
Route::middleware('web')
|
||||
->group(base_path('routes/web.php'));
|
||||
});
|
||||
}
|
||||
}
|
53
artisan
Executable file
53
artisan
Executable file
|
@ -0,0 +1,53 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
define('LARAVEL_START', microtime(true));
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register The Auto Loader
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Composer provides a convenient, automatically generated class loader
|
||||
| for our application. We just need to utilize it! We'll require it
|
||||
| into the script here so that we do not have to worry about the
|
||||
| loading of any of our classes manually. It's great to relax.
|
||||
|
|
||||
*/
|
||||
|
||||
require __DIR__.'/vendor/autoload.php';
|
||||
|
||||
$app = require_once __DIR__.'/bootstrap/app.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Run The Artisan Application
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When we run the console application, the current CLI command will be
|
||||
| executed in this console and the response sent back to a terminal
|
||||
| or another output device for the developers. Here goes nothing!
|
||||
|
|
||||
*/
|
||||
|
||||
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
|
||||
|
||||
$status = $kernel->handle(
|
||||
$input = new Symfony\Component\Console\Input\ArgvInput,
|
||||
new Symfony\Component\Console\Output\ConsoleOutput
|
||||
);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Shutdown The Application
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Once Artisan has finished running, we will fire off the shutdown events
|
||||
| so that any final work may be done by the application before we shut
|
||||
| down the process. This is the last thing to happen to the request.
|
||||
|
|
||||
*/
|
||||
|
||||
$kernel->terminate($input, $status);
|
||||
|
||||
exit($status);
|
|
@ -1,30 +0,0 @@
|
|||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Global -->
|
||||
<?php require('../inc/header.inc.php'); ?>
|
||||
|
||||
<!-- Page-specific -->
|
||||
<?php require_once('../inc/title.inc.php') ?>
|
||||
<!--<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">-->
|
||||
<meta property="og:title" content="title">
|
||||
<meta property="og:description" content="description">
|
||||
<!--<meta property="og:image" content="/res/img/icons/png/computer.png">-->
|
||||
</head>
|
||||
<body>
|
||||
<div class="page">
|
||||
<?php require('../inc/nav.inc.php') ?>
|
||||
|
||||
<div id="pagebody">
|
||||
<div id="content">
|
||||
|
||||
</div> <!-- content -->
|
||||
|
||||
<div id="footer" class="pagefooter">
|
||||
<?php $file = __FILE__;require('../inc/footer.inc.php'); ?>
|
||||
</div> <!-- footer -->
|
||||
</div> <!-- pagebody -->
|
||||
</div> <!-- page -->
|
||||
</body>
|
||||
</html>
|
|
@ -1,57 +0,0 @@
|
|||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Global -->
|
||||
<?php require('../inc/header.inc.php'); ?>
|
||||
|
||||
<!-- Page-specific -->
|
||||
<?php require_once('../inc/title.inc.php') ?>
|
||||
<link rel="shortcut icon" href="../res/img/icons/ico/globe.ico" type="image/x-icon">
|
||||
<meta property="og:title" content="Bookmarks">
|
||||
<meta property="og:description" content="friends' websites or sites I just find cool">
|
||||
<meta property="og:image" content="/res/img/icons/png/globe.png">
|
||||
</head>
|
||||
<body>
|
||||
<div class="page">
|
||||
<?php require('../inc/nav.inc.php') ?>
|
||||
|
||||
<div id="pagebody">
|
||||
<div id="content">
|
||||
<h1>Friends' Websites</h1>
|
||||
<ul>
|
||||
<li><a href="http://www.nick99nack.com/">nick99nack</a> - Currently in the process of taking over the internet. I <i>Totally</i> didn't steal any of his stuff.</li>
|
||||
<li><a href="http://dkay.xyz/">dkay</a> - The land of norton.</li>
|
||||
<li><a href="https://campos02.me/">campos</a> - Cool brazilian dude, does programming and stuff</li>
|
||||
<li><a href="https://kickfacehq.com/">KickfaceHQ</a> - The interwebz home of Daniel Kickface and Team Kickface! Uses a totally rad FrontPage 2003 theme.</li>
|
||||
<li><a href="https://joshuaalto.com/">Sashi</a> - Site redesign #8! I'll find a website style I enjoy eventually, I swear!</li>
|
||||
<li><a href="http://strangenessnetworks.com/">noone</a> - Strangeness Network, noone's website.</li>
|
||||
<li><a href="https://notashelf.dev/">raf</a> - is a shelf</li>
|
||||
<li><a href="https://starman0620.neocities.org/">CamK06</a> - Now with more outdated HTML!</li>
|
||||
<li><a href="https://hiden.pw/">HIDEN</a> - Moar buttons!</li>
|
||||
<li><a href="http://cocomark.neocities.org/">Coco</a> - needs to go to the brain store</li>
|
||||
<li><a href="http://toxi.pw/">Toxidation</a> - h (idk if this is his actual domain he has like 5)</li>
|
||||
<li><a href="http://xproot.pw/">xproot</a> - a random internet person on this very random planet</li>
|
||||
</ul>
|
||||
<h1>Cool Projects</h1>
|
||||
<ul>
|
||||
<li><a href="https://tosdr.org">ToS;DR</a> - “I have read and agree to the Terms” is the biggest lie on the web. They aim to fix that.</li>
|
||||
<li><a href="https://nina.chat/">NINA</a> - Upcoming revival of the America Online service.</li>
|
||||
<li><a href="https://escargot.chat/">Escargot</a> - MSN & Yahoo Messenger Revival</li>
|
||||
</ul>
|
||||
<h1>Other Cool Stuff</h1>
|
||||
<ul>
|
||||
<li><a href="http://www.winworldpc.com/">WinWorld</a> - WinWorld is an online museum dedicated to the preservation and sharing of vintage, abandoned, and pre-release software.</li>
|
||||
<li><a href="http://toastytech.com/">ToastyTech</a> - Nathan's Toasty Technology Page</li>
|
||||
<li><a href="http://www.hoary.org/browse/">Optimized for no one</a> - Optimized for no one, but pretty much OK with . . .</li>
|
||||
<li><a href="http://www.cameronsworld.net/">Cameron's World</a> - A love letter to the Internet of old.</li>
|
||||
</ul>
|
||||
</div> <!-- content -->
|
||||
|
||||
<div id="footer" class="pagefooter">
|
||||
<?php $file = __FILE__;require('../inc/footer.inc.php'); ?>
|
||||
</div> <!-- footer -->
|
||||
</div> <!-- pagebody -->
|
||||
</div> <!-- page -->
|
||||
</body>
|
||||
</html>
|
55
bootstrap/app.php
Normal file
55
bootstrap/app.php
Normal file
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Create The Application
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The first thing we will do is create a new Laravel application instance
|
||||
| which serves as the "glue" for all the components of Laravel, and is
|
||||
| the IoC container for the system binding all of the various parts.
|
||||
|
|
||||
*/
|
||||
|
||||
$app = new Illuminate\Foundation\Application(
|
||||
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
|
||||
);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Bind Important Interfaces
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Next, we need to bind some important interfaces into the container so
|
||||
| we will be able to resolve them when needed. The kernels serve the
|
||||
| incoming requests to this application from both the web and CLI.
|
||||
|
|
||||
*/
|
||||
|
||||
$app->singleton(
|
||||
Illuminate\Contracts\Http\Kernel::class,
|
||||
App\Http\Kernel::class
|
||||
);
|
||||
|
||||
$app->singleton(
|
||||
Illuminate\Contracts\Console\Kernel::class,
|
||||
App\Console\Kernel::class
|
||||
);
|
||||
|
||||
$app->singleton(
|
||||
Illuminate\Contracts\Debug\ExceptionHandler::class,
|
||||
App\Exceptions\Handler::class
|
||||
);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Return The Application
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This script returns the application instance. The instance is given to
|
||||
| the calling script so we can separate the building of the instances
|
||||
| from the actual running of the application and sending responses.
|
||||
|
|
||||
*/
|
||||
|
||||
return $app;
|
2
bootstrap/cache/.gitignore
vendored
Normal file
2
bootstrap/cache/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!.gitignore
|
|
@ -1,142 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Global -->
|
||||
<?php require('../inc/header.inc.php'); ?>
|
||||
|
||||
<!-- Page-specific -->
|
||||
<?php require_once('../inc/title.inc.php') ?>
|
||||
<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">
|
||||
<meta property="og:title" content="Calculators">
|
||||
<meta property="og:description" content="C a l c u l a t o r s">
|
||||
<meta property="og:image" content="/res/img/icons/png/calc.png">
|
||||
</head>
|
||||
<body>
|
||||
<div class="page">
|
||||
<?php require('../inc/nav.inc.php') ?>
|
||||
|
||||
<div id="pagebody">
|
||||
<div id="content">
|
||||
<h1>CASIO fx-CG50</h1>
|
||||
<p>TBD</p>
|
||||
<h2>Pictures</h2>
|
||||
<p>Click images to view full size</p>
|
||||
<a href="/res/img/calculators/casio-fx-cg50/1s.jpeg"><img src="/res/img/calculators/casio-fx-cg50/1s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/casio-fx-cg50/2s.jpeg"><img src="/res/img/calculators/casio-fx-cg50/2s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/casio-fx-cg50/3s.jpeg"><img src="/res/img/calculators/casio-fx-cg50/3s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/casio-fx-cg50/4s.jpeg"><img src="/res/img/calculators/casio-fx-cg50/4s.jpeg" width="15%"></a>
|
||||
|
||||
<h1>CASIO fx-120 (1977-78)</h1>
|
||||
<p>TBD</p>
|
||||
<h2>Specifications</h2>
|
||||
<table class="skami">
|
||||
<tr>
|
||||
<td><b>Size</b></td>
|
||||
<td>8.4cm x 16.2cm x 2.4cm</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Weight (w/ battery)</b></td>
|
||||
<td>209g</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Type</b></td>
|
||||
<td>Scientific</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>CPU</b></td>
|
||||
<td>Hitachi HD38111A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Registers</b></td>
|
||||
<td>2 standard<br>1 constant<br>4 bracket<br>1 memory</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Features</b></td>
|
||||
<td>%, +/-, RV, F, Sci, a<sup>b</sup>⁄<sub>c</sub>, Sqr, x<sup>2</sup>, pi, <sup>1</sup>⁄<sub>x</sub>, trig,<br>hyp, DMS-DD, log, y<sup>x</sup>, SD, nCr, P-R, n!</sup></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Display</b></td>
|
||||
<td>12-digit VFD (NEC LD8197A)</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2>Pictures</h2>
|
||||
<p>Click images to view full size</p>
|
||||
<a href="/res/img/calculators/casio-fx-120/1s.jpeg"><img src="/res/img/calculators/casio-fx-120/1s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/casio-fx-120/2s.jpeg"><img src="/res/img/calculators/casio-fx-120/2s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/casio-fx-120/3s.jpeg"><img src="/res/img/calculators/casio-fx-120/3s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/casio-fx-120/4s.jpeg"><img src="/res/img/calculators/casio-fx-120/4s.jpeg" width="15%"></a>
|
||||
|
||||
<h1>CASIO fx-82 (1982-85)</h1>
|
||||
<p>TBD</p>
|
||||
<h2>Pictures</h2>
|
||||
<p>Click images to view full size</p>
|
||||
<a href="/res/img/calculators/casio-fx-82/1s.jpeg"><img src="/res/img/calculators/casio-fx-82/1s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/casio-fx-82/2s.jpeg"><img src="/res/img/calculators/casio-fx-82/2s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/casio-fx-82/3s.jpeg"><img src="/res/img/calculators/casio-fx-82/3s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/casio-fx-82/4s.jpeg"><img src="/res/img/calculators/casio-fx-82/4s.jpeg" width="15%"></a>
|
||||
|
||||
<h1>Texas Instruments TI-30 (1976-90)</h1>
|
||||
<p>TBD</p>
|
||||
<h2>Pictures</h2>
|
||||
<p>Click images to view full size</p>
|
||||
<a href="/res/img/calculators/ti-30/1s.jpeg"><img src="/res/img/calculators/ti-30/1s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/ti-30/2s.jpeg"><img src="/res/img/calculators/ti-30/2s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/ti-30/3s.jpeg"><img src="/res/img/calculators/ti-30/3s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/ti-30/4s.jpeg"><img src="/res/img/calculators/ti-30/4s.jpeg" width="15%"></a>
|
||||
|
||||
<h1>Texet 880 Executive (1977-78)</h1>
|
||||
|
||||
<p>The calculator measures 74.2mm x 135mm x 22.2mm. It weighs 86g without the battery installed, which is a 9v PP3-type battery. Rather than the usual press-stud type holder, the housing has two metal slide clips. There is also what I assume to be a sponge at one end which is supposed to aid in holding the battery in, however it appears to have gone completely hard and I will most likely replace it in the future. There's small adaptor hole at the top, of which the input isn't specified (though it's generally agreed that it's 4.5v centre-positive).</p>
|
||||
<p>The case is black & silvery colored with a thin brushed metallic front panel. The eight-digit bubble display has an absolutely <i>terrible</i> viewing angle, which means you either have to be holding it under your coat or against your face to read it!</p>
|
||||
The keypad is particularly strange in the way that it has 3 cancel buttons, <pre>[CE]</pre>, <pre>[C]</pre> and <pre>[CA]</pre>, while the <pre>[CS]</pre> button is a Clear Sign button, <i>not</i> another cancel! The keys themselves are particularly stiff and you really have to push them to get them to register. Many 880s suffered something referred to as the "pseudo fixed decimal bug" where, if you typed in <pre>1 + 1.00 = </pre>, it would display <pre>2.00</pre> instead of the expected <pre>2</pre>
|
||||
<h2>Specifications</h2>
|
||||
<table class="skami">
|
||||
<tr>
|
||||
<td><b>Size</b></td>
|
||||
<td>7.4cm x 13.5cm x 2.2cm</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Weight (w/o battery)</b></td>
|
||||
<td>86</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Type</b></td>
|
||||
<td>Arithmetic</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Logic</b></td>
|
||||
<td>Algebraic</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Power Source</b></td>
|
||||
<td>PP3 9v</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Display</b></td>
|
||||
<td>8-digit LED</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2>Pictures</h2>
|
||||
<p>Click images to view full size</p>
|
||||
<a href="/res/img/calculators/texet-880/1s.jpeg"><img src="/res/img/calculators/texet-880/1s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/texet-880/2s.jpeg"><img src="/res/img/calculators/texet-880/2s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/texet-880/3s.jpeg"><img src="/res/img/calculators/texet-880/3s.jpeg" width="15%"></a>
|
||||
<a href="/res/img/calculators/texet-880/4s.jpeg"><img src="/res/img/calculators/texet-880/4s.jpeg" width="15%"></a>
|
||||
<!--<h2>TL;DR</h2>
|
||||
<ul>
|
||||
<li>Sponge in battery compartment has gone hard and should probably be replaced</li>
|
||||
<li>Power input is unlabelled but is widely agreed to be 4.5v centre-positive</li>
|
||||
<lI>Uses an 8-digit bubble display with a terrible viewing angle</li>
|
||||
<li>Has 3 cancel buttons (<pre>[CE]</pre>, <pre>[C]</pre> and <pre>[CA]</pre>)</li>
|
||||
<li>Has particularly stiff keys</li>
|
||||
<li>Many suffered from the "pseudo fixed decimal bug", however mine does not</li>
|
||||
</ul>-->
|
||||
</div> <!-- content -->
|
||||
|
||||
<div id="footer" class="pagefooter">
|
||||
<?php $file = __FILE__;require('../inc/footer.inc.php'); ?>
|
||||
</div> <!-- footer -->
|
||||
</div> <!-- pagebody -->
|
||||
</div> <!-- page -->
|
||||
</body>
|
||||
</html>
|
66
composer.json
Normal file
66
composer.json
Normal file
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"name": "laravel/laravel",
|
||||
"type": "project",
|
||||
"description": "The skeleton application for the Laravel framework.",
|
||||
"keywords": ["laravel", "framework"],
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": "^8.1",
|
||||
"guzzlehttp/guzzle": "^7.2",
|
||||
"laravel/framework": "^10.10",
|
||||
"laravel/sanctum": "^3.2",
|
||||
"laravel/tinker": "^2.8"
|
||||
},
|
||||
"require-dev": {
|
||||
"fakerphp/faker": "^1.9.1",
|
||||
"laravel/pint": "^1.0",
|
||||
"laravel/sail": "^1.18",
|
||||
"mockery/mockery": "^1.4.4",
|
||||
"nunomaduro/collision": "^7.0",
|
||||
"phpunit/phpunit": "^10.1",
|
||||
"spatie/laravel-ignition": "^2.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"App\\": "app/",
|
||||
"Database\\Factories\\": "database/factories/",
|
||||
"Database\\Seeders\\": "database/seeders/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"post-autoload-dump": [
|
||||
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
||||
"@php artisan package:discover --ansi"
|
||||
],
|
||||
"post-update-cmd": [
|
||||
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
|
||||
],
|
||||
"post-root-package-install": [
|
||||
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
||||
],
|
||||
"post-create-project-cmd": [
|
||||
"@php artisan key:generate --ansi"
|
||||
]
|
||||
},
|
||||
"extra": {
|
||||
"laravel": {
|
||||
"dont-discover": []
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"optimize-autoloader": true,
|
||||
"preferred-install": "dist",
|
||||
"sort-packages": true,
|
||||
"allow-plugins": {
|
||||
"pestphp/pest-plugin": true,
|
||||
"php-http/discovery": true
|
||||
}
|
||||
},
|
||||
"minimum-stability": "stable",
|
||||
"prefer-stable": true
|
||||
}
|
7945
composer.lock
generated
Normal file
7945
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,344 +0,0 @@
|
|||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Global -->
|
||||
<?php require('../inc/header.inc.php'); ?>
|
||||
|
||||
<!-- Page-specific -->
|
||||
<?php require_once('../inc/title.inc.php') ?>
|
||||
<link rel="shortcut icon" href="../res/img/icons/ico/computer.ico" type="image/x-icon">
|
||||
<meta property="og:title" content="Computers">
|
||||
<meta property="og:description" content="Computers I own or have owned.">
|
||||
<meta property="og:image" content="/res/img/icons/png/computer.png">
|
||||
</head>
|
||||
<body>
|
||||
<div class="page">
|
||||
<?php require('../inc/nav.inc.php') ?>
|
||||
|
||||
<div id="pagebody">
|
||||
<div id="content"><table class="computers" border="0">
|
||||
<tr>
|
||||
<!-- Custom Build -->
|
||||
<td class="computer">
|
||||
<h1>Custom Build</h1>
|
||||
<h2>Specifications</h2>
|
||||
<table class="skami">
|
||||
<tr>
|
||||
<td><b>OS</b></td>
|
||||
<td>NixOS 22.11 / Windows 10 Pro</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Monitor</b></td>
|
||||
<td>Dell P2018H (1600x900)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>CPU</b></td>
|
||||
<td>Intel i7-6700K (8) @ 4.0GHz</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>GPU</b></td>
|
||||
<td>NVidia GTX 1060 (3GB)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Memory</b></td>
|
||||
<td>64GB</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>HDD0</b></td>
|
||||
<td>SanDisk SSD Plus (120GB, Windows 10)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>HDD1</b></td>
|
||||
<td>Crucial CT500MX500SSD1 (500GB, NixOS)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>HDD2</b></td>
|
||||
<td>WDC WD20EZEAZ-00GGJB0 (2TB, Data)</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<!-- Macbook Pro (2018) -->
|
||||
<td class="computer">
|
||||
<h1>Macbook Pro (2018)</h1>
|
||||
<h2>Specifications</h2>
|
||||
<table class="skami">
|
||||
<tr>
|
||||
<td><b>OS</b></td>
|
||||
<td>macOS 12.5.1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>LCD Resolution</b></td>
|
||||
<td>2560x1600 (Retina)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>CPU</b></td>
|
||||
<td>Intel i5-8259U (8 cores) @ 2.3GHz</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>GPU</b></td>
|
||||
<td>Intel Iris Plus Graphics 655</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Memory</b></td>
|
||||
<td>8GB</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>HDD</b></td>
|
||||
<td>Apple SSD AP0256M (250GB)</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- Lenovo ThinkPad T430 -->
|
||||
<td class="computer">
|
||||
<h1>Lenovo ThinkPad T430 (2012)</h1>
|
||||
<h2>Specifications</h2>
|
||||
<table class="skami">
|
||||
<tr>
|
||||
<td><b>OS</b></td>
|
||||
<td>Arch Linux x86_64 / Windows 7 Pro</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>LCD Resolution</b></td>
|
||||
<td>1600x900</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>CPU</b></td>
|
||||
<td>Intel i7-3520M (4 cores) @ 3.6GHz</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>GPU</b></td>
|
||||
<td>Intel 3rd Gen Core processor Graphics Controller</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Memory</b></td>
|
||||
<td>16GB</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>HDD0</b></td>
|
||||
<td>Crucial CT500MX500SSD1 (500GB, Linux)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>HDD1</b></td>
|
||||
<td>Crucial CT250MX500SSD1 (250GB, Windows)</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<!-- IBM ThinkPad X41 (2005) -->
|
||||
<td class="computer">
|
||||
<h1>IBM ThinkPad X41 (2005)</h1>
|
||||
<h2 |