Skip to content

Commit

Permalink
Merge pull request #26 from NJUPT-SAST/dev-love98
Browse files Browse the repository at this point in the history
Remove useless commented code and unused imports
  • Loading branch information
love98ooo authored Dec 2, 2023
2 parents 6c5c51a + 70bf7c0 commit 62d3c35
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 41 deletions.
1 change: 0 additions & 1 deletion src/components/Subcribe.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
flex-direction: column;
width: 100vw;
padding: 0 min(1vw, 20px);
// max-width: 500px;
.mySubscribeDepartmentsTitleWarpper {
margin: 0;
}
Expand Down
1 change: 0 additions & 1 deletion src/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const Login: React.FC = () => {
const [password, setPassword] = useState<string>("");
const [showToast, setShowToast] = useState(false);
const history = useHistory();
// const linkUrl = 'http://192.168.0.154:3000/auth?client_id=f04a5a82-d394-456c-82d0-57623b8549d7&code_challenge=YillThSRrGTj6mXqFfDPinX7G35qEQ1QEyWV6PDSEuc%3D&code_challenge_method=S256&redirect_uri=http://192.168.0.154:8102/oauth&response_type=code&scope=all&state=xyz'
const linkUrl = 'https://link.sast.fun/auth?client_id=a5047c7f-d8ae-40f5-85de-5c380ecc0b51&code_challenge=YillThSRrGTj6mXqFfDPinX7G35qEQ1QEyWV6PDSEuc%3D&code_challenge_method=S256&redirect_uri=https://evento.sast.fun/oauth&response_type=code&scope=all&state=xyz'

const login = () => {
Expand Down
39 changes: 0 additions & 39 deletions src/pages/Schedule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,45 +28,6 @@ const SubscriptionsPage: React.FC = () => {
setSelectedSegment(e.detail.value);
}

// const onStart = () => {
// console.log('onStart');
// }

// const onMove = (detail: GestureDetail) => {
// console.log('onMove');
// const { type, currentX, deltaX, velocityX } = detail;
// // move ion-content
// if (selectedSegment === 'subscriptions' && deltaX < 0) {
// content.style.transform = `translateX(${deltaX}px)`;
// } else if (selectedSegment === 'participate' && deltaX > 0) {
// content.style.transform = `translateX(${deltaX}px)`;
// }
// contentMove = deltaX;
// }

// const onEnd = () => {
// if (Math.abs(contentMove) > 150) {
// if (contentMove < 0) {
// setSelectedSegment('participate');
// } else {
// setSelectedSegment('subscriptions');
// }
// }
// content.style.transform = 'translateX(0px)';
// }

// useEffect(() => {
// // use createGesture to achive left and right swipe
// const gesture = createGesture({
// el: document.querySelector('ion-content')!,
// gestureName: 'swipe',
// onStart: () => onStart(),
// onMove: (detail) => onMove(detail),
// onEnd: () => onEnd(),
// passive: false,
// });
// gesture.enable();
// })
return (
<IonPage>
<IonHeader translucent={false}>
Expand Down

0 comments on commit 62d3c35

Please sign in to comment.