### One-Click Install Jpom Agent with Service Source: https://github.com/dromara/jpom/blob/master/README.md Installs the Jpom agent with default configurations and automatically sets it up to start on boot using a curl script. ```bash curl -fsSL https://jpom.top/docs/install.sh | bash -s Agent jdk+default+service ``` -------------------------------- ### Manual Server, JDK, and Maven Installation (Linux) Source: https://github.com/dromara/jpom/blob/master/README-en.md Installs Jpom server, JDK, and Maven environments using wget to download the install script. Ensure Server and Agent are installed in different directories. ```shell yum install -y wget && \ wget -O install.sh https://jpom.top/docs/install.sh && \ bash install.sh Server jdk+mvn ``` -------------------------------- ### Install Jpom Server on Ubuntu Source: https://github.com/dromara/jpom/blob/master/README.md Installs the Jpom server and JDK on Ubuntu using a script. Ensure wget is installed. ```bash apt-get install -y wget && \ wget -O install.sh https://jpom.top/docs/install.sh && \ bash install.sh Server jdk ``` -------------------------------- ### One-click Server Installation (Linux) Source: https://github.com/dromara/jpom/blob/master/README-en.md Installs Jpom server with default JDK environment. The installation directory is the current directory. Ensure Server and Agent are not installed in the same directory. ```shell curl -fsSL https://jpom.top/docs/install.sh | bash -s Server jdk+default ``` -------------------------------- ### Manual Server and JDK Installation (Linux) Source: https://github.com/dromara/jpom/blob/master/README-en.md Installs Jpom server and the JDK environment using wget to download the install script. Ensure the command is executed in a different directory for Server and Agent. ```shell yum install -y wget && \ wget -O install.sh https://jpom.top/docs/install.sh && \ bash install.sh Server jdk ``` -------------------------------- ### One-click Server Installation with Service Configuration (Linux) Source: https://github.com/dromara/jpom/blob/master/README-en.md Installs Jpom server with default JDK and configures it to run as an automatic startup service. The installation directory is the current directory. ```shell curl -fsSL https://jpom.top/docs/install.sh | bash -s Server jdk+default+service ``` -------------------------------- ### Install Jpom Agent and JDK on Ubuntu using wget Source: https://github.com/dromara/jpom/blob/master/README.md Installs the Jpom agent and JDK environment on Ubuntu systems using wget to download and execute an installation script. ```bash # ubuntu apt-get install -y wget && \ wget -O install.sh https://jpom.top/docs/install.sh && \ bash install.sh Agent jdk ``` -------------------------------- ### Install Jpom Agent and JDK using wget Source: https://github.com/dromara/jpom/blob/master/README.md Installs the Jpom agent and JDK environment using wget to download and execute an installation script. This method is suitable for systems with wget available. ```bash # 安装插件端和 jdk 环境 yum install -y wget && \ wget -O install.sh https://jpom.top/docs/install.sh && \ bash install.sh Agent jdk ``` -------------------------------- ### Install Jpom Agent on Ubuntu Source: https://github.com/dromara/jpom/blob/master/README.md Installs the Jpom agent and JDK environment on Ubuntu systems using apt-get and a script. Ensure wget is installed. ```bash apt-get install -y wget && \ wget -O install.sh https://jpom.top/docs/install.sh && \ bash install.sh Agent jdk ``` -------------------------------- ### Install Git and Clone Jpom Repository Source: https://github.com/dromara/jpom/blob/master/README.md Installs Git using yum and clones the Jpom repository. This is a prerequisite for using Docker Compose. ```shell yum install -y git git clone https://gitee.com/dromara/Jpom.git ``` -------------------------------- ### Install nvm (Node Version Manager) Source: https://github.com/dromara/jpom/blob/master/web-vue/README.md Shell command to install nvm for managing Node.js versions, with a link to a Chinese mirror. ```bash bash -c "$(curl -fsSL https://gitee.com/RubyMetric/nvm-cn/raw/main/install.sh)" ``` -------------------------------- ### Install Jpom Agent on CentOS/RHEL Source: https://github.com/dromara/jpom/blob/master/README.md Installs the Jpom agent and JDK environment on CentOS/RHEL systems using wget and a script. Ensure wget is installed. ```bash yum install -y wget && \ wget -O install.sh https://jpom.top/docs/install.sh && \ bash install.sh Agent jdk ``` -------------------------------- ### Install Jpom Services with systemctl Source: https://github.com/dromara/jpom/blob/master/README.md Commands to manage Jpom server and agent as systemd services after installation using the Service.sh script. ```bash systemctl {status | start | stop | restart} jpom-server systemctl {status | start | stop | restart} jpom-agent ``` -------------------------------- ### Manage Jpom Server with Linux Shell Scripts Source: https://github.com/dromara/jpom/blob/master/README.md Scripts for managing the Jpom server process on Linux, including start, stop, restart, status checks, and service installation. ```bash # 服务端 ./bin/Server.sh start # 启动Jpom服务端 ./bin/Server.sh stop # 停止Jpom服务端 ./bin/Server.sh restart # 重启Jpom服务端 ./bin/Server.sh status # 查看Jpom服务端运行状态 ./bin/Service.sh install # 创建Jpom服务端的应用服务(jpom-server) ``` -------------------------------- ### Run Jpom Server in Docker with Volumes (Aliyun) Source: https://github.com/dromara/jpom/blob/master/README.md Starts a Jpom server container using named Docker volumes for data, logs, and configuration from the Aliyun registry. Volumes are created if they don't exist. ```bash docker pull registry.cn-chengdu.aliyuncs.com/jpomdocker/jpom docker volume create jpom-server-data docker volume create jpom-server-logs docker volume create jpom-server-conf docker run -d -p 2122:2122 \ --name jpom-server \ -v jpom-server-data:/usr/local/jpom-server/data \ -v jpom-server-logs:/usr/local/jpom-server/logs \ -v jpom-server-conf:/usr/local/jpom-server/conf \ jpomdocker/jpom ``` -------------------------------- ### Start Jpom with Docker Compose Source: https://github.com/dromara/jpom/blob/master/README-en.md This command clones the Jpom repository and starts the services defined in the docker-compose.yml file. It automatically handles compilation and building. ```shell yum install -y git git clone https://gitee.com/dromara/Jpom.git cd Jpom docker-compose -f docker-compose.yml up ``` -------------------------------- ### Manage Jpom Agent with Linux Shell Scripts Source: https://github.com/dromara/jpom/blob/master/README.md Scripts for managing the Jpom agent process on Linux, including start, stop, restart, status checks, and service installation. ```bash # 插件端 ./bin/Agent.sh start # 启动Jpom插件端 ./bin/Agent.sh stop # 停止Jpom插件端 ./bin/Agent.sh restart # 重启Jpom插件端 ./bin/Agent.sh status # 查看Jpom插件端运行状态 ./bin/Service.sh install # 创建Jpom插件端的应用服务(jpom-agent) ``` -------------------------------- ### Start Jpom with Docker Compose Source: https://github.com/dromara/jpom/blob/master/README.md Starts Jpom services using Docker Compose. Multiple variations are provided for different build and deployment scenarios. ```shell cd Jpom docker-compose -f docker-compose.yml up ``` ```shell # docker-compose -f docker-compose.yml up --build ``` ```shell # docker-compose -f docker-compose.yml build --no-cache ``` ```shell # docker-compose -f docker-compose-local.yml up ``` ```shell # docker-compose -f docker-compose-local.yml build --build-arg TEMP_VERSION=.0 ``` ```shell # docker-compose -f docker-compose-cluster.yml up --build ``` -------------------------------- ### Install Node.js Dependencies and Build Source: https://github.com/dromara/jpom/blob/master/README.md Commands to install Node.js dependencies and build a Vue project using Yarn. The '--cwd' flag specifies the directory for the operation. ```bash yarn --cwd xxxx/ install yarn --cwd xxxx/ build ``` -------------------------------- ### One-Click Install Jpom Agent (Default) Source: https://github.com/dromara/jpom/blob/master/README.md Installs the Jpom agent with default configurations using a curl script. This command can be run on any Linux-based system. ```bash curl -fsSL https://jpom.top/docs/install.sh | bash -s Agent jdk+default ``` -------------------------------- ### Run Jpom Server in Docker with Volumes (DockerHub) Source: https://github.com/dromara/jpom/blob/master/README.md Starts a Jpom server container using named Docker volumes for data, logs, and configuration from DockerHub. Volumes are created if they don't exist. ```bash docker pull jpomdocker/jpom docker volume create jpom-server-data docker volume create jpom-server-logs docker volume create jpom-server-conf docker run -d -p 2122:2122 \ --name jpom-server \ -v jpom-server-data:/usr/local/jpom-server/data \ -v jpom-server-logs:/usr/local/jpom-server/logs \ -v jpom-server-conf:/usr/local/jpom-server/conf \ jpomdocker/jpom ``` -------------------------------- ### Run Jpom Server in Docker (Basic) Source: https://github.com/dromara/jpom/blob/master/README.md Starts a Jpom server container using a single Docker command, exposing port 2122. This is the simplest way to run Jpom in a container. ```bash docker run -p 2122:2122 --name jpom-server jpomdocker/jpom ``` -------------------------------- ### Run MariaDB Docker Container Source: https://github.com/dromara/jpom/blob/master/modules/storage-module/storage-module-mariadb/README.md Starts a MariaDB Docker container named 'jpom-mariadb' with a root password and exposes port 3309. ```shell docker run -d --name jpom-mariadb -e MYSQL_ROOT_PASSWORD=jpom123456 -p 3309:3306 mariadb ``` -------------------------------- ### Run PostgreSQL Docker Container Source: https://github.com/dromara/jpom/blob/master/modules/storage-module/storage-module-postgresql/README.md This command starts a PostgreSQL container for jpom. Ensure the ports are mapped correctly and environment variables are set for user, password, and database. ```shell docker run --name jpom-postgres \ -e POSTGRES_USER=jpom \ -e POSTGRES_PASSWORD=jpom123456 \ -e POSTGRES_DB=jpom \ -p 5432:5432 -d postgres ``` -------------------------------- ### Manage Jpom Services with Systemctl (Linux) Source: https://github.com/dromara/jpom/blob/master/README-en.md Control Jpom server and agent services using systemctl commands after installation. ```bash systemctl {status | start | stop | restart} jpom-server systemctl {status | start | stop | restart} jpom-agent ``` -------------------------------- ### Run MySQL Docker Container Source: https://github.com/dromara/jpom/blob/master/modules/storage-module/storage-module-mysql/README.md Starts a MySQL Docker container in detached mode, mapping port 3306 and setting the root password. ```shell docker run -itd --name jpom-mysql-test -p 3306:3306 -e MYSQL_ROOT_PASSWORD=k@4Qoi6qdV#OYjQd mysql ``` -------------------------------- ### Manage Jpom Server with Windows Batch Scripts Source: https://github.com/dromara/jpom/blob/master/README.md Scripts for managing the Jpom server process on Windows, including start, stop, restart, and status checks. Also includes a command-line interface for interactive management. ```batch # 服务端管理脚本 (命令行) ./bin/Server.bat start # 启动Jpom服务端 ./bin/Server.bat stop # 停止Jpom服务端 ./bin/Server.bat restart # 重启Jpom服务端 ./bin/Server.bat status # 查看Jpom服务端运行状态 # 服务端管理脚本 (控制面板),按照面板提示输入操作 ./bin/Server.bat ``` -------------------------------- ### Manage Jpom Agent with Windows Batch Scripts Source: https://github.com/dromara/jpom/blob/master/README.md Scripts for managing the Jpom agent process on Windows, including start, stop, restart, and status checks. Also includes a command-line interface for interactive management. ```batch # 插件端管理脚本 ./bin/Agent.bat start # 启动Jpom插件端 ./bin/Agent.bat stop # 停止Jpom插件端 ./bin/Agent.bat restart # 重启Jpom插件端 ./bin/Agent.bat status # 查看Jpom插件端运行状态 # 插件端管理脚本(控制面板),按照面板提示输入操作 ./bin/Agent.bat ``` -------------------------------- ### Run Jpom Server in Docker with Privileged Mode Source: https://github.com/dromara/jpom/blob/master/README.md Starts a Jpom server container with the `--privileged` flag, which may resolve 'Operation not permitted' errors in older Docker versions. This provides broader access to the host system. ```bash docker run -p 2122:2122 --name jpom-server jpomdocker/jpom --privileged ``` -------------------------------- ### Run Project Commands Source: https://github.com/dromara/jpom/blob/master/web-vue/README.md Commands to run the project locally or build it for production. ```bash pnpm dev # 本地运行 pnpm build # 打包 ``` -------------------------------- ### Project Directory Structure Source: https://github.com/dromara/jpom/blob/master/web-vue/README.md Overview of the project's directory layout, including source files, configuration, and build outputs. ```bash . ├── .vscode │ └── setting.json ├── dist ├── mock │ └── app.ts|tsx ├── src │ ├── components # 公共组件 │ ├── assets # 静态资源 │ ├── interface # 类型定义 │ ├── router # 路由配置 │ ├── stores # 状态管理器 │ │ └── index.ts │ ├── pages # 页面 │ │ ├── login │ │ └── user │ ├── utils # 工具文件 │ │ └── index.ts │ ├── api # 接口文件 │ │ └── api.ts │ ├── app.vue │ ├── main.ts ├── node_modules ├── .env ├── eslint.json ├── vite.config.ts # vite配置 ├── package.json ├── tsconfig.json └── type.d.ts ``` -------------------------------- ### Run Jpom Server in Docker with Host Mounts (Aliyun) Source: https://github.com/dromara/jpom/blob/master/README.md Runs a Jpom server container using data, logs, and configuration mounted from host directories on the Aliyun registry. Ensure the host directories are created beforehand. ```bash docker pull registry.cn-chengdu.aliyuncs.com/jpomdocker/jpom mkdir -p /home/jpom-server/logs mkdir -p /home/jpom-server/data mkdir -p /home/jpom-server/conf docker run -d -p 2122:2122 \ --name jpom-server \ -v /home/jpom-server/logs:/usr/local/jpom-server/logs \ -v /home/jpom-server/data:/usr/local/jpom-server/data \ -v /home/jpom-server/conf:/usr/local/jpom-server/conf \ jpomdocker/jpom ``` -------------------------------- ### Docker Daemon ExecStart Configuration with TLS Source: https://github.com/dromara/jpom/blob/master/modules/sub-plugin/docker-cli/README.md This snippet shows the ExecStart command for the Docker daemon, including TLS verification settings and the address for TCP connections. It specifies the path to the Docker service file and restarts the Docker service. ```bash ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --tlsverify --tlscacert=/home/docker/tls-ca/ca.pem --tlscert=/home/docker/tls-ca/server-cert.pem --tlskey=/home/docker/tls-ca/server-key.pem -H tcp://0.0.0.0:2375 ``` -------------------------------- ### Connect to MySQL Source: https://github.com/dromara/jpom/blob/master/modules/storage-module/storage-module-mysql/README.md Connects to the running MySQL instance using the root user and the specified password. ```shell mysql -u root -p'k@4Qoi6qdV#OYjQd' ``` -------------------------------- ### Run Jpom Server in Docker with Host Mounts (DockerHub) Source: https://github.com/dromara/jpom/blob/master/README.md Runs a Jpom server container using data, logs, and configuration mounted from host directories on DockerHub. Ensure the host directories are created beforehand. ```bash docker pull jpomdocker/jpom mkdir -p /home/jpom-server/logs mkdir -p /home/jpom-server/data mkdir -p /home/jpom-server/conf docker run -d -p 2122:2122 \ --name jpom-server \ -v /home/jpom-server/logs:/usr/local/jpom-server/logs \ -v /home/jpom-server/data:/usr/local/jpom-server/data \ -v /home/jpom-server/conf:/usr/local/jpom-server/conf \ jpomdocker/jpom ``` -------------------------------- ### Compile Java Project with Maven Source: https://github.com/dromara/jpom/blob/master/README.md Command to clean and package a Java project using Maven. The '-f' flag specifies the path to the pom.xml file. ```bash mvn -f xxxx/pom.xml clean package ``` -------------------------------- ### Create MySQL Database Source: https://github.com/dromara/jpom/blob/master/modules/storage-module/storage-module-mysql/README.md Creates the 'jpom' database with UTF8MB4 character set if it does not already exist. ```sql create database if not exists jpom default character set utf8mb4; ``` -------------------------------- ### Commit and Push Changes Source: https://github.com/dromara/jpom/blob/master/README.md Add modified files to the staging area, commit them with a descriptive message, and push them to the remote repository. Replace '分支名' with 'dev' or 'docs' as appropriate. ```bash git add . git commit -m '填写您做了什么修改' git push origin 分支名 ``` -------------------------------- ### Build Jpom with Docker Compose Source: https://github.com/dromara/jpom/blob/master/README-en.md These commands provide options for building Jpom using Docker Compose, including forcing a rebuild without cache or specifying a build argument for versioning. ```shell # docker-compose -f docker-compose.yml up --build # docker-compose -f docker-compose.yml build --no-cache # docker-compose -f docker-compose-local.yml up # docker-compose -f docker-compose-local.yml build --build-arg TEMP_VERSION=.0 # docker-compose -f docker-compose-cluster.yml up --build ``` -------------------------------- ### Clone Jpom Repository Source: https://github.com/dromara/jpom/blob/master/README.md Clone the Jpom repository to your local machine. Specify the branch ('dev' for code, 'docs' for documentation) and replace 'username' with your Gitee username. ```bash git clone -b 分支名 https://gitee.com/用户名/Jpom.git ``` -------------------------------- ### Docker Daemon TLS Configuration Options Source: https://github.com/dromara/jpom/blob/master/modules/sub-plugin/docker-cli/README.md These options are used to configure TLS verification for the Docker daemon, including paths to CA certificates, server certificates, and server keys. They also specify the network interfaces and ports for the daemon to listen on. ```bash --tlsverify \ --tlscacert=/home/docker-ca/ca.pem \ --tlscert=/home/docker-ca/server-cert.pem \ --tlskey=/home/docker-ca/server-key.pem \ -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375 ``` ```bash --tlsverify --tlscacert=/home/docker-ca/ca.pem --tlscert=/home/docker-ca/server-cert.pem --tlskey=/home/docker-ca/server-key.pem -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375 ``` -------------------------------- ### Check Dependency Versions Source: https://github.com/dromara/jpom/blob/master/web-vue/README.md Commands to check and update project dependencies using npm-check-updates. ```bash npm install -g npm-check-updates ncu ``` -------------------------------- ### Clone Jpom Repository Source: https://github.com/dromara/jpom/blob/master/README-en.md Clone the Jpom repository to your local machine, specifying the branch for code or documentation contributions. ```bash git clone -b branch-name https://gitee.com/username/Jpom.git ``` -------------------------------- ### Allow Jpom Management Port Source: https://github.com/dromara/jpom/blob/master/README.md Opens TCP port 2122 for the Jpom management interface and reloads the firewall. This is necessary if the management page is inaccessible. ```bash #放行管理系统的 2122 端口 firewall-cmd --add-port=2122/tcp --permanent #重启防火墙才会生效 firewall-cmd --reload ``` -------------------------------- ### Spacing Between English Words Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Demonstrates the standard practice of using a single space between English words to ensure readability. ```text Hello World! ``` ```text HelloWorld! ``` -------------------------------- ### Spacing Around Parentheses Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Illustrates the correct placement of spaces around English parentheses. Spaces should precede and follow the parentheses for proper separation. ```text Virtual machines (VMs) are an abstraction of physical hardware turning one server into many servers. ``` ```text Virtual machines(VMs)are an abstraction of physical hardware turning one server into many servers. ``` -------------------------------- ### Spacing After English Punctuation Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Demonstrates the correct usage of spacing after English punctuation like periods and commas in sentences. This ensures readability and standard formatting. ```text GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere. ``` ```text You can download,install and maintain your own GitLab instance. ``` ```text You can download, install and maintain your own GitLab instance. ``` -------------------------------- ### Correct Capitalization of Technical Terms Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Ensures proper capitalization for common technical terms like Java, JDK, OpenJDK, GitHub, GitLab, HTML, CSS, JavaScript, Spring, MyBatis, MyBatis-Plus, Android, iOS, Google, and Docker. Refer to official documentation for verification. ```text Java JDK OpenJDK GitHub GitLab HTML CSS JavaScript Spring MyBatis MyBatis-Plus Android iOS Google Docker ``` -------------------------------- ### Jpom Web Vue Global Configuration Variables Source: https://github.com/dromara/jpom/blob/master/web-vue/index.html These global JavaScript variables are used to configure the Jpom web application. Ensure these values are set correctly for your environment. ```javascript window.routerBase = '' window.apiTimeout = '' window.uploadFileSliceSize = '' window.uploadFileConcurrent = '' window.oauth2Provide = '' window.transportEncryption = '' window.jpomDefaultLocale ='' ``` -------------------------------- ### Commit Changes to Jpom Repository Source: https://github.com/dromara/jpom/blob/master/README-en.md Stage, commit, and push your code or documentation changes to your forked Jpom repository. ```bash # Add your changes to the staging area git add . # Commit your changes with a descriptive message git commit -m 'Describe your changes' # Push to your remote repository, replacing branch-name with dev or docs git push origin branch-name ``` -------------------------------- ### Spacing Between Numbers and Units Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Illustrates the correct spacing between numerical values and their units of measurement. A space is required between the number and the unit. ```text The Omnibus GitLab package requires about 2.5 GB of storage space for installation. ``` ```text The Omnibus GitLab package requires about 2.5GB of storage space for installation. ``` -------------------------------- ### Jpom Web Vue Loading Indicator CSS Source: https://github.com/dromara/jpom/blob/master/web-vue/index.html CSS styles for the first loading wrapper and the animated dot loader used in the Jpom web application. These styles ensure a centered and animated loading experience. ```css .first-loading-wrp { display: flex; justify-content: center; align-items: center; flex-direction: column; min-height: 420px; height: 100%; } .first-loading-wrp > h1 { font-size: 128px; } .first-loading-wrp .loading-wrp { padding: 98px; display: flex; justify-content: center; align-items: center; } .dot { animation: antRotate 1.2s infinite linear; transform: rotate(45deg); position: relative; display: inline-block; font-size: 32px; width: 32px; height: 32px; box-sizing: border-box; } .dot i { width: 14px; height: 14px; position: absolute; display: block; background-color: #1890ff; border-radius: 100%; transform: scale(0.75); transform-origin: 50% 50%; opacity: 0.3; animation: antSpinMove 1s infinite linear alternate; } .dot i:nth-child(1) { top: 0; left: 0; } .dot i:nth-child(2) { top: 0; right: 0; -webkit-animation-delay: 0.4s; animation-delay: 0.4s; } .dot i:nth-child(3) { right: 0; bottom: 0; -webkit-animation-delay: 0.8s; animation-delay: 0.8s; } .dot i:nth-child(4) { bottom: 0; left: 0; -webkit-animation-delay: 1.2s; animation-delay: 1.2s; } @keyframes antRotate { to { -webkit-transform: rotate(405deg); transform: rotate(405deg); } } @-webkit-keyframes antRotate { to { -webkit-transform: rotate(405deg); transform: rotate(405deg); } } @keyframes antSpinMove { to { opacity: 1; } } @-webkit-keyframes antSpinMove { to { opacity: 1; } } ``` -------------------------------- ### Spacing Between Chinese and Numbers Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Demonstrates the correct spacing between Chinese text and numbers. A space should be inserted for clarity. ```text 适用于 Windows 11/10/8.1/8/7 64 位。 ``` ```text 适用于 Windows 11/10/8.1/8/7 64 位。 ``` -------------------------------- ### Using Half-width Punctuation in English Sentences Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Use half-width punctuation marks in English sentences to adhere to standard English punctuation rules. ```text You build it, you run it. ``` ```text You build it,you run it。 ``` -------------------------------- ### Spacing Around English Hyperlinks Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Shows the correct spacing around English text that is part of a hyperlink. Spaces should be present before and after the hyperlink text. ```text 如果您是来自 React 的开发者,您可能会对 Vuex 和 [Redux](https://github.com/reactjs/redux) 间的差异表示关注,Redux 是 React 生态环境中最流行的 Flux 实现。 ``` ```text 如果您是来自 React 的开发者,您可能会对 Vuex 和[Redux](https://github.com/reactjs/redux)间的差异表示关注,Redux 是 React 生态环境中最流行的 Flux 实现。 ``` -------------------------------- ### Execute Command to Find JpomServer Process Source: https://github.com/dromara/jpom/blob/master/PLANS.md This command is used to find the process ID of JpomServer. It's part of custom project status checks. ```batch for /f "tokens=1 delims= " %i in ('jps -l ^| findstr "JpomServer"') do @echo %i ``` -------------------------------- ### Using Full-width Punctuation in Chinese Sentences Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Employ full-width punctuation marks within Chinese sentences for proper grammatical structure and readability. ```text 借助个人资料,您可单独保存自己的所有 Chrome 信息,例如书签、历史记录、密码及其他设置。个人资料最适合用于以下情况:多人共用一台计算机,或者您需要分隔自己的不同帐号(例如工作帐号和个人帐号)。 ``` ```text 您可以根据自己的需求或心情,选择主题和颜色(例如“深色模式”)。 ``` -------------------------------- ### Spacing Between Chinese and English Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Shows the correct spacing between Chinese characters and English words. A space should be added to improve readability. ```text 将使用情况统计信息和崩溃报告自动发送给 Google,帮助我们完善 Google Chrome。 ``` ```text 将使用情况统计信息和崩溃报告自动发送给 Google,帮助我们完善 Google Chrome。 ``` -------------------------------- ### No Space Between English Words and Periods Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Do not add a space between an English word and a following period. The period should directly follow the word. ```text All Roads Lead to Rome. ``` ```text All Roads Lead to Rome . ``` -------------------------------- ### Using Half-width Characters for Numbers Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Always use half-width characters for numbers, even when they appear in Chinese text, to ensure consistency and avoid display issues. ```text 这个蛋糕价值 1000 元。 ``` ```text 这个蛋糕只卖 1000 元。 ``` -------------------------------- ### No Space Between Numbers and Percentage Signs Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Do not add a space between a number and the percentage sign (%). The number and sign form a single unit representing a percentage. ```text 我现在手机的电量是 100%。 ``` ```text 我现在手机的电量是 100 %。 ``` -------------------------------- ### Space Between Chinese and English Words Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Ensure a space is present between Chinese and English words for better readability. This applies to general text and product names. ```text 通过 Gmail、Google Pay 和 Google 助理等 Google 应用,Chrome 可帮助您保持工作效率并充分利用您的浏览器。 ``` ```text 通过Gmail、Google Pay和Google助理等Google应用,Chrome可帮助您保持工作效率并充分利用您的浏览器。 ``` -------------------------------- ### Punctuation in Mixed Chinese and English Text Source: https://github.com/dromara/jpom/blob/master/typography-specification.md When mixing Chinese and English, use full-width punctuation for Chinese contexts and half-width for English contexts to maintain clarity. ```text 通过 Gmail、Google Pay 和 Google 助理等 Google 应用,Chrome 可帮助您保持工作效率并充分利用您的浏览器。 ``` -------------------------------- ### Avoiding Consecutive Identical Punctuation Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Do not use consecutive identical punctuation marks, even for emphasis. This maintains a clean and professional appearance. ```text 如果您刚开始学习前端开发,将框架作为您的第一步可能不是最好的主意——掌握好基础知识再来吧! ``` ```text 如果您刚开始学习前端开发,将框架作为您的第一步可能不是最好的主意——掌握好基础知识再来吧!!! ``` -------------------------------- ### Using Em Dashes in Chinese Sentences Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Use the full-width em dash (——) in Chinese sentences to indicate a pause or elaboration. It should span two character widths and be vertically centered. ```text 我们刚才简单介绍了 Vue 核心最基本的功能——本教程的其余部分将更加详细地涵盖这些功能以及其它高级功能,所以请务必读完整个教程! ``` ```text 我们刚才简单介绍了 Vue 核心最基本的功能—本教程的其余部分将更加详细地涵盖这些功能以及其它高级功能,所以请务必读完整个教程! ``` -------------------------------- ### No Space Between Numbers and Degree Symbols Source: https://github.com/dromara/jpom/blob/master/typography-specification.md Do not add a space between a number and the degree symbol (°). The number and symbol form a single unit representing a measurement. ```text 角度为 90° 的角,就是直角。 ``` ```text 角度为 90 ° 的角,就是直角。 ```