diff --git a/404.html b/404.html index a40b2d0..8043d96 100644 --- a/404.html +++ b/404.html @@ -17,7 +17,7 @@
- + \ No newline at end of file diff --git a/assets/flash_index.md.BZydQnCn.js b/assets/flash_index.md.BZydQnCn.js new file mode 100644 index 0000000..b32fe77 --- /dev/null +++ b/assets/flash_index.md.BZydQnCn.js @@ -0,0 +1 @@ +import{V as s}from"./chunks/theme.mMOWP-gd.js";import{c as i,j as t,a,G as r,k as l,o as m}from"./chunks/framework.BGabeMLJ.js";const u=JSON.parse('{"title":"⚡ Flash","description":"","frontmatter":{"next":{"text":"Installation","link":"/flash/installation"},"banner_title":"Flash - A Modern Web Framework","banner_description":"Flash is a fast and expressive web framework written in Java.","head":[["meta",{"name":"twitter:image","content":"/assets/banner-cards/flash-index.png"}],["meta",{"name":"twitter:image:src","content":"https://docs.pixel-services.com/assets/banner-cards/flash-index.png"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:height","content":"1280"}],["meta",{"name":"twitter:image:width","content":"669"}],["meta",{"name":"twitter:description","content":""}]]},"headers":[],"relativePath":"flash/index.md","filePath":"flash/index.md"}'),o={name:"flash/index.md"},b=Object.assign(o,{setup(d){const n=[{avatar:"https://avatars.githubusercontent.com/u/83401018?v=4",name:"Relism",title:"Developer",links:[{icon:"github",link:"https://github.com/Relism"}]},{avatar:"https://avatars.githubusercontent.com/u/69807609?v=4",name:"Sieadev",title:"Developer",links:[{icon:"github",link:"https://github.com/sieadev"}]}];return(h,e)=>(m(),i("div",null,[e[0]||(e[0]=t("h1",{id:"⚡-flash",tabindex:"-1"},[a("⚡ Flash "),t("a",{class:"header-anchor",href:"#⚡-flash","aria-label":'Permalink to "⚡ Flash"'},"​")],-1)),e[1]||(e[1]=t("p",null,"Flash is a simple, modern and fast expressive web framework written in Java. The project is maintained by Pixel Services and the open-source community.",-1)),e[2]||(e[2]=t("h1",{id:"our-team",tabindex:"-1"},[a("Our Team "),t("a",{class:"header-anchor",href:"#our-team","aria-label":'Permalink to "Our Team"'},"​")],-1)),e[3]||(e[3]=t("p",null,"Say hello to the Pixel Services team !",-1)),r(l(s),{size:"small",members:n})]))}});export{u as __pageData,b as default}; diff --git a/assets/flash_index.md.BZydQnCn.lean.js b/assets/flash_index.md.BZydQnCn.lean.js new file mode 100644 index 0000000..b32fe77 --- /dev/null +++ b/assets/flash_index.md.BZydQnCn.lean.js @@ -0,0 +1 @@ +import{V as s}from"./chunks/theme.mMOWP-gd.js";import{c as i,j as t,a,G as r,k as l,o as m}from"./chunks/framework.BGabeMLJ.js";const u=JSON.parse('{"title":"⚡ Flash","description":"","frontmatter":{"next":{"text":"Installation","link":"/flash/installation"},"banner_title":"Flash - A Modern Web Framework","banner_description":"Flash is a fast and expressive web framework written in Java.","head":[["meta",{"name":"twitter:image","content":"/assets/banner-cards/flash-index.png"}],["meta",{"name":"twitter:image:src","content":"https://docs.pixel-services.com/assets/banner-cards/flash-index.png"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:height","content":"1280"}],["meta",{"name":"twitter:image:width","content":"669"}],["meta",{"name":"twitter:description","content":""}]]},"headers":[],"relativePath":"flash/index.md","filePath":"flash/index.md"}'),o={name:"flash/index.md"},b=Object.assign(o,{setup(d){const n=[{avatar:"https://avatars.githubusercontent.com/u/83401018?v=4",name:"Relism",title:"Developer",links:[{icon:"github",link:"https://github.com/Relism"}]},{avatar:"https://avatars.githubusercontent.com/u/69807609?v=4",name:"Sieadev",title:"Developer",links:[{icon:"github",link:"https://github.com/sieadev"}]}];return(h,e)=>(m(),i("div",null,[e[0]||(e[0]=t("h1",{id:"⚡-flash",tabindex:"-1"},[a("⚡ Flash "),t("a",{class:"header-anchor",href:"#⚡-flash","aria-label":'Permalink to "⚡ Flash"'},"​")],-1)),e[1]||(e[1]=t("p",null,"Flash is a simple, modern and fast expressive web framework written in Java. The project is maintained by Pixel Services and the open-source community.",-1)),e[2]||(e[2]=t("h1",{id:"our-team",tabindex:"-1"},[a("Our Team "),t("a",{class:"header-anchor",href:"#our-team","aria-label":'Permalink to "Our Team"'},"​")],-1)),e[3]||(e[3]=t("p",null,"Say hello to the Pixel Services team !",-1)),r(l(s),{size:"small",members:n})]))}});export{u as __pageData,b as default}; diff --git a/assets/flash_installation.md.BILQfhgS.js b/assets/flash_installation.md.BILQfhgS.js new file mode 100644 index 0000000..2790e73 --- /dev/null +++ b/assets/flash_installation.md.BILQfhgS.js @@ -0,0 +1,19 @@ +import{p as l,v as p,c as h,a0 as r,j as e,a as k,t as E,o}from"./chunks/framework.BGabeMLJ.js";const d={href:"'https://maven.pixel-services.com/#/releases/com/pixelservices/flash'",style:{"text-decoration":"underline",color:"#007bff"}},m=JSON.parse('{"title":"📲 Installation","description":"","frontmatter":{"banner_title":"Flash - Installation","banner_description":"A guide on how to install the Flash library in your project.","head":[["meta",{"name":"twitter:image","content":"/assets/banner-cards/flash-installation.png"}],["meta",{"name":"twitter:image:src","content":"https://docs.pixel-services.com/assets/banner-cards/flash-installation.png"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:height","content":"1280"}],["meta",{"name":"twitter:image:width","content":"669"}],["meta",{"name":"twitter:description","content":""}]]},"headers":[],"relativePath":"flash/installation.md","filePath":"flash/installation.md"}'),g={name:"flash/installation.md"},v=Object.assign(g,{setup(c){const i=l("");return p(async()=>{try{const n=(await(await fetch("https://maven.pixel-services.com/api/maven/details/releases/com/pixelservices/flash")).json()).files.filter(t=>t.type==="DIRECTORY").map(t=>t.name);i.value=n.sort().pop()}catch(a){console.error("Error fetching latest version:",a),i.value="Error fetching version"}}),(a,s)=>(o(),h("div",null,[s[1]||(s[1]=r(`

📲 Installation

This page provides installation instructions for the latest version of the flash library from Pixel Services.

Installation

Maven (pom.xml)

  1. Add the repository :

    xml
    <repositories>
    +  <repository>
    +    <id>pixel-services</id>
    +    <name>Pixel Services</name>
    +    <url>https://maven.pixel-services.com/repository</url>
    +  </repository>
    +</repositories>
  2. And the dependency :

    xml
    <dependencies>
    +  <dependency>
    +    <groupId>com.pixelservices</groupId>
    +    <artifactId>flash</artifactId>
    +    <version>{{ latestVersion }}</version>
    +  </dependency>
    +</dependencies>

Gradle (build.gradle)

  1. Add the repository :

    groovy
    repositories {
    +    maven {
    +        url "https://maven.pixel-services.com/repository"
    +    }
    +}
  2. And the dependency :

    groovy
    dependencies {
    +    implementation 'com.pixelservices:flash:{{ latestVersion }}'
    +}
`,7)),e("div",null,[s[0]||(s[0]=k(" ⚡ Latest version: ")),e("a",d,[e("strong",null,E(i.value),1)])])]))}});export{m as __pageData,v as default}; diff --git a/assets/flash_installation.md.BILQfhgS.lean.js b/assets/flash_installation.md.BILQfhgS.lean.js new file mode 100644 index 0000000..2790e73 --- /dev/null +++ b/assets/flash_installation.md.BILQfhgS.lean.js @@ -0,0 +1,19 @@ +import{p as l,v as p,c as h,a0 as r,j as e,a as k,t as E,o}from"./chunks/framework.BGabeMLJ.js";const d={href:"'https://maven.pixel-services.com/#/releases/com/pixelservices/flash'",style:{"text-decoration":"underline",color:"#007bff"}},m=JSON.parse('{"title":"📲 Installation","description":"","frontmatter":{"banner_title":"Flash - Installation","banner_description":"A guide on how to install the Flash library in your project.","head":[["meta",{"name":"twitter:image","content":"/assets/banner-cards/flash-installation.png"}],["meta",{"name":"twitter:image:src","content":"https://docs.pixel-services.com/assets/banner-cards/flash-installation.png"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:height","content":"1280"}],["meta",{"name":"twitter:image:width","content":"669"}],["meta",{"name":"twitter:description","content":""}]]},"headers":[],"relativePath":"flash/installation.md","filePath":"flash/installation.md"}'),g={name:"flash/installation.md"},v=Object.assign(g,{setup(c){const i=l("");return p(async()=>{try{const n=(await(await fetch("https://maven.pixel-services.com/api/maven/details/releases/com/pixelservices/flash")).json()).files.filter(t=>t.type==="DIRECTORY").map(t=>t.name);i.value=n.sort().pop()}catch(a){console.error("Error fetching latest version:",a),i.value="Error fetching version"}}),(a,s)=>(o(),h("div",null,[s[1]||(s[1]=r(`

📲 Installation

This page provides installation instructions for the latest version of the flash library from Pixel Services.

Installation

Maven (pom.xml)

  1. Add the repository :

    xml
    <repositories>
    +  <repository>
    +    <id>pixel-services</id>
    +    <name>Pixel Services</name>
    +    <url>https://maven.pixel-services.com/repository</url>
    +  </repository>
    +</repositories>
  2. And the dependency :

    xml
    <dependencies>
    +  <dependency>
    +    <groupId>com.pixelservices</groupId>
    +    <artifactId>flash</artifactId>
    +    <version>{{ latestVersion }}</version>
    +  </dependency>
    +</dependencies>

Gradle (build.gradle)

  1. Add the repository :

    groovy
    repositories {
    +    maven {
    +        url "https://maven.pixel-services.com/repository"
    +    }
    +}
  2. And the dependency :

    groovy
    dependencies {
    +    implementation 'com.pixelservices:flash:{{ latestVersion }}'
    +}
`,7)),e("div",null,[s[0]||(s[0]=k(" ⚡ Latest version: ")),e("a",d,[e("strong",null,E(i.value),1)])])]))}});export{m as __pageData,v as default}; diff --git a/assets/flash_server-types.md.fr-GJoQm.js b/assets/flash_server-types.md.fr-GJoQm.js new file mode 100644 index 0000000..e8e2584 --- /dev/null +++ b/assets/flash_server-types.md.fr-GJoQm.js @@ -0,0 +1,37 @@ +import{_ as i,c as a,a0 as e,o as n}from"./chunks/framework.BGabeMLJ.js";const E=JSON.parse('{"title":"Server Types","description":"","frontmatter":{"banner_title":"Flash - Server Types Guide","banner_description":"Illustrating the main differences between the internal server instance and the FlashServer instance.","head":[["meta",{"name":"twitter:image","content":"/assets/banner-cards/flash-server-types.png"}],["meta",{"name":"twitter:image:src","content":"https://docs.pixel-services.com/assets/banner-cards/flash-server-types.png"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:height","content":"1280"}],["meta",{"name":"twitter:image:width","content":"669"}],["meta",{"name":"twitter:description","content":""}]]},"headers":[],"relativePath":"flash/server-types.md","filePath":"flash/server-types.md"}'),t={name:"flash/server-types.md"};function l(h,s,r,p,k,d){return n(),a("div",null,s[0]||(s[0]=[e(`

Server Types

In this section, we discuss the differences between the internal server instance InternalFlashServer and the FlashServer instance, and whether you should use one or the other. We will also provide examples of how to use each type of server.

Internal Server

The internal server is a singleton instance that can be accessed by statically importing methods from InternalFlashServer. This means that for each application, only one InternalFlashServer instance is created. This allows you to use the server's functionality without creating and managing an instance of the server.

Usage

To use the internal server, you can statically import the methods from InternalFlashServer:

java
import static flash.InternalFlashServer.*;
+
+public class Example {
+    public static void main(String[] args) {
+        port(8080);
+        
+        get("/hello", (req, res) -> {
+            res.status(200);
+            return "Hello, world!";
+        });
+
+        post("/submit", (req, res) -> {
+            // Handle POST request
+        });
+
+        // Other routes and configurations
+    }
+}

Server Instance

The FlashServer class is used to create an instance of the server. Unlike the internal server, you can create multiple instances of the FlashServer class with different configurations.

Usage

To create a server instance, you can simply call new FlashServer() and configure the server using the instance methods:

java
import flash.FlashServer;
+
+public class Example {
+    public static void main(String[] args) {
+        FlashServer server = new FlashServer("My Server Instance");
+
+        server.port(8080);
+        
+        server.get("/hello", (req, res) -> {
+            res.status(200);
+            return "Hello, world!";
+        });
+
+        server.post("/submit", (req, res) -> {
+            // Handle POST request
+        });
+
+        // Other routes and configurations
+    }
+}

The InternalFlashServer is a pre-configured instance of FlashServer that is managed internally by the library. Under the hood, it is instantiated as:

java
new FlashServer("Internal");

This means:

Both the InternalFlashServer and any user-created FlashServer instances are of the same type (FlashServer). However, if you want to create and manage your own server instance, you must provide a name during initialization, e.g.:

FlashServer server = new FlashServer("My Server Instance");

Which Server Type Should You Use?

It all depends on your use case. If you only need one server instance and want to keep your code concise, you can use the internal server. However, if your application needs to handle multiple server instances each with different ports and configurations, you should use FlashServer instances.

Example use cases for each server type:

`,22)]))}const c=i(t,[["render",l]]);export{E as __pageData,c as default}; diff --git a/assets/flash_server-types.md.fr-GJoQm.lean.js b/assets/flash_server-types.md.fr-GJoQm.lean.js new file mode 100644 index 0000000..e8e2584 --- /dev/null +++ b/assets/flash_server-types.md.fr-GJoQm.lean.js @@ -0,0 +1,37 @@ +import{_ as i,c as a,a0 as e,o as n}from"./chunks/framework.BGabeMLJ.js";const E=JSON.parse('{"title":"Server Types","description":"","frontmatter":{"banner_title":"Flash - Server Types Guide","banner_description":"Illustrating the main differences between the internal server instance and the FlashServer instance.","head":[["meta",{"name":"twitter:image","content":"/assets/banner-cards/flash-server-types.png"}],["meta",{"name":"twitter:image:src","content":"https://docs.pixel-services.com/assets/banner-cards/flash-server-types.png"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:height","content":"1280"}],["meta",{"name":"twitter:image:width","content":"669"}],["meta",{"name":"twitter:description","content":""}]]},"headers":[],"relativePath":"flash/server-types.md","filePath":"flash/server-types.md"}'),t={name:"flash/server-types.md"};function l(h,s,r,p,k,d){return n(),a("div",null,s[0]||(s[0]=[e(`

Server Types

In this section, we discuss the differences between the internal server instance InternalFlashServer and the FlashServer instance, and whether you should use one or the other. We will also provide examples of how to use each type of server.

Internal Server

The internal server is a singleton instance that can be accessed by statically importing methods from InternalFlashServer. This means that for each application, only one InternalFlashServer instance is created. This allows you to use the server's functionality without creating and managing an instance of the server.

Usage

To use the internal server, you can statically import the methods from InternalFlashServer:

java
import static flash.InternalFlashServer.*;
+
+public class Example {
+    public static void main(String[] args) {
+        port(8080);
+        
+        get("/hello", (req, res) -> {
+            res.status(200);
+            return "Hello, world!";
+        });
+
+        post("/submit", (req, res) -> {
+            // Handle POST request
+        });
+
+        // Other routes and configurations
+    }
+}

Server Instance

The FlashServer class is used to create an instance of the server. Unlike the internal server, you can create multiple instances of the FlashServer class with different configurations.

Usage

To create a server instance, you can simply call new FlashServer() and configure the server using the instance methods:

java
import flash.FlashServer;
+
+public class Example {
+    public static void main(String[] args) {
+        FlashServer server = new FlashServer("My Server Instance");
+
+        server.port(8080);
+        
+        server.get("/hello", (req, res) -> {
+            res.status(200);
+            return "Hello, world!";
+        });
+
+        server.post("/submit", (req, res) -> {
+            // Handle POST request
+        });
+
+        // Other routes and configurations
+    }
+}

The InternalFlashServer is a pre-configured instance of FlashServer that is managed internally by the library. Under the hood, it is instantiated as:

java
new FlashServer("Internal");

This means:

Both the InternalFlashServer and any user-created FlashServer instances are of the same type (FlashServer). However, if you want to create and manage your own server instance, you must provide a name during initialization, e.g.:

FlashServer server = new FlashServer("My Server Instance");

Which Server Type Should You Use?

It all depends on your use case. If you only need one server instance and want to keep your code concise, you can use the internal server. However, if your application needs to handle multiple server instances each with different ports and configurations, you should use FlashServer instances.

Example use cases for each server type:

`,22)]))}const c=i(t,[["render",l]]);export{E as __pageData,c as default}; diff --git a/assets/index.md.CKSOJSRs.js b/assets/index.md.CKSOJSRs.js new file mode 100644 index 0000000..61cf0a1 --- /dev/null +++ b/assets/index.md.CKSOJSRs.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as i}from"./chunks/framework.BGabeMLJ.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"banner_title":"Pixel Services Documentation","banner_description":"Explore the documentation for all public Pixel Services projects","layout":"home","hero":{"name":"Pixel Services Documentation","text":"","tagline":"Explore the documentation for all public Pixel Services projects","actions":[{"theme":"brand","text":"Support Us","link":"https://buymeacoffee.com/pixelservices"},{"theme":"alt","text":"Check out our Github","link":"https://github.com/Pixel-Services"}]},"features":[{"title":"Flash","details":"Simple, modern and fast expressive web framework written in Java.","link":"/flash"},{"title":"ServerLibraries","details":"A Library made to ease server-side Fabric mod development.","link":"/serverlibraries"},{"title":"MoBot","details":"A Modular Discord Bot with a simple but efficent API.","link":"/mobot"}],"head":[["meta",{"name":"twitter:image","content":"/assets/banner-cards/index.png"}],["meta",{"name":"twitter:image:src","content":"https://docs.pixel-services.com/assets/banner-cards/index.png"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:height","content":"1280"}],["meta",{"name":"twitter:image:width","content":"669"}],["meta",{"name":"twitter:description","content":""}]]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),a={name:"index.md"};function n(r,o,s,c,m,l){return i(),t("div")}const h=e(a,[["render",n]]);export{p as __pageData,h as default}; diff --git a/assets/index.md.CKSOJSRs.lean.js b/assets/index.md.CKSOJSRs.lean.js new file mode 100644 index 0000000..61cf0a1 --- /dev/null +++ b/assets/index.md.CKSOJSRs.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as i}from"./chunks/framework.BGabeMLJ.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"banner_title":"Pixel Services Documentation","banner_description":"Explore the documentation for all public Pixel Services projects","layout":"home","hero":{"name":"Pixel Services Documentation","text":"","tagline":"Explore the documentation for all public Pixel Services projects","actions":[{"theme":"brand","text":"Support Us","link":"https://buymeacoffee.com/pixelservices"},{"theme":"alt","text":"Check out our Github","link":"https://github.com/Pixel-Services"}]},"features":[{"title":"Flash","details":"Simple, modern and fast expressive web framework written in Java.","link":"/flash"},{"title":"ServerLibraries","details":"A Library made to ease server-side Fabric mod development.","link":"/serverlibraries"},{"title":"MoBot","details":"A Modular Discord Bot with a simple but efficent API.","link":"/mobot"}],"head":[["meta",{"name":"twitter:image","content":"/assets/banner-cards/index.png"}],["meta",{"name":"twitter:image:src","content":"https://docs.pixel-services.com/assets/banner-cards/index.png"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:height","content":"1280"}],["meta",{"name":"twitter:image:width","content":"669"}],["meta",{"name":"twitter:description","content":""}]]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),a={name:"index.md"};function n(r,o,s,c,m,l){return i(),t("div")}const h=e(a,[["render",n]]);export{p as __pageData,h as default}; diff --git a/assets/mobot_index.md.CdigA9Ng.js b/assets/mobot_index.md.CdigA9Ng.js new file mode 100644 index 0000000..2ec4f68 --- /dev/null +++ b/assets/mobot_index.md.CdigA9Ng.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as n}from"./chunks/framework.BGabeMLJ.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{"banner_title":"MoBot - A Modular Discord Bot","banner_description":"MoBot is a modular Discord bot written in Java, featuring a beginner-friendly api and extensive documentation.","head":[["meta",{"name":"twitter:image","content":"/assets/banner-cards/mobot-index.png"}],["meta",{"name":"twitter:image:src","content":"https://docs.pixel-services.com/assets/banner-cards/mobot-index.png"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:height","content":"1280"}],["meta",{"name":"twitter:image:width","content":"669"}],["meta",{"name":"twitter:description","content":""}]]},"headers":[],"relativePath":"mobot/index.md","filePath":"mobot/index.md"}'),a={name:"mobot/index.md"};function o(i,r,m,s,c,d){return n(),e("div")}const l=t(a,[["render",o]]);export{_ as __pageData,l as default}; diff --git a/assets/mobot_index.md.CdigA9Ng.lean.js b/assets/mobot_index.md.CdigA9Ng.lean.js new file mode 100644 index 0000000..2ec4f68 --- /dev/null +++ b/assets/mobot_index.md.CdigA9Ng.lean.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as n}from"./chunks/framework.BGabeMLJ.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{"banner_title":"MoBot - A Modular Discord Bot","banner_description":"MoBot is a modular Discord bot written in Java, featuring a beginner-friendly api and extensive documentation.","head":[["meta",{"name":"twitter:image","content":"/assets/banner-cards/mobot-index.png"}],["meta",{"name":"twitter:image:src","content":"https://docs.pixel-services.com/assets/banner-cards/mobot-index.png"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:height","content":"1280"}],["meta",{"name":"twitter:image:width","content":"669"}],["meta",{"name":"twitter:description","content":""}]]},"headers":[],"relativePath":"mobot/index.md","filePath":"mobot/index.md"}'),a={name:"mobot/index.md"};function o(i,r,m,s,c,d){return n(),e("div")}const l=t(a,[["render",o]]);export{_ as __pageData,l as default}; diff --git a/assets/serverlibraries_index.md.CnbDNesW.js b/assets/serverlibraries_index.md.CnbDNesW.js new file mode 100644 index 0000000..2c23cf9 --- /dev/null +++ b/assets/serverlibraries_index.md.CnbDNesW.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as r}from"./chunks/framework.BGabeMLJ.js";const l=JSON.parse('{"title":"","description":"","frontmatter":{"banner_title":"ServerLibraries - Fabric mod library","banner_description":"ServerLibraries provides a simple API for creating server-side mods, with tons of Bukkit-like features.","head":[["meta",{"name":"twitter:image","content":"/assets/banner-cards/serverlibraries-index.png"}],["meta",{"name":"twitter:image:src","content":"https://docs.pixel-services.com/assets/banner-cards/serverlibraries-index.png"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:height","content":"1280"}],["meta",{"name":"twitter:image:width","content":"669"}],["meta",{"name":"twitter:description","content":""}]]},"headers":[],"relativePath":"serverlibraries/index.md","filePath":"serverlibraries/index.md"}'),a={name:"serverlibraries/index.md"};function i(n,s,o,c,m,d){return r(),t("div")}const _=e(a,[["render",i]]);export{l as __pageData,_ as default}; diff --git a/assets/serverlibraries_index.md.CnbDNesW.lean.js b/assets/serverlibraries_index.md.CnbDNesW.lean.js new file mode 100644 index 0000000..2c23cf9 --- /dev/null +++ b/assets/serverlibraries_index.md.CnbDNesW.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as r}from"./chunks/framework.BGabeMLJ.js";const l=JSON.parse('{"title":"","description":"","frontmatter":{"banner_title":"ServerLibraries - Fabric mod library","banner_description":"ServerLibraries provides a simple API for creating server-side mods, with tons of Bukkit-like features.","head":[["meta",{"name":"twitter:image","content":"/assets/banner-cards/serverlibraries-index.png"}],["meta",{"name":"twitter:image:src","content":"https://docs.pixel-services.com/assets/banner-cards/serverlibraries-index.png"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:height","content":"1280"}],["meta",{"name":"twitter:image:width","content":"669"}],["meta",{"name":"twitter:description","content":""}]]},"headers":[],"relativePath":"serverlibraries/index.md","filePath":"serverlibraries/index.md"}'),a={name:"serverlibraries/index.md"};function i(n,s,o,c,m,d){return r(),t("div")}const _=e(a,[["render",i]]);export{l as __pageData,_ as default}; diff --git a/flash/index.html b/flash/index.html index 645f15c..30571f6 100644 --- a/flash/index.html +++ b/flash/index.html @@ -4,7 +4,7 @@ ⚡ Flash | Pixel Services Docs - + @@ -13,16 +13,20 @@ - + + + + +
Skip to content

