Title: TDP Ring Builder
Author: thediamondport
Published: <strong>2024 年 10 月 7 日</strong>
Last modified: 2024 年 10 月 7 日

---

搜索插件

![](https://ps.w.org/tdp-ring-builder/assets/banner-772x250.jpg?rev=3164125)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/tdp-ring-builder/assets/icon-128x128.png?rev=3164088)

# TDP Ring Builder

 作者：[thediamondport](https://profiles.wordpress.org/thediamondport/)

[下载](https://downloads.wordpress.org/plugin/tdp-ring-builder.zip)

 * [详情](https://cn.wordpress.org/plugins/tdp-ring-builder/#description)
 * [评价](https://cn.wordpress.org/plugins/tdp-ring-builder/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/tdp-ring-builder/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/tdp-ring-builder/#developers)

 [支持](https://wordpress.org/support/plugin/tdp-ring-builder/)

## 描述

The TDP Ring Builder Plugin is designed to enhance the shopping experience for users
looking to create custom diamond engagement rings. It supports both lab-grown and
natural diamonds, and allows customers to choose between loose rings, loose diamonds,
or a complete engagement ring.

Key Features:
 * Build custom engagement rings by selecting diamonds and ring settings.*
Supports lab-grown and natural diamonds. * Allows the purchase of loose rings and
loose diamonds. * Seamless integration with WooCommerce.

### Additional Information

This plugin communicates with external APIs provided by [The Diamond Port](https://thediamondport.com/).
Check their [Terms of Use](https://thediamondport.com/terms-and-conditions) and 
[Privacy Policy](https://thediamondport.com/privacy-policy).

**Note:** Users may need to create an account with The Diamond Port to use certain
features of this plugin.

## 安装

To install the TDP Ring Builder Plugin:

 1. Upload `tdp-rb` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the \’Plugins\’ menu in WordPress.
 3. Use the provided shortcode `[Ring_Builder]` to display the ring builder on any 
    page.

### Source Code

The original unminified source code for JavaScript and CSS files is available within
the plugin in the `/vue-vite-app/src` directory.

For developers who wish to view or modify the source, please refer to the `/vue-
vite-app/src` folder.

### External References

This plugin uses Vue.js and Vuex for frontend functionality. Some metadata and URLs
referencing these libraries may be included in the generated build files. These 
URLs are part of the open-source licenses of these libraries and do not affect the
performance of the plugin.

For more information about these libraries:
 – Vue.js: https://vuejs.org/ – Vuex:
https://next.vuex.vuejs.org/

### Vue Vite App

This project is a Vue.js application built with Vite, designed to be a WordPress
plugin. It utilizes various dependencies for routing, state management, styling,
and other features.

### Table of Contents

 * [Requirements](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#requirements)
 * [Installation](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#installation)
 * [Development](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#development)
 * [Building the Project](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#building-the-project)
 * [Usage](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#usage)
    - [Dependencies](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#dependencies)
    - [Vue](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#vue)
    - [Vue Router](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#vue-router)
    - [Vuex](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#vuex)
    - [Axios](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#axios)
    - [Tailwind CSS](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#tailwind-css)
    - [Vue Slider Component](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#vue-slider-component)
 * [Contributing](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#contributing)
 * [License](https://cn.wordpress.org/plugins/tdp-ring-builder/?output_format=md#license)

### Requirements

 * Node.js (v14 or higher)
 * npm (v6 or higher)

### Installation

Install the dependencies:
 `bash npm install

### Development

To start the development server, run:
 `bash npm run dev

This will start the Vite development server, and you can view the application in
your browser at `http://localhost:3000`.

### Building the Project

To build the project for production, run:
 `bash npm run build

This command will generate the production files in the `dist` directory, which you
can upload to your WordPress plugin folder.

### For Developers Only:-

### Dependencies

#### Vue

 * **Version**: ^3.4.34
 * **Description**: Vue.js is a progressive JavaScript framework for building user
   interfaces.
 * **Usage**: Import Vue components in your application by using:
    `javascript import{
   createApp } from ‘vue’; import App from ‘./App.vue’;
 * createApp(App).mount(‘#app’);
    `

#### Vue Router

 * **Version**: ^4.4.0
 * **Description**: Vue Router is the official router for Vue.js, allowing you to
   create single-page applications with navigation.
 * **Usage**: Define routes in your application:
    `javascript import { createRouter,
   createWebHistory } from ‘vue-router’; import Home from ‘./pages/Home.vue’;
 * const routes = [
    { path: ‘/’, component: Home }, ];
 * const router = createRouter({
    history: createWebHistory(), routes, });
 * export default router;
    `

#### Vuex

 * **Version**: ^4.0.2
 * **Description**: Vuex is a state management pattern + library for Vue.js applications.
 * **Usage**: Create a store to manage your application state:
    `javascript import{
   createStore } from ‘vuex’;
 * const store = createStore({
    state() { return { count: 0 }; }, mutations: { increment(
   state) { state.count++; } } });
 * export default store;
    `

#### Axios

 * **Version**: ^1.7.3
 * **Description**: Axios is a promise-based HTTP client for the browser and Node.
   js.
 * **Usage**: Make HTTP requests:
    `javascript import axios from ‘axios’;
 * axios.get(‘/api/data’)
    .then(response => { console.log(response.data); }); `

#### Tailwind CSS

 * **Version**: ^3.4.7
 * **Description**: Tailwind CSS is a utility-first CSS framework for creating custom
   designs.
 * **Usage**: Use the utility classes in your HTML/JSX:
    `html <div class="tdprb-
   bg-backgroundColor tdprb-text-textPrimaryColor">Hello, World!</div>

#### Vue Slider Component

 * **Version**: ^4.1.0-beta.7
 * **Description**: A Vue slider component for selecting values.
 * **Usage**: Use it in your components:
    `html <vue-slider v-model="value"></vue-
   slider>

## 常见问题

### How do I add the ring builder to my site?

Simply use the shortcode `[Ring_Builder]` on any page where you want to display 
the ring builder.

### Can I customize the appearance of the ring builder?

Yes, you can customize the appearance through the backend settings provided by the
plugin. These settings include:

 * **Lab Grown Settings:** Customize options related to lab-grown diamonds.
 * **Natural Settings:** Adjust settings for natural diamonds.
 * **Ring Settings:** Modify the appearance and options for ring settings.
 * Additionally, the plugin offers an order list to view customer orders.

## 评价

此插件暂无评价。

## 贡献者及开发者

「TDP Ring Builder」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ thediamondport ](https://profiles.wordpress.org/thediamondport/)

[帮助将「TDP Ring Builder」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/tdp-ring-builder)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/tdp-ring-builder/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/tdp-ring-builder/)，或通过[RSS](https://plugins.trac.wordpress.org/log/tdp-ring-builder/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/tdp-ring-builder/)。

## 更新日志

#### 1.0

 * Initial release of the TDP Ring Builder Plugin.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**2 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.6.5**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/tdp-ring-builder/)
 * 标签
 * [ring builder](https://cn.wordpress.org/plugins/tags/ring-builder/)
 *  [高级视图](https://cn.wordpress.org/plugins/tdp-ring-builder/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/tdp-ring-builder/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/tdp-ring-builder/reviews/)

## 贡献者

 *   [ thediamondport ](https://profiles.wordpress.org/thediamondport/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/tdp-ring-builder/)