mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-10-30 18:27:58 +00:00
Compare commits
9 Commits
v1.2.0-RC1
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c5d35f7b8 | ||
|
|
d21304e8fb | ||
|
|
3f7c3a8478 | ||
|
|
0de1e380b5 | ||
|
|
30bf5adfc1 | ||
|
|
1f9983ba65 | ||
|
|
bc4a9c6152 | ||
|
|
eeb1f8a886 | ||
|
|
7588eae33d |
4
.github/workflows/dockerpublish.yml
vendored
4
.github/workflows/dockerpublish.yml
vendored
@@ -61,7 +61,7 @@ jobs:
|
||||
[[ "${{ github.ref }}" == "refs/heads/release/"* ]] && VERSION=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\/release\/[v]//' | awk '{print $1"-SNAPSHOT"}')
|
||||
|
||||
# Use Docker `latest` tag convention
|
||||
[ "$VERSION" == "master" ] && VERSION=1.2.0-SNAPSHOT
|
||||
[ "$VERSION" == "master" ] && VERSION=1.3.0-SNAPSHOT
|
||||
|
||||
TIMESTAMP=$(date +'%Y-%m-%d')
|
||||
|
||||
@@ -96,7 +96,7 @@ jobs:
|
||||
[[ "${{ github.ref }}" == "refs/heads/release/"* ]] && VERSION=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\/release\/[v]//' | awk '{print $1"-SNAPSHOT"}')
|
||||
|
||||
# Use Docker `latest` tag convention
|
||||
[ "$VERSION" == "master" ] && VERSION=1.2.0-SNAPSHOT
|
||||
[ "$VERSION" == "master" ] && VERSION=1.3.0-SNAPSHOT
|
||||
|
||||
echo IMAGE_ID=$IMAGE_ID
|
||||
echo VERSION=$VERSION
|
||||
|
||||
@@ -79,6 +79,15 @@ const AddProfile = () => {
|
||||
variables: { customerId, type: 'rf' },
|
||||
fetchPolicy: 'network-only',
|
||||
});
|
||||
|
||||
const { data: passpointProfiles, fetchMore: fetchMorePasspointProfiles } = useQuery(
|
||||
GET_ALL_PROFILES(),
|
||||
{
|
||||
variables: { customerId, type: 'passpoint' },
|
||||
fetchPolicy: 'network-only',
|
||||
}
|
||||
);
|
||||
|
||||
const [createProfile] = useMutation(CREATE_PROFILE);
|
||||
const history = useHistory();
|
||||
|
||||
@@ -117,6 +126,8 @@ const AddProfile = () => {
|
||||
fetchMoreProfiles(e, operatorProfiles, fetchMoreOperatorProfiles);
|
||||
else if (key === 'passpoint_osu_id_provider')
|
||||
fetchMoreProfiles(e, idProviderProfiles, fetchMoreIdProviderProfiles);
|
||||
else if (key === 'passpoint')
|
||||
fetchMoreProfiles(e, passpointProfiles, fetchMorePasspointProfiles);
|
||||
else fetchMoreProfiles(e, ssidProfiles, fetchMore);
|
||||
};
|
||||
|
||||
@@ -170,6 +181,7 @@ const AddProfile = () => {
|
||||
operatorProfiles={operatorProfiles?.getAllProfiles?.items}
|
||||
idProviderProfiles={idProviderProfiles?.getAllProfiles?.items}
|
||||
rfProfiles={rfProfiles?.getAllProfiles?.items}
|
||||
passpointProfiles={passpointProfiles?.getAllProfiles?.items}
|
||||
onFetchMoreProfiles={handleFetchMoreProfiles}
|
||||
fileUpload={handleFileUpload}
|
||||
/>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { useState, useContext } from 'react';
|
||||
import { useParams, Redirect } from 'react-router-dom';
|
||||
import { useQuery, useMutation, gql } from '@apollo/client';
|
||||
import { Alert, notification } from 'antd';
|
||||
import { notification } from 'antd';
|
||||
import { ProfileDetails as ProfileDetailsPage, Loading } from '@tip-wlan/wlan-cloud-ui-library';
|
||||
|
||||
import { ROUTES, AUTH_TOKEN } from 'constants/index';
|
||||
@@ -32,6 +32,8 @@ const GET_PROFILE = gql`
|
||||
osuSsidProfile {
|
||||
id
|
||||
name
|
||||
profileType
|
||||
details
|
||||
}
|
||||
childProfileIds
|
||||
createdTimestamp
|
||||
@@ -87,9 +89,10 @@ const ProfileDetails = () => {
|
||||
|
||||
const { data: apiUrl } = useQuery(GET_API_URL);
|
||||
|
||||
const { loading, error, data } = useQuery(GET_PROFILE, {
|
||||
const { loading, data } = useQuery(GET_PROFILE, {
|
||||
variables: { id },
|
||||
fetchPolicy: 'network-only',
|
||||
errorPolicy: 'all',
|
||||
});
|
||||
|
||||
const { data: ssidProfiles, fetchMore } = useQuery(GET_ALL_PROFILES(), {
|
||||
@@ -139,6 +142,14 @@ const ProfileDetails = () => {
|
||||
fetchPolicy: 'network-only',
|
||||
});
|
||||
|
||||
const { data: passpointProfiles, fetchMore: fetchMorePasspointProfiles } = useQuery(
|
||||
GET_ALL_PROFILES(),
|
||||
{
|
||||
variables: { customerId, type: 'passpoint' },
|
||||
fetchPolicy: 'network-only',
|
||||
}
|
||||
);
|
||||
|
||||
const [updateProfile] = useMutation(UPDATE_PROFILE);
|
||||
const [deleteProfile] = useMutation(DELETE_PROFILE);
|
||||
|
||||
@@ -269,6 +280,8 @@ const ProfileDetails = () => {
|
||||
fetchMoreProfiles(e, operatorProfiles, fetchMoreOperatorProfiles);
|
||||
else if (key === 'passpoint_osu_id_provider')
|
||||
fetchMoreProfiles(e, idProviderProfiles, fetchMoreIdProviderProfiles);
|
||||
else if (key === 'passpoint')
|
||||
fetchMoreProfiles(e, passpointProfiles, fetchMorePasspointProfiles);
|
||||
else fetchMoreProfiles(e, ssidProfiles, fetchMore);
|
||||
};
|
||||
|
||||
@@ -276,12 +289,6 @@ const ProfileDetails = () => {
|
||||
return <Loading />;
|
||||
}
|
||||
|
||||
if (error) {
|
||||
return (
|
||||
<Alert message="Error" description="Failed to load profile data." type="error" showIcon />
|
||||
);
|
||||
}
|
||||
|
||||
if (redirect) {
|
||||
return <Redirect to={ROUTES.profiles} />;
|
||||
}
|
||||
@@ -289,6 +296,7 @@ const ProfileDetails = () => {
|
||||
return (
|
||||
<ProfileDetailsPage
|
||||
name={data.getProfile.name}
|
||||
profileId={data?.getProfile?.id}
|
||||
profileType={data.getProfile.profileType}
|
||||
details={data.getProfile.details}
|
||||
childProfiles={data.getProfile.childProfiles}
|
||||
@@ -304,6 +312,7 @@ const ProfileDetails = () => {
|
||||
idProviderProfiles={idProviderProfiles?.getAllProfiles?.items}
|
||||
associatedSsidProfiles={data.getProfile?.associatedSsidProfiles}
|
||||
osuSsidProfile={data.getProfile?.osuSsidProfile}
|
||||
passpointProfiles={passpointProfiles?.getAllProfiles?.items}
|
||||
fileUpload={handleFileUpload}
|
||||
onFetchMoreProfiles={handleFetchMoreProfiles}
|
||||
onDownloadFile={handleDownloadFile}
|
||||
|
||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -2223,9 +2223,9 @@
|
||||
}
|
||||
},
|
||||
"@tip-wlan/wlan-cloud-ui-library": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://tip.jfrog.io/artifactory/api/npm/tip-wlan-cloud-npm-repo/@tip-wlan/wlan-cloud-ui-library/-/@tip-wlan/wlan-cloud-ui-library-1.2.2.tgz",
|
||||
"integrity": "sha1-mlLeN9yAg9KcSWEwc/s2sRxem7E="
|
||||
"version": "1.2.6",
|
||||
"resolved": "https://tip.jfrog.io/artifactory/api/npm/tip-wlan-cloud-npm-repo/@tip-wlan/wlan-cloud-ui-library/-/@tip-wlan/wlan-cloud-ui-library-1.2.6.tgz",
|
||||
"integrity": "sha1-BZoknNYpmGz7TCJmRVDSOtrA4B4="
|
||||
},
|
||||
"@types/anymatch": {
|
||||
"version": "1.3.1",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"dependencies": {
|
||||
"@ant-design/icons": "^4.2.1",
|
||||
"@apollo/client": "^3.1.3",
|
||||
"@tip-wlan/wlan-cloud-ui-library": "^1.2.2",
|
||||
"@tip-wlan/wlan-cloud-ui-library": "^1.2.6",
|
||||
"antd": "^4.5.2",
|
||||
"apollo-upload-client": "^13.0.0",
|
||||
"graphql": "^15.5.0",
|
||||
|
||||
Reference in New Issue
Block a user