⚡ Flash

Flash is a simple, modern and fast expressive web framework written in Java. The project is maintained by Pixel Services and the open-source community.

Our Team

Say hello to the Pixel Services team !

Relism

Relism

Developer

Sieadev

Sieadev

Developer

- + \ No newline at end of file diff --git a/flash/installation.html b/flash/installation.html index 663b01b..b2d590d 100644 --- a/flash/installation.html +++ b/flash/installation.html @@ -4,7 +4,7 @@ 📲 Installation | Pixel Services Docs - + @@ -13,12 +13,16 @@ - + + + + +
Skip to content

📲 Installation

This page provides installation instructions for the latest version of the flash library from Pixel Services.

Installation

Maven (pom.xml)

  1. Add the repository :

    xml
    <repositories>
    @@ -40,7 +44,7 @@
     }
  2. And the dependency :

    groovy
    dependencies {
         implementation 'com.pixelservices:flash:{{ latestVersion }}'
     }
⚡ Latest version:
- + \ No newline at end of file diff --git a/flash/server-types.html b/flash/server-types.html index da5488f..0a03dcd 100644 --- a/flash/server-types.html +++ b/flash/server-types.html @@ -4,7 +4,7 @@ Server Types | Pixel Services Docs - + @@ -13,12 +13,16 @@ - + + + + +
Skip to content

