Skip to content

Commit

Permalink
v1
Browse files Browse the repository at this point in the history
  • Loading branch information
asilvafx committed Dec 2, 2024
1 parent 4689c4f commit 33f5a32
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/views/admin/integrations/HelloWorld/HelloWorld.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[application]
app_title="Hello World"
app_description="Hello World is just a sample integration description."
[config]
data="any_data_here"
26 changes: 26 additions & 0 deletions app/views/admin/integrations/HelloWorld/HelloWorld.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

class HelloWorld
{
private $client;
public function __construct()
{
global $f3;
}

function Test(){

header('Content-Type: application/json');

try {
echo json_encode(['success' => 'Is Working!']);

} catch (Error $e) {
http_response_code(500);
echo json_encode(['error' => $e->getMessage()]);
}

exit;
}
}

9 changes: 9 additions & 0 deletions app/views/admin/integrations/HelloWorld/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

require_once(INTEGRATIONS.'HelloWorld/HelloWorld.php');

global $f3;

$f3->route('GET|POST /api/hello-world', 'HelloWorld->Test');


55 changes: 55 additions & 0 deletions ui/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<base href="/">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<meta name="description" content="{{isset(@PAGE.description)[email protected]:''}}">
<meta name="author" content="PIGMIL.COM">
<meta name="keyword" content="{{isset(@PAGE.keywords)[email protected]:''}}">
<meta name="robots" content="index,follow">
<meta name="googlebot" content="index">
<link rel="icon" type="image/png" href="{{@PUBLIC}}/manifest/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="{{@PUBLIC}}/manifest/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="{{@PUBLIC}}/manifest/favicon-96x96.png" sizes="96x96">
<link rel="apple-touch-icon" sizes="57x57" href="{{@PUBLIC}}/manifest/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="{{@PUBLIC}}/manifest/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="{{@PUBLIC}}/manifest/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="{{@PUBLIC}}/manifest/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="{{@PUBLIC}}/manifest/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="{{@PUBLIC}}/manifest/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="{{@PUBLIC}}/manifest/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="{{@PUBLIC}}/manifest/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="{{@PUBLIC}}/manifest/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="{{@PUBLIC}}/manifest/android-chrome-192x192.png" sizes="192x192">
<link rel="manifest" href="{{@PUBLIC}}/manifest/manifest.json">
<meta name="msapplication-TileImage" content="{{@PUBLIC}}/manifest/mstile-144x144.png">
<meta name="msapplication-TileColor" content="{{@SITE.color_primary}}">
<meta name="theme-color" content="currentColor">

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Anton&display=swap" rel="stylesheet">
<script type="module" crossorigin src="ui/assets/index.js?v={{@DEBUG>0?time():@VERSION}}"></script>
<link rel="stylesheet" crossorigin href="ui/assets/index.css?v={{@DEBUG>0?time():@VERSION}}">

<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "WebSite",
"name": "",
"url": "{{@HOST . '://' . @SCHEME . @BASE }}",
"potentialAction": {
"@type": "SearchAction",
"target": "{{@HOST . '://' . @SCHEME . @BASE }}/search?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>

</head>
<body>
<div id="root"></div>
</body>
</html>

0 comments on commit 33f5a32

Please sign in to comment.