Giter VIP home page Giter VIP logo

sourcecode-seeker's Introduction

GraphQL Easy Mock

Code Seek is a frontend development tool that allows you to locate your component's source code with a single click from the browser. It currently supports React, and will support Vue soon.

Installation

The plugin has not been published to the application market yet. You can import the dist package from the root directory of this repository into your Chrome extension.

Follow these steps:

  1. Click on the Chrome plugin button and then click on "Manage extensions".

Manage Extensions

  1. Click "Enable developer mode" in the top right corner.

Enable Developer Mode

  1. Click "Load unpacked".

Load Unpacked

  1. Import the dist package from the root directory of this repository.

Import Dist Package

  1. The plugin has been successfully installed in your Chrome browser.

Plugin Installed

How to Use

Babel configuration reference: .babelrc

This configuration allows you to use the latest JS, JSX, and TS features:

{
  "presets": [
    ["@babel/preset-env", { "targets": "defaults" }],
    ["@babel/preset-react", { "development": true }],
    "@babel/preset-typescript"
  ]
}

In your Webpack configuration, the devtool: "source-map" option enables Webpack to generate source maps. Refer to this file: webpack.config.js.

Then, enable the Source Code Seeker:

Enable Source Code Seeker

Open the Inspector (this step is crucial):

Open Inspector

Option/Alt-click the component you want to locate:

Option/Alt-click Component

You will be directed to the source code:

Locate Source Code

Exploring

I have provided an example for you to experience the plugin's features:

cd example/react
pnpm install
pnpm start

Planned Features

  1. Vue Support: Currently under development and will be added soon.

sourcecode-seeker's People

Contributors

midori-profile avatar ivy-tian avatar

Stargazers

tiaxter avatar 机灵小不懂 avatar Pink Champagne avatar mr.0x0 avatar Julie Qiu avatar Adam Freeman avatar Hanae Yamamoto avatar Jin-ah Lee avatar 玄素之道 avatar Ideal Zhu avatar Idempotence avatar Dreams Come True avatar 後継者 Kenji avatar Huang Zhehu avatar Little Machado avatar Senior Bug Maker avatar 仙人1号 avatar Eva1ent avatar Mirone avatar フミエ avatar Georgia Ruan avatar みんなの愛人 avatar Kenta Yamaguchi avatar A STAUNCH SUPPORTER OF GITLAB avatar Huawei ❤️ Apple avatar Vina Bianchi avatar 三柒五妍 avatar Elizabath Long avatar 窝窝头 avatar 逆AFNG avatar めぐりあい avatar Kalani Ululani avatar love really hurts without you avatar 星之吻痕 avatar 超乖der♡ avatar Not That Bored avatar Tracy is Best Witch avatar XIM avatar Icy Trending avatar Computer Engineer avatar Taylor avatar Ahmed Al-Mohammed avatar Fafeng Long avatar Alexander Hu Qiang avatar ivy hu avatar sawanaii avatar  avatar  avatar  avatar

Watchers

 avatar sawanaii avatar

Forkers

blackray12

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.