Server Types

In this section, we discuss the differences between the internal server instance InternalFlashServer and the FlashServer instance, and whether you should use one or the other. We will also provide examples of how to use each type of server.

Internal Server

The internal server is a singleton instance that can be accessed by statically importing methods from InternalFlashServer. This means that for each application, only one InternalFlashServer instance is created. This allows you to use the server's functionality without creating and managing an instance of the server.

Usage

To use the internal server, you can statically import the methods from InternalFlashServer:

java
import static flash.InternalFlashServer.*;
@@ -58,7 +62,7 @@
         // Other routes and configurations
     }
 }

The InternalFlashServer is a pre-configured instance of FlashServer that is managed internally by the library. Under the hood, it is instantiated as:

java
new FlashServer("Internal");

This means:

  • Its name is set to "Internal" for logging and internal management purposes.
  • It serves as the default server used by the library, which is automatically initialized when the library is loaded.

Both the InternalFlashServer and any user-created FlashServer instances are of the same type (FlashServer). However, if you want to create and manage your own server instance, you must provide a name during initialization, e.g.:

FlashServer server = new FlashServer("My Server Instance");

Which Server Type Should You Use?

It all depends on your use case. If you only need one server instance and want to keep your code concise, you can use the internal server. However, if your application needs to handle multiple server instances each with different ports and configurations, you should use FlashServer instances.

