Giter Site home page Giter Site logo

parcellab / parcellab-js-plugin Goto Github PK

View Code? Open in Web Editor NEW
8.0 12.0 2.0 3.64 MB

JavaScript plugin used to retrieve and display trackings from parcelLab on any given webpage.

Home Page: https://how.parcellab.works/docs/integration-quick-start/track-and-trace-page

JavaScript 94.04% HTML 0.82% SCSS 5.14%
ecommerce javascript-plugin deliveries parcels parcellab webpage courier prediction team-frontend

parcellab-js-plugin's Issues

Delivery Info Component

Delivery-info:

DeliveryAddress.js

PickUpLocation.js

OpenningHours.js

VoteCourier.js (may be this could be moved to Social?)

Julians style suggestions ๐Ÿ’…

1

Maybe extend .pl-contact-btn with

    min-width: 260px;
    height: 28px;
    padding-top: 3px;

Screen Shot 2018-02-16 at 20.54.05.png

2

Could you create sample trackings for each status, based on dhl-germany / 00PL16120004

3

Remove #pl-tracking-heading completely? I think it's superfluous.

Also we can shorten the label for the details button (in the backend)

Weitere Informationen zu DHL

Or maybe even colorize it?
Screen Shot 2018-02-16 at 21.05.17.png

<span class="label" style="
    color: #D40511;
    background-color: #FFCD04;
    font-size: 12px;
    padding-bottom: 2px;
">DHL</span>

4

.pl-tab needs cursor: pointer;

Tested with Firefox v24?

There might be issues with older version of Firefox

We should also include a no-javascript-notice in our HTML code

Tracking Info Component

Tracking-info (right now tracking-delivery which is an irrelevant name):

Tracking-data:

Subheading.js

Header.js

LivetrackingLink.js

TrackingHeading.js

Prediction.js (this includes a Calendar and a TimeBox that can be moved into a component). This is to show the Estimated Delivery Date, may be โ€œPredictionโ€ is not the best name.

Checkpoint.js

NextAction.js (StatusDetails?)

Returned.js

Calendar.js ???

TimeBox.js ???

RerouteLink.js (and RerouteLinkShort.js, we could group it in one component)

FurtherInfos.js

General Components

General (small parts to be used by different components or that canโ€™t be grouped in another category):

Alert.js

Banner.js -> in case a banner_link or image is available

MoreButton.js

Loading.js

Tabs (folder?) -> TabsContainer.js & Tab.js

Icons (folder?) -> Icon.js & IconState.js

Note.js

Footer.js ??

Maps Component

Maps:

LivetrackingMap.js ** Check to use just one general Map component

PickUpMap.js ** Check to use just one general Map component

MapsFooter.js

change tracking page message for orders that aren't in our system yet

Use-case: The recipient gets the order/dispatch confirmation confirmation straight from the shop including our link. However the order isn't in our system yet. Then he/she gets a default text saying "not in our system"Screenshot 2018-12-04 at 14.32.41.png

Can we change this content to a message saying "dispatch will take place soon" already including the icons etc . See: https://www.rosaoazul.es/shipment-tracking/?lang=es&u=1612174&orderNo=ES595949495

Couriers codes

Hi there,
is there any place where I can find full list of courier codes? Official ParcelLab documentation is useless in this topic, in this plugin code I've found only four german courier codes mapping.
Best regards.

Code snippet to inject custom text into split-order pills

Currently the selection for split-orders looks like this:

Screenshot 2019-04-12 at 11.28.58.png

Now we want customers to be able to modify these buttons individually using the onnRendered hook.

Can we provide a JS function to be inserted there that inject additional titles based on the carrier so that it looks like this?

Screenshot 2019-04-12 at 11.31.40.png

Search form doesn't show results

Allerdings wollten wir jetzt das Suchformular integrieren, wenn die Seite im Shop ohne Sendungsnummer aufgerufen wird. Dazu habe ich wie in der Doku beschrieben die Initialisierung mit den entsprechenden Parametern aufgerufen:

parcelLab.initialize({ show_searchForm: true, userId: 1, });

Allerdings ist die Ausgabe auf der Seite die gleiche, wie bei einer Initialisierung ohne die entsprechenden Parameter.

Ich sehe im Code auch, dass eigentlich ein Fehler geworfen werden sollte, wenn man keine userId angibt:

console.error("โš ๏ธ You must pass your userId in the options if you want to display a searchForm!")

Das habe ich auch einmal probiert (keine userId angegeben) und keine Fehlermeldung in der Konsole sehen kรถnnen. รœbersehe ich da irgendetwas? Die Anzeige der Test-Tracking-Nummern, die du uns gegeben hast funktioniert soweit ohne Probleme.

Add custom class for tracking selection pills

If we do have multiple tracking numbers and select via ?u=1&orderNo=, can we add a custom class depending on the current status of the tracking?

So they could highlight the pills in red if there's an exception with their own CSS, for example.

fix high security vulnerability of parcel package reported by npm

=== npm audit security report ===

# Run  npm install --save-dev [email protected]  to resolve 1 vulnerability
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ High          โ”‚ Missing Origin Validation                                    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Package       โ”‚ parcel-bundler                                               โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Dependency of โ”‚ parcel-bundler [dev]                                         โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Path          โ”‚ parcel-bundler                                               โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ More info     โ”‚ https://nodesecurity.io/advisories/721                       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

So as far as I understand this only allows a theoretical attacker to steal the uncompressed source and only if the developers machine is accessible from the internet. Shouldn't affect us, but since the fix should be extremely simple...

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.