Example use cases for each server type:

  • Internal Server: Simple Backend for a webapp.
  • Server Instance: Applications where flexible deployment and scalability are required.
- + \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index 7515f6c..3bcdda2 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"flash_index.md":"MswL21Aa","flash_installation.md":"DXFS8nXw","flash_server-types.md":"CVvcqD7R","index.md":"C0i0eblV","mobot_index.md":"DwPhSoGB","serverlibraries_index.md":"Cck5lY4m"} +{"flash_index.md":"BZydQnCn","flash_installation.md":"BILQfhgS","flash_server-types.md":"fr-GJoQm","index.md":"CKSOJSRs","mobot_index.md":"CdigA9Ng","serverlibraries_index.md":"CnbDNesW"} diff --git a/index.html b/index.html index f9522f6..f8a6197 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ Pixel Services Docs - + @@ -13,16 +13,20 @@ - + + + + +
Skip to content
- + \ No newline at end of file diff --git a/mobot/index.html b/mobot/index.html index c1f9f9a..ceaec14 100644 --- a/mobot/index.html +++ b/mobot/index.html @@ -4,7 +4,7 @@ Pixel Services Docs - + @@ -13,16 +13,20 @@ - + + + + +
Skip to content
- + \ No newline at end of file diff --git a/serverlibraries/index.html b/serverlibraries/index.html index 98711bc..43ebc02 100644 --- a/serverlibraries/index.html +++ b/serverlibraries/index.html @@ -4,7 +4,7 @@ Pixel Services Docs - + @@ -13,16 +13,20 @@ - + + + + +
Skip to content
- + \ No newline at